mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Organize build system a bit.
This commit is contained in:
parent
2c3740b643
commit
e329b9282c
4 changed files with 25 additions and 23 deletions
36
Justfile
36
Justfile
|
@ -1,33 +1,27 @@
|
||||||
run:
|
extract_steam_redist:
|
||||||
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 cargo run
|
python scripts/extract_steam_redist.py
|
||||||
|
|
||||||
|
add_dylib_debug: extract_steam_redist
|
||||||
|
cp target/tmp/libsteam_api.so noita-proxy/target/debug/
|
||||||
|
|
||||||
|
add_dylib_release: extract_steam_redist
|
||||||
|
cp target/tmp/libsteam_api.so noita-proxy/target/release/
|
||||||
|
|
||||||
build:
|
build:
|
||||||
cd noita-proxy && cargo build
|
cd noita-proxy && cargo build
|
||||||
cd noita-proxy && cargo build --release
|
cd noita-proxy && cargo build --release
|
||||||
cp target/tmp/libsteam_api.so noita-proxy/target/debug/
|
|
||||||
cp target/tmp/libsteam_api.so noita-proxy/target/release/
|
|
||||||
|
|
||||||
run-rel:
|
run-rel: add_dylib_release
|
||||||
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 cargo run --release
|
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 cargo run --release
|
||||||
|
|
||||||
run-rel-n:
|
run: add_dylib_debug
|
||||||
cd noita-proxy && NP_SKIP_MOD_CHECK=1 cargo run --release
|
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 cargo run
|
||||||
|
|
||||||
run-rel-n-2:
|
run2: add_dylib_debug
|
||||||
cd noita-proxy && NP_NOITA_ADDR=127.0.0.1:21252 NP_SKIP_MOD_CHECK=1 cargo run --release
|
|
||||||
|
|
||||||
run2:
|
|
||||||
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21252 cargo run -- --launch-cmd "wine noita.exe -gamemode 0"
|
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21252 cargo run -- --launch-cmd "wine noita.exe -gamemode 0"
|
||||||
|
|
||||||
run3:
|
run3: add_dylib_debug
|
||||||
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21253 cargo run -- --launch-cmd "wine noita.exe -gamemode 0"
|
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21253 cargo run -- --launch-cmd "wine noita.exe -gamemode 0"
|
||||||
|
|
||||||
release: build
|
release: build add_dylib_release
|
||||||
python prepare_release.py
|
python scripts/prepare_release.py
|
||||||
|
|
||||||
noita:
|
|
||||||
cd /home/quant/.local/share/Steam/steamapps/common/Noita/ && NP_NOITA_ADDR=127.0.0.1:21252 wine noita.exe -gamemode 0
|
|
||||||
|
|
||||||
noita1:
|
|
||||||
cd /home/quant/.local/share/Steam/steamapps/common/Noita/ && wine noita.exe
|
|
||||||
|
|
||||||
|
|
1
scripts/.gitignore
vendored
Normal file
1
scripts/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
__pycache__
|
4
scripts/extract_steam_redist.py
Normal file
4
scripts/extract_steam_redist.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import prepare_release
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
prepare_release.extract_steam_redist()
|
|
@ -60,6 +60,10 @@ def get_pull_requests_from(date):
|
||||||
parsed = call_parse_json(["gh", "pr", "list", "--state", "merged", "--search", "merged:>"+date, "--json", "number,title,author"])
|
parsed = call_parse_json(["gh", "pr", "list", "--state", "merged", "--search", "merged:>"+date, "--json", "number,title,author"])
|
||||||
return [PullRequest(entry["number"], entry["author"]["login"], entry["title"]) for entry in parsed]
|
return [PullRequest(entry["number"], entry["author"]["login"], entry["title"]) for entry in parsed]
|
||||||
|
|
||||||
|
def extract_steam_redist():
|
||||||
|
with ZipFile("redist/steam_dylib.zip", "r") as steam_dylib_zip:
|
||||||
|
steam_dylib_zip.extractall("target/tmp")
|
||||||
|
|
||||||
def make_release_assets():
|
def make_release_assets():
|
||||||
print("Compiling Noita Proxy...")
|
print("Compiling Noita Proxy...")
|
||||||
|
|
||||||
|
@ -79,8 +83,7 @@ def make_release_assets():
|
||||||
|
|
||||||
print("Extracting steam dylib...")
|
print("Extracting steam dylib...")
|
||||||
|
|
||||||
with ZipFile("redist/steam_dylib.zip", "r") as steam_dylib_zip:
|
extract_steam_redist()
|
||||||
steam_dylib_zip.extractall("target/tmp")
|
|
||||||
|
|
||||||
print("Writing win release...")
|
print("Writing win release...")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue