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