diff --git a/appveyor.yml b/appveyor.yml index 6a1a5e9833..9718383798 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -29,10 +29,10 @@ build_script: echo %MSBUILD_EXE% %SLN_FILE% /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /t:"Clean","Rebuild" %EXTRA_CMD% %MSBUILD_EXE% %SLN_FILE% /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /t:"Clean","Rebuild" %EXTRA_CMD% + + call zipArtifacts.bat %PLATFORM% %CONFIGURATION% echo appveyor_yml artifacts: -- path: '$(platform)\$(configuration)\*.exe' -- path: '$(platform)\$(configuration)\*.dll' -- path: '$(platform)\$(configuration)\*.pdb' +- path: 'sakura-$(platform)-$(configuration).zip' diff --git a/zipArtifacts.bat b/zipArtifacts.bat new file mode 100644 index 0000000000..1f46f0fac2 --- /dev/null +++ b/zipArtifacts.bat @@ -0,0 +1,24 @@ +set platform=%1 +set configuration=%2 +set WORKDIR=sakura-%platform%-%configuration% +set OUTFILE=sakura-%platform%-%configuration%.zip + +@rem cleanup for local testing +if exist "%OUTFILE%" ( + del %OUTFILE% +) +if exist "%WORKDIR%" ( + rmdir /s /q %WORKDIR% +) + +mkdir %WORKDIR% +copy %platform%\%configuration%\*.exe %WORKDIR%\ +copy %platform%\%configuration%\*.dll %WORKDIR%\ +copy %platform%\%configuration%\*.pdb %WORKDIR%\ + +7z a %OUTFILE% -r %WORKDIR% +7z l %OUTFILE% + +if exist %WORKDIR% ( + rmdir /s /q %WORKDIR% +)