1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 06:14:04 +00:00

Extract CI scripts to files. macOS: generate DMG

This commit is contained in:
2023-06-04 17:11:13 +02:00
parent 2fc7607ea7
commit 1524cdb244
7 changed files with 88 additions and 22 deletions

31
build/darwin/ci_generate.sh Executable file
View File

@ -0,0 +1,31 @@
mkdir releases
mkdir emptydir
# AMD/Intel
wails build -platform darwin/amd64
create-dmg \
--volname Rolens \
--window-size 155 250 \
--volicon build/appicon.png \
--eula LICENSE \
--app-drop-link 750 500 \
--icon-size 100 \
--background build/darwin/dmg_background.png \
--add-file Rolens.app build/bin/Rolens.app 595 250 \
build/bin/Rolens.dmg emptydir
tar -czvf releases/rolens-$1-amd64.tar.gz --directory build/bin Rolens.dmg
# ARM/AppleM1
rm -rf build/bin
wails build -platform darwin/arm64
create-dmg \
--volname Rolens \
--window-size 155 250 \
--volicon build/appicon.png \
--eula LICENSE \
--app-drop-link 750 500 \
--icon-size 100 \
--background build/darwin/dmg_background.png \
--add-file Rolens.app build/bin/Rolens.app 595 250 \
build/bin/Rolens.dmg emptydir
tar -czvf releases/rolens-$1-arm64.tar.gz --directory build/bin Rolens.dmg

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB