2022-11-03 21:51:22 +01:00
|
|
|
builds:
|
2022-11-08 17:08:17 +01:00
|
|
|
- id: zrok-amd64
|
|
|
|
main: ./cmd/zrok
|
2022-11-03 21:51:22 +01:00
|
|
|
binary: zrok
|
2023-01-13 21:01:34 +01:00
|
|
|
ldflags: "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}"
|
2022-11-03 21:51:22 +01:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1
|
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
2022-11-08 17:08:17 +01:00
|
|
|
hooks:
|
2023-11-03 20:30:19 +01:00
|
|
|
post:
|
|
|
|
- cmd: 'codesign -s "Developer ID Application: NetFoundry Inc" -v dist/zrok-amd64_darwin_amd64_v1/zrok --options=runtime'
|
|
|
|
output: true
|
|
|
|
- cmd: zip "dist/zrok-amd64_darwin_amd64_v1/zrok.zip" dist/zrok-amd64_darwin_amd64_v1/zrok
|
|
|
|
- cmd: xcrun notarytool submit "dist/zrok-amd64_darwin_amd64_v1/zrok.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id MN5S649TXM --wait
|
|
|
|
output: true
|
2022-11-08 17:08:17 +01:00
|
|
|
|
|
|
|
- id: zrok-arm64
|
|
|
|
main: ./cmd/zrok
|
|
|
|
binary: zrok
|
2023-01-13 21:01:34 +01:00
|
|
|
ldflags: "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}"
|
2022-11-08 17:08:17 +01:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1
|
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- arm64
|
|
|
|
hooks:
|
2023-11-03 20:30:19 +01:00
|
|
|
post:
|
|
|
|
- cmd: 'codesign -s "Developer ID Application: NetFoundry Inc" -v dist/zrok-arm64_darwin_arm64/zrok --options=runtime'
|
|
|
|
output: true
|
|
|
|
- cmd: zip "dist/zrok-arm64_darwin_arm64/zrok.zip" dist/zrok-arm64_darwin_arm64/zrok
|
|
|
|
- cmd: xcrun notarytool submit "dist/zrok-arm64_darwin_arm64/zrok.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id MN5S649TXM --wait
|
|
|
|
output: true
|