Fix macOS/iOS CI: chmod needs sudo, Nix store frameworks are root-owned

This commit is contained in:
Erwan Leboucher 2026-08-08 23:53:09 +02:00
commit 12d552e4a6
Signed by: eleboucher
SSH key fingerprint: SHA256:fjyYE6Mo6r2wpEtyYKFfGpX8fmR9bjL0NxWBHosnOgk
9 changed files with 39 additions and 39 deletions

View file

@ -22,10 +22,21 @@ jobs:
extra_nix_config: experimental-features = nix-command flakes flake-self-attrs
- name: Build app
run: nix develop --command bash -c "flutter pub get && dart scripts/generate.dart && flutter pub run build_runner build && flutter build macos --release"
run: |
nix develop --command bash -c '
set -e
flutter pub get
dart scripts/generate.dart
flutter pub run build_runner build
FLUTTER_ROOT="$(dirname "$(dirname "$(readlink -f "$(command -v flutter)")")")"
sudo find -L "$FLUTTER_ROOT" -type d -iname "*.framework" -exec chmod -R u+w {} +
flutter build macos --release
'
- name: Upload installer artifact
uses: actions/upload-artifact@v6
with:
name: App
path: build/macos/Build/Products/Release/Nexus.app
path: build/macos/Build/Products/Release/Nexus.app