Skip to content

Commit d55874d

Browse files
committed
2025.1214
1 parent 713f44a commit d55874d

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/actions/build-ios/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ runs:
5555
run: |
5656
echo "开始iOS构建流程..."
5757
echo "当前工作目录: $(pwd)"
58+
59+
echo "预下载 Flutter iOS 构建依赖..."
60+
flutter precache --ios
5861
5962
echo "更新CocoaPods依赖..."
6063
cd ios
@@ -100,4 +103,3 @@ runs:
100103
ipa_name="NipaPlay_${{ inputs.app-version }}_iOS_arm64.ipa"
101104
zip -9 "$ipa_name" -r Payload
102105
echo "ipa_path=build/$ipa_name" >> $GITHUB_OUTPUT
103-

.github/actions/build-linux/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ runs:
3030
sudo apt-get update
3131
# Install core build dependencies
3232
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev
33+
# tray_manager needs ayatana-appindicator (or legacy appindicator)
34+
if apt-cache show libayatana-appindicator3-dev >/dev/null 2>&1; then
35+
sudo apt-get install -y libayatana-appindicator3-dev
36+
else
37+
sudo apt-get install -y libappindicator3-dev
38+
fi
3339
# Install mpv dependencies for media_kit (必需,即使系统没有也要安装用于构建)
3440
sudo apt-get install -y libmpv-dev mpv
3541
# Install mimalloc for better memory management

.github/actions/build-macos/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ outputs:
3131
runs:
3232
using: 'composite'
3333
steps:
34+
- name: Precache Flutter macOS artifacts
35+
shell: bash
36+
run: |
37+
flutter precache --macos
38+
3439
- name: Build Web and copy assets
3540
shell: bash
3641
run: |
@@ -441,4 +446,3 @@ runs:
441446
# Set output
442447
dmg_file=$(ls NipaPlay_*_macOS_Universal.dmg | head -1)
443448
echo "dmg_path=$dmg_file" >> $GITHUB_OUTPUT
444-

0 commit comments

Comments
 (0)