fix: mbcpapp.sh: do not restore apk signature if apk repacking failed
Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
5570f890cf
commit
b525a8fbbe
1 changed files with 1 additions and 0 deletions
|
|
@ -226,6 +226,7 @@ repack_mbcp() {
|
|||
(
|
||||
set -e
|
||||
java -jar tools/apkeditor.jar b -i 'mbapk/mbapk_unpacked' -o mbcpapp_apk/MBCP_Flutter_TMP.apk
|
||||
[ ! -f 'mbcpapp_apk/MBCP_Flutter_TMP.apk' ] && exit 1
|
||||
info "Processing APK signature scheme v2/v3..."
|
||||
rm -rf mbcpapp_apk/MBCP_Flutter_SelfPatched*
|
||||
java -jar tools/apkeditor.jar b -t sig -i 'mbcpapp_apk/MBCP_Flutter_TMP.apk' -sig 'mbsig/signatures' -o "mbcpapp_apk/MBCP_Flutter_SelfPatched_$COMMIT.apk"
|
||||
|
|
|
|||
Reference in a new issue