BarrelWeightTweaker 0.2.0

- configurable weight
This commit is contained in:
2026-05-09 12:36:51 +02:00
parent 0746b8771c
commit 8897832660
9 changed files with 44 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
mod_name := `jq -r .name src/info.json`
version := `jq -r .version src/info.json`
zip_file := mod_name + "_" + version + ".zip"
default: build
build:
mkdir -p target
rm -f "target/{{zip_file}}"
rm -rf "target/{{mod_name}}"
mkdir -p "target/{{mod_name}}"
cp -a src/. "target/{{mod_name}}/"
cd target && zip -qr "{{zip_file}}" "{{mod_name}}"
rm -rf "target/{{mod_name}}"
clean:
rm -rf target