diff --git a/.goreleaser.yml b/.goreleaser.yml index 14e4106dee..3e754b2b72 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -97,8 +97,8 @@ builds: hooks: post: - cmd: make download-licenses - - cmd: scripts/gon_filepath_editor.sh {{ .Path }} {{ .Target }} - - cmd: gon dist/gon_confluent_{{ .Target }}.hcl + - cmd: scripts/gon_filepath_editor.sh {{ .Path }} amd64 + - cmd: gon dist/gon_confluent_amd64.hcl - binary: confluent id: signed-arm64 main: cmd/confluent/main.go @@ -118,8 +118,8 @@ builds: - arm64 hooks: post: - - cmd: scripts/gon_filepath_editor.sh {{ .Path }} {{ .Target }} - - cmd: gon dist/gon_confluent_{{ .Target }}.hcl + - cmd: scripts/gon_filepath_editor.sh {{ .Path }} arm64 + - cmd: gon dist/gon_confluent_arm64.hcl archives: - id: binary diff --git a/scripts/gon_confluent.hcl b/scripts/gon_confluent_amd64.hcl similarity index 67% rename from scripts/gon_confluent.hcl rename to scripts/gon_confluent_amd64.hcl index 4b43f6c9d2..96fb0b7879 100644 --- a/scripts/gon_confluent.hcl +++ b/scripts/gon_confluent_amd64.hcl @@ -7,3 +7,7 @@ apple_id { sign { application_identity = "Developer ID Application: Confluent, Inc." } + +zip { + output_path = "./dist/confluent_darwin_amd64/confluent_signed.zip" +} diff --git a/scripts/gon_confluent_arm64.hcl b/scripts/gon_confluent_arm64.hcl new file mode 100644 index 0000000000..80ed087865 --- /dev/null +++ b/scripts/gon_confluent_arm64.hcl @@ -0,0 +1,13 @@ +source = ["path/to/file"] +bundle_id = "io.confluent.cli.confluent" + +apple_id { +} + +sign { + application_identity = "Developer ID Application: Confluent, Inc." +} + +zip { + output_path = "./dist/confluent_darwin_arm64/confluent_signed.zip" +} diff --git a/scripts/gon_filepath_editor.sh b/scripts/gon_filepath_editor.sh index 378113c5a7..c555000e08 100755 --- a/scripts/gon_filepath_editor.sh +++ b/scripts/gon_filepath_editor.sh @@ -1,4 +1,4 @@ #!/bin/bash # run sed inside this script to get around difficulties in running it directly inside a post hook -sed "s|path/to/file|$1|" scripts/gon_confluent.hcl > dist/gon_confluent_$2.hcl +sed "s|path/to/file|$1|" scripts/gon_confluent_$2.hcl > dist/gon_confluent_$2.hcl