15 lines
479 B
Bash
15 lines
479 B
Bash
#!/bin/bash
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "version number required, e.g. ./build.sh 1.0.0"
|
|
exit 1
|
|
fi
|
|
rm -rf packs/abilities/ packs/gear/ packs/manual/ packs/roles/ packs/specialties/ packs/illumination-keys/
|
|
rm -rf dist/
|
|
rm -rf css/
|
|
mkdir dist
|
|
yarn gulp build
|
|
yarn gulp pack
|
|
zip -r dist/candelafvtt-v${1}.zip css/ img/ lang/ module/ packs/ templates/ ./CHANGELOG.md ./LICENSE.txt ./THIRD-PARTY-LICENSE.txt ./system.json ./template.json -x "packs/src/*"
|
|
cp system.json dist/ |