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-14 06:55:14 +00:00
|
|
|
url "https://github.com/JustArchi/ArchiSteamFarm/releases/download/2.1.6.7/ASF.zip"
|
|
|
|
version "2.1.6.7"
|
|
|
|
sha256 "b09ccbe5df66bf7b771476f84ff760e2fb8f614cc3bb5b29c4bee6cdd3d7c6c4"
|
2016-10-04 22:37:43 +00:00
|
|
|
|
2016-10-04 23:05:12 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-11-14 07:00:20 +00:00
|
|
|
sha256 "b0bffa6963171f4a360297168ec01593628b6ab1750ee115b76e28ea27238f8a" => :sierra
|
|
|
|
sha256 "b0bffa6963171f4a360297168ec01593628b6ab1750ee115b76e28ea27238f8a" => :el_capitan
|
|
|
|
sha256 "b0bffa6963171f4a360297168ec01593628b6ab1750ee115b76e28ea27238f8a" => :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
|