Skip to content

Commit 1d4a1ae

Browse files
committed
chore: add dmg for macos
1 parent 1234b4b commit 1d4a1ae

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,29 @@ jobs:
8080
- name: Generate licenses file
8181
run: dart run dart_pubspec_licenses:generate
8282

83+
- name: Install dmg package
84+
run: flutter pub add --dev dmg
85+
86+
- name: Install dmgbuild
87+
run: pip3 install dmgbuild --break-system-packages
8388

8489
- name: Build macOS
8590
run: flutter build macos --release
8691

92+
- name: Create macOS DMG
93+
run: dart run dmg --no-sign --no-notarization --license-path "./LICENSE"
94+
8795
- name: Create macOS archive
8896
run: |
8997
cd build/macos/Build/Products/Release
9098
zip -r ../../../../../touchfish-macos.zip touchfish_client.app
9199
100+
- name: Upload macOS DMG artifact
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: macos-dmg
104+
path: build/macos/Build/Products/Release/*.dmg
105+
92106
- name: Upload macOS artifact
93107
uses: actions/upload-artifact@v4
94108
with:

0 commit comments

Comments
 (0)