From 09ec41a5e98ced1b38471291e281a6435ed0e9c4 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Fri, 16 Oct 2026 02:12:26 +0300 Subject: [PATCH] packaging(homebrew): cask on v2026.41, install through a local tap (#1825) Homebrew dropped --no-quarantine and installs casks only from a tap, so the README's direct-URL install no longer worked, and the cask still pointed at v0.4.8. Co-Authored-By: Claude Opus 5.5 --- packaging/homebrew/README.md | 21 ++++++++++++++------- packaging/homebrew/open-cad-studio.rb | 12 +++++------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/packaging/homebrew/README.md b/packaging/homebrew/README.md index faadb292a..b175c5405 100644 --- a/packaging/homebrew/README.md +++ b/packaging/homebrew/README.md @@ -3,24 +3,31 @@ [`open-cad-studio.rb`](open-cad-studio.rb) is a [Homebrew Cask](https://docs.brew.sh/Cask-Cookbook) for installing the macOS (Apple Silicon) build. -## Install without a tap (directly from this file) +## Install through a local tap + +Current Homebrew installs casks only from a tap, not from a URL or a file +path, and it no longer has `--no-quarantine`. Until a public tap exists, put +the cask in a local one: ```bash -brew install --cask --no-quarantine \ +brew tap-new --no-git local/tap +mkdir -p "$(brew --repository local/tap)/Casks" +curl -fsSL -o "$(brew --repository local/tap)/Casks/open-cad-studio.rb" \ https://raw.githubusercontent.com/HakanSeven12/OpenCADStudio/main/packaging/homebrew/open-cad-studio.rb +brew install --cask local/tap/open-cad-studio ``` -`--no-quarantine` is required: the app is ad-hoc signed but **not** Apple-notarised -(notarisation needs a paid Apple Developer ID), so without it Gatekeeper still -blocks the first launch. +The app is ad-hoc signed but **not** Apple-notarised (notarisation needs a paid +Apple Developer ID), so macOS blocks the first launch once: approve it in +System Settings > Privacy & Security > Open Anyway. -## Publishing as a proper tap (recommended) +## Publishing as a proper tap Create a separate GitHub repo named `homebrew-tap` under the same account, put a copy of `open-cad-studio.rb` in its `Casks/` directory, then users can run: ```bash -brew install --cask --no-quarantine hakanseven12/tap/open-cad-studio +brew install --cask hakanseven12/tap/open-cad-studio ``` `brew upgrade` then keeps the app current automatically. diff --git a/packaging/homebrew/open-cad-studio.rb b/packaging/homebrew/open-cad-studio.rb index 774cfc0c4..b709a5cf1 100644 --- a/packaging/homebrew/open-cad-studio.rb +++ b/packaging/homebrew/open-cad-studio.rb @@ -1,6 +1,6 @@ cask "open-cad-studio" do - version "0.4.8" - sha256 "8fa92be6045c57ac1994bd20fbb2def7269e25c327b7e62cb59745977c66f421" + version "2026.41" + sha256 "37f61cde861510cd83202bb854c64b16e3c1fa68187aeccf09e65395fd9d0198" url "https://github.com/HakanSeven12/OpenCADStudio/releases/download/v#{version}/OpenCADStudio-v#{version}-macos-arm64.dmg", verified: "github.com/HakanSeven12/OpenCADStudio/" @@ -13,11 +13,9 @@ cask "open-cad-studio" do app "OpenCADStudio.app" - # The app is ad-hoc signed but not notarised (no paid Apple Developer ID). - # Install with `--no-quarantine` so Gatekeeper does not block first launch: - # brew install --cask --no-quarantine packaging/homebrew/open-cad-studio.rb - # or, once published to a tap: - # brew install --cask --no-quarantine hakanseven12/tap/open-cad-studio + # The app is ad-hoc signed but not notarised (no paid Apple Developer ID), + # so macOS asks once on first launch: System Settings > Privacy & Security > + # Open Anyway. Homebrew installs casks only from a tap; see README.md. zap trash: [ "~/Library/Application Support/OpenCADStudio",