mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 12:18:02 +03:00
Add offline option to bundle web.sh (#3202)
* add offline option to bundleWeb.sh * fix offline flag for bundleWeb.sh --------- Co-authored-by: janWilejan <>
This commit is contained in:
parent
5748fe1b92
commit
f762d7d65b
1 changed files with 15 additions and 2 deletions
|
@ -5,13 +5,26 @@ set -o errexit
|
|||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
OFFLINE=
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
--offline)
|
||||
OFFLINE=1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# Change to the root directory of the repository
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
|
||||
cd web
|
||||
|
||||
echo "Installing npm modules for the owncast web..."
|
||||
npm --silent install 2>/dev/null
|
||||
if [ ! "$OFFLINE" ]
|
||||
then
|
||||
echo "Installing npm modules for the owncast web..."
|
||||
npm --silent install 2>/dev/null
|
||||
fi
|
||||
|
||||
echo "Building owncast web..."
|
||||
rm -rf .next
|
||||
|
|
Loading…
Reference in a new issue