diff --git a/.gitignore b/.gitignore index b0fc132..ac024a2 100644 --- a/.gitignore +++ b/.gitignore @@ -48,4 +48,7 @@ app.*.map.json /assets/*.json # FVM -.fvm/flutter_sdk \ No newline at end of file +.fvm/flutter_sdk + +# Installers +/installers/macos/*.dmg \ No newline at end of file diff --git a/installers/macos/build_installer.sh b/installers/macos/build_installer.sh new file mode 100755 index 0000000..fc4248e --- /dev/null +++ b/installers/macos/build_installer.sh @@ -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" diff --git a/installers/macos/dmg_creator/config.json b/installers/macos/dmg_creator/config.json new file mode 100644 index 0000000..8a8c119 --- /dev/null +++ b/installers/macos/dmg_creator/config.json @@ -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" } + ] +} \ No newline at end of file diff --git a/installers/macos/dmg_creator/pao.icns b/installers/macos/dmg_creator/pao.icns new file mode 100644 index 0000000..a49c23f Binary files /dev/null and b/installers/macos/dmg_creator/pao.icns differ