File tree 5 files changed +19
-1
lines changed
5 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -492,4 +492,19 @@ def make_package(args):
492
492
and not x .startswith ('#' )]
493
493
WHITELIST_PATTERNS += patterns
494
494
495
+ # read bootstrap.properties and fill the args
496
+ args .bootstrap = {}
497
+ with open ("local.properties" ) as fd :
498
+ for line in fd .readlines ():
499
+ items = line .split ("=" , 1 )
500
+ if len (items ) != 2 :
501
+ continue
502
+ key , value = items
503
+ if not key .startswith ("bootstrap." ):
504
+ continue
505
+ key = key [len ("bootstrap:" ):]
506
+ args .bootstrap [key ] = value .splitlines ()[0 ]
507
+
508
+ print args .bootstrap
509
+
495
510
make_package (args )
Original file line number Diff line number Diff line change 27
27
<meta-data android : name =" wakelock" android : value =" {% if args.wakelock %}1{% else %}0{% endif %}" />
28
28
29
29
30
- <activity android : name =" org.renpy.android.PythonActivity "
30
+ <activity android : name =" {{ args.bootstrap.entrypoint }} "
31
31
android : label =" @string/iconName"
32
32
android : configChanges =" mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode{% if android_api >= 13 %}|screenSize{% endif %}"
33
33
android : launchMode =" singleTask"
Original file line number Diff line number Diff line change
1
+ bootstrap.entrypoint =org.renpy.android.PythonActivity
Original file line number Diff line number Diff line change
1
+ bootstrap.entrypoint =org.renpy.android.PythonActivity
Original file line number Diff line number Diff line change @@ -745,6 +745,7 @@ function run_distribute() {
745
745
debug " Copy default files"
746
746
try cp -a $SRC_PATH /default.properties .
747
747
try cp -a $SRC_PATH /local.properties .
748
+ try cat $SRC_PATH /bootstrap.properties >> " local.properties"
748
749
try cp -a $BOOTSTRAP_COMMON_PATH /build.py .
749
750
try cp -a $BOOTSTRAP_COMMON_PATH /buildlib .
750
751
try cp -a $BOOTSTRAP_COMMON_PATH /src .
You can’t perform that action at this time.
0 commit comments