fix macos permission issues
This commit is contained in:
parent
21a0e0db70
commit
5bbd51c4bc
2 changed files with 82 additions and 79 deletions
7
.github/workflows/ios.yml
vendored
7
.github/workflows/ios.yml
vendored
|
|
@ -28,9 +28,10 @@ jobs:
|
|||
flutter pub get
|
||||
dart scripts/generate.dart
|
||||
flutter pub run build_runner build
|
||||
# Nix-provided Flutter'"'"'s bundled frameworks are read-only, which
|
||||
# breaks lipo when Flutter thins them into build/ (NixOS/nixpkgs#405066).
|
||||
find "$(dirname "$(dirname "$(readlink -f "$(command -v flutter)")")")" -type d -iname "*.framework" -exec chmod -R u+w {} + 2>/dev/null || true
|
||||
|
||||
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 ios --release --no-codesign
|
||||
'
|
||||
|
||||
|
|
|
|||
10
.github/workflows/macos.yml
vendored
10
.github/workflows/macos.yml
vendored
|
|
@ -21,15 +21,17 @@ jobs:
|
|||
with:
|
||||
extra_nix_config: experimental-features = nix-command flakes flake-self-attrs
|
||||
|
||||
- run: |
|
||||
- name: Build app
|
||||
run: |
|
||||
nix develop --command bash -c '
|
||||
set -e
|
||||
flutter pub get
|
||||
dart scripts/generate.dart
|
||||
flutter pub run build_runner build
|
||||
# Nix-provided Flutter'"'"'s bundled frameworks are read-only, which
|
||||
# breaks lipo when Flutter thins them into build/ (NixOS/nixpkgs#405066).
|
||||
find "$(dirname "$(dirname "$(readlink -f "$(command -v flutter)")")")" -type d -iname "*.framework" -exec chmod -R u+w {} + 2>/dev/null || true
|
||||
|
||||
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
|
||||
'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue