mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-03 06:09:19 +00:00
Adding Homebrew compatibility
This commit is contained in:
3
.github/workflows/macos-alpha-build.yml
vendored
3
.github/workflows/macos-alpha-build.yml
vendored
@@ -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
|
||||
|
||||
9
.github/workflows/src/update-homebrew.sh
vendored
Normal file
9
.github/workflows/src/update-homebrew.sh
vendored
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user