-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotaword.rb
51 lines (43 loc) · 1.56 KB
/
motaword.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Motaword < Formula
desc "Use MotaWord CLI to interact with your MotaWord account in many ways to manage your translation and localization needs. Visit motaword.com/developer for details."
homepage "https://www.motaword.com/"
version "1.5.1"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/motaword/cli/releases/download/v1.5.1/motaword_1.5.1_Darwin_arm64.tar.gz"
sha256 "96066b6eecec5a8e2a9f115e3514ea696b8e4bddf6f42f279611e916e316dfaa"
def install
bin.install "motaword"
end
end
if Hardware::CPU.intel?
url "https://github.com/motaword/cli/releases/download/v1.5.1/motaword_1.5.1_Darwin_x86_64.tar.gz"
sha256 "15eb003978e886a17f716036e551f6da3dae9bfb9d5529b9877a98850a95fd46"
def install
bin.install "motaword"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/motaword/cli/releases/download/v1.5.1/motaword_1.5.1_Linux_arm64.tar.gz"
sha256 "68d2b843298cb9200430f8f5d688de4545cb94f07f51471bc6c1e94b020929ca"
def install
bin.install "motaword"
end
end
if Hardware::CPU.intel?
url "https://github.com/motaword/cli/releases/download/v1.5.1/motaword_1.5.1_Linux_x86_64.tar.gz"
sha256 "baaa2981299826bfe9940bb1e1ce172e61b5e059461ef9923d2cae53829be96f"
def install
bin.install "motaword"
end
end
end
test do
system "#{bin}/motaword --version"
end
end