mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Add script to build and bundle admin
This commit is contained in:
parent
8aa5c33999
commit
f8068826ab
1 changed files with 13 additions and 0 deletions
13
scripts/bundleAdmin.sh
Executable file
13
scripts/bundleAdmin.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
PROJECT_SOURCE_DIR=$(pwd)
|
||||
mkdir $TMPDIR/admin 2> /dev/null
|
||||
cd $TMPDIR/admin
|
||||
git clone --depth 1 https://github.com/owncast/owncast-admin 2> /dev/null
|
||||
cd owncast-admin
|
||||
npm --silent install 2> /dev/null
|
||||
(node_modules/.bin/next build && node_modules/.bin/next export) | grep info
|
||||
ADMIN_BUILD_DIR=$(pwd)
|
||||
cd $PROJECT_SOURCE_DIR
|
||||
mkdir webroot/admin 2> /dev/null
|
||||
cd webroot/admin
|
||||
cp -R ${ADMIN_BUILD_DIR}/out/* .
|
||||
rm -rf $TMPDIR/admin
|
Loading…
Reference in a new issue