From 4d49fa6979e9a3e7c0497d2ddc47d517951ad43b Mon Sep 17 00:00:00 2001 From: Julien BIANCHI Date: Mon, 2 Nov 2026 16:46:43 +0100 Subject: [PATCH 1/3] feat(homebrew): add a cask for the Mac app The DMG is served at an unversioned URL and the app updates itself, so the cask follows the latest release and lets the app handle upgrades. --- Casks/devnull.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Casks/devnull.rb diff --git a/Casks/devnull.rb b/Casks/devnull.rb new file mode 100644 index 0000000..98a4b7f --- /dev/null +++ b/Casks/devnull.rb @@ -0,0 +1,20 @@ +cask "devnull" do + version :latest + sha256 :no_check + + url "https://dev-null.sh/downloads/DevNull.dmg" + name "DevNull" + desc "Social network for devs" + homepage "https://dev-null.sh/apps" + + depends_on macos: :sonoma + + app "DevNull.app" + + zap trash: [ + "~/Library/Caches/sh.dev-null.mac", + "~/Library/HTTPStorages/sh.dev-null.mac", + "~/Library/Preferences/sh.dev-null.mac.plist", + "~/Library/Saved Application State/sh.dev-null.mac.savedState", + ] +end From 05345209f97a81738d6d7391b0ce178cc130b3d6 Mon Sep 17 00:00:00 2001 From: Julien BIANCHI Date: Mon, 2 Nov 2026 17:13:13 +0100 Subject: [PATCH 2/3] ci(cask): lint and audit the Homebrew cask --- .github/workflows/cask.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/cask.yml diff --git a/.github/workflows/cask.yml b/.github/workflows/cask.yml new file mode 100644 index 0000000..c73c37f --- /dev/null +++ b/.github/workflows/cask.yml @@ -0,0 +1,21 @@ +name: Cask + +on: + push: + branches: [production] + paths: [Casks/**, .github/workflows/cask.yml] + pull_request: + paths: [Casks/**, .github/workflows/cask.yml] + +jobs: + audit: + runs-on: macos-15 + env: + HOMEBREW_NO_AUTO_UPDATE: 1 + steps: + - uses: actions/checkout@v4 + - run: brew update + - run: brew tap dev-null-sh/devnull "$GITHUB_WORKSPACE" + - run: brew trust dev-null-sh/devnull + - run: brew style --cask dev-null-sh/devnull/devnull + - run: brew audit --cask --strict --online dev-null-sh/devnull/devnull From 7c456724d9e59e59464caffafa9c37c1a6a618c6 Mon Sep 17 00:00:00 2001 From: Julien BIANCHI Date: Mon, 2 Nov 2026 17:13:13 +0100 Subject: [PATCH 3/3] docs(readme): explain how to install the app with Homebrew --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..772208d --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# /dev/null for Mac + +The native Mac app for [/dev/null](https://dev-null.sh), a social network for devs. It needs macOS 14 or later. + +## Install + +Download the DMG from [dev-null.sh/apps](https://dev-null.sh/apps), or install it with [Homebrew](https://brew.sh): + +```sh +brew tap dev-null-sh/devnull https://github.com/dev-null-sh/mac-os-app +brew install --cask dev-null-sh/devnull/devnull +``` + +The cask always installs the latest release, and the app updates itself from then on.