Skip to content

Commit d5369dd

Browse files
committed
fix: enhance release workflow for macOS builds; improve readability and update release notes for auto-updates
1 parent aad4fff commit d5369dd

File tree

1 file changed

+43
-26
lines changed

1 file changed

+43
-26
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,65 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- platform: 'macos-latest' # for Arm based macs (M1 and above).
21+
- platform: 'macos-latest'
2222
args: '--target aarch64-apple-darwin'
23-
- platform: 'macos-latest' # for Intel based macs.
23+
- platform: 'macos-latest'
2424
args: '--target x86_64-apple-darwin'
25-
# - platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
26-
# args: ''
27-
# - platform: 'windows-latest'
28-
# args: ''
2925

3026
runs-on: ${{ matrix.platform }}
3127
steps:
32-
- uses: actions/checkout@v4
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
3330

34-
- name: setup node
31+
- name: Setup Node.js
3532
uses: actions/setup-node@v4
3633
with:
37-
node-version: lts/*
34+
node-version: 'lts/*'
35+
cache: 'npm'
3836

39-
- name: install Rust stable
37+
- name: Install Rust stable
4038
uses: dtolnay/rust-toolchain@stable
4139
with:
42-
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
4340
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4441

45-
- name: install dependencies (ubuntu only)
46-
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
47-
run: |
48-
sudo apt-get update
49-
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
50-
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
51-
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
42+
- name: Rust cache
43+
uses: swatinem/rust-cache@v2
44+
with:
45+
workspaces: './src-tauri -> target'
5246

53-
- name: install frontend dependencies
54-
run: npm ci # change this to npm, pnpm or bun depending on which one you use.
47+
- name: Install frontend dependencies
48+
run: npm ci
5549

56-
- uses: tauri-apps/tauri-action@v0
50+
- name: Build and release
51+
uses: tauri-apps/tauri-action@v0
5752
env:
5853
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
55+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
5956
with:
60-
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
61-
releaseName: 'App v__VERSION__'
62-
releaseBody: 'See the assets to download this version and install.'
63-
releaseDraft: true
57+
tagName: app-v__VERSION__ # the action automatically replaces __VERSION__ with the app version.
58+
releaseName: 'Presto v__VERSION__'
59+
releaseBody: |
60+
## What's Changed
61+
62+
See the assets below to download this version and install.
63+
64+
### Installation Notes
65+
66+
**macOS**: Download the `.dmg` file for your architecture:
67+
- `presto_x.x.x_aarch64.dmg` for Apple Silicon (M1/M2/M3 Macs)
68+
- `presto_x.x.x_x64.dmg` for Intel Macs
69+
70+
### Auto-Updates
71+
72+
This release supports automatic updates. If you're running a previous version, you'll be notified when this update is available and can install it directly from the app.
73+
74+
**Full Changelog**: https://github.com/${{ github.repository }}/compare/v${{ github.event.before }}...${{ github.ref_name }}
75+
releaseDraft: false
6476
prerelease: false
65-
args: ${{ matrix.args }}
77+
includeUpdaterJson: true
78+
updaterJsonPreferNsis: false
79+
args: ${{ matrix.args }}
80+
81+
- name: List generated files
82+
run: ls -R src-tauri/target/ || true

0 commit comments

Comments
 (0)