's'
This commit is contained in:
13
redroid.py
13
redroid.py
@@ -3,11 +3,13 @@
|
||||
import argparse
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from stuff.houdini import Houdini
|
||||
from stuff.houdini_hack import Houdini_Hack
|
||||
from stuff.magisk import Magisk
|
||||
from stuff.mindthegapps import MindTheGapps
|
||||
import tools.compat as compat
|
||||
import tools.helper as helper
|
||||
|
||||
|
||||
@@ -163,10 +165,21 @@ def main():
|
||||
action="store_true",
|
||||
help="Do not pull images or download archives; require offline/downloads and offline/images",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--no-compat-check",
|
||||
dest="no_compat_check",
|
||||
action="store_true",
|
||||
help="Skip container-runtime / OS compatibility checks before build",
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
if args.offline:
|
||||
os.environ["REDROID_OFFLINE"] = "1"
|
||||
if not args.no_compat_check:
|
||||
build_report = compat.analyze_for_build(args.container)
|
||||
compat.emit_compat_report(build_report)
|
||||
if build_report.errors:
|
||||
sys.exit(1)
|
||||
base_image_source = ensure_base_image(args.container, args.android)
|
||||
dockerfile, tags = build_layers(args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user