Adding Homebrew compatibility

This commit is contained in:
HarryHeres
2024-09-01 19:10:25 +02:00
parent e78fa3f544
commit cf9b266bca
4 changed files with 26 additions and 9 deletions

View File

@@ -148,3 +148,6 @@ jobs:
with:
name: macos_update_manifest_${{ matrix.arch }}
path: ./dist/update
- name: Update Homebrew
run: sh .github/workflows/src/update-homebrew.sh

View File

@@ -0,0 +1,9 @@
latest_version="$(git describe --tags --abbrev=0)"
sed -i "s/version(.*)/version('${latest_version}')/" ./Casks/zen-browser.rb
sha_x64 = shasum -a 256 ./zen.macos-x64.dmg
sha_arm = shasum -a 256 ./zen.macos-aarch64.dmg
sed -i "s/sha256(.*)/sha256(arm:'${sha_arm}', intel:'${sha_x64}')/" ./Casks/zen-browser.rb

View File

@@ -1,10 +1,7 @@
cask("zen-browser") do
arch(arm: "aarch64", intel: "x64")
version("1.0.0-a.34")
sha256(
arm: "6cc6e72c4a6a11d0139489d438ccf811715e170eebc01da739da32ace2580747",
intel: "b9cb48f21a4ee39f3f3ae2361b9b0a55ae7219638cf798e1483c0eb8cf4660a6"
)
sha256(arm: "6cc6e72c4a6a11d0139489d438ccf811715e170eebc01da739da32ace2580747", intel: "b9cb48f21a4ee39f3f3ae2361b9b0a55ae7219638cf798e1483c0eb8cf4660a6")
url("https://github.com/zen-browser/desktop/releases/download/#{version}/zen.macos-#{arch}.dmg")
name("Zen Browser")
@@ -16,13 +13,11 @@ cask("zen-browser") do
regex(/[0-9].*-a.[0-9]*/i)
end
zap = [
"$HOME/Library/Preferences/org.mozilla.com.zen.browser.plist",
"$HOME/Library/Saved Application State/org.mozilla.com.zen.browser.savedState"
zap trash: [
"~/Library/Preferences/org.mozilla.com.zen.browser.plist",
"~/Library/Saved Application State/org.mozilla.com.zen.browser.savedState"
]
depends_on = []
app("Zen Browser.app")
postflight do

View File

@@ -33,6 +33,16 @@ Zen is built with performance in mind, and we have optimized the browser to be a
* Checkout the latest [performance benchmarks](https://docs.zen-browser.app/benchmarks)!
# Installation
## MacOS
You can install the Zen Browser using Homebrew:
```
brew tap zen-browser/browser https://github.com/zen-browser/desktop.git
brew install zen-browser
```
# Core Components
Some components used by @zen-browser as an attempt to make firefox forks a better place. You can find them [here](https://github.com/zen-browser/components).