New script RecompileAllApps.sh for auto-recompilation
This commit is contained in:
@@ -1,11 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
CHANGE_APP_SETTINGS_VERSION=1
|
||||
AUTO=
|
||||
|
||||
if [ "X$1" = "X-a" ]; then
|
||||
AUTO=1
|
||||
fi
|
||||
|
||||
. ./AppSettings.cfg
|
||||
|
||||
if [ "$CHANGE_APP_SETTINGS_VERSION" != "$AppSettingVersion" ]; then
|
||||
AUTO=
|
||||
fi
|
||||
|
||||
LibSdlVersionOld=$LibSdlVersion
|
||||
CompiledLibrariesOld=$CompiledLibraries
|
||||
|
||||
var=""
|
||||
|
||||
if [ -z "$AUTO" ]; then
|
||||
|
||||
echo -n "\n===== libSDL on Android configuration =====\n\nIf you will supply empty string as answer the previous value will be used\n"
|
||||
|
||||
LibSdlVersionOld=$LibSdlVersion
|
||||
echo -n "\nlibSDL version to use (1.2 or 1.3) ($LibSdlVersion): "
|
||||
read var
|
||||
if [ -n "$var" ] ; then
|
||||
@@ -103,7 +119,6 @@ grep 'Available libraries:' project/jni/Application.mk
|
||||
grep 'depends on' project/jni/Application.mk
|
||||
echo -n "Current: $CompiledLibraries\n\n: "
|
||||
read var
|
||||
CompiledLibrariesOld=$CompiledLibraries
|
||||
if [ -n "$var" ] ; then
|
||||
CompiledLibraries="$var"
|
||||
fi
|
||||
@@ -132,9 +147,12 @@ if [ -n "$ReadmeText1" ] ; then
|
||||
ReadmeText="$ReadmeText1"
|
||||
fi
|
||||
|
||||
fi # AUTO
|
||||
|
||||
echo
|
||||
|
||||
cat /dev/null > AppSettings.cfg
|
||||
echo AppSettingVersion=$CHANGE_APP_SETTINGS_VERSION >> AppSettings.cfg
|
||||
echo LibSdlVersion=$LibSdlVersion >> AppSettings.cfg
|
||||
echo AppName=\"$AppName\" >> AppSettings.cfg
|
||||
echo AppFullName=$AppFullName >> AppSettings.cfg
|
||||
|
||||
41
RecompileAllApps.sh
Executable file
41
RecompileAllApps.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
|
||||
KEYSTORE=~/.ssh/android.keystore
|
||||
ALIAS=pelya
|
||||
APPS_SKIP="src jooleem_0.1.4 lbreakout2-2.6.1 teeworlds glxgears"
|
||||
|
||||
echo -n "Enter password for keystore at $KEYSTORE alias $ALIAS: "
|
||||
stty -echo
|
||||
read PASSWORD
|
||||
stty echo
|
||||
|
||||
echo
|
||||
|
||||
# First edit app settings if their format was changed
|
||||
for APP1 in project/jni/application/*/AppSettings.cfg; do
|
||||
APP=`echo $APP1 | sed 's@project/jni/application/\([^/]*\)/.*@\1@'`
|
||||
if echo $APPS_SKIP | grep $APP > /dev/null ; then
|
||||
continue
|
||||
fi
|
||||
rm project/jni/application/src
|
||||
ln -s $APP project/jni/application/src
|
||||
echo
|
||||
echo ===== Settings for $APP =====
|
||||
./ChangeAppSettings.sh
|
||||
rm -f $APP.apk
|
||||
done
|
||||
|
||||
for APP1 in project/jni/application/*/AppSettings.cfg; do
|
||||
APP=`echo $APP1 | sed 's@project/jni/application/\([^/]*\)/.*@\1@'`
|
||||
if echo $APPS_SKIP | grep $APP > /dev/null ; then
|
||||
continue
|
||||
fi
|
||||
rm -f project/jni/application/src
|
||||
ln -s $APP project/jni/application/src
|
||||
./ChangeAppSettings.sh -a
|
||||
echo Compiling $APP
|
||||
OLDPATH="`pwd`"
|
||||
( cd project && nice -n5 ndk-build -j2 V=1 && ant release && \
|
||||
jarsigner -keystore "$KEYSTORE" -keypath "$PASSWORD" bin/DemoActivity-unsigned.apk $ALIAS && \
|
||||
zipalign 4 bin/DemoActivity-unsigned.apk ../$APP.apk && cd .. ) || exit 1
|
||||
done
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="de.schwardtnet.alienblaster"
|
||||
android:versionCode="110004"
|
||||
android:versionName="1.1.0.4"
|
||||
android:versionCode="110005"
|
||||
android:versionName="1.1.0.05"
|
||||
>
|
||||
<application android:label="@string/app_name"
|
||||
android:icon="@drawable/icon"
|
||||
|
||||
@@ -26,7 +26,7 @@ SDL_VIDEO_RENDER_RESIZE := 1
|
||||
COMPILED_LIBRARIES := sdl_mixer sdl_image
|
||||
|
||||
APPLICATION_ADDITIONAL_CFLAGS := -finline-functions -O2
|
||||
SDL_ADDITIONAL_CFLAGS := -DSDL_ANDROID_KEYCODE_MOUSE=RETURN
|
||||
SDL_ADDITIONAL_CFLAGS := -DSDL_ANDROID_KEYCODE_MOUSE=UNKNOWN -DSDL_ANDROID_KEYCODE_0=RETURN -DSDL_ANDROID_KEYCODE_1=LCTRL -DSDL_ANDROID_KEYCODE_2=PAGEUP -DSDL_ANDROID_KEYCODE_3=PAGEDOWN -DSDL_ANDROID_KEYCODE_4=LCTRL
|
||||
|
||||
# If SDL_Mixer should link to libMAD
|
||||
SDL_MIXER_USE_LIBMAD :=
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
AppSettingVersion=1
|
||||
LibSdlVersion=1.3
|
||||
AppName="Alien Blaster"
|
||||
AppFullName=de.schwardtnet.alienblaster
|
||||
@@ -5,14 +6,14 @@ ScreenOrientation=h
|
||||
AppDataDownloadUrl="http://sites.google.com/site/xpelyax/Home/alienblaster110_data.zip?attredirects=0&d=1|http://sitesproxy.goapk.com/site/xpelyax/Home/alienblaster110_data.zip"
|
||||
SdlVideoResize=y
|
||||
NeedDepthBuffer=n
|
||||
AppUsesMouse=RETURN
|
||||
AppUsesMouse=n
|
||||
AppNeedsArrowKeys=y
|
||||
AppUsesJoystick=n
|
||||
AppUsesMultitouch=n
|
||||
RedefinedKeys=""
|
||||
RedefinedKeys="RETURN LCTRL PAGEUP PAGEDOWN LCTRL"
|
||||
MultiABI=n
|
||||
AppVersionCode=110004
|
||||
AppVersionName="1.1.0.4"
|
||||
AppVersionCode=110005
|
||||
AppVersionName="1.1.0.05"
|
||||
CompiledLibraries="sdl_mixer sdl_image"
|
||||
AppCflags='-finline-functions -O2'
|
||||
ReadmeText='^You can press "Home" now - the data will be downloaded in background^In game press "Menu" for secondary fire, "Volume Up/Down" to cycle weapons^If your phone doesnt have joystick or trackball the accelerometer will be used'
|
||||
ReadmeText='^You can press "Home" now - the data will be downloaded in background^In game press "Menu" for secondary fire, "Volume Up/Down" to cycle weapons'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
AppSettingVersion=1
|
||||
LibSdlVersion=1.2
|
||||
AppName="OpenTyrian"
|
||||
AppFullName=com.googlecode.opentyrian
|
||||
@@ -5,13 +6,14 @@ ScreenOrientation=h
|
||||
AppDataDownloadUrl="http://sites.google.com/site/xpelyax/Home/tyrian21-data.zip?attredirects=0&d=1|http://sitesproxy.goapk.com/site/xpelyax/Home/tyrian21-data.zip"
|
||||
SdlVideoResize=y
|
||||
NeedDepthBuffer=n
|
||||
AppUsesMouse=SPACE
|
||||
AppUsesMouse=n
|
||||
AppNeedsArrowKeys=y
|
||||
AppUsesJoystick=n
|
||||
RedefinedKeys="LCTRL LALT RETURN RETURN"
|
||||
AppUsesMultitouch=n
|
||||
RedefinedKeys="SPACE RETURN LCTRL LALT RETURN"
|
||||
MultiABI=n
|
||||
AppVersionCode=2101
|
||||
AppVersionName="2.1.01"
|
||||
AppVersionCode=2102
|
||||
AppVersionName="2.1.02"
|
||||
CompiledLibraries="sdl_net"
|
||||
AppCflags='-finline-functions -O2'
|
||||
ReadmeText='^You may press "Home" now - the data will be downloaded in background'
|
||||
|
||||
@@ -17,7 +17,7 @@ class Globals {
|
||||
public static boolean HorizontalOrientation = true;
|
||||
|
||||
// Readme text to be shown on download page
|
||||
public static String ReadmeText = "^You can press \"Home\" now - the data will be downloaded in background^In game press \"Menu\" for secondary fire, \"Volume Up/Down\" to cycle weapons^If your phone doesnt have joystick or trackball the accelerometer will be used".replace("^","\n");
|
||||
public static String ReadmeText = "^You can press \"Home\" now - the data will be downloaded in background^In game press \"Menu\" for secondary fire, \"Volume Up/Down\" to cycle weapons".replace("^","\n");
|
||||
|
||||
public static boolean AppUsesMouse = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user