mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
* modified: .github/workflows/win.yml new file: windows/Inno_Setup.iss * modified: windows/Inno_Setup.iss * modified: .github/workflows/win.yml new file: distribute_options.yaml deleted: windows/Inno_Setup.iss new file: windows/packaging/exe/make_config.yaml * modified: windows/packaging/exe/make_config.yaml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml new file: windows/packaging/exe/ChineseSimplified.isl * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * fix --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
85 lines
2.3 KiB
YAML
85 lines
2.3 KiB
YAML
name: Android Release
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- ready_for_review
|
|
paths-ignore:
|
|
- "**.md"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
android:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: 代码迁出
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: 构建Java环境
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: "zulu"
|
|
java-version: "17"
|
|
cache: "gradle"
|
|
cache-dependency-path: |
|
|
android/*.gradle*
|
|
android/**/gradle-wrapper.properties
|
|
|
|
- name: 安装Flutter
|
|
uses: subosito/flutter-action@v2
|
|
id: flutter-action
|
|
with:
|
|
channel: stable
|
|
flutter-version-file: pubspec.yaml
|
|
cache: true
|
|
|
|
- name: apply bottom sheet patch
|
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/bottom_sheet_patch.diff
|
|
|
|
# - name: 下载项目依赖
|
|
# run: flutter pub get
|
|
|
|
- name: Write key
|
|
if: github.event_name != 'pull_request'
|
|
run: |
|
|
if [ ! -z "${{ secrets.SIGN_KEYSTORE_BASE64 }}" ]; then
|
|
echo "${{ secrets.SIGN_KEYSTORE_BASE64 }}" | base64 --decode > android/app/key.jks
|
|
echo storeFile='key.jks' >> android/key.properties
|
|
echo storePassword='${{ secrets.KEYSTORE_PASSWORD }}' >> android/key.properties
|
|
echo keyAlias='${{ secrets.KEY_ALIAS }}' >> android/key.properties
|
|
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> android/key.properties
|
|
fi
|
|
|
|
- name: flutter build apk
|
|
run: |
|
|
dart lib/scripts/build.dart "android"
|
|
flutter build apk --release --split-per-abi --pub
|
|
|
|
- name: 上传
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app-arm64-v8a
|
|
path: |
|
|
build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
|
|
|
|
- name: 上传
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app-armeabi-v7a
|
|
path: |
|
|
build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
|
|
|
|
- name: 上传
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app-x86_64
|
|
path: |
|
|
build/app/outputs/flutter-apk/app-x86_64-release.apk
|