diff --git a/.github/workflows/macos-alpha-build.yml b/.github/workflows/macos-alpha-build.yml index 6f4992c58..ddb095252 100644 --- a/.github/workflows/macos-alpha-build.yml +++ b/.github/workflows/macos-alpha-build.yml @@ -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 diff --git a/.github/workflows/src/update-homebrew.sh b/.github/workflows/src/update-homebrew.sh new file mode 100644 index 000000000..d1d0b150e --- /dev/null +++ b/.github/workflows/src/update-homebrew.sh @@ -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 + + diff --git a/Casks/zen-browser.rb b/Casks/zen-browser.rb index c7e99d6aa..f5c71a967 100644 --- a/Casks/zen-browser.rb +++ b/Casks/zen-browser.rb @@ -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 diff --git a/README.md b/README.md index 20c7a272f..99bdee821 100644 --- a/README.md +++ b/README.md @@ -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).