mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
drop linux fakechroot
This commit is contained in:
parent
9c637bbe9e
commit
fb6cf98f2b
1 changed files with 6 additions and 8 deletions
|
@ -37,20 +37,18 @@ func start_sandbox(gate: Gate) -> void:
|
||||||
func start_sandbox_linux(gate: Gate) -> Dictionary:
|
func start_sandbox_linux(gate: Gate) -> Dictionary:
|
||||||
if not snbx_executable.exists():
|
if not snbx_executable.exists():
|
||||||
Debug.logerr("Sandbox executable not found at " + snbx_executable.path); return {}
|
Debug.logerr("Sandbox executable not found at " + snbx_executable.path); return {}
|
||||||
if not snbx_env.zip_exists():
|
|
||||||
Debug.logerr("Sandbox environment not found at " + snbx_env.zip_path); return {}
|
|
||||||
|
|
||||||
snbx_env.create_env(snbx_executable.path, gate)
|
|
||||||
|
|
||||||
|
var pack_file = ProjectSettings.globalize_path(gate.resource_pack)
|
||||||
|
var shared_libs = ProjectSettings.globalize_path(gate.shared_libs_dir)
|
||||||
var args = [
|
var args = [
|
||||||
snbx_env.start.get_base_dir(), # cd to dir
|
"--main-pack", pack_file,
|
||||||
"--main-pack", snbx_env.main_pack,
|
|
||||||
"--resolution", "%dx%d" % [render_result.width, render_result.height],
|
"--resolution", "%dx%d" % [render_result.width, render_result.height],
|
||||||
"--verbose"
|
"--verbose"
|
||||||
]
|
]
|
||||||
|
if not shared_libs.is_empty(): args += ["--gdext-libs-dir", shared_libs]
|
||||||
|
|
||||||
Debug.logclr(snbx_env.start + " " + " ".join(args), Color.DIM_GRAY)
|
Debug.logclr(snbx_executable.path + " " + " ".join(args), Color.DIM_GRAY)
|
||||||
return OS.execute_with_pipe(snbx_env.start, args)
|
return OS.execute_with_pipe(snbx_executable.path, args)
|
||||||
|
|
||||||
|
|
||||||
func start_sandbox_windows(gate: Gate) -> Dictionary:
|
func start_sandbox_windows(gate: Gate) -> Dictionary:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue