|
1 | 1 | # typed: false
|
2 | 2 | # frozen_string_literal: true
|
3 | 3 |
|
| 4 | +# This file was generated by GoReleaser. DO NOT EDIT. |
4 | 5 | class XiondAT14 < Formula
|
5 | 6 | desc "Xiond is the Cosmos SDK based blockchain cli/daemon for the Xion Network."
|
6 | 7 | homepage "https://xion.burnt.com/"
|
7 |
| - version "14.1.0" |
| 8 | + version "14.0.1" |
8 | 9 | license "Apache2.0"
|
9 | 10 |
|
10 | 11 | on_macos do
|
11 | 12 | if Hardware::CPU.intel?
|
12 |
| - url "https://github.com/burnt-labs/xion/releases/download/v14.1.0/xiond-darwin-amd64", using: :nounzip |
13 |
| - sha256 "4dd2606e06a5c54acdd117131a11b0885c2301140e2cb665422e315096c1e758" |
| 13 | + url "https://github.com/burnt-labs/xion/releases/download/v14.0.1/xiond_14.0.1_darwin_amd64.tar.gz" |
| 14 | + sha256 "7297cbe4cec16fd0d0172ecf899e76853df7dcd8bca4980d98af8dcd03b0589e" |
14 | 15 |
|
15 | 16 | def install
|
16 |
| - if File.exist?("xiond-darwin-amd64") |
17 |
| - mv "xiond-darwin-amd64", "xiond" |
18 |
| - end |
19 | 17 | bin.install "xiond"
|
20 | 18 | end
|
21 | 19 | end
|
22 | 20 | if Hardware::CPU.arm?
|
23 |
| - url "https://github.com/burnt-labs/xion/releases/download/v14.1.0/xiond-darwin-arm64", using: :nounzip |
24 |
| - sha256 "db02033935ddb174ca2b496b545083e7dc0d598a7c4b274680693162581ae219" |
| 21 | + url "https://github.com/burnt-labs/xion/releases/download/v14.0.1/xiond_14.0.1_darwin_arm64.tar.gz" |
| 22 | + sha256 "6ae07c65baeec2e3aa147bc3b1dfb593d752a0fa8808129a0347419f70038ac7" |
25 | 23 |
|
26 | 24 | def install
|
27 |
| - if File.exist?("xiond-darwin-arm64") |
28 |
| - mv "xiond-darwin-arm64", "xiond" |
29 |
| - end |
30 | 25 | bin.install "xiond"
|
31 | 26 | end
|
32 | 27 | end
|
33 | 28 | end
|
34 | 29 |
|
35 | 30 | on_linux do
|
36 |
| - if Hardware::CPU.intel? |
37 |
| - if Hardware::CPU.is_64_bit? |
38 |
| - url "https://github.com/burnt-labs/xion/releases/download/v14.1.0/xiond-linux-amd64", using: :nounzip |
39 |
| - sha256 "cf265801603073b7d35524c816e8119797732d17f191748111baaa792e3c4d55" |
40 |
| - |
41 |
| - def install |
42 |
| - if File.exist?("xiond-linux-amd64") |
43 |
| - mv "xiond-linux-amd64", "xiond" |
44 |
| - end |
45 |
| - bin.install "xiond" |
46 |
| - end |
| 31 | + if Hardware::CPU.intel? and Hardware::CPU.is_64_bit? |
| 32 | + url "https://github.com/burnt-labs/xion/releases/download/v14.0.1/xiond_14.0.1_linux_amd64.tar.gz" |
| 33 | + sha256 "c4a29e968aee46774c4dd258917f6cfa443f9c852be6f05904a8e7822acfea30" |
| 34 | + def install |
| 35 | + bin.install "xiond" |
47 | 36 | end
|
48 | 37 | end
|
49 |
| - if Hardware::CPU.arm? |
50 |
| - if Hardware::CPU.is_64_bit? |
51 |
| - url "https://github.com/burnt-labs/xion/releases/download/v14.1.0/xiond-linux-arm64", using: :nounzip |
52 |
| - sha256 "c3c8ba0adb36e93d5a0fc39e9555e90016c422de74d5d744dd402ea115b68805" |
53 |
| - |
54 |
| - def install |
55 |
| - if File.exist?("xiond-linux-arm64") |
56 |
| - mv "xiond-linux-arm64", "xiond" |
57 |
| - end |
58 |
| - bin.install "xiond" |
59 |
| - end |
| 38 | + if Hardware::CPU.arm? and Hardware::CPU.is_64_bit? |
| 39 | + url "https://github.com/burnt-labs/xion/releases/download/v14.0.1/xiond_14.0.1_linux_arm64.tar.gz" |
| 40 | + sha256 "d58f95af578edb5ec8fcceae010e70df2d75bc7f5e3b7aef34369d09fd539fa7" |
| 41 | + def install |
| 42 | + bin.install "xiond" |
60 | 43 | end
|
61 | 44 | end
|
62 | 45 | end
|
| 46 | + |
| 47 | + test do |
| 48 | + system "#{bin}/xiond version" |
| 49 | + end |
63 | 50 | end
|
0 commit comments