From 451ae8698a285c8821a9a353c6a82665bcee36c5 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 15 Jul 2014 01:19:01 +0200 Subject: [PATCH] Add android building instructions --- BUILDING_ANDROID | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 BUILDING_ANDROID diff --git a/BUILDING_ANDROID b/BUILDING_ANDROID new file mode 100644 index 000000000..a4fd5d90b --- /dev/null +++ b/BUILDING_ANDROID @@ -0,0 +1,26 @@ +This is how I build DDNet for Android: + +# Cloning the building repo with the SDL port for Android by Pelya +cd /media +git clone https://github.com/pelya/commandergenius.git + +# Get the most recent DDNet source +cd /media/commandergenius/project/jni/application/teeworlds +rm -rf src DDRace64.zip* +wget "https://github.com/def-/teeworlds/archive/DDRace64.zip" +unzip DDRace64.zip +mv teeworlds-DDRace64 src +mkdir src/src/game/generated +# Also the generated files don't get generated, copy them by hand +cp /media/ddrace/src/game/generated/* src/src/game/generated +rm -rf AndroidData +./AndroidPreBuild.sh + +# Actual compilation, needs a key to sign +cd /media/commandergenius +./changeAppSettings.sh -a +android update project -p project +./build.sh +jarsigner -verbose -keystore ~/.android/release.keystore -storepass MYSECRETPASS -sigalg MD5withRSA -digestalg SHA1 project/bin/MainActivity-release-unsigned.apk androidreleasekey +zipalign 4 project/bin/MainActivity-release-unsigned.apk project/bin/MainActivity-release.apk +scp project/bin/MainActivity-release.apk ddnet:/var/www/downloads/DDNet-$VERSION.apk