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.5/onset-0.9.5-darwin-arm64.tar.gz" |
| 10 | sha256 "ed41e2db5537548104112bee713dd1908c1d937884162449e8f474a92a4ca850" |
| 11 | end |
| 12 | on_intel do |
| 13 | url "https://downloads.coline.dev/onset/0.9.5/onset-0.9.5-darwin-x64.tar.gz" |
| 14 | sha256 "b769894c0e479a24533a694b9e2f926c1f057522b08308eda13fd37e84eb3d03" |
| 15 | end |
| 16 | end |
| 17 |
| 18 | on_linux do |
| 19 | on_arm do |
| 20 | url "https://downloads.coline.dev/onset/0.9.5/onset-0.9.5-linux-arm64.tar.gz" |
| 21 | sha256 "d8371eb33aaa162b84a9f672dfaa4ec130659e9ece10d38d3beadf5eb27536e2" |
| 22 | end |
| 23 | on_intel do |
| 24 | url "https://downloads.coline.dev/onset/0.9.5/onset-0.9.5-linux-x64.tar.gz" |
| 25 | sha256 "a996b060cd2932d589fd8405116bb0a9d84daee65a6796f6e98e2fc04fa02e84" |
| 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 |