Project restructure (#18)
* First pass at restructuring the project; untested but it does compile * Restructure builds and runs 🎉 * Add the dist folder to the gitignore * Update core/playlist/monitor.go * golint and reorganize the monitor.go file Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
@@ -37,12 +37,12 @@ build() {
|
||||
|
||||
echo "Building ${NAME} (${OS}/${ARCH}) release..."
|
||||
|
||||
mkdir -p dist/${NAME}/config
|
||||
mkdir -p dist/${NAME}
|
||||
mkdir -p dist/${NAME}/webroot/static
|
||||
mkdir -p dist/${NAME}/static
|
||||
|
||||
# Default files
|
||||
cp config/config-example.yaml dist/${NAME}/config/config.yaml
|
||||
cp config-example.yaml dist/${NAME}/config.yaml
|
||||
cp webroot/static/content-example.md dist/${NAME}/webroot/static/content.md
|
||||
cp webroot/img/logo.png dist/${NAME}/static/logo.png
|
||||
|
||||
@@ -50,7 +50,7 @@ build() {
|
||||
cp -R doc/ dist/${NAME}/doc/
|
||||
cp README.md dist/${NAME}
|
||||
|
||||
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH go build -ldflags "-X main.GitCommit=$GIT_COMMIT -X main.BuildVersion=$VERSION -X main.BuildType=$NAME" -a -o dist/$NAME/owncast
|
||||
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH go build -ldflags "-X core.GitCommit=$GIT_COMMIT -X core.BuildVersion=$VERSION -X core.BuildType=$NAME" -a -o dist/$NAME/owncast
|
||||
|
||||
pushd dist/${NAME} >> /dev/null
|
||||
zip -r -q -8 ../owncast-$NAME-$VERSION.zip .
|
||||
|
||||
Reference in New Issue
Block a user