Add: Justfile to replace cmake and make
This commit is contained in:
13
justfile
Normal file
13
justfile
Normal file
@@ -0,0 +1,13 @@
|
||||
# justfile (cross-platform, no bash)
|
||||
python := env_var_or_default("PYTHON", if os() == "windows" { "python" } else { "python3" })
|
||||
dist_dir := "dist"
|
||||
stage_root := "target/release-package"
|
||||
|
||||
default:
|
||||
@just --list
|
||||
|
||||
release bin='' target='':
|
||||
{{python}} scripts/release_meta.py --bin "{{bin}}" --target "{{target}}" --dist-dir "{{dist_dir}}" --stage-root "{{stage_root}}"
|
||||
|
||||
clean-dist:
|
||||
{{python}} -c "import shutil; shutil.rmtree('dist', ignore_errors=True); shutil.rmtree('target/release-package', ignore_errors=True)"
|
||||
Reference in New Issue
Block a user