diff --git a/build-7z.cmd b/build-7z.cmd index 991e3669..58d50d5b 100644 --- a/build-7z.cmd +++ b/build-7z.cmd @@ -1,4 +1,5 @@ @echo off +setlocal set ZIP_BIN="C:\Program Files\7-Zip\7z.exe" cd /d %~dp0 msbuild -t:restore -p:RestorePackagesConfig=true @@ -8,7 +9,6 @@ call npm ci call npm run production cd .. mklink /J "%~dp0\bin\x64\Release\html" "%~dp0\html\dist" -setlocal for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%%a set ZIP_NAME=VRCX_%TODAY%.zip echo %ZIP_NAME% diff --git a/build.cmd b/build.cmd index 3703fe58..f31eaa71 100644 --- a/build.cmd +++ b/build.cmd @@ -1,4 +1,5 @@ @echo off +setlocal cd /d %~dp0 msbuild -t:restore -p:RestorePackagesConfig=true msbuild VRCX.sln /p:Configuration=Release /p:Platform=x64 -m @@ -7,7 +8,6 @@ call npm ci call npm run production cd .. mklink /J "%~dp0\bin\x64\Release\html" "%~dp0\html\dist" -setlocal for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%%a set ZIP_NAME=VRCX_%TODAY%.zip echo %ZIP_NAME% diff --git a/make-zip-7z.cmd b/make-zip-7z.cmd index d2856eac..e18471aa 100644 --- a/make-zip-7z.cmd +++ b/make-zip-7z.cmd @@ -1,4 +1,5 @@ @echo off +setlocal for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%%a set ZIP_NAME=VRCX_%TODAY%.zip echo %ZIP_NAME%