make it possible to set release profile for rkgk in justfile

This commit is contained in:
liquidex 2024-08-24 12:53:52 +02:00
parent b2e43838d5
commit c6870cb22d

View file

@ -1,10 +1,12 @@
port := "8080"
profile := "dev"
wasm_profile := "wasm-" + profile
serve wasm_profile="wasm-dev": (wasm wasm_profile)
RKGK_PORT={{port}} RKGK_WASM_PATH=target/wasm32-unknown-unknown/{{wasm_profile}} cargo run -p rkgk
serve: wasm
RKGK_PORT={{port}} RKGK_WASM_PATH=target/wasm32-unknown-unknown/{{wasm_profile}} cargo run -p rkgk --profile {{profile}}
wasm profile="wasm-dev":
cargo build -p haku-wasm --target wasm32-unknown-unknown --profile {{profile}}
wasm:
cargo build -p haku-wasm --target wasm32-unknown-unknown --profile {{wasm_profile}}
deploy:
bash admin/deploy.bash