cask 'gogs' do version '0.11.4' sha256 'edcfa64ceec253f1782c52ef0afb2cd60dfa6fd3bbf7716e66ff875d1bd4a44f' # github.com/gogits/gogs was verified as official when first introduced to the cask url "https://github.com/gogits/gogs/releases/download/v#{version}/darwin_amd64.zip" appcast 'https://github.com/gogits/gogs/releases.atom', checkpoint: '7a50e42ab166717df1960825119a6a75087514ceecfc7671ec87c30106868f91' name 'Go Git Service' homepage 'https://gogs.io/' # shim script (https://github.com/caskroom/homebrew-cask/issues/18809) shimscript = "#{staged_path}/gogs.wrapper.sh" binary shimscript, target: 'gogs' preflight do IO.write shimscript, <<-EOS.undent #!/bin/sh cd '#{staged_path}/gogs' && ./gogs "$@" EOS end end