noita_entangled_worlds/Justfile

48 lines
1.6 KiB
Makefile
Raw 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-07-20 12:11:07 +03:00
cp target/tmp/libsteam_api.so noita-proxy/target/debug/
add_dylib_release: extract_steam_redist
2024-07-22 17:41:45 +03:00
mkdir noita-proxy/target/release/ -p
2024-07-20 12:11:07 +03:00
cp target/tmp/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:
cd ewext && cargo build --release --target=i686-pc-windows-gnu
cp ewext/target/i686-pc-windows-gnu/release/ewext.dll quant.ew/ewext.dll
##
2024-06-06 15:25:01 +03:00
run-rel: add_dylib_release
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 NP_NOITA_ADDR=127.0.0.1:21252 cargo run -- --launch-cmd "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 "wine noita.exe -gamemode 0"
2024-07-18 15:31:36 +03:00
release: build_ext
2024-07-20 12:11:07 +03:00
python scripts/prepare_release.py