From bc8bdcafef8d7beccc29cf1593bbbaf749681c6a Mon Sep 17 00:00:00 2001 From: IQuant Date: Sat, 7 Sep 2024 15:01:51 +0300 Subject: [PATCH] Automated commit: v0.22.4 --- noita-proxy/Cargo.toml | 3 ++- scripts/prepare_release.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/noita-proxy/Cargo.toml b/noita-proxy/Cargo.toml index 51197434..4586afb9 100644 --- a/noita-proxy/Cargo.toml +++ b/noita-proxy/Cargo.toml @@ -57,7 +57,8 @@ opt-level = 1 [profile.release-lto] inherits = "release" -lto = "thin" +# Lto seems to be broken for some reason? +#lto = "thin" [profile.release-debug] inherits = "release" diff --git a/scripts/prepare_release.py b/scripts/prepare_release.py index 26e47d64..a19686b0 100644 --- a/scripts/prepare_release.py +++ b/scripts/prepare_release.py @@ -72,7 +72,7 @@ def make_release_assets(): os.chdir("noita-proxy") subprocess.run(["cross", "build", "--profile", "release-lto", "--target", "x86_64-unknown-linux-gnu"], check=True) - subprocess.run(["cargo", "build", "--profile", "release", "--target", "x86_64-pc-windows-gnu"], check=True) + subprocess.run(["cargo", "build", "--profile", "release-lto", "--target", "x86_64-pc-windows-gnu"], check=True) os.chdir("..") @@ -90,7 +90,7 @@ def make_release_assets(): print("Writing win release...") with ZipFile("target/noita-proxy-win.zip", "w") as release: - release.write("noita-proxy/target/x86_64-pc-windows-gnu/release/noita-proxy.exe", arcname="noita_proxy.exe", compress_type=COMPRESS_TYPE, compresslevel=COMPRESS_LEVEL) + release.write("noita-proxy/target/x86_64-pc-windows-gnu/release-lto/noita-proxy.exe", arcname="noita_proxy.exe", compress_type=COMPRESS_TYPE, compresslevel=COMPRESS_LEVEL) release.write("target/tmp/steam_api64.dll", arcname="steam_api64.dll", compress_type=COMPRESS_TYPE, compresslevel=COMPRESS_LEVEL) print("Writing linux release...")