Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Commit

Permalink
make-release-build: normalize across projects
Browse files Browse the repository at this point in the history
  • Loading branch information
eighthave committed Jan 26, 2015
1 parent 685e773 commit 96e3f1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make-release-build
Expand Up @@ -34,6 +34,7 @@ if [ -z $ANDROID_NDK ]; then
fi

projectroot=`pwd`
projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' res/values/strings.xml`

# standardize timezone to reduce build differences
export TZ=UTC
Expand Down Expand Up @@ -61,11 +62,12 @@ fi
./setup-ant.sh
faketime -f "$TIMESTAMP" ant release

apk=$projectroot/bin/$projectname-*-release.apk
if which gpg > /dev/null; then
if [ -z "`gpg --list-secret-keys`" ]; then
echo "No GPG secret keys found, not signing APK"
else
gpg --detach-sign bin/GnuPrivacyGuard-[0-9].*-release.apk
gpg --detach-sign $apk
fi
else
echo "gpg not found, not signing APK"
Expand Down

0 comments on commit 96e3f1d

Please sign in to comment.