You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
741 B
38 lines
741 B
#!/bin/bash
|
|
|
|
#
|
|
# Webpack will first clean the dist directory, then produce the build artifacts
|
|
# to that directory.
|
|
#
|
|
echo "Generating Webpack build artifacts..."
|
|
yarn webpack --config webpack.config.js
|
|
|
|
#
|
|
# Copy game/assets and other static assets dist
|
|
#
|
|
echo "Copying game static assets..."
|
|
cp -R ./game/assets ./dist/
|
|
cp ./game/CREDITS.md ./dist/CREDITS.md
|
|
cp ./game/views/game-view.pug ./dist/game-view.pug
|
|
|
|
#
|
|
# Create the hostable application bundle
|
|
#
|
|
|
|
DATE=`date +%Y-%m-%d`
|
|
FILENAME=nice-bundle-${DATE}.tar.gz
|
|
|
|
mkdir -p bundle
|
|
|
|
echo "Generating Nice Game Bundle..."
|
|
tar -czf ./bundle/${FILENAME} dist/*
|
|
|
|
echo "Done"
|
|
echo ""
|
|
|
|
echo "Game distributables:"
|
|
tree -L 1 dist
|
|
echo ""
|
|
|
|
echo "Game bundle file:"
|
|
ls -lh ./bundle/${FILENAME}
|