Skip to content

Commit

Permalink
Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed May 14, 2024
1 parent 9bf3952 commit 94987bb
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tools/release/sign_all_apks_yubi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,16 @@ unzip ${PARAM_DIRECTORY}/GplayTchapWithdmvoipWithpinning-release-unsigned.zip -d
mv ${PARAM_DIRECTORY}/gplayTchapWithdmvoipWithpinning/release/* ${PARAM_DIRECTORY}
rm -rf ${PARAM_DIRECTORY}/gplayTchapWithdmvoipWithpinning

read -s -p "Enter your PIN: " pin

printf "\n================================================================================\n"
printf "Signing the APKs...\n"

read -s -p "Enter your PIN: " pin

# Sign all the apks in the directory PARAM_DIRECTORY
# Sign, Rename and Hash all the apks in the directory PARAM_DIRECTORY
for file in ${PARAM_DIRECTORY}/*.apk
do
sh ./tools/release/sign_apk_yubi.sh "${PARAM_PKCS11_CONFIG_PATH}" "${file}" "${pin}"
done

unset pin

# Rename and Hash all the apks in the directory PARAM_DIRECTORY
for file in ${PARAM_DIRECTORY}/*.apk
do

# Rename Apk: remove unsigned by signed
apkName="$(echo ${file} | sed -e 's/\-unsigned/-signed/')" ;
mv "${file}" "${apkName}" ;
Expand All @@ -80,4 +74,6 @@ do
echo "SHA256(${newName})=${resultSplit[0]}" >> ${PARAM_DIRECTORY}/${CHECKSUM_FILE}
done

unset pin

echo "done !! :)"

0 comments on commit 94987bb

Please sign in to comment.