SDL: fixed build scripts
This commit is contained in:
@@ -176,8 +176,13 @@ cd project && env PATH=$NDKBUILDPATH BUILD_NUM_CPUS=$NCPU ndk-build -j$NCPU V=1
|
||||
fi ; } && \
|
||||
{ if $sign_apk; then cd .. && ./sign.sh && cd project ; else true ; fi ; } && \
|
||||
{ $install_apk && [ -n "`adb devices | tail -n +2`" ] && \
|
||||
{ adb install -r app/build/outputs/apk/release/app-release.apk | grep 'Failure' && \
|
||||
adb uninstall `grep AppFullName ../AndroidAppSettings.cfg | sed 's/.*=//'` && adb install -r app/build/outputs/apk/release/app-release.apk ; } ; \
|
||||
{ if $sign_apk; then \
|
||||
APPNAME=`grep AppName ../AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | tr " '/" '---'` ; \
|
||||
APPVER=`grep AppVersionName ../AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | tr " '/" '---'` ; \
|
||||
adb install -r ../$APPNAME-$APPVER.apk ; \
|
||||
else \
|
||||
adb install -r app/build/outputs/apk/release/app-release.apk ; \
|
||||
fi ; } ; \
|
||||
true ; } && \
|
||||
{ $run_apk && { \
|
||||
ActivityName="`grep AppFullName ../AndroidAppSettings.cfg | sed 's/.*=//'`/.MainActivity" ; \
|
||||
|
||||
@@ -7,10 +7,10 @@ AppName="OpenTTD"
|
||||
AppFullName=org.openttd.sdl
|
||||
|
||||
# Application version code (integer)
|
||||
AppVersionCode=110186
|
||||
AppVersionCode=110187
|
||||
|
||||
# Application user-visible version name (string)
|
||||
AppVersionName="1.10.1.86"
|
||||
AppVersionName="1.10.1.87"
|
||||
|
||||
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
|
||||
# If you'll start Description with '!' symbol it will be enabled by default, '!!' will also hide the entry from the menu, so it cannot be disabled
|
||||
@@ -270,6 +270,7 @@ APP_PLATFORM=
|
||||
# Specify architectures to compile, 'all' or 'y' to compile for all architectures.
|
||||
# Available architectures: armeabi-v7a arm64-v8a x86 x86_64
|
||||
MultiABI='arm64-v8a armeabi-v7a x86 x86_64'
|
||||
#MultiABI=arm64-v8a
|
||||
|
||||
# Optional shared libraries to compile - removing some of them will save space
|
||||
# MP3 patents are expired, but libmad license is GPL, not LGPL
|
||||
|
||||
@@ -15,10 +15,8 @@ export CXXFLAGS=-O0
|
||||
make -j8 VERBOSE=1 || exit 1
|
||||
cd bin
|
||||
|
||||
export LD_LIBRARY_PATH=/usr/local/lib
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
./openttd -d 0 -m null -g opntitle.sav -r 854x480
|
||||
./openttd -d 2 -m null -g opntitle.sav -r 854x480
|
||||
elif [ -n "$2" ]; then
|
||||
valgrind --track-fds=yes --log-file=../../valgrind.log --leak-check=full \
|
||||
./openttd -d 0 -m null # -g opntitle.sav
|
||||
|
||||
Submodule project/jni/application/openttd/src updated: 7b72277dbe...c1d279db96
+5
-2
@@ -7,16 +7,19 @@ PASS=
|
||||
APPNAME=`grep AppName AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | tr " '/" '---'`
|
||||
APPVER=`grep AppVersionName AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | tr " '/" '---'`
|
||||
|
||||
# Fix Gradle compilation error
|
||||
[ -z "$ANDROID_NDK_HOME" ] && export ANDROID_NDK_HOME="`which ndk-build | sed 's@/ndk-build@@'`"
|
||||
|
||||
cd project
|
||||
|
||||
./gradlew bundleRelease || exit 1
|
||||
|
||||
../copyAssets.sh pack-binaries-bundle app/build/outputs/bundle/release/app.aab
|
||||
../copyAssets.sh pack-binaries-bundle app/build/outputs/bundle/release/app-release.aab
|
||||
|
||||
cd app/build/outputs/bundle/release || exit 1
|
||||
|
||||
# Remove old certificate
|
||||
cp -f app.aab ../../../../../../$APPNAME-$APPVER.aab || exit 1
|
||||
cp -f app-release.aab ../../../../../../$APPNAME-$APPVER.aab || exit 1
|
||||
# Sign with the new certificate
|
||||
echo Using keystore $ANDROID_UPLOAD_KEYSTORE_FILE and alias $ANDROID_UPLOAD_KEYSTORE_ALIAS
|
||||
stty -echo
|
||||
|
||||
Reference in New Issue
Block a user