File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 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-
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ outputs:
3131runs :
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-
You can’t perform that action at this time.
0 commit comments