Skip to content

Commit 6a3dd3c

Browse files
committed
fix: resolve dmg binary builds in tip release
1 parent b580913 commit 6a3dd3c

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020

2121
- name: Setup Rust
2222
uses: dtolnay/rust-toolchain@stable
23+
with:
24+
targets: aarch64-apple-darwin,x86_64-apple-darwin
2325

2426
- name: Rust cache
2527
uses: swatinem/rust-cache@v2
@@ -39,6 +41,13 @@ jobs:
3941
with:
4042
tagName: v__VERSION__
4143
releaseName: 'Snipp v__VERSION__'
42-
releaseBody: 'Download the DMG below to install Snipp on macOS.'
44+
releaseBody: |
45+
Download the DMG below to install Snipp on macOS (Intel + Apple Silicon).
46+
47+
**Note:** This app is not code-signed. After installing, run:
48+
```
49+
xattr -cr /Applications/Snipp.app
50+
```
4351
releaseDraft: true
4452
prerelease: false
53+
args: --target universal-apple-darwin

.github/workflows/tip.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020

2121
- name: Setup Rust
2222
uses: dtolnay/rust-toolchain@stable
23+
with:
24+
targets: aarch64-apple-darwin,x86_64-apple-darwin
2325

2426
- name: Rust cache
2527
uses: swatinem/rust-cache@v2
@@ -32,8 +34,8 @@ jobs:
3234
- name: Build frontend
3335
run: npm run build
3436

35-
- name: Build Tauri app
36-
run: npm run tauri:build
37+
- name: Build Tauri app (universal)
38+
run: npm run tauri:build -- --target universal-apple-darwin
3739

3840
- name: Get short SHA
3941
id: sha
@@ -51,7 +53,12 @@ jobs:
5153
**Warning: This is a nightly build, not a tagged release.**
5254
5355
Built from commit: ${{ github.sha }}
56+
57+
**macOS note:** This app is not code-signed. After installing, run:
58+
```
59+
xattr -cr /Applications/Snipp.app
60+
```
5461
files: |
55-
src-tauri/target/release/bundle/dmg/*.dmg
62+
src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg
5663
env:
5764
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)