Files
homebrew-gman/Formula/gman.rb

24 lines
1.0 KiB
Ruby

# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
class Gman < Formula
desc "Universal command line credential management and injection tool"
homepage "https://github.com/Dark-Alex-17/gman"
if OS.mac? and Hardware::CPU.arm?
url "https://github.com/Dark-Alex-17/gman/releases/download/v0.1.0/gman-aarch64-apple-darwin.tar.gz"
sha256 "74f2e8e085889bc65ecfc09bce9a2b14e568ba43a60d8ca4c34f36dc55fc4edf"
elsif OS.mac? and Hardware::CPU.intel?
url "https://github.com/Dark-Alex-17/gman/releases/download/v0.1.0/gman-x86_64-apple-darwin.tar.gz"
sha256 "b05e670d050a38047461b56892a055dadc145dc65de1696f3bf0a6912b70b3ae"
else
url "https://github.com/Dark-Alex-17/gman/releases/download/v0.1.0/gman-x86_64-unknown-linux-musl.tar.gz"
sha256 "38b3f6093798b5b4bc8e2ebf2a264de485a008c4453705b71af29624a1a99745"
end
version "0.1.0"
license "MIT"
def install
bin.install "gman"
ohai "You're done! Get started with \"gman --help\""
end
end