diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b1e75d..dbc5e41 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: bundle_dir: src-tauri/target/release/bundle - label: macOS Apple Silicon os: macos-15 - bundles: dmg + bundles: app,dmg artifact_name: macos-aarch64 target: aarch64-apple-darwin expected_arch: arm64 @@ -36,7 +36,7 @@ jobs: bundle_dir: src-tauri/target/aarch64-apple-darwin/release/bundle - label: macOS Intel os: macos-15-intel - bundles: dmg + bundles: app,dmg artifact_name: macos-x86_64 target: x86_64-apple-darwin expected_arch: x86_64 @@ -178,6 +178,21 @@ jobs: exit 1 fi + - name: Package macOS .app bundle + if: runner.os == 'macOS' + shell: bash + run: | + app_path="$(find "${{ matrix.bundle_dir }}/macos" -maxdepth 1 -type d -name '*.app' | head -n 1)" + + if [ -z "$app_path" ]; then + echo "No .app bundle was produced under ${{ matrix.bundle_dir }}/macos." + exit 1 + fi + + echo "Zipping $app_path" + ditto -c -k --sequesterRsrc --keepParent "$app_path" \ + "release-assets/AzVault-${{ matrix.artifact_name }}.app.zip" + - name: Upload build artifacts uses: actions/upload-artifact@v4 with: diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index aad18d9..4f84967 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -36,7 +36,11 @@ "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico" - ] + ], + "macOS": { + "minimumSystemVersion": "10.15", + "frameworks": [] + } }, "plugins": { "shell": {