You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Application/drone/android-sign.sh

13 lines
386 B

#!/usr/bin/bash
apt install apksigner > /dev/null
if [ $DRONE_BRANCH = "dev" ]; then
ARTIFACT_TYPE="debug"
elif [ $DRONE_BRANCH = "production" ]; then
ARTIFACT_TYPE="release"
fi
mv app-$ARTIFACT_TYPE-unsigned.apk tbasket-$ARTIFACT_TYPE.apk
apksigner sign --ks /home/maxime/server/TBasket/application/android/tbasket.keystore tbasket-$ARTIFACT_TYPE.apk
echo "apk has been signed."