From 556cf4c681d3cb7ae3d48ae40c0dd97bb569e359 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 30 Apr 2021 14:14:25 +1200 Subject: [PATCH] setlocal --- build-7z.cmd | 2 +- build.cmd | 2 +- make-zip-7z.cmd | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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%