mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 21:28:29 +03:00
82d5e5c695
This reverts commit e338da9fa3
.
28 lines
553 B
Bash
Executable file
28 lines
553 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# shellcheck disable=SC2059
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
# 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
|
|
|
|
echo "Building owncast web..."
|
|
rm -rf .next
|
|
(node_modules/.bin/next build && node_modules/.bin/next export) | grep info
|
|
|
|
echo "Copying web project to dist directory..."
|
|
|
|
# Remove the old one
|
|
rm -rf ../static/web
|
|
|
|
# Copy over the new one
|
|
mv ./out ../static/web
|
|
|
|
echo "Done."
|