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.4/onset-0.9.4-darwin-arm64.tar.gz" |
| 10 | sha256 "bf572f0e2b0203504e57e4a7234657d45a78dd6453e808c0877dd35a968da849" |
| 11 | end |
| 12 | on_intel do |
| 13 | url "https://downloads.coline.dev/onset/0.9.4/onset-0.9.4-darwin-x64.tar.gz" |
| 14 | sha256 "a52e92c985274b218afd0416015ca2fedfb39a1f50e853cc02316b6fbf4a3a4b" |
| 15 | end |
| 16 | end |
| 17 |
| 18 | on_linux do |
| 19 | on_arm do |
| 20 | url "https://downloads.coline.dev/onset/0.9.4/onset-0.9.4-linux-arm64.tar.gz" |
| 21 | sha256 "d1101a07c1b5574842ceaa8b6560b7f48801214164cfee141bb0e7809930b4c7" |
| 22 | end |
| 23 | on_intel do |
| 24 | url "https://downloads.coline.dev/onset/0.9.4/onset-0.9.4-linux-x64.tar.gz" |
| 25 | sha256 "acb3cd4ec87f5911e09a95054e0d9d4f3aff5f248042b711bd87933fb038959e" |
| 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 |