Fix build when PATH contains spaces

This commit is contained in:
taaem
2021-02-12 13:00:32 +01:00
parent 83562b367a
commit 3845bca8f7

View File

@@ -16,13 +16,13 @@ echo Building nvm.exe
go build src\nvm.go
REM Group the file with the helper binaries
move nvm.exe %GOBIN%
move nvm.exe "%GOBIN%"
REM Codesign the executable
.\buildtools\signtools\x64\signtool.exe sign /debug /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a %GOBIN%\nvm.exe
.\buildtools\signtools\x64\signtool.exe sign /debug /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a "%GOBIN%\nvm.exe"
for /f %%i in ('%GOBIN%\nvm.exe version') do set AppVersion=%%i
for /f %%i in ('"%GOBIN%\nvm.exe" version') do set AppVersion=%%i
echo nvm.exe v%AppVersion% built.
REM Create the distribution folder
@@ -38,10 +38,10 @@ REM Create the distribution directory
mkdir "%DIST%"
REM Create the "no install" zip version
for %%a in (%GOBIN%) do (buildtools\zip -j -9 -r "%DIST%\nvm-noinstall.zip" "%CD%\LICENSE" "%%a\*" -x "%GOBIN%\nodejs.ico")
for %%a in ("%GOBIN%") do (buildtools\zip -j -9 -r "%DIST%\nvm-noinstall.zip" "%CD%\LICENSE" %%a\* -x "%GOBIN%\nodejs.ico")
REM Generate the installer (InnoSetup)
buildtools\iscc %INNOSETUP% /o%DIST%
buildtools\iscc "%INNOSETUP%" "/o%DIST%"
buildtools\zip -j -9 -r "%DIST%\nvm-setup.zip" "%DIST%\nvm-setup.exe"
REM Generate checksums