The scripts for Linux now clear out previously generated files so they shouldn't cause hassles after upgrades anymore.

This commit is contained in:
Azareal 2018-06-06 14:16:27 +10:00
parent dd75bf9ad9
commit aa073ced48
5 changed files with 27 additions and 0 deletions

View File

@ -126,6 +126,11 @@ go get -u github.com/denisenkom/go-mssqldb
go get -u github.com/fsnotify/fsnotify go get -u github.com/fsnotify/fsnotify
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
go generate go generate

View File

@ -1,6 +1,12 @@
echo "Deleting artifacts from previous builds"
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
echo "Building Gosora" echo "Building Gosora"
go generate go generate
go build -o Gosora go build -o Gosora
echo "Building the installer" echo "Building the installer"
cd ./install cd ./install
go build -o Install go build -o Install

View File

@ -1,6 +1,12 @@
echo "Deleting artifacts from previous builds"
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
echo "Building Gosora" echo "Building Gosora"
go generate go generate
go build -o Gosora -tags no_ws go build -o Gosora -tags no_ws
echo "Building the installer" echo "Building the installer"
cd ./install cd ./install
go build -o Install go build -o Install

View File

@ -1,3 +1,8 @@
echo "Deleting artifacts from previous builds"
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
echo "Generating the dynamic code" echo "Generating the dynamic code"
go generate go generate

View File

@ -1,3 +1,8 @@
echo "Deleting artifacts from previous builds"
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
echo "Generating the dynamic code" echo "Generating the dynamic code"
go generate go generate