mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 13:51:19 +01:00
31 lines
837 B
Ruby
31 lines
837 B
Ruby
class KomorebiForMacNightly < Formula
|
|
desc "Tiling window manager for macOS (nightly build)"
|
|
homepage "https://github.com/KomoCorp/komorebi-for-mac"
|
|
url "https://api.github.com/repos/KomoCorp/komorebi-for-mac/releases/assets/REPLACE_ASSET_ID",
|
|
headers: [
|
|
"Accept: application/octet-stream",
|
|
"X-GitHub-Api-Version: 2022-11-28",
|
|
"Authorization: bearer #{ENV.fetch("HOMEBREW_GITHUB_API_TOKEN")}",
|
|
]
|
|
version "nightly"
|
|
sha256 "REPLACE_SHA_256"
|
|
license "Komorebi License 2.0.0"
|
|
|
|
def install
|
|
bin.install Dir["*"]
|
|
end
|
|
|
|
def caveats
|
|
<<~EOS
|
|
This formula requires access to a private GitHub repository.
|
|
Make sure you have set your GitHub token:
|
|
|
|
export HOMEBREW_GITHUB_API_TOKEN=your_token_here
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/komorebi", "--help"
|
|
end
|
|
end
|