5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 16:30:27 +00:00

Merge pull request #359 from neilalexander/macospkg

Fix macOS package
This commit is contained in:
Neil Alexander 2019-03-04 08:38:41 +00:00 committed by GitHub
commit 1e2436f5c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,15 +94,13 @@ jobs:
- run: - run:
name: Build for macOS name: Build for macOS
command: | command: |
rm -f {yggdrasil,yggdrasilctl}
GO111MODULE=on GOOS=darwin GOARCH=amd64 ./build GO111MODULE=on GOOS=darwin GOARCH=amd64 ./build
mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-darwin-amd64 cp yggdrasil /tmp/upload/$CINAME-$CIVERSION-darwin-amd64
mv yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-darwin-amd64; cp yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-darwin-amd64;
- run: - run:
name: Build for macOS (.pkg format) name: Build for macOS (.pkg format)
command: | command: |
rm -rf {yggdrasil,yggdrasilctl}
PKGARCH=amd64 sh contrib/macos/create-pkg.sh PKGARCH=amd64 sh contrib/macos/create-pkg.sh
mv *.pkg /tmp/upload/ mv *.pkg /tmp/upload/