Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenBagTwo committed Dec 12, 2022
1 parent c0c67b6 commit 93dfb60
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
release/
26 changes: 26 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -e
version=v$(date '+%Y.%m.%d')
mkdir -p release

for pack in *; do
if [ ! -d "$pack" ]; then
continue
fi
if [ "$pack" = "release" ]; then
continue
fi

echo Compressing $pack
(cd "$pack" && zip -rq ../release/"$pack $version".zip *)
echo Created release/"$pack $version".zip
done

(
cd release
rpdp="Chappeau Resourcepack $version (Datapack Inside).zip"
echo Creating combo resource / data pack
cp "Chappeau Resourcepack $version.zip" "$rpdp"
zip -uq "$rpdp" "Chappeau Datapack $version.zip"
echo Created release/"$rpdp"
)

0 comments on commit 93dfb60

Please sign in to comment.