Skip to content

Commit 8cfa524

Browse files
CodeAbraclaudexnllllh
committed
fix(desktop): cfg-gate the macOS-only Reopen event and install both mac arches in CI [no-user-impact]
Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
1 parent 098955e commit 8cfa524

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/desktop.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
2626
- uses: actions/checkout@v4
2727

2828
- uses: dtolnay/rust-toolchain@stable
29-
with:
30-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
29+
30+
- name: Add macOS universal targets
31+
if: matrix.platform == 'macos-latest'
32+
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
3133

3234
- name: Linux system dependencies
3335
if: matrix.platform == 'ubuntu-22.04'

desktop/src-tauri/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ fn main() {
460460
// Dock/Finder re-activation must bring a window back, or the app
461461
// looks broken ("won't open"). Re-create it and let the supervisor
462462
// re-point it at the server on its next tick.
463+
#[cfg(target_os = "macos")]
463464
RunEvent::Reopen {
464465
has_visible_windows,
465466
..

0 commit comments

Comments
 (0)