-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from daeho-ro/zen
zen: add new cask, update caveats for not signed casks
- Loading branch information
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters