|
|
@ -230,6 +230,17 @@ printf "Unzipping the F-Droid artifact...\n" |
|
|
|
fdroidTargetPath="${targetPath}/fdroid" |
|
|
|
fdroidTargetPath="${targetPath}/fdroid" |
|
|
|
unzip "${targetPath}"/elementx-app-fdroid-apks-unsigned.zip -d "${fdroidTargetPath}" |
|
|
|
unzip "${targetPath}"/elementx-app-fdroid-apks-unsigned.zip -d "${fdroidTargetPath}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n" |
|
|
|
|
|
|
|
printf "Patching the FDroid APKs using inplace-fix.py...\n" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inplaceFixScript="./tmp/inplace-fix.py" |
|
|
|
|
|
|
|
wget https://raw.githubusercontent.com/obfusk/reproducible-apk-tools/master/inplace-fix.py -O "${inplaceFixScript}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
python3 "${inplaceFixScript}" --page-size 16 fix-pg-map-id "${fdroidTargetPath}"/app-fdroid-arm64-v8a-release.apk '0000000' |
|
|
|
|
|
|
|
python3 "${inplaceFixScript}" --page-size 16 fix-pg-map-id "${fdroidTargetPath}"/app-fdroid-armeabi-v7a-release.apk '0000000' |
|
|
|
|
|
|
|
python3 "${inplaceFixScript}" --page-size 16 fix-pg-map-id "${fdroidTargetPath}"/app-fdroid-x86-release.apk '0000000' |
|
|
|
|
|
|
|
python3 "${inplaceFixScript}" --page-size 16 fix-pg-map-id "${fdroidTargetPath}"/app-fdroid-x86_64-release.apk '0000000' |
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n" |
|
|
|
printf "\n================================================================================\n" |
|
|
|
printf "Signing the FDroid APKs...\n" |
|
|
|
printf "Signing the FDroid APKs...\n" |
|
|
|
|
|
|
|
|
|
|
|