1
0
Fork 0

feat(exe): add file with API version and commit to bundle

This commit is contained in:
Sean Sube 2023-06-30 22:32:43 -05:00
parent fcaeb8cb42
commit 94688ab3c7
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 3 additions and 0 deletions

View File

@ -28,5 +28,8 @@ git rev-parse HEAD > commit.txt
set /p GIT_SHA=<commit.txt set /p GIT_SHA=<commit.txt
set GIT_HEAD=%GIT_SHA:~0,8% set GIT_HEAD=%GIT_SHA:~0,8%
REM create version file
echo "%BUNDLE_VERSION%-%BUNDLE_TYPE%-%GIT_HEAD%" > .\dist\version.txt
REM create archive REM create archive
"C:\Program Files\7-Zip\7z.exe" a .\dist\onnx-web-v%BUNDLE_VERSION%-%BUNDLE_TYPE%-%GIT_HEAD%.zip ".\dist\*" "C:\Program Files\7-Zip\7z.exe" a .\dist\onnx-web-v%BUNDLE_VERSION%-%BUNDLE_TYPE%-%GIT_HEAD%.zip ".\dist\*"