Removing previous builds before going on with the next one.

This commit is contained in:
Nicolas "Pixel" Noble 2018-11-16 00:58:43 +01:00
parent d23728c383
commit ba6c7ca4ce
1 changed files with 2 additions and 0 deletions

View File

@ -38,12 +38,14 @@ for %%a in (%arch_list%) do (
call .\node_modules\.bin\node-pre-gyp.cmd build package --target=%%v --target_arch=%%a || goto :error
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error
rmdir build /S /Q
)
for %%v in (%electron_versions%) do (
cmd /V /C "set "HOME=%USERPROFILE%\electron-gyp" && call .\node_modules\.bin\node-pre-gyp.cmd configure rebuild package --runtime=electron --target=%%v --target_arch=%%a --disturl=https://atom.io/download/electron" || goto :error
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error
rmdir build /S /Q
)
)
if %errorlevel% neq 0 exit /b %errorlevel%