Skip to content

Commit 5ee19e6

Browse files
authored
Merge pull request #1503 from JonasT/argsfix
Make SDL2 & services_only bootstrap properly error with missing --private
2 parents 46cde41 + 81baad1 commit 5ee19e6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pythonforandroid/bootstraps/sdl2/build/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,9 @@ def parse_args(args=None):
599599
if x.strip() and not x.strip().startswith('#')]
600600
WHITELIST_PATTERNS += patterns
601601

602+
if args.private is None:
603+
print('Need --private directory with app files to package for .apk')
604+
exit(1)
602605
make_package(args)
603606

604607
return args

pythonforandroid/bootstraps/service_only/build/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,9 @@ def _read_configuration():
496496
if x.strip() and not x.strip().startswith('#')]
497497
WHITELIST_PATTERNS += patterns
498498

499+
if args.private is None:
500+
print('Need --private directory with app files to package for .apk')
501+
exit(1)
499502
make_package(args)
500503

501504
return args

0 commit comments

Comments
 (0)