This commit is contained in:
IQuant 2024-11-26 16:30:21 +03:00
parent f2eb870beb
commit 3de4aee5d5
2 changed files with 9 additions and 3 deletions

View file

@ -19,6 +19,8 @@ jobs:
run: 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
- uses: Swatinem/rust-cache@v2
with:
workspaces: noita-proxy -> target
- name: Build ewext
run: cargo build --release --target i686-pc-windows-gnu

View file

@ -1,12 +1,16 @@
import tomllib
import os
from zipfile import ZipFile, ZIP_DEFLATED as COMPRESS_TYPE
import shutil
import re
COMPRESS_LEVEL = 9
cargo_manifest = tomllib.load(open("noita-proxy/Cargo.toml", "rb"))
version = cargo_manifest["package"]["version"]
cargo_manifest = open("noita-proxy/Cargo.toml", "r").read()
version = re.findall('version = "(.*?)"', cargo_manifest)[0]
print("Version:", version)
assert version is not None
os.makedirs("target", exist_ok=True)