Skip to content

Commit

Permalink
Fix on Travis Build for AgentUI
Browse files Browse the repository at this point in the history
  • Loading branch information
racerxdl committed Mar 30, 2019
1 parent fc4d0b4 commit e60c607
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ require (
github.com/mattbaird/elastigo v0.0.0-20170123220020-2fe47fd29e4b // indirect
github.com/mewkiz/pkg v0.0.0-20190222151137-b7948a1ad1b1
github.com/michaelklishin/rabbit-hole v1.5.0 // indirect
github.com/mitchellh/gox v1.0.0 // indirect
github.com/mitchellh/hashstructure v1.0.0 // indirect
github.com/mitchellh/pointerstructure v0.0.0-20170205204203-f2329fcfa9e2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand Down
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,11 @@ github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdI
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
github.com/mitchellh/gox v1.0.0 h1:7ENCygwtc/7barDq96k0JPZhvrpHO/7oihNahmrmAhg=
github.com/mitchellh/gox v1.0.0/go.mod h1:ED6BioOGXMswlXa2zxfh/xdd5QhwYliBFn9V18Ap4z4=
github.com/mitchellh/hashstructure v1.0.0 h1:ZkRJX1CyOoTkar7p/mLS5TZU4nJ1Rn/F8u9dGS02Q3Y=
github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ=
github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY=
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
github.com/mitchellh/mapstructure v1.0.0/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
Expand Down
33 changes: 29 additions & 4 deletions travis-binary-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ BUILD_LINUX_ARCH="arm arm64 386 amd64"
BUILD_OTHER_ARCH="386 amd64"
BUILD_OS="windows freebsd darwin openbsd"

export GOCACHE=/tmp/gocache

TAG=`git describe --exact-match --tags HEAD`
if [[ $? -eq 0 ]];
then
Expand Down Expand Up @@ -52,11 +54,34 @@ then
done
# ----------------------------------- #
echo "Bundling Agent-UI"
cd cmd/agent-ui
cd agent-ui

echo "Getting Dependencies"
GOOS=linux go get ./...
GOOS=darwin go get ./...
GOOS=windows go get ./...

GO111MODULE=off GOOS=linux go get ./...
GO111MODULE=off GOOS=darwin go get ./...
GO111MODULE=off GOOS=windows go get ./...

# ----------------------------------- #
echo "Installing Astilectron"
go get github.com/asticode/go-astilectron
go get github.com/asticode/go-astilectron-bootstrap
go get github.com/asticode/go-astilectron-bundler/...
go install github.com/asticode/go-astilectron-bundler/astilectron-bundler

GO111MODULE=off go get github.com/asticode/go-astilectron
GO111MODULE=off go get github.com/asticode/go-astilectron-bootstrap
GO111MODULE=off go get github.com/asticode/go-astilectron-bundler/...
GO111MODULE=off go install github.com/asticode/go-astilectron-bundler/astilectron-bundler

echo "Bundling it"
./bundleit.sh
zip -r ../../zips/AgentUI.app.zip output/darwin-amd64/AgentUI.app
zip -r ../../zips/AgentUI-windows-amd64.zip output/windows-amd64/AgentUI.exe
zip -r ../../zips/AgentUI-linux-amd64.zip output/linux-amd64/AgentUI
zip -9 -r ../../zips/AgentUI.app.zip output/darwin-amd64/AgentUI.app
zip -9 -r ../../zips/AgentUI-windows-amd64.zip output/windows-amd64/AgentUI.exe
zip -9 -r ../../zips/AgentUI-linux-amd64.zip output/linux-amd64/AgentUI
cd ../..
# ----------------------------------- #
echo "Zip Files: "
Expand Down

0 comments on commit e60c607

Please sign in to comment.