From db671c227b5735e1c2983d4881f884b7ea00737e Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 17 Jun 2025 16:34:04 +0200 Subject: [PATCH] ci: update gorelease homebrew --- .goreleaser.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 0e0a5d65..a6c26a78 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -188,15 +188,26 @@ docker_manifests: image_templates: - "filebrowser/filebrowser:v{{ .Major }}-amd64-s6" - "filebrowser/filebrowser:v{{ .Major }}-arm64-s6" -brews: + +homebrew_casks: - name: filebrowser repository: owner: filebrowser name: homebrew-tap - directory: Formula - homepage: https://filebrowser.org commit_author: name: FileBrowser Robot email: robot@filebrowser.org + homepage: https://github.com/filebrowser/filebrowser description: File Browser is a create-your-own-cloud-kind of software where you can install it on a server, direct it to a path and then access your files through a nice web interface license: "MIT" + # make the old formula conflict with the cask: + conflicts: + - formula: filebrowser + # if your app/binary isn't signed and notarized, you'll need this: + hooks: + post: + install: | + if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0 + # replace 'foo' with the actual binary name + system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/foo"] + end