diff --git a/engine/Scripts/lib_build.py b/engine/Scripts/lib_build.py index a109efc0..6fc024fb 100644 --- a/engine/Scripts/lib_build.py +++ b/engine/Scripts/lib_build.py @@ -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...") diff --git a/engine/Scripts/local_build_win.ps1 b/engine/Scripts/local_build_win.ps1 index 1f0412f1..427090db 100644 --- a/engine/Scripts/local_build_win.ps1 +++ b/engine/Scripts/local_build_win.ps1 @@ -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 \ No newline at end of file +python3 lib_build.py -m $mode -p windows -l True -r $localLibsPath \ No newline at end of file