Skip to content

Commit

Permalink
Merge pull request #30 from daeho-ro/zen
Browse files Browse the repository at this point in the history
zen: add new cask, update caveats for not signed casks
  • Loading branch information
daeho-ro authored Aug 31, 2024
2 parents dad6245 + 97dd999 commit c9f2edf
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Casks/space-cadet-pinball.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@
app "SpaceCadetPinball.app"

zap trash: "~/Library/Application Support/SpaceCadetPinball/"

caveats <<~EOS
The application is not signed.
EOS
end
42 changes: 42 additions & 0 deletions Casks/zen@alpha.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
cask "zen@alpha" do
arch arm: "aarch64", intel: "x64"

version "1.0.0-a.33"
sha256 arm: "1b88d9d3f43a4c1b728ac12c8fc14af57f18aab44b588b12153b41520a23ee9b",
intel: "0ef0f0a337272e0d2aa225a8e67e7de5ae50666d740095e0a68c56db66fbec8c"

url "https://github.com/zen-browser/desktop/releases/download/#{version}/zen.macos-#{arch}.dmg"
name "zen"
desc "Firefox based browser with a focus on privacy and customization"
homepage "https://github.com/zen-browser/desktop/"

livecheck do
url :url
regex(/^v?(\d+(?:\.\d+)+[._-](?:alpha|beta|rc|a)[._-]?\d*)$/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"]

match = release["tag_name"]&.match(regex)
next if match.blank?

match[1]
end
end
end

depends_on macos: ">= :catalina"

app "Zen Browser.app"

zap trash: [
"~/Library/Application Support/zen",
"~/Library/Caches/zen",
"~/Library/Preferences/org.mozilla.com.zen.browser.plist",
"~/Library/Saved Application State/org.mozilla.com.zen.browser.savedState",
]

caveats <<~EOS
The application is not signed.
EOS
end
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ Casks
├── notepadnext.rb
├── qstudio.rb
├── satyrn.rb
├── space-cadet-pinball.rb
└── surfer.rb
├── space-cadet-pinball.rb*
├── surfer.rb
└── zen@alpha.rb*
```

`*` Marked casks were not signed and it is your own risk to install it.
```
brew install --no-quarantine draftbrew/tap/<cask>
```

0 comments on commit c9f2edf

Please sign in to comment.