Skip to content

Commit 718d658

Browse files
committed
2.9.6
1 parent 13e502f commit 718d658

11 files changed

Lines changed: 117 additions & 98 deletions

.github/workflows/android-build-all.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
setup:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
contents: write # 确保有写入权�
13+
contents: write # 确保有写入权限
1414
packages: write
1515

1616
env:
@@ -22,13 +22,13 @@ jobs:
2222
CMAKE_VERSION: 3.18.1
2323

2424
steps:
25-
- name: 🛠�检出代码仓�
25+
- name: 🛠️ 检出代码仓库
2626
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929
lfs: true
3030

31-
- name: 🦀 设置 Rust 工具�1.89.0
31+
- name: 🦀 设置 Rust 工具链 1.89.0
3232
run: |
3333
chmod +x $GITHUB_WORKSPACE/scripts/install_rust.sh
3434
$GITHUB_WORKSPACE/scripts/install_rust.sh
@@ -50,7 +50,7 @@ jobs:
5050
rustup target add i686-linux-android
5151
rustup target add x86_64-linux-android
5252
53-
- name: �设置 JDK 17
53+
- name: ☕ 设置 JDK 17
5454
uses: actions/setup-java@v3
5555
with:
5656
java-version: '17'
@@ -88,21 +88,21 @@ jobs:
8888
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/key.properties
8989
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
9090
# 调试信息(不会显示敏感内容)
91-
echo "检�key.properties 是否创建成功:"
91+
echo "检查 key.properties 是否创建成功:"
9292
ls -la android/key.properties
93-
echo "检�keystore 是否创建成功:"
93+
echo "检查 keystore 是否创建成功:"
9494
ls -la android/app/upload-keystore.jks
9595
96-
- name: 🛠�构建 universal APK
96+
- name: 🛠️ 构建 universal APK
9797
run: |
98-
# 清理之前的构建产�
98+
# 清理之前的构建产物
9999
flutter clean
100100
cd rust && cargo clean && cd ..
101101
102-
# 构建全架�APK
102+
# 构建全架构 APK
103103
flutter build apk --release
104104
105-
- name: 📤 上传全架�APK �Artifacts
105+
- name: 📤 上传全架构 APK Artifacts
106106
uses: actions/upload-artifact@v4
107107
with:
108108
name: astral-universal-apk

.github/workflows/android-build-alt-daily.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 📲 Android 备用包名每日构建
22

3-
# 每天北京时间凌晨 1:00 触发(UTC 17:00�on:
3+
# 每天北京时间凌晨 1:00 触发(UTC 17:00)
4+
on:
45
schedule:
56
- cron: '0 17 * * *'
67
workflow_dispatch:
@@ -21,12 +22,14 @@ jobs:
2122
ALT_BUILD: true
2223

2324
steps:
24-
- name: 🛠�检出代码仓� uses: actions/checkout@v4
25+
- name: 🛠️ 检出代码仓库
26+
uses: actions/checkout@v4
2527
with:
2628
fetch-depth: 0
2729
lfs: true
2830

29-
- name: 🎲 生成随机包名与签� run: |
31+
- name: 🎲 生成随机包名与签名
32+
run: |
3033
BUILD_DATE=$(date -u +%Y%m%d)
3134
RAND=$(openssl rand -hex 4)
3235
rand_seg() {
@@ -69,13 +72,14 @@ jobs:
6972
"package_id": "$PACKAGE_ID",
7073
"build_date_utc": "$BUILD_DATE",
7174
"artifact": "astral-alt-${BUILD_DATE}-${RAND}-arm64.apk",
72-
"note": "每日备用包名构建,用于规避部分机型因包名/签名冲突导致的安装失�
75+
"note": "每日备用包名构建,用于规避部分机型因包名/签名冲突导致的安装失败"
7376
}
7477
EOF
7578
7679
echo "本次包名: $PACKAGE_ID"
7780
78-
- name: 🦀 设置 Rust 工具� run: |
81+
- name: 🦀 设置 Rust 工具链
82+
run: |
7983
chmod +x $GITHUB_WORKSPACE/scripts/install_rust.sh
8084
$GITHUB_WORKSPACE/scripts/install_rust.sh
8185
@@ -94,7 +98,7 @@ jobs:
9498
rustup target add armv7-linux-androideabi
9599
rustup target add aarch64-linux-android
96100
97-
- name: �设置 JDK 17
101+
- name: ☕ 设置 JDK 17
98102
uses: actions/setup-java@v3
99103
with:
100104
java-version: '17'
@@ -124,7 +128,7 @@ jobs:
124128
echo "BINDGEN_EXTRA_CLANG_ARGS=-I/usr/include -I/usr/include/x86_64-linux-gnu" >> $GITHUB_ENV
125129
echo "LIBCLANG_PATH=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
126130
127-
- name: 🛠�构建备用包名 arm64 APK
131+
- name: 🛠️ 构建备用包名 arm64 APK
128132
run: |
129133
flutter build apk --release --target-platform android-arm64
130134
mkdir -p release
@@ -147,11 +151,14 @@ jobs:
147151
tag_name: android-alt-${{ env.BUILD_DATE }}-${{ env.BUILD_RAND }}
148152
name: Android 备用包名 ${{ env.BUILD_DATE }} (${{ env.ANDROID_APPLICATION_ID }})
149153
body: |
150-
每日自动构建的备�APK,包名与签名均为随机生成�
154+
每日自动构建的备用 APK,包名与签名均为随机生成。
155+
151156
- **包名**: `${{ env.ANDROID_APPLICATION_ID }}`
152157
- **架构**: arm64-v8a
153-
- **用�*: 若官方包�`com.kevin.astral` 在部分机型上无法安装,可尝试此版�
154-
> 此构建不接入 Firebase,与正式版数据不互通;卸载旧版后安装即可� prerelease: true
158+
- **用途**: 若官方包名 `com.kevin.astral` 在部分机型上无法安装,可尝试此版本
159+
160+
> 此构建不接入 Firebase,与正式版数据不互通;卸载旧版后安装即可。
161+
prerelease: true
155162
files: |
156163
release/${{ env.APK_BASENAME }}.apk
157164
release/${{ env.APK_BASENAME }}-info.json

