Skip to content

Commit 007a15b

Browse files
committed
Revert "provide dmg for macOS bundles"
This reverts commit a4d47e2.
1 parent 6e9b9cc commit 007a15b

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

.github/workflows/deployment.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,16 @@ jobs:
4343
run: cargo install cargo-bundle
4444
- name: Build
4545
run: cargo bundle --release
46-
- name: Create DMG
47-
run: |
48-
cd target/release/bundle/osx
49-
ls
50-
hdiutil create -volname "Rust Serial Monitor" \
51-
-srcfolder "Serial Monitor.app" \
52-
-ov \
53-
-format UDZO \
54-
rust-serial-monitor.dmg
46+
- name: Compress
47+
run: cd target/release/bundle/osx && ls && zip -r rust-serial-monitor.app.zip Serial\ Monitor.app/*
5548
- name: Upload
5649
uses: actions/upload-release-asset@v1.0.1
5750
env:
5851
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5952
with:
6053
upload_url: ${{ github.event.release.upload_url }}
61-
asset_path: ./target/release/bundle/osx/rust-serial-monitor.dmg
62-
asset_name: rust-serial-monitor-macos_x86.dmg
54+
asset_path: ./target/release/bundle/osx/rust-serial-monitor.app.zip
55+
asset_name: rust-serial-monitor-macos_x86.app.zip
6356
asset_content_type: binary
6457

6558
build-macos-arm:
@@ -72,23 +65,16 @@ jobs:
7265
run: cargo install cargo-bundle
7366
- name: Build
7467
run: cargo bundle --release
75-
- name: Create DMG
76-
run: |
77-
cd target/release/bundle/osx
78-
ls
79-
hdiutil create -volname "Rust Serial Monitor" \
80-
-srcfolder "Serial Monitor.app" \
81-
-ov \
82-
-format UDZO \
83-
rust-serial-monitor.dmg
68+
- name: Compress
69+
run: cd target/release/bundle/osx && ls && zip -r rust-serial-monitor.app.zip Serial\ Monitor.app/*
8470
- name: Upload
8571
uses: actions/upload-release-asset@v1.0.1
8672
env:
8773
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8874
with:
8975
upload_url: ${{ github.event.release.upload_url }}
90-
asset_path: ./target/release/bundle/osx/rust-serial-monitor.dmg
91-
asset_name: rust-serial-monitor-macos_arm.dmg
76+
asset_path: ./target/release/bundle/osx/rust-serial-monitor.app.zip
77+
asset_name: rust-serial-monitor-macos_arm.app.zip
9278
asset_content_type: binary
9379

9480
build-windows:

0 commit comments

Comments
 (0)