hlsdk-portable/android/build-manual.sh

17 lines
748 B
Bash
Raw Normal View History

2016-04-02 20:26:17 +00:00
ANDROID_JAR=../android-13.jar
AAPT=./../aapt
DX=./../dx
APKBUILDER=./../apkbuilder
2016-04-05 09:09:51 +00:00
NAME=gravgun
2016-04-02 20:26:17 +00:00
mkdir bin
mkdir bin/classes
2016-04-05 09:09:51 +00:00
mkdir assets/
2016-04-02 20:26:17 +00:00
$AAPT package -M AndroidManifest.xml -m -S res -I $ANDROID_JAR
2016-09-16 16:01:54 +00:00
$JAVA_HOME/bin/javac -d bin/classes -s bin/classes -cp $ANDROID_JAR src/in/celest/xash3d/*.java
2016-04-02 20:26:17 +00:00
$DX --dex --output=bin/classes.dex bin/classes/
$AAPT package -f -M AndroidManifest.xml -S res -I $ANDROID_JAR -F bin/$NAME.apk.unaligned
2016-04-05 09:09:51 +00:00
python2 makepak.py pak/ assets/extras.pak
zip -r bin/$NAME.apk.unaligned assets/
2016-04-02 20:26:17 +00:00
$APKBUILDER bin/$NAME.apk -u -nf libs/ -rj libs -f bin/classes.dex -z bin/$NAME.apk.unaligned
#java -jar /mnt/app/apktool/signapk.jar /mnt/app/apktool/testkey.x509.pem /mnt/app/apktool/testkey.pk8 bin/$NAME.apk bin/$NAME-signed.apk