CyTube/postinstall.sh

15 lines
248 B
Bash
Raw Normal View History

#!/bin/sh
set -e
2020-10-23 18:51:59 +00:00
if ! command -v npm >/dev/null; then
echo "Could not find npm in \$PATH"
exit 1
fi
echo "Building from src/ to lib/"
2020-10-23 18:51:59 +00:00
npm run build-server
echo "Building from player/ to www/js/player.js"
2020-10-23 18:51:59 +00:00
npm run build-player
echo "Done"