build: make zip archive of final zip

This commit is contained in:
鲁树人 2023-12-28 23:09:56 +00:00
parent 0a3dac9d3d
commit bea2f4b7d4
2 changed files with 7 additions and 3 deletions

View File

@ -58,4 +58,4 @@ pnpm build
```sh
./scripts/make-win64.sh
```
4. 等待提示 `done!` 即可。
4. 等待提示 `[Build OK]` 即可。

View File

@ -14,11 +14,15 @@ dl_file "um-react-wry-stub-0.1.0-win64.exe"
chmod a+x um-react-wry-builder-0.1.0-linux-amd64
APP_VERSION="$(jq -r '.version' <package.json)"
EXE_NAME="um-react-win64-${APP_VERSION}.exe"
ZIP_NAME="um-react-win64-${APP_VERSION}.zip"
./um-react-wry-builder-0.1.0-linux-amd64 \
-t um-react-wry-stub-0.1.0-win64.exe \
-r um-react.zip \
-o "um-react-win64-${APP_VERSION}.exe"
-o "${EXE_NAME}"
echo "Built 'um-react-win64-${APP_VERSION}.exe'."
touch -d 1970-01-01T00:00:00Z "${EXE_NAME}"
zip -9oX "${ZIP_NAME}" -- "${EXE_NAME}"
echo "[Build OK] '${ZIP_NAME}'."
popd