# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild name: Desktop Photo Search rebuild script steps: - name: Remove fluent_ui runners path: fluent_ui rmdirs: - macos - linux - windows - name: Flutter recreate path: fluent_ui flutter: create --platforms windows,linux,macos --project-name desktop_photo_search . - name: Replace fluent_ui/macos/Runner/DebugProfile.entitlements path: fluent_ui/macos/Runner/DebugProfile.entitlements replace-contents: com.apple.security.app-sandbox com.apple.security.cs.allow-jit com.apple.security.files.user-selected.read-write com.apple.security.network.client com.apple.security.network.server - name: Patch fluent_ui/macos/Runner/Release.entitlements path: fluent_ui/macos/Runner/Release.entitlements replace-contents: com.apple.security.app-sandbox com.apple.security.files.user-selected.read-write com.apple.security.network.client - name: Flutter build macOS path: fluent_ui flutter: build macos - name: Remove material runners path: material rmdirs: - macos - linux - windows - name: Flutter recreate path: material flutter: create --platforms windows,linux,macos --project-name desktop_photo_search . - name: Replace material/macos/Runner/DebugProfile.entitlements path: material/macos/Runner/DebugProfile.entitlements replace-contents: com.apple.security.app-sandbox com.apple.security.cs.allow-jit com.apple.security.files.user-selected.read-write com.apple.security.network.client com.apple.security.network.server - name: Replace material/macos/Runner/Release.entitlements path: material/macos/Runner/Release.entitlements replace-contents: com.apple.security.app-sandbox com.apple.security.files.user-selected.read-write com.apple.security.network.client - name: Patch material/macos/Runner/Base.lproj/MainMenu.xib path: material/macos/Runner/Base.lproj/MainMenu.xib patch-u: --- b/desktop_photo_search/material/macos/Runner/Base.lproj/MainMenu.xib +++ a/desktop_photo_search/material/macos/Runner/Base.lproj/MainMenu.xib @@ -330,10 +330,11 @@ - - + + + - + - name: Flutter build macOS path: material flutter: build macos