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
rm template_*.go
rm gen_*.go
rm tmpl_client/template_*.go
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"
go generate
go build -o Gosora
echo "Building the installer"
cd ./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"
go generate
go build -o Gosora -tags no_ws
echo "Building the installer"
cd ./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"
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"
go generate