From 60e095e1ea15652e7b565a30bb0d252195c48e90 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:33:18 -0800 Subject: [PATCH] ulwgl_util: update setup to redownload the runtime files instead of copying - We no longer store the runtime files in the root directory --- ULWGL/ulwgl_util.py | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/ULWGL/ulwgl_util.py b/ULWGL/ulwgl_util.py index 6f8880fba..0a7e6d365 100644 --- a/ULWGL/ulwgl_util.py +++ b/ULWGL/ulwgl_util.py @@ -341,35 +341,14 @@ def _update_ulwgl( file=stderr, ) - copyfile_tree( - root.joinpath(json_root["ulwgl"]["versions"]["runtime_platform"]), - local.joinpath(json_root["ulwgl"]["versions"]["runtime_platform"]), - ) - - # _v2-entry-point - local.joinpath("ULWGL").unlink(missing_ok=True) - cp(root.joinpath("ULWGL"), local.joinpath("ULWGL")) - - # Auto-generated files - for file in local.glob("run*"): - file.unlink(missing_ok=True) - cp(root.joinpath(file.name), local.joinpath(file.name)) + # Download the runtime from the official source + setup_runtime(root, json_root) elif local.joinpath(runtime).is_dir() and val != runtime: # Update print(f"Updating {key} to {val} ...", file=stderr) rmtree(local.joinpath(runtime).as_posix()) - copyfile_tree( - root.joinpath(val), - local.joinpath(val), - ) - - local.joinpath("ULWGL").unlink(missing_ok=True) - cp(root.joinpath("ULWGL"), local.joinpath("ULWGL")) - - for file in local.glob("run*"): - file.unlink(missing_ok=True) - cp(root.joinpath(file.name), local.joinpath(file.name)) + setup_runtime(root, json_root) json_local["ulwgl"]["versions"]["runtime_platform"] = val elif key == "launcher":