More fail-safes for weird occurences.
Avoid duplicating logic in the shell files.
This commit is contained in:
parent
235b7efa1a
commit
9859042f54
|
@ -1,6 +1,5 @@
|
||||||
echo "Updating the dependencies"
|
echo "Updating the dependencies"
|
||||||
go get
|
./update-deps-linux
|
||||||
go get -u github.com/mailru/easyjson/...
|
|
||||||
|
|
||||||
echo "Updating Gosora"
|
echo "Updating Gosora"
|
||||||
git stash
|
git stash
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
echo "Building the patcher"
|
echo "Building the patcher"
|
||||||
go generate
|
go generate
|
||||||
|
./update-deps-linux
|
||||||
go build -ldflags="-s -w" -o Patcher "./patcher"
|
go build -ldflags="-s -w" -o Patcher "./patcher"
|
|
@ -1,7 +1,5 @@
|
||||||
echo "Installing the dependencies"
|
echo "Installing the dependencies"
|
||||||
go get -u github.com/mailru/easyjson/...
|
./update-deps-linux
|
||||||
easyjson -pkg common
|
|
||||||
go get
|
|
||||||
|
|
||||||
echo "Building the installer"
|
echo "Building the installer"
|
||||||
go build -ldflags="-s -w" -o Installer "./cmd/install"
|
go build -ldflags="-s -w" -o Installer "./cmd/install"
|
||||||
|
|
|
@ -1,9 +1,19 @@
|
||||||
echo "Updating the dependencies"
|
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
|
go get
|
||||||
{
|
{
|
||||||
easyjson -pkg common
|
easyjson -pkg common
|
||||||
} || {
|
} || {
|
||||||
echo "Defaulting to bundled generated easyjson file"
|
echo "Defaulting to bundled generated easyjson file"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
go get
|
go get
|
||||||
|
} || {
|
||||||
|
go get -u github.com/mailru/easyjson/...
|
||||||
|
go get
|
||||||
|
}
|
Loading…
Reference in New Issue