This commit is contained in:
Родитель
c45d6df346
Коммит
ef0b91a593
|
@ -40,7 +40,7 @@ def get_opts():
|
|||
options, args = getopt.getopt(sys.argv[1:], 'l:r:p:m:v:eh',["arm64","help"])
|
||||
for opt, arg in options:
|
||||
if opt == '-l':
|
||||
localLibPath = arg
|
||||
localLibPath = True
|
||||
if opt == '-r':
|
||||
engine_path = arg # set engine_path, depot_tools and flutter engine folder will be put into this path
|
||||
elif opt == '-p':
|
||||
|
@ -161,7 +161,7 @@ def set_env_verb():
|
|||
else:
|
||||
os.environ["PATH"] = engine_path + "/depot_tools:" + os.environ["PATH"]
|
||||
else:
|
||||
os.environ["FLUTTER_ROOT_PATH"] = os.path.join(localLibPath, "engine_dependencies\src")
|
||||
os.environ["FLUTTER_ROOT_PATH"] = os.path.join(engine_path, "src")
|
||||
|
||||
def get_depot_tools():
|
||||
print("\nGetting Depot Tools...")
|
||||
|
|
|
@ -3,6 +3,6 @@ param(
|
|||
[String]$mode= "release"
|
||||
)
|
||||
$current_dir = Get-Location
|
||||
$localLibsPath = Join-Path -Path $current_dir -ChildPath "../libs"
|
||||
$localLibsPath = Join-Path -Path $current_dir -ChildPath "../libs/engine_dependencies"
|
||||
|
||||
python3 lib_build.py -m $mode -p windows -l $localLibsPath
|
||||
python3 lib_build.py -m $mode -p windows -l True -r $localLibsPath
|
Загрузка…
Ссылка в новой задаче