-
Notifications
You must be signed in to change notification settings - Fork 7
/
justfile
33 lines (26 loc) · 928 Bytes
/
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
export LEPTOS_WASM_OPT_VERSION := "version_118"
# Run the development game (browser).
game:
trunk serve --config hes-game/Trunk.toml
# Run the development editor (browser).
editor:
trunk serve --config hes-editor/Trunk.toml
# Run tests.
test:
cargo test --all-features
# Build the game and editor web versions.
build:
rm -rf /tmp/hes/game && mkdir -p /tmp/hes/game
rm -rf /tmp/hes/editor && mkdir -p /tmp/hes/editor
trunk build --release --config hes-game/Trunk.toml --dist /tmp/hes/game
trunk build --release --config hes-editor/Trunk.toml --dist /tmp/hes/editor
# Extract strings for translation.
translate:
cd hes-game && cargo expand --lib --ugly --color never | tr -d '\n' > /tmp/expanded
cargo run --bin i18n
# Generate pre-computed earth surface textures.
surfaces:
cargo run --bin surface --release
# Generate sharing images.
sharing:
cargo run --bin sharing --release