forked from IntQuant/noita_entangled_worlds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
60 lines (44 loc) · 1.89 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
extract_steam_redist:
python scripts/extract_steam_redist.py
add_dylib_debug: extract_steam_redist
mkdir noita-proxy/target/debug/ -p
cp redist/libsteam_api.so noita-proxy/target/debug/
add_dylib_release: extract_steam_redist
mkdir noita-proxy/target/release/ -p
cp redist/libsteam_api.so noita-proxy/target/release/
build:
cd noita-proxy && cargo build
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/ewext0.dll
build_ext_debug:
cd ewext && cargo build --target=i686-pc-windows-gnu
cp ewext/target/i686-pc-windows-gnu/debug/ewext.dll quant.ew/ewext0.dll
##
run-rel: add_dylib_release
cd noita-proxy && NP_SKIP_MOD_CHECK=1 cargo run --release
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
run2: add_dylib_debug build_ext
cd noita-proxy && NP_SKIP_MOD_CHECK=1 cargo run -- --launch-cmd "wine noita.exe"
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"
release_old: build_ext
python scripts/prepare_release.py
release:
cd noita-proxy && cargo check
cd ewext && cargo check
python scripts/check_pre_ci.py
make_release_assets:
python scripts/make_release_assets.py