fix: 使用未签名的 APK(app-release-unsigned.apk)
This commit is contained in:
@@ -48,14 +48,15 @@ jobs:
|
|||||||
--no-build-cache \
|
--no-build-cache \
|
||||||
-Dfile.encoding=UTF-8
|
-Dfile.encoding=UTF-8
|
||||||
|
|
||||||
# 验证输出
|
# 验证输出(未签名的 APK)
|
||||||
echo "=== 编译完成 ==="
|
echo "=== 编译完成 ==="
|
||||||
ls -lh app/build/outputs/apk/release/
|
ls -lh app/build/outputs/apk/release/
|
||||||
|
|
||||||
# 重命名 APK 包含版本号
|
# 重命名 APK 包含版本号(使用未签名的 APK)
|
||||||
VERSION=${GITHUB_REF#refs/tags/}
|
VERSION=${GITHUB_REF#refs/tags/}
|
||||||
cp app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/app-${VERSION}.apk
|
cp app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-${VERSION}-unsigned.apk
|
||||||
echo "APK_NAME=app-${VERSION}.apk" >> $GITHUB_ENV
|
echo "APK_NAME=app-${VERSION}-unsigned.apk" >> $GITHUB_ENV
|
||||||
|
echo "⚠️ 注意:生成的是未签名 APK,仅用于测试。生产环境请配置签名。"
|
||||||
|
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|||||||
Reference in New Issue
Block a user