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