Page MenuHomeGitPull.it

Build Step 16: Drydock: Run Command APK sign

Referenced Files
None

Properties

Step Type
Drydock: Run Command
Created
Jun 6 2023, 12:09
Command
~/bin/align-sign-fabione.sh
Drydock Lease
Leased BusTO Working Copy
Description

This script is available here on gargantua.reyboz.it accessible to the Unix user phabricator-android-builder:

/opt/reyboz/android/bin/align-sign-fabione.sh

In general it does that:

sign-fabione.sh
#!/bin/sh
# https://gitpull.it/harbormaster/step/view/16/

BASEDIR="app/build/outputs/apk/gitpull"
OUT="app-gitpull-signed.apk"
APK_UNSIGNED="app-gitpull-unsigned.apk"
APK_ALIGNED="app-gitpull-unsigned-aligned.apk"

KEYSTORE="/home/phabricator-android-builder/private-resources/gitpullkeystore-libre-busto.jks"
PASSPHRASE="<omissis>

echo "Entering in $BASEDIR"
cd "$BASEDIR"

echo "Aligning zip"
~/bin/zipalign -v -p 4 "$APK_UNSIGNED" "$APK_ALIGNED"

echo "Signing APK"
# NOTE: keep keystore unsescaped
~/bin/apksigner sign --ks "$KEYSTORE" --out "$OUT" --ks-pass pass:"$PASSPHRASE" "$APK_ALIGNED"

echo "Sign concluded with exit status $?"

Event Timeline

valerio.bozzolan edited this Build Step.
valerio.bozzolan edited this Build Step.
valerio.bozzolan edited this Build Step.
valerio.bozzolan set Command to ~/sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan set Command to ~/bin/sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan edited this Build Step.
valerio.bozzolan set Command to ~/bin/sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan edited this Build Step.
valerio.bozzolan set Command to ~/bin/sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan set Command to ~/bin/align-sign-fabione.sh.Jun 6 2023, 12:36
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan edited this Build Step.
valerio.bozzolan set Command to ~/bin/align-sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan set Command to ~/bin/align-sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan edited this Build Step.
valerio.bozzolan set Command to ~/bin/align-sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan set Command to ~/bin/align-sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan set Command to ~/bin/align-sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.
valerio.bozzolan set Command to ~/bin/align-sign-fabione.sh.
valerio.bozzolan set Drydock Lease to Leased BusTO Working Copy.