Added a sign.sh file that signs an unsigned .apk en .aab file
Added a sign.sh file that signs an unsigned .apk en .aab file
douwe3998/sign:sign_branch into master
Added a sign.sh file that signs an unsigned .apk en .aab file
shellcheck gave a warning
In sign.sh line 6:
BUILD_TOOLS_VERSION=$(ls "${SKD_DIR}"/build-tools/ | sort -r | head -1)
^--------------------------^ SC2012 (info): Use find instead of ls to better handle non-alphanumeric filenames.
For more information:
https://www.shellcheck.net/wiki/SC2012 -- Use find instead of ls to better ...
@ -0,0 +1,28 @@
#!/bin/bash
add set -e here such that each step of the script exits when it fails
then you can remove the || exit on each line later on
@ -0,0 +1,28 @@
#!/bin/bash
replace with /bin/sh, but then you need to do the replacement on line 9 with something else. If you must stick to bash, prefer to use /usr/bin/env bash as not each system has bash at /bin/bash
@ -0,0 +25,4 @@
cp "${UNSIGNED_AAB}" "${OUTPUT_DIR}/${SIGNED_AAB}" || exit
mv "${UNSIGNED_APK}.idsig" "${OUTPUT_DIR}"
remove empty line
looks pretty good! Some small comments
@ -0,0 +13,4 @@
OUTPUT_DIR=signed
if [ ! -d "${OUTPUT_DIR}" ]; then
you can also do mkdir -p without the if.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?