homebrew-cask/Casks/steamcmd.rb

24 lines
663 B
Ruby
Raw Normal View History

2016-03-23 08:46:28 +08:00
cask 'steamcmd' do
version :latest
sha256 :no_check
# steamcdn-a.akamaihd.net was verified as official when first introduced to the cask
url 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz'
name 'SteamCMD'
homepage 'https://developer.valvesoftware.com/wiki/SteamCMD'
auto_updates true
2016-06-03 21:55:26 +08:00
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
2016-08-26 22:30:52 +08:00
shimscript = "#{staged_path}/steamcmd.sh.wrapper.sh"
2016-03-23 08:46:28 +08:00
binary shimscript, target: 'steamcmd'
preflight do
2016-08-26 22:30:52 +08:00
IO.write shimscript, <<-EOS.undent
#!/bin/sh
exec '#{staged_path}/steamcmd.sh' "$@"
EOS
FileUtils.chmod '+x', shimscript
2016-03-23 08:46:28 +08:00
end
end