Skip to content

Commit 8de59be

Browse files
author
ChenDoXiu
committed
update ci
1 parent 4fe5af5 commit 8de59be

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/flutter-pre-build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,22 @@ jobs:
214214
run: dart run build_runner build
215215

216216
- name: 编译iOS
217-
run: flutter build ipa --release --export-options-plist=ios/ExportOptions.plist
217+
run: flutter build ios --release --no-codesign
218+
219+
- name: Copy Runner.app
220+
run: |
221+
mkdir Payload
222+
cp -R build/ios/iphoneos/Runner.app Payload
223+
224+
- name: Create IPA (Unsigned)
225+
run: |
226+
cd Payload
227+
zip -r MoeKey-${{ needs.pre-build.outputs.APP_VERSION }}-iOS-release.ipa .
228+
mv MoeKey-${{ needs.pre-build.outputs.APP_VERSION }}-iOS-release.ipa $GITHUB_WORKSPACE
218229
219-
- name: 上传ipa到工作流程
230+
- name: 上传到工作流程
220231
uses: actions/upload-artifact@v4
221232
with:
222233
name: build-ios
223-
path: build/ios/ipa/*.ipa # Flutter 默认的 ipa 输出路径
234+
path: |
235+
MoeKey-${{ needs.pre-build.outputs.APP_VERSION }}-iOS-release.ipa

0 commit comments

Comments
 (0)