Compare commits
2 commits
10763aaffb
...
67e6b95043
Author | SHA1 | Date | |
---|---|---|---|
67e6b95043 | |||
f1bf47dc5a |
2 changed files with 24 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
build
|
||||
build.zip
|
22
build.sh
Executable file
22
build.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
# create the build dir if it doesn't already exist
|
||||
mkdir -p ./build
|
||||
|
||||
# move all necessary files to the build dir
|
||||
cp -r {assets,pack.png,pack.mcmeta} ./build
|
||||
|
||||
# change working dir into the build dir
|
||||
cd build
|
||||
|
||||
# remove all the gimp files (those don't do anything in the final build)
|
||||
find . -name "*.xcf" -type f -delete
|
||||
|
||||
# zip all files in build dir recursively, into build.zip in base folder. use -0 flag to disable compression.
|
||||
zip -r ../build.zip . -0
|
||||
|
||||
# change back to root dir
|
||||
cd ..
|
||||
|
||||
# nuke the build dir
|
||||
rm -r build
|
||||
|
||||
echo "file built to build.zip"
|
Loading…
Reference in a new issue