Files
HEDZReloaded/justfile
extrawurst 7cfae285ed Crate unification (#88)
* move client/server/config into shared

* move platforms into shared

* move head drops into shared

* move tb_entities to shared

* reduce server to just a call into shared

* get solo play working

* fix server opening window

* fix fmt

* extracted a few more modules from client

* near completely migrated client

* fixed duplicate CharacterInputEnabled definition

* simplify a few things related to builds

* more simplifications

* fix warnings/check

* ci update

* address comments

* try fixing macos steam build

* address comments

* address comments

* CI tweaks with default client feature

---------

Co-authored-by: PROMETHIA-27 <electriccobras@gmail.com>
2025-12-18 12:31:22 -05:00

35 lines
1.1 KiB
Makefile

# map trenchbroom game folder to here:
# see https://trenchbroom.github.io/manual/latest/#game_configuration_files
tb_setup_mac:
mkdir -p "$HOME/Library/Application Support/TrenchBroom/games/hedz" | true
ln -s $(pwd)/trenchbroom/hedz/hedz.fgd "$HOME/Library/Application Support/TrenchBroom/games/hedz/hedz.fgd" | true
ln -s $(pwd)/trenchbroom/hedz/GameConfig.cfg "$HOME/Library/Application Support/TrenchBroom/games/hedz/GameConfig.cfg" | true
client_args := "--bin hedz_reloaded"
server_args := "--bin hedz_reloaded_server --no-default-features"
run *args:
RUST_BACKTRACE=1 cargo r {{client_args}} -- {{args}}
server:
RUST_BACKTRACE=1 cargo r {{server_args}}
dbg *args:
RUST_BACKTRACE=1 cargo r {{client_args}} --features dbg -- {{args}}
dbg-server:
RUST_BACKTRACE=1 cargo r {{server_args}} --features dbg
sort:
cargo sort --check --workspace
check:
cargo sort --check --workspace
cargo fmt --check
cargo b {{client_args}}
cargo b {{server_args}}
cargo clippy {{client_args}}
cargo clippy {{server_args}}
cargo test {{client_args}}
cargo test {{server_args}}