More fail-safes for weird occurences.

Avoid duplicating logic in the shell files.
This commit is contained in:
Azareal 2019-09-29 17:06:00 +10:00
parent 235b7efa1a
commit 9859042f54
4 changed files with 15 additions and 7 deletions

View File

@ -1,6 +1,5 @@
echo "Updating the dependencies"
go get
go get -u github.com/mailru/easyjson/...
./update-deps-linux
echo "Updating Gosora"
git stash

View File

@ -1,3 +1,4 @@
echo "Building the patcher"
go generate
./update-deps-linux
go build -ldflags="-s -w" -o Patcher "./patcher"

View File

@ -1,7 +1,5 @@
echo "Installing the dependencies"
go get -u github.com/mailru/easyjson/...
easyjson -pkg common
go get
./update-deps-linux
echo "Building the installer"
go build -ldflags="-s -w" -o Installer "./cmd/install"

View File

@ -1,9 +1,19 @@
echo "Updating the dependencies"
cp ./common/common_easyjson.tgo ./common/common_easyjson.go
{
cp ./common/common_easyjson.tgo ./common/common_easyjson.go
} || {
echo "Failed to copy bundled generated easyjson file"
}
go get
{
easyjson -pkg common
} || {
echo "Defaulting to bundled generated easyjson file"
}
go get
{
go get
} || {
go get -u github.com/mailru/easyjson/...
go get
}