.github/workflows/android-build-arm64.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
setup:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
contents: write # 确保有写入权�
13+
contents: write # 确保有写入权限
1414
packages: write
1515

1616
env:
@@ -22,13 +22,13 @@ jobs:
2222
CMAKE_VERSION: 3.18.1
2323

2424
steps:
25-
- name: 🛠�检出代码仓�
25+
- name: 🛠️ 检出代码仓库
2626
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929
lfs: true
3030

31-
- name: 🦀 设置 Rust 工具�1.89.0
31+
- name: 🦀 设置 Rust 工具链 1.89.0
3232
run: |
3333
chmod +x $GITHUB_WORKSPACE/scripts/install_rust.sh
3434
$GITHUB_WORKSPACE/scripts/install_rust.sh
@@ -48,7 +48,7 @@ jobs:
4848
rustup target add armv7-linux-androideabi
4949
rustup target add aarch64-linux-android
5050
51-
- name: �设置 JDK 17
51+
- name: ☕ 设置 JDK 17
5252
uses: actions/setup-java@v3
5353
with:
5454
java-version: '17'
@@ -77,9 +77,9 @@ jobs:
7777
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/key.properties
7878
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
7979
# 调试信息(不会显示敏感内容)
80-
echo "检�key.properties 是否创建成功:"
80+
echo "检查 key.properties 是否创建成功:"
8181
ls -la android/key.properties
82-
echo "检�keystore 是否创建成功:"
82+
echo "检查 keystore 是否创建成功:"
8383
ls -la android/app/upload-keystore.jks
8484
8585
- name: 🐦 设置 Flutter
@@ -95,12 +95,12 @@ jobs:
9595
echo "BINDGEN_EXTRA_CLANG_ARGS=-I/usr/include -I/usr/include/x86_64-linux-gnu" >> $GITHUB_ENV
9696
echo "LIBCLANG_PATH=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
9797
98-
- name: 🛠�构建 arm64-v8a 架构 APK
98+
- name: 🛠️ 构建 arm64-v8a 架构 APK
9999
run: |
100100
flutter build apk --release --target-platform android-arm64
101101
102-
- name: 📤 上传 arm64-v8a 架构 APK �Artifacts
102+
- name: 📤 上传 arm64-v8a 架构 APK Artifacts
103103
uses: actions/upload-artifact@v4
104104
with:
105105
name: astral-arm64-v8a-apk
106-
path: build/app/outputs/flutter-apk/app-release.apk
106+
path: build/app/outputs/flutter-apk/app-release.apk

.github/workflows/android-build-armv7.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
setup:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
contents: write # 确保有写入权�
13+
contents: write # 确保有写入权限
1414
packages: write
1515

1616
env:
@@ -22,13 +22,13 @@ jobs:
2222
CMAKE_VERSION: 3.18.1
2323

2424
steps:
25-
- name: 🛠�检出代码仓�
25+
- name: 🛠️ 检出代码仓库
2626
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929
lfs: true
3030

