mirror of
https://github.com/chenasraf/pantry-flutter.git
synced 2026-05-18 01:28:58 +00:00
build: fix signing
Release-As: 0.9.10
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -155,18 +155,6 @@ jobs:
|
||||
- name: Build split APKs
|
||||
run: flutter build apk --release --split-per-abi
|
||||
|
||||
- name: Re-sign APKs to strip dependency metadata block
|
||||
run: |
|
||||
APK_DIR=build/app/outputs/flutter-apk
|
||||
for apk in $APK_DIR/app-*-release.apk; do
|
||||
${ANDROID_HOME}/build-tools/$(ls ${ANDROID_HOME}/build-tools/ | sort -V | tail -1)/apksigner sign \
|
||||
--ks android/app/upload-keystore.jks \
|
||||
--ks-key-alias ${{ secrets.ANDROID_KEY_ALIAS }} \
|
||||
--ks-pass pass:${{ secrets.ANDROID_STORE_PASSWORD }} \
|
||||
--key-pass pass:${{ secrets.ANDROID_KEY_PASSWORD }} \
|
||||
"$apk"
|
||||
done
|
||||
|
||||
- name: Build App Bundle
|
||||
run: flutter build appbundle --release --obfuscate --split-debug-info=build/debug-info-aab
|
||||
- name: Rename artifacts
|
||||
|
||||
@@ -49,6 +49,11 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
dependenciesInfo {
|
||||
includeInApk = false
|
||||
includeInBundle = false
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
applicationIdSuffix = ".debug"
|
||||
|
||||
Reference in New Issue
Block a user