Created
January 22, 2014 10:59
-
-
Save jleyva/8556901 to your computer and use it in GitHub Desktop.
build.sh for Moodle Mobile Android, see http://docs.moodle.org/dev/Moodle_Mobile_Automatic_Building_System
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GIT_BASE=/Users/juanleyvadelgado/Documents/MoodleMobile/GIT | |
KEYSTORE=/Users/juanleyvadelgado/Documents/MoodleMobile/moodlemobile.keystore | |
[email protected] | |
rm MoodleMobile$1.apk | |
rm MoodleMobile$1Store.apk | |
rsync -a --exclude='.*' $GIT_BASE/ tmpdir/assets/www/ | |
../apktool b tmpdir MoodleMobile$1.apk | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $KEYSTORE MoodleMobile$1.apk moodlemobile | |
zipalign -v 4 MoodleMobile$1.apk MoodleMobile$1Store.apk | |
echo "Moodle Mobile apk" | mutt -a "MoodleMobile$1Store.apk" -s "MoodleMobile$1Store.apk" -- $EMAIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment