Skip to content

Commit

Permalink
Merge pull request #11 from 0risc/zen
Browse files Browse the repository at this point in the history
Add `zen-browser`.
  • Loading branch information
0risc authored Sep 18, 2024
2 parents c28ace2 + fe01de5 commit 8c01b57
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: brew test-bot casks

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
casks:
description: List of casks to audit (comma-separated)
required: true
skip_install:
description: Skip installation of casks
required: false
default: true
type: boolean
new_cask:
description: Apply new cask audit
required: false
default: false
type: boolean
# on:
# push:
# branches:
# - main
# pull_request:
# workflow_dispatch:
# inputs:
# casks:
# description: List of casks to audit (comma-separated)
# required: true
# skip_install:
# description: Skip installation of casks
# required: false
# default: true
# type: boolean
# new_cask:
# description: Apply new cask audit
# required: false
# default: false
# type: boolean

env:
HOMEBREW_DEVELOPER: 1
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/require-pr-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Require pr-pull label

on:
pull_request:
paths:
- 'Formula/**'

jobs:
check-for-label:
runs-on: ubuntu-latest
steps:
- run: exit 0
if: true && contains( github.event.pull_request.labels.*.name, 'pr-pull' )

- run: exit 1
if: true && !contains( github.event.pull_request.labels.*.name, 'pr-pull' )

check:
if: always()
needs:
- check-for-label
runs-on: ubuntu-latest
steps:
- name: Determine whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
13 changes: 12 additions & 1 deletion .github/workflows/test-formulas.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: brew test-bot formulas
name: brew test-bot

on:
push:
Expand Down Expand Up @@ -42,3 +42,14 @@ jobs:
with:
name: bottles_${{ matrix.os }}
path: '*.bottle.*'

check:
if: always()
needs:
- test-bot
runs-on: ubuntu-latest
steps:
- name: Determine whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
26 changes: 26 additions & 0 deletions Casks/zen-browser.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cask "zen-browser" do
arch arm: "aarch64", intel: "x64"

version "1.0.0-a.29"
sha256 arm: "b9892f13bb1c8cd0c6ab0de73f923641ca0cce1bd68ecffaf683fd01fdd30251",
intel: "934b294ba30586a31c2c62e88ef95c42312f9e0172e9977d495c909934d5ba25"

url "https://github.com/zen-browser/desktop/releases/download/#{version}/zen.macos-#{arch}.dmg"
name "Zen Browser"
desc "Zen web browser"
homepage "https://github.com/zen-browser/desktop"

livecheck do
url :url
end

auto_updates true
depends_on macos: ">= :catalina"

app "Zen Browser.app"

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

0 comments on commit 8c01b57

Please sign in to comment.