This commit is contained in:
IQuant 2025-02-14 17:21:05 +03:00
parent 79f8c69e65
commit 9642018b7f
2 changed files with 3 additions and 8 deletions

View file

@ -61,21 +61,16 @@ jobs:
build-proxy-windows:
name: Build proxy for windows
runs-on: ubuntu-22.04
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-gnu
- name: Install extra deps
run: sudo apt-get update && sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev gcc-mingw-w64-i686 gcc-mingw-w64 libasound2-dev
- uses: Swatinem/rust-cache@v2
with:
workspaces: noita-proxy -> target
- name: Build Windows proxy release
run: cargo build --release --target x86_64-pc-windows-gnu
run: cargo build --release
working-directory: ./noita-proxy
- name: Create archives

View file

@ -15,7 +15,7 @@ if mode == "windows":
print("Writing windows 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/release/noita-proxy.exe", arcname="noita_proxy.exe", compress_type=COMPRESS_TYPE, compresslevel=COMPRESS_LEVEL)
release.write("redist/steam_api64.dll", arcname="steam_api64.dll", compress_type=COMPRESS_TYPE, compresslevel=COMPRESS_LEVEL)
elif mode == "linux":
print("Writing linux release...")