Homebrew formulae: brew tap coline/tap https://git.coline.app/coline/homebrew-tap.git
| 5 |
| license "Apache-2.0" |
| 6 |
| 7 | on_macos do |
| 8 | on_arm do |
| 9 | url "https://downloads.coline.dev/onset/0.9.3/onset-0.9.3-darwin-arm64.tar.gz" |
| 10 | sha256 "ffec6012ef99f9512841894af335309292b6f13173a629650fa4e7f91c558b4e" |
| 11 | end |
| 12 | on_intel do |
| 13 | url "https://downloads.coline.dev/onset/0.9.3/onset-0.9.3-darwin-x64.tar.gz" |
| 14 | sha256 "00555fcb41802b171f34c5be09347abd6176d83ccefbd4885ebce8593973e010" |
| 15 | end |
| 16 | end |
| 17 |
| 18 | on_linux do |
| 19 | on_arm do |
| 20 | url "https://downloads.coline.dev/onset/0.9.3/onset-0.9.3-linux-arm64.tar.gz" |
| 21 | sha256 "35a56a3af01b356c559c187262227224338a686f70000ac43f838e7f1f7fde5f" |
| 22 | end |
| 23 | on_intel do |
| 24 | url "https://downloads.coline.dev/onset/0.9.3/onset-0.9.3-linux-x64.tar.gz" |
| 25 | sha256 "dfbeac9a2b987c8c4cc324cabfc4a140ec53e134fd79050b0f91322458ae7e30" |
| 26 | end |
| 27 | end |
| 28 |
| 29 | def install |
| 30 | bin.install "on" |
| 31 | bin.install "onset-server" if File.exist?("onset-server") |
| 32 | generate_completions_from_executable(bin/"on", "completions") |
| 33 | end |
| 34 |
| 35 | test do |
| 36 | assert_match version.to_s, shell_output("#{bin}/on --version") |
| 37 | end |
| 38 | end |
| 39 |