Skip to content

Instantly share code, notes, and snippets.

@jaymzcd
Created July 20, 2010 21:28
Show Gist options
  • Save jaymzcd/483626 to your computer and use it in GitHub Desktop.
Save jaymzcd/483626 to your computer and use it in GitHub Desktop.
#!/bin/bash
android create project --target 1 --name "$1" --path ${1,,} --activity $1 --package eu.jaymz.${1,,}
#!/bin/bash
apk=`ls bin/*-unsigned.apk`
base=`basename $apk`
class=`expr "$base" : '\(.*\)-unsigned.apk'`
ant release
/usr/lib/jvm/java-6-sun-1.6.0.20/bin/jarsigner -verbose -keystore /home/jaymz/development/phone-dev/jaymzeu-releasekey.keystore bin/$class-unsigned.apk jaymzeu
rm -i bin/$class.apk
zipalign -v 4 bin/$class-unsigned.apk bin/$class.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment