From afbd2af15ca6a32c477b5b9822915e052d0f11a8 Mon Sep 17 00:00:00 2001 From: "dries.k" Date: Thu, 21 Jul 2022 16:13:37 +0200 Subject: [PATCH] create dmg instead of zip --- .github/workflows/develop.yml | 10 ++++------ README.md | 7 +++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index d0ae7d4..fec3451 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -69,12 +69,10 @@ jobs: - name: Build run: | make build-macos - cd dist - zip -r Gotify-Tray.zip Gotify-Tray.app - cd .. - cp dist/Gotify-Tray.zip Gotify-Tray.zip + brew install create-dmg + create-dmg --volname "Gotify Tray" --app-drop-link 0 0 --no-internet-enable "Gotify-Tray.dmg" "./dist/Gotify-Tray.app" - name: Upload artifact uses: actions/upload-artifact@v2 with: - name: Gotify-Tray.zip - path: Gotify-Tray.zip + name: Gotify-Tray.dmg + path: Gotify-Tray.dmg diff --git a/README.md b/README.md index e17f77d..7a015cb 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,13 @@ $ pyinstaller gotify-tray.spec ``` An executable is created at `dist/gotify-tray/`. +### Create a macos .app + +``` +$ pip install pyinstaller Pillow +$ pyinstaller gotify-tray-macos.spec +``` + ### Inno setup (Windows) Create an installer for windows with inno setup from pyinstaller output: