diff --git a/build/darwin/ci_generate.sh b/build/darwin/ci_generate.sh index 4c9a98b..80ce265 100755 --- a/build/darwin/ci_generate.sh +++ b/build/darwin/ci_generate.sh @@ -13,48 +13,27 @@ cat > build/darwin/dmg_settings.json << EOF "background": "$(pwd)/build/darwin/dmg_background.png", "icon-size": 100, "window": { - "size": { "width": 155, "height": 250 }, - "position": { "x": 360, "y": 360 } + "size": { "width": 750, "height": 400 } }, "contents": [ - { "x": 750, "y": 500, "type": "link", "path": "/Applications" }, - { "x": 595, "y": 250, "type": "file", "path": "$(pwd)/build/bin/Rolens.app" } + { "x": 600, "y": 175, "type": "link", "path": "/Applications" }, + { "x": 150, "y": 175, "type": "file", "path": "$(pwd)/build/bin/Rolens.app" } ] } EOF # 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 -# appdmg build/darwin/dmg_settings.json build/bin/Rolens.dmg -tar -czvf releases/rolens-$1-amd64.tar.gz --directory build/bin Rolens.app +appdmg build/darwin/dmg_settings.json build/bin/Rolens.dmg +zip -j releases/rolens-$1-amd64.zip build/bin/Rolens.dmg # Cleanup -rm -rf build/bin/Rolens.app +rm -rf build/bin/Rolens.dmg # ARM/AppleM1 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 -# appdmg build/darwin/dmg_settings.json build/bin/Rolens.dmg -tar -czvf releases/rolens-$1-arm64.tar.gz --directory build/bin Rolens.app +appdmg build/darwin/dmg_settings.json build/bin/Rolens.dmg +zip -j releases/rolens-$1-arm64.zip build/bin/Rolens.dmg # Cleanup rm -rf build/bin/Rolens.app diff --git a/build/darwin/dmg_background.png b/build/darwin/dmg_background.png index 08127a9..cff9fce 100644 Binary files a/build/darwin/dmg_background.png and b/build/darwin/dmg_background.png differ