Skip to content

Commit

Permalink
Add macOS app DMG installer
Browse files Browse the repository at this point in the history
  • Loading branch information
copmorty committed Oct 19, 2023
1 parent 1f42ccf commit 4a123ef
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ app.*.map.json
/assets/*.json

# FVM
.fvm/flutter_sdk
.fvm/flutter_sdk

# Installers
/installers/macos/*.dmg
15 changes: 15 additions & 0 deletions installers/macos/build_installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
dmg_file="price_action_orders.dmg"

cd ../..

fvm flutter clean
fvm flutter pub get
fvm flutter build macos

cd installers/macos

if [ -f "$dmg_file" ]; then
rm -f "$dmg_file"
fi

appdmg ./dmg_creator/config.json ./"$dmg_file"
12 changes: 12 additions & 0 deletions installers/macos/dmg_creator/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Price Action Orders",
"icon": "./pao.icns",
"icon-size": 130,
"window": {
"size": { "width": 640, "height": 360 }
},
"contents": [
{ "x": 450, "y": 180, "type": "link", "path": "/Applications" },
{ "x": 190, "y": 180, "type": "file", "path": "../../../build/macos/Build/Products/Release/Price Action Orders.app" }
]
}
Binary file added installers/macos/dmg_creator/pao.icns
Binary file not shown.

0 comments on commit 4a123ef

Please sign in to comment.