mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-14 12:53:43 +01:00
komorebi-for-kde/README.md, CONTRIBUTING.md -> docs/linux/ komorebi-for-mac/README.md, CONTRIBUTING.md -> docs/macos/ komorebi-for-kde/.github/* -> docs/dev/old-ci/linux/ komorebi-for-mac/.github/*, mkdocs.yml, check_schema_docs.py, dependencies.json, formula.template.rb -> docs/dev/old-ci/macos/ The CI workflows, dependabot files, issue templates, the macOS Homebrew formula template and docs-site configuration of the two old repositories are kept for the CI and release plan that follows (one workflow set, one release); under docs/ GitHub ignores them, as it did under the subdirectories, so no KDE or macOS workflow runs on this branch. Renames only (19 files); the Windows .github and files at the root are untouched.
35 lines
1.0 KiB
Ruby
35 lines
1.0 KiB
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 "REPLACE_NIGHTLY"
|
|
sha256 "REPLACE_SHA_256"
|
|
license "Komorebi License 2.0.0"
|
|
|
|
def install
|
|
bin.install Dir["*"]
|
|
|
|
system "codesign", "--force", "-s", "-", "#{bin}/komorebi"
|
|
system "codesign", "--force", "-s", "-", "#{bin}/komorebic"
|
|
system "codesign", "--force", "-s", "-", "#{bin}/komorebi-bar"
|
|
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
|