Skip to content

Commit ac255ac

Browse files
committed
Add packing script
1 parent b4c5938 commit ac255ac

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
README.md.html
2+
*.ccmod

pack.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
BASE_NAME="$(jq '.id' ccmod.json | sed 's/^"//;s/"$//')"
3+
NAME="${BASE_NAME}.ccmod"
4+
rm -rf "$BASE_NAME"*
5+
zip -r "$NAME" ./ -x "*.ccmod" "*.zip" "node_modules/*" ".git*" "*.ts" "*.md" \
6+
"tsconfig.json" "*.sh" "package-lock.json" "pack/*" "bundle.zip" ".prettierrc.json" \
7+
"*.kra" "*.kra~" "*.png~" "src/*"

0 commit comments

Comments
 (0)