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-10-29 11:20:23 +00:00
|
|
|
url "https://github.com/JustArchi/ArchiSteamFarm/releases/download/2.1.6.3/ASF.zip"
|
|
|
|
version "2.1.6.3"
|
|
|
|
sha256 "62671db765e06f959b007a97f9bd9ad2cb5521c849aef81d8a48f5d2cee52b5a"
|
2016-10-04 22:37:43 +00:00
|
|
|
|
2016-10-04 23:05:12 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-10-29 12:39:43 +00:00
|
|
|
sha256 "36fdcf06afafa3fbb35ce505ee619414b3ce284ab8a7779018b2b691a63c49fc" => :sierra
|
|
|
|
sha256 "36fdcf06afafa3fbb35ce505ee619414b3ce284ab8a7779018b2b691a63c49fc" => :el_capitan
|
|
|
|
sha256 "36fdcf06afafa3fbb35ce505ee619414b3ce284ab8a7779018b2b691a63c49fc" => :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
|
|
|
|
|
|
|
|
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
|