From 8c157905d0c51aa9ce6a16aa54ce0e0fb3a71b07 Mon Sep 17 00:00:00 2001 From: jack Date: Mon, 20 Jul 2026 10:37:30 +0800 Subject: [PATCH] fix(release): build jcode-computerd.app bundle before tauri build tauri.macos.conf.json declares bundles/jcode-computerd.app as a resource, but the release workflow never assembled it, so the Tauri build script failed with 'resource path bundles/jcode-computerd.app doesn't exist' on both macOS desktop jobs. Add a step that runs script/build_computerd_bundle.sh to produce the bundle before 'pnpm tauri build'. --- .github/workflows/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8763060..86df598 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -326,6 +326,20 @@ jobs: done fi + # Assemble the jcode-computerd.app bundle (macOS resource declared in + # tauri.macos.conf.json). The script compiles the Swift helpers + Rust + # onboarding UI into a signed .app at desktop/src-tauri/bundles/. + - name: Build computerd bundle + if: runner.os == 'macOS' + shell: bash + run: | + case "${{ matrix.triple }}" in + aarch64-apple-darwin) SWIFT_TARGET="arm64-apple-macos14.0" ;; + x86_64-apple-darwin) SWIFT_TARGET="x86_64-apple-macos14.0" ;; + esac + mkdir -p desktop/src-tauri/bundles + script/build_computerd_bundle.sh "$SWIFT_TARGET" "desktop/src-tauri/bundles" "${{ matrix.triple }}" + # macOS signing + notarization. Everything here is optional: with no secrets # the build still succeeds and produces an UNSIGNED bundle (Gatekeeper warns # on first launch). When the secrets are present, the Tauri CLI imports the