31-
- name: 🦀 设置 Rust 工具�1.89.0
31+
- name: 🦀 设置 Rust 工具链 1.89.0
3232
run: |
3333
chmod +x $GITHUB_WORKSPACE/scripts/install_rust.sh
3434
$GITHUB_WORKSPACE/scripts/install_rust.sh
@@ -50,7 +50,7 @@ jobs:
5050
rustup target add i686-linux-android
5151
rustup target add x86_64-linux-android
5252
53-
- name: �设置 JDK 17
53+
- name: ☕ 设置 JDK 17
5454
uses: actions/setup-java@v3
5555
with:
5656
java-version: '17'
@@ -80,9 +80,9 @@ jobs:
8080
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/key.properties
8181
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
8282
# 调试信息(不会显示敏感内容)
83-
echo "检�key.properties 是否创建成功:"
83+
echo "检查 key.properties 是否创建成功:"
8484
ls -la android/key.properties
85-
echo "检�keystore 是否创建成功:"
85+
echo "检查 keystore 是否创建成功:"
8686
ls -la android/app/upload-keystore.jks
8787
8888
- name: 🐦 设置 Flutter
@@ -97,19 +97,19 @@ jobs:
9797
run: |
9898
echo "BINDGEN_EXTRA_CLANG_ARGS=-I/usr/include -I/usr/include/x86_64-linux-gnu" >> $GITHUB_ENV
9999
echo "LIBCLANG_PATH=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
100-
# 创建 Rust 工具链配�
100+
# 创建 Rust 工具链配置
101101
cat > rust/rust-toolchain.toml << EOF
102102
[toolchain]
103103
channel = "stable"
104104
targets = ["armv7-linux-androideabi", "aarch64-linux-android", "i686-linux-android", "x86_64-linux-android"]
105105
EOF
106106
107-
- name: 🛠�构建 armeabi-v7a 架构 APK
107+
- name: 🛠️ 构建 armeabi-v7a 架构 APK
108108
run: |
109109
# 构建 APK
110110
flutter build apk --release --target-platform android-arm
111111
112-
- name: 📤 上传 armeabi-v7a 架构 APK �Artifacts
112+
- name: 📤 上传 armeabi-v7a 架构 APK Artifacts
113113
uses: actions/upload-artifact@v4
114114
with:
115115
name: astral-armeabi-v7a-apk

.github/workflows/android-build-x86_64.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
setup:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
contents: write # 确保有写入权�
13+
contents: write # 确保有写入权限
1414
packages: write
1515

1616
env:
@@ -22,13 +22,13 @@ jobs:
2222
CMAKE_VERSION: 3.18.1
2323

2424
steps:
25-
- name: 🛠�检出代码仓�
25+
- name: 🛠️ 检出代码仓库
2626
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929
lfs: true
3030

31-
- name: 🦀 设置 Rust 工具�1.89.0
31+
- name: 🦀 设置 Rust 工具链 1.89.0
3232
run: |
3333
chmod +x $GITHUB_WORKSPACE/scripts/install_rust.sh
3434
$GITHUB_WORKSPACE/scripts/install_rust.sh
@@ -50,7 +50,7 @@ jobs:
5050
rustup target add i686-linux-android
5151
rustup target add x86_64-linux-android
5252
53-
- name: �设置 JDK 17
53+
- name: ☕ 设置 JDK 17
5454
uses: actions/setup-java@v3
5555
with:
5656
java-version: '17'
@@ -87,21 +87,21 @@ jobs:
8787
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/key.properties
8888
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
8989
# 调试信息(不会显示敏感内容)
90-
echo "检�key.properties 是否创建成功:"
90+
echo "检查 key.properties 是否创建成功:"
9191
ls -la android/key.properties
92-
echo "检�keystore 是否创建成功:"
92+
echo "检查 keystore 是否创建成功:"
9393
ls -la android/app/upload-keystore.jks
9494
9595
- name: 🐦 设置 Flutter
9696
run: |
9797
flutter --version
9898
99-
- name: 🛠�构建 x86_64 架构 APK
99+
- name: 🛠️ 构建 x86_64 架构 APK
100100
run: |
101101
# 构建 x86_64 架构 APK
102102
flutter build apk --release --target-platform android-x64
103103
104-
- name: 📤 上传 x86_64 架构 APK �Artifacts
104+
- name: 📤 上传 x86_64 架构 APK Artifacts
105105
uses: actions/upload-artifact@v4
106106
with:
107107
name: astral-x86_64-apk

.github/workflows/ios-build.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
RUST_VERSION: 1.89.0
2020

2121
steps:
22-
- name: 🛠�?检出代码仓�?
22+
- name: 🛠️ 检出代码仓库
2323
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626
lfs: true
2727

28-
- name: 🦀 设置 Rust 工具�?${{ env.RUST_VERSION }}
28+
- name: 🦀 设置 Rust 工具链 ${{ env.RUST_VERSION }}
2929
run: |
3030
chmod +x $GITHUB_WORKSPACE/scripts/install_rust.sh
3131
$GITHUB_WORKSPACE/scripts/install_rust.sh
@@ -58,7 +58,7 @@ jobs:
5858
flutter pub get
5959
cd ios && pod install && cd ..
6060
61-
- name: 🛠�?构建 iOS 应用
61+
- name: 🛠构建 iOS 应用
6262
run: |
6363
flutter build ios --release --no-codesign --verbose
6464
@@ -67,9 +67,9 @@ jobs:
6767
cd ios
6868
# 创建临时目录
6969
mkdir -p Payload
70-
# 复制应用�?Payload 目录
70+
# 复制应用到 Payload 目录
7171
cp -r build/Release-iphoneos/Runner.app Payload/
72-
# 创建证书和配置文�?
72+
# 创建证书和配置文件
7373
security create-keychain -p github_action build.keychain
7474
security default-keychain -s build.keychain
7575
security unlock-keychain -p github_action build.keychain
@@ -86,4 +86,4 @@ jobs:
8686
with:
8787
name: ios-release
8888
path: release/Astral.ipa
89-
retention-days: 7
89+
retention-days: 7

0 commit comments

Comments
 (0)