mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
implement 'fdroid init' to set up a barebones repo from scratch
This tries to auto-detect the SDK and NDK. If it can't find the SDK, it prompts the user to type in the path. It also tries to find the most recent version of the build-tools, and should also support the old unversioned layout.
This commit is contained in:
parent
94342ee43c
commit
9344bca245
2 changed files with 139 additions and 1 deletions
3
fdroid
3
fdroid
|
|
@ -22,6 +22,7 @@ import os
|
|||
|
||||
commands = [
|
||||
"build",
|
||||
"init",
|
||||
"update",
|
||||
"publish",
|
||||
"verify",
|
||||
|
|
@ -51,7 +52,7 @@ def main():
|
|||
print_help()
|
||||
sys.exit(1)
|
||||
|
||||
if not os.path.isfile('config.py'):
|
||||
if command != 'init' and not os.path.isfile('config.py'):
|
||||
print "Missing config file - is this a repo directory?"
|
||||
sys.exit(2)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue