Skip to content

Commit

Permalink
restore archiving in gon files (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgagniere authored Oct 22, 2022
1 parent 0f5ad32 commit 28db5d8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions scripts/gon_confluent.hcl → scripts/gon_confluent_amd64.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ apple_id {
sign {
application_identity = "Developer ID Application: Confluent, Inc."
}

zip {
output_path = "./dist/confluent_darwin_amd64/confluent_signed.zip"
}
13 changes: 13 additions & 0 deletions scripts/gon_confluent_arm64.hcl
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion scripts/gon_filepath_editor.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 28db5d8

Please sign in to comment.