mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Two issues resolved relating to MySQL 8: 1. DB version checking skips MINOR/PATCH checks if MAJOR release changed. 2. Keyword 'admin' quoted to ensure MySQL compat. Closes #152
23 lines
818 B
Bash
Executable file
23 lines
818 B
Bash
Executable file
#! /bin/bash
|
|
|
|
echo "Generating in-memory static assets..."
|
|
# go get -u github.com/jteeuwen/go-bindata/...
|
|
# go get -u github.com/elazarl/go-bindata-assetfs/...
|
|
cd embed
|
|
go generate
|
|
|
|
echo "Compiling app..."
|
|
cd ..
|
|
for arch in amd64 ; do
|
|
for os in darwin linux windows ; do
|
|
if [ "$os" == "windows" ] ; then
|
|
echo "Compiling documize-community-$os-$arch.exe"
|
|
env GOOS=$os GOARCH=$arch go build -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -o bin/documize-community-$os-$arch.exe ./edition/community.go
|
|
else
|
|
echo "Compiling documize-community-$os-$arch"
|
|
env GOOS=$os GOARCH=$arch go build -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -o bin/documize-community-$os-$arch ./edition/community.go
|
|
fi
|
|
done
|
|
done
|
|
|
|
echo "Finished."
|