mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
The "build_official.cmd" now creates all of the build artifacts and the "devbuild.cmd" is a quick way for developers to get a build from the command-line. With these two batch files in place, move the official build pipeline from Azure DevOps to GitHub Actions.
27 lines
568 B
Batchfile
27 lines
568 B
Batchfile
@echo off
|
|
|
|
setlocal
|
|
pushd %~dp0
|
|
|
|
:parse_args
|
|
if /i "%1"=="release" set _C=/p:Configuration=Release
|
|
if /i "%1"=="init" set _INIT=1
|
|
if /i "%1"=="initialize" set _INIT=1
|
|
if /i "%1"=="inc" set _INCREMENTAL=1
|
|
if /i "%1"=="incremental" set _INCREMENTAL=1
|
|
if /i "%1"=="clean" set _INCREMENTAL= & set _CLEAN=1
|
|
if not "%1"=="" shift & goto parse_args
|
|
|
|
if not "%_INCREMENTAL"=="1" rd /s /q build packages 2> nul
|
|
if not "%_CLEAN%"=="" goto end
|
|
|
|
if "%_INIT%"=="1" git submodule update --init --recursive
|
|
|
|
nuget restore
|
|
|
|
msbuild -Restore %_C% -m -nr:false -v:m
|
|
|
|
:end
|
|
popd
|
|
endlocal
|