2016-10-04 22:37:43 +00:00
|
|
|
class ArchiSteamFarm < Formula
|
|
|
|
desc "ASF is a C# application that allows you to farm steam cards"
|
|
|
|
homepage "https://github.com/JustArchi/ArchiSteamFarm"
|
2016-11-21 10:29:14 +00:00
|
|
|
url "https://github.com/JustArchi/ArchiSteamFarm/releases/download/2.1.6.8/ASF.zip"
|
2016-11-21 10:19:32 +00:00
|
|
|
version "2.1.6.8"
|
|
|
|
sha256 "c0e7f4efdbaa51acb3b64ad0c41383de752dda26db5ad990761ff088d80544c7"
|
2016-10-04 22:37:43 +00:00
|
|
|
|
2016-10-04 23:05:12 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-11-21 10:33:43 +00:00
|
|
|
sha256 "c1c970bca2939b5ffc5bc8ee25a1ff7375652e6274ec30a11bb9c54f0b9923d2" => :sierra
|
|
|
|
sha256 "c1c970bca2939b5ffc5bc8ee25a1ff7375652e6274ec30a11bb9c54f0b9923d2" => :el_capitan
|
|
|
|
sha256 "c1c970bca2939b5ffc5bc8ee25a1ff7375652e6274ec30a11bb9c54f0b9923d2" => :yosemite
|
2016-10-04 23:05:12 +00:00
|
|
|
end
|
|
|
|
|
2016-10-04 22:37:43 +00:00
|
|
|
depends_on "mono"
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install "ASF.exe"
|
|
|
|
(bin/"asf").write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
mono #{libexec}/ASF.exe "$@"
|
|
|
|
EOS
|
|
|
|
|
|
|
|
etc.install "config" => "asf"
|
|
|
|
libexec.install_symlink etc/"asf" => "config"
|
|
|
|
end
|
|
|
|
|
2016-11-21 10:19:32 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Config: #{etc}/asf/
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2016-10-04 22:37:43 +00:00
|
|
|
test do
|
2016-10-26 09:04:08 +00:00
|
|
|
assert_match "ASF V#{version}", shell_output("#{bin}/asf --client")
|
2016-10-04 22:37:43 +00:00
|
|
|
end
|
|
|
|
end
|