mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
Release fleetctl for macOS as a universal binary (native support for both amd64 and arm64 architectures). (#16346)
Release fleetctl for macOS as a universal binary (native support for both amd64 and arm64 architectures). #9047 Tested goreleaser locally.
This commit is contained in:
parent
9f244bb787
commit
b8ccebcbca
@ -40,7 +40,6 @@ builds:
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- darwin
|
||||
- linux
|
||||
- windows
|
||||
goarch:
|
||||
@ -55,6 +54,32 @@ builds:
|
||||
- -X github.com/fleetdm/fleet/v4/server/version.buildDate={{ time "2006-01-02" }}
|
||||
- -X github.com/fleetdm/fleet/v4/server/version.buildUser={{ .Env.USER }}
|
||||
|
||||
- id: fleetctl-macos
|
||||
dir: ./cmd/fleetctl/
|
||||
binary: fleetctl
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- darwin
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -X github.com/fleetdm/fleet/v4/server/version.appName={{ .ArtifactName }}
|
||||
- -X github.com/fleetdm/fleet/v4/server/version.version={{ .Version }}
|
||||
- -X github.com/fleetdm/fleet/v4/server/version.branch={{ .Branch }}
|
||||
- -X github.com/fleetdm/fleet/v4/server/version.revision={{ .FullCommit }}
|
||||
- -X github.com/fleetdm/fleet/v4/server/version.buildDate={{ time "2006-01-02" }}
|
||||
- -X github.com/fleetdm/fleet/v4/server/version.buildUser={{ .Env.USER }}
|
||||
|
||||
universal_binaries:
|
||||
- id: fleetctl # resulting binary id
|
||||
ids: [fleetctl-macos] # source binaries
|
||||
replace: true
|
||||
name_template: fleetctl # resulting binary name
|
||||
|
||||
archives:
|
||||
- id: fleet
|
||||
builds:
|
||||
|
1
changes/9047-fleetctl-universal-binary
Normal file
1
changes/9047-fleetctl-universal-binary
Normal file
@ -0,0 +1 @@
|
||||
Release fleetctl for macOS as a universal binary (native support for both amd64 and arm64 architectures).
|
Loading…
Reference in New Issue
Block a user