Skip to content

Commit

Permalink
feat: put mod scale in name
Browse files Browse the repository at this point in the history
  • Loading branch information
bend-n committed Sep 27, 2022
1 parent 6117a42 commit 9add562
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "hortiDefinition",
"displayName": "hortiDefinition",
"author": "hortiSquash + bendn",
"description": "TexturePack with HD sprites",
"description": "Texture pack with HD sprites",
"version": "0.1.0",
"minGameVersion": "139",
"hidden": "true",
Expand Down
8 changes: 6 additions & 2 deletions prepare-artifact.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

echo "::group::artifact x$1"

l=$(pwd)
bash export.sh "$1"
# python3 trim.py "sprites-override"
Expand All @@ -11,8 +13,10 @@ cp -r "sprites-override" "mod.json" "README.md" "icon.png" "$tmp_folder"
cd "$tmp_folder"
# tree .
jq ".texturescale = $(bc -l <<<"1/$1")" mod.json | sponge mod.json
jq . mod.json
zip -qr "hortiDefinition_x$1.zip" .
jq ".name = \"$(jq -r ".name" mod.json) x$1\"" mod.json | sponge mod.json

zip -qr "hortiDefinition_x$1.zip" .
mv "hortiDefinition_x$1.zip" "$l"
cd "$l" && rm -r "$tmp_folder"

echo "::endgroup::"

0 comments on commit 9add562

Please sign in to comment.