6464 brute : false
6565
6666archives :
67- - format : tar.gz
67+ - formats : [ " tar.gz" ]
6868 # this name template makes the OS and Arch compatible with the results of uname.
6969 name_template : >-
7070 {{ .ProjectName }}_
@@ -76,7 +76,7 @@ archives:
7676 # use zip for windows archives
7777 format_overrides :
7878 - goos : windows
79- format : zip
79+ formats : [ " zip" ]
8080 files :
8181 - LICENSE
8282 - README.md
@@ -88,7 +88,7 @@ checksum:
8888 name_template : " checksums.txt"
8989
9090snapshot :
91- name_template : " {{ incpatch .Version }}-next"
91+ version_template : " {{ incpatch .Version }}-next"
9292
9393changelog :
9494 sort : asc
@@ -120,8 +120,10 @@ docker_signs:
120120 - " ${artifact}@${digest}"
121121 - " --yes"
122122
123- brews :
123+ homebrew_casks :
124124 - name : papercrypt
125+ conflicts :
126+ - formula : papercrypt
125127 # alternative_names:
126128 # - papercrypt@{{ .Version }}
127129 # - papercrypt@{{ .Major }}.{{ .Minor }}
@@ -140,14 +142,20 @@ brews:
140142 caveats : |
141143 To get started, run:
142144 papercrypt help
143- test : |
144- system "#{bin}/papercrypt version"
145- # we want to install the shell completions and man pages
146- extra_install : |
147- bash_completion.install "completions/papercrypt.bash" => "papercrypt"
148- fish_completion.install "completions/papercrypt.fish"
149- zsh_completion.install "completions/papercrypt.zsh" => "_papercrypt"
150- man1.install "manpages/papercrypt.1.gz"
145+ manpages :
146+ - manpages/papercrypt.1.gz
147+ completions :
148+ bash : " completions/papercrypt.bash"
149+ fish : " completions/papercrypt.fish"
150+ zsh : " completions/papercrypt.zsh"
151+ hooks :
152+ post :
153+ install : |
154+ if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
155+ system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/papercrypt"]
156+ end
157+
158+ system_command "#{staged_path}/papercrypt", args: ["version"]
151159
152160scoops :
153161 - name : papercrypt
@@ -161,7 +169,7 @@ scoops:
161169 homepage : *homepage
162170 description : *description
163171 license : *license
164- shortcuts : [[ "papercrypt.exe", "papercrypt"] ]
172+ shortcuts : [ [ "papercrypt.exe", "papercrypt" ] ]
165173
166174# winget:
167175# - name: papercrypt
0 commit comments