2017-10-16 06:10:20 -07:00
|
|
|
@echo on
|
|
|
|
cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
|
|
|
|
build-msvc-release\bin\zig.exe version >version.txt
|
|
|
|
set /p ZIGVERSION=<version.txt
|
2017-10-16 10:01:34 -07:00
|
|
|
appveyor UpdateBuild -Version "%ZIGVERSION%"
|
2017-10-16 06:10:20 -07:00
|
|
|
SET "RELEASEDIR=zig-%ZIGVERSION%"
|
|
|
|
mkdir "%RELEASEDIR%"
|
|
|
|
move build-msvc-release\bin\zig.exe "%RELEASEDIR%"
|
|
|
|
move build-msvc-release\lib "%RELEASEDIR%"
|
2018-01-22 13:14:06 -08:00
|
|
|
move zig-cache\langref.html "%RELEASEDIR%"
|
2017-10-16 06:10:20 -07:00
|
|
|
|
|
|
|
SET "RELEASEZIP=zig-%ZIGVERSION%.zip"
|
|
|
|
|
|
|
|
7z a "%RELEASEZIP%" "%RELEASEDIR%"
|
|
|
|
appveyor PushArtifact "%RELEASEZIP%"
|