mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix build script
This commit is contained in:
parent
e643727be5
commit
b6085130c6
@ -12,6 +12,7 @@ VERSION=$1
|
|||||||
|
|
||||||
if [[ -z "${VERSION}" ]]; then
|
if [[ -z "${VERSION}" ]]; then
|
||||||
echo "Version must be specified when running build"
|
echo "Version must be specified when running build"
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -z "${VERSION}" ]] && VERSION='unknownver' || VERSION="${VERSION}"
|
[[ -z "${VERSION}" ]] && VERSION='unknownver' || VERSION="${VERSION}"
|
||||||
@ -37,10 +38,13 @@ build() {
|
|||||||
echo "Building ${NAME} (${OS}/${ARCH}) release..."
|
echo "Building ${NAME} (${OS}/${ARCH}) release..."
|
||||||
|
|
||||||
mkdir -p dist/${NAME}/config
|
mkdir -p dist/${NAME}/config
|
||||||
|
mkdir -p dist/${NAME}/webroot/static
|
||||||
|
mkdir -p dist/${NAME}/static
|
||||||
|
|
||||||
# Default files
|
# Default files
|
||||||
cp config/config-example.yaml dist/${NAME}/config/config.yaml
|
cp config/config-example.yaml dist/${NAME}/config/config.yaml
|
||||||
cp webroot/static/content-example.md dist/${NAME}/webroot/static/content.md
|
cp webroot/static/content-example.md dist/${NAME}/webroot/static/content.md
|
||||||
|
cp webroot/img/logo.png dist/${NAME}/static/logo.png
|
||||||
|
|
||||||
cp -R webroot/ dist/${NAME}/webroot/
|
cp -R webroot/ dist/${NAME}/webroot/
|
||||||
cp -R doc/ dist/${NAME}/doc/
|
cp -R doc/ dist/${NAME}/doc/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user