From b6085130c6e75daa7fe1248eafbd23172ff09716 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 22 Jun 2020 09:53:26 -0700 Subject: [PATCH] Fix build script --- scripts/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 3df1859f5..291b8bc95 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -12,6 +12,7 @@ VERSION=$1 if [[ -z "${VERSION}" ]]; then echo "Version must be specified when running build" + exit fi [[ -z "${VERSION}" ]] && VERSION='unknownver' || VERSION="${VERSION}" @@ -37,10 +38,13 @@ build() { echo "Building ${NAME} (${OS}/${ARCH}) release..." mkdir -p dist/${NAME}/config + mkdir -p dist/${NAME}/webroot/static + mkdir -p dist/${NAME}/static # Default files cp config/config-example.yaml dist/${NAME}/config/config.yaml 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 doc/ dist/${NAME}/doc/