mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-23 22:42:16 +00:00
build: make zip archive of final zip
This commit is contained in:
parent
0a3dac9d3d
commit
bea2f4b7d4
@ -58,4 +58,4 @@ pnpm build
|
|||||||
```sh
|
```sh
|
||||||
./scripts/make-win64.sh
|
./scripts/make-win64.sh
|
||||||
```
|
```
|
||||||
4. 等待提示 `done!` 即可。
|
4. 等待提示 `[Build OK]` 即可。
|
||||||
|
@ -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
|
chmod a+x um-react-wry-builder-0.1.0-linux-amd64
|
||||||
|
|
||||||
APP_VERSION="$(jq -r '.version' <package.json)"
|
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 \
|
./um-react-wry-builder-0.1.0-linux-amd64 \
|
||||||
-t um-react-wry-stub-0.1.0-win64.exe \
|
-t um-react-wry-stub-0.1.0-win64.exe \
|
||||||
-r um-react.zip \
|
-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
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user