Fixed macOS artifact handling (#754)
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions

This commit is contained in:
Thorsten Sommer 2026-05-08 09:32:20 +02:00 committed by GitHub
parent da4d44461f
commit eb9c6be16e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 4 deletions

View File

@ -220,14 +220,14 @@ jobs:
rust_target: 'aarch64-apple-darwin' rust_target: 'aarch64-apple-darwin'
dotnet_runtime: 'osx-arm64' dotnet_runtime: 'osx-arm64'
dotnet_name_postfix: '-aarch64-apple-darwin' dotnet_name_postfix: '-aarch64-apple-darwin'
tauri_bundle: 'dmg,updater' tauri_bundle: 'dmg,app,updater'
tauri_bundle_pr: 'dmg' tauri_bundle_pr: 'dmg'
- platform: 'macos-latest' # for Intel-based macOS - platform: 'macos-latest' # for Intel-based macOS
rust_target: 'x86_64-apple-darwin' rust_target: 'x86_64-apple-darwin'
dotnet_runtime: 'osx-x64' dotnet_runtime: 'osx-x64'
dotnet_name_postfix: '-x86_64-apple-darwin' dotnet_name_postfix: '-x86_64-apple-darwin'
tauri_bundle: 'dmg,updater' tauri_bundle: 'dmg,app,updater'
tauri_bundle_pr: 'dmg' tauri_bundle_pr: 'dmg'
- platform: 'ubuntu-22.04' # for x86-based Linux - platform: 'ubuntu-22.04' # for x86-based Linux
@ -734,8 +734,17 @@ jobs:
- name: Delete previous artifact, which may exist due to caching (macOS) - name: Delete previous artifact, which may exist due to caching (macOS)
if: startsWith(matrix.platform, 'macos') if: startsWith(matrix.platform, 'macos')
run: | run: |
rm -f runtime/target/${{ matrix.rust_target }}/release/bundle/dmg/MindWork AI Studio_*.dmg dmg_dir="runtime/target/${{ matrix.rust_target }}/release/bundle/dmg"
rm -f runtime/target/${{ matrix.rust_target }}/release/bundle/macos/*.app.tar.gz* macos_dir="runtime/target/${{ matrix.rust_target }}/release/bundle/macos"
if [ -d "$dmg_dir" ]; then
find "$dmg_dir" -maxdepth 1 -name 'MindWork AI Studio_*.dmg' -delete
fi
if [ -d "$macos_dir" ]; then
find "$macos_dir" -maxdepth 1 -name '*.app' -exec rm -rf {} +
find "$macos_dir" -maxdepth 1 -name '*.app.tar.gz*' -delete
fi
- name: Delete previous artifact, which may exist due to caching (Windows - MSI) - name: Delete previous artifact, which may exist due to caching (Windows - MSI)
if: startsWith(matrix.platform, 'windows') && contains(matrix.tauri_bundle, 'msi') if: startsWith(matrix.platform, 'windows') && contains(matrix.tauri_bundle, 'msi')
@ -774,6 +783,16 @@ jobs:
cd runtime cd runtime
cargo tauri build --target ${{ matrix.rust_target }} --bundles "$bundles" cargo tauri build --target ${{ matrix.rust_target }} --bundles "$bundles"
if [ "${{ needs.determine_run_mode.outputs.is_pr_build }}" != "true" ] && [[ "${{ matrix.platform }}" == macos* ]]; then
app_update_archive_count=$(find target/${{ matrix.rust_target }}/release/bundle/macos -maxdepth 1 -name '*.app.tar.gz' | wc -l)
app_update_signature_count=$(find target/${{ matrix.rust_target }}/release/bundle/macos -maxdepth 1 -name '*.app.tar.gz.sig' | wc -l)
if [ "$app_update_archive_count" -eq 0 ] || [ "$app_update_signature_count" -eq 0 ]; then
echo "Expected macOS updater artifacts were not generated."
exit 1
fi
fi
- name: Build Tauri project (Windows) - name: Build Tauri project (Windows)
if: matrix.platform == 'windows-latest' if: matrix.platform == 'windows-latest'
env: env:

View File

@ -12,6 +12,7 @@
"active": true, "active": true,
"targets": [ "targets": [
"appimage", "appimage",
"app",
"dmg", "dmg",
"nsis" "nsis"
], ],