homebrew-cask/Casks/gogs.rb

24 lines
778 B
Ruby
Raw Normal View History

cask 'gogs' do
2017-04-07 09:50:20 +08:00
version '0.11.4'
sha256 'edcfa64ceec253f1782c52ef0afb2cd60dfa6fd3bbf7716e66ff875d1bd4a44f'
2017-01-12 05:46:28 +08:00
# 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',
2017-04-07 09:50:20 +08:00
checkpoint: '7a50e42ab166717df1960825119a6a75087514ceecfc7671ec87c30106868f91'
name 'Go Git Service'
homepage 'https://gogs.io/'
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
2016-08-26 22:30:52 +08:00
shimscript = "#{staged_path}/gogs.wrapper.sh"
binary shimscript, target: 'gogs'
preflight do
2016-08-26 22:30:52 +08:00
IO.write shimscript, <<-EOS.undent
#!/bin/sh
cd '#{staged_path}/gogs' && ./gogs "$@"
2016-08-26 22:30:52 +08:00
EOS
end
end