Add macOS app preparation and signing steps
Added steps to prepare and sign the macOS app, and zip it for distribution.
This commit is contained in:
@@ -48,18 +48,31 @@ jobs:
|
||||
- name: Build Tauri app
|
||||
run: npm run tauri build
|
||||
|
||||
- name: Prepare macOS app
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: |
|
||||
APP_PATH=$(find src-tauri/target/release/bundle/macos -maxdepth 1 -name "*.app")
|
||||
|
||||
echo "App path: $APP_PATH"
|
||||
|
||||
# Ad-hoc sign (no Apple account needed)
|
||||
codesign --deep --force --sign - "$APP_PATH"
|
||||
|
||||
# Zip correctly (VERY important for macOS)
|
||||
ditto -c -k --keepParent "$APP_PATH" Tauri-macOS.zip
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tauri-build-${{ matrix.os }}
|
||||
path: |
|
||||
src-tauri/target/release/bundle/**/!(node_modules)/
|
||||
src-tauri/target/release/bundle/**/*.AppImage
|
||||
src-tauri/target/release/bundle/**/*.dmg
|
||||
src-tauri/target/release/bundle/**/*.msi
|
||||
src-tauri/target/release/bundle/**/*.exe
|
||||
src-tauri/target/release/bundle/**/*.deb
|
||||
src-tauri/target/release/bundle/**/*.rpm
|
||||
Tauri-macOS.zip
|
||||
|
||||
release:
|
||||
name: Upload to GitHub Release
|
||||
|
||||
Reference in New Issue
Block a user