From a94be6c2c3f195aad8c89f76fe94da26ad103bb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?lollipopkit=F0=9F=8F=B3=EF=B8=8F=E2=80=8D=E2=9A=A7?=
=?UTF-8?q?=EF=B8=8F?= <10864310+lollipopkit@users.noreply.github.com>
Date: Wed, 3 Sep 2025 22:19:04 +0800
Subject: [PATCH] fix: macOS appstore rejection (#893)
---
.github/workflows/analysis.yml | 22 +++++++++++++++++-----
flutter_server_box.wiki | 1 +
macos/Runner/DebugProfile.entitlements | 4 ----
macos/Runner/Release.entitlements | 4 ----
4 files changed, 18 insertions(+), 13 deletions(-)
create mode 160000 flutter_server_box.wiki
diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml
index 2fa20130..59833f68 100644
--- a/.github/workflows/analysis.yml
+++ b/.github/workflows/analysis.yml
@@ -17,17 +17,29 @@ jobs:
steps:
- uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
- uses: subosito/flutter-action@v2
with:
- channel: 'stable' # or: 'beta', 'dev' or 'master'
+ channel: 'stable'
+ cache: true
+ cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
+
+ - name: Cache pub dependencies
+ uses: actions/cache@v4
+ with:
+ path: |
+ ${{ env.PUB_CACHE }}
+ ~/.pub-cache
+ ${{ runner.tool_cache }}/flutter
+ key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-pub-
- name: Install dependencies
run: flutter pub get
- # Uncomment this step to verify the use of 'dart format' on each commit.
- - name: Verify formatting
- run: dart format --output=none .
-
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: dart analyze
diff --git a/flutter_server_box.wiki b/flutter_server_box.wiki
new file mode 160000
index 00000000..f4400103
--- /dev/null
+++ b/flutter_server_box.wiki
@@ -0,0 +1 @@
+Subproject commit f4400103133a69c90743909448934fcc11cb55bf
diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements
index 08eeec5a..1fcf0e54 100644
--- a/macos/Runner/DebugProfile.entitlements
+++ b/macos/Runner/DebugProfile.entitlements
@@ -26,10 +26,6 @@
com.apple.security.files.user-selected.read-write
- com.apple.security.temporary-exception.files.home-relative-path.read-only
-
- .ssh/
-
keychain-access-groups
diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements
index 1fa302e8..abd14398 100644
--- a/macos/Runner/Release.entitlements
+++ b/macos/Runner/Release.entitlements
@@ -24,10 +24,6 @@
com.apple.security.files.user-selected.read-write
- com.apple.security.temporary-exception.files.home-relative-path.read-only
-
- .ssh/
-
keychain-access-groups