-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdpc-stage@0.1.129-stage-1.0.36.12.rb
48 lines (40 loc) · 1.59 KB
/
sdpc-stage@0.1.129-stage-1.0.36.12.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class SdpcStage01129stage103612 < Formula
desc "Manage content in multi platforms."
homepage "https://github.com/SplashtopInc/homebrew-workspace"
version "0.1.129-stage-1.0.36.12"
depends_on "git"
on_macos do
if Hardware::CPU.arm?
url "https://s3.us-west-2.amazonaws.com/splashlock-assets.splashshield.ai/sdpc/stage/darwin/arm64/sdpc-darwin-arm64-0.1.129-stage-1.0.36.12.zip"
sha256 "41996372bc5fe53127924f48b78160e11e907b925af7adcff0639d9fbee4f876"
def install
bin.install "sdpc-darwin-arm64" => "sdpc"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/sdpc", "-h")
(bash_completion/"sdpc").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/sdpc", "-h")
(zsh_completion/"_sdpc").write output
end
end
if Hardware::CPU.intel?
url "https://s3.us-west-2.amazonaws.com/splashlock-assets.splashshield.ai/sdpc/stage/darwin/amd64/sdpc-darwin-amd64-0.1.129-stage-1.0.36.12.zip"
sha256 "3708445f3685618aff14c228251950a9cd8e45953eb7841fcabcc3f3a0ef9ffa"
def install
bin.install "sdpc-darwin-amd64" => "sdpc"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/sdpc", "-h")
(bash_completion/"sdpc").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/sdpc", "-h")
(zsh_completion/"_sdpc").write output
end
end
end
test do
system "#{bin}/sdpc -h"
end
end