From f67650c86ee7664ddbc552b23b98bd37aeee65fc Mon Sep 17 00:00:00 2001 From: Feufochmar Date: Wed, 6 Nov 2019 12:36:56 +0100 Subject: [PATCH] Add script to make the itch.io archives --- make-archive.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 make-archive.sh diff --git a/make-archive.sh b/make-archive.sh new file mode 100755 index 0000000..5401d33 --- /dev/null +++ b/make-archive.sh @@ -0,0 +1,28 @@ +#! /bin/sh + +# Normal Package +PACKAGE=gener-communes +VERSION=1.0 + +ARCHIVE_DIR=$PACKAGE-$VERSION + +rm -rf $ARCHIVE_DIR +rm -f $ARCHIVE_DIR.zip +mkdir $ARCHIVE_DIR + +cp {*.rkt,extract.sh,make-archive.sh,COPYING,README.md} $ARCHIVE_DIR +mkdir -p $ARCHIVE_DIR/web +cp web/{index.html,gener-communes.css,gener-communes.js} $ARCHIVE_DIR/web + +zip -r $ARCHIVE_DIR.zip $ARCHIVE_DIR + +# Itch.io HTML5 game +ITCH_ARCHIVE_DIR=itch-$ARCHIVE_DIR + +rm -rf $ITCH_ARCHIVE_DIR +rm -f $ITCH_ARCHIVE_DIR.zip +mkdir $ITCH_ARCHIVE_DIR +cp web/{gener-communes.json,index.html,gener-communes.css,gener-communes.js} $ITCH_ARCHIVE_DIR +cd $ITCH_ARCHIVE_DIR +zip ../$ITCH_ARCHIVE_DIR.zip ./* +cd -