noita_entangled_worlds/Justfile

73 lines
2.5 KiB
Makefile
Raw Permalink Normal View History

2024-07-20 12:11:07 +03:00
extract_steam_redist:
python scripts/extract_steam_redist.py
add_dylib_debug: extract_steam_redist
2024-07-22 17:41:45 +03:00
mkdir noita-proxy/target/debug/ -p
2024-09-26 21:10:39 +03:00
cp redist/libsteam_api.so noita-proxy/target/debug/
2024-07-20 12:11:07 +03:00
add_dylib_release: extract_steam_redist
2024-07-22 17:41:45 +03:00
mkdir noita-proxy/target/release/ -p
2024-09-26 21:10:39 +03:00
cp redist/libsteam_api.so noita-proxy/target/release/
2024-06-05 16:22:03 +03:00
2024-07-18 13:15:21 +03:00
build:
cd noita-proxy && cargo build
2024-07-18 13:15:21 +03:00
cd noita-proxy && cargo build --release
## ewext stuff
build_luajit:
mkdir target/ -p
cd target && git clone https://luajit.org/git/luajit.git || true
cd target/luajit && git checkout v2.0.4 && make HOST_CC="gcc -m32" CROSS=i686-w64-mingw32- TARGET_SYS=Windows
cp target/luajit/src/
bindgen ../target/luajit/src/lua.h -o src/lua_bindings.rs --dynamic-loading Lua51 --no-layout-tests
# `rustup target add i686-pc-windows-gnu` first
build_ext:
2025-06-23 21:27:37 -04:00
cd ewext && cargo build --release --target=i686-pc-windows-gnu
2025-06-23 16:43:02 -04:00
cp ewext/target/i686-pc-windows-gnu/release/ewext.dll quant.ew/ewext.dll
build_ext_debug:
cd ewext && cargo build --target=i686-pc-windows-gnu
2025-06-23 16:43:02 -04:00
cp ewext/target/i686-pc-windows-gnu/debug/ewext.dll quant.ew/ewext.dll
##
2025-06-27 12:39:53 -04:00
build_blob:
cd blob_guy && cargo +nightly build --release --target=i686-pc-windows-gnu -Zbuild-std="panic_abort,std" -Zbuild-std-features=panic_immediate_abort
cp blob_guy/target/i686-pc-windows-gnu/release/blob_guy.dll blob_guy/blob_guy/blob_guy.dll
2025-06-27 23:23:49 -04:00
build_blob_debug:
cd blob_guy && cargo build --target=i686-pc-windows-gnu
cp blob_guy/target/i686-pc-windows-gnu/debug/blob_guy.dll blob_guy/blob_guy/blob_guy.dll
2024-06-06 15:25:01 +03:00
run-rel: add_dylib_release build_ext
2024-08-02 15:26:17 +03:00
cd noita-proxy && NP_SKIP_MOD_CHECK=1 cargo run --release
2024-07-31 15:11:46 +03:00
flamegraph: add_dylib_debug
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 cargo flamegraph
run: add_dylib_debug build_ext
cd noita-proxy && NP_SKIP_MOD_CHECK=1 cargo run
2024-06-11 11:16:44 +03:00
run2: add_dylib_debug build_ext
cd noita-proxy && NP_SKIP_MOD_CHECK=1 cargo run -- --launch-cmd "wine noita.exe -gamemode 0"
run2-alt: add_dylib_debug build_ext
cd noita-proxy && NP_SKIP_MOD_CHECK=1 cargo run -- --launch-cmd "strace wine noita.exe -gamemode 0"
run3: add_dylib_debug build_ext
cd noita-proxy && NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21253 cargo run -- --launch-cmd "strace wine noita.exe -gamemode 0"
2024-07-18 15:31:36 +03:00
2024-11-26 18:45:05 +03:00
release_old: build_ext
2024-07-20 12:11:07 +03:00
python scripts/prepare_release.py
2024-11-21 00:14:13 +03:00
2024-11-26 18:45:05 +03:00
release:
cd noita-proxy && cargo check
cd ewext && cargo check
python scripts/check_pre_ci.py
2025-02-28 18:42:55 +03:00
clean:
cd noita-proxy && cargo clean
cd ewext && cargo clean
2024-11-21 00:14:13 +03:00
make_release_assets:
2025-06-27 12:39:53 -04:00
python scripts/make_release_assets.py