2016-08-05 12:03:32 +08:00
|
|
|
cask 'gogs' do
|
2017-01-12 05:46:28 +08:00
|
|
|
version '0.9.113'
|
|
|
|
sha256 '55d907a0990598a7cb45ecae2af95c69c6383cd2ce63ff394df6894901f4df74'
|
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',
|
|
|
|
checkpoint: '671ed3b027d5319b32029f8d95f787267bd7533b71ee72b9e640eb3a201cf50b'
|
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
|
2017-01-21 11:33:08 +08:00
|
|
|
set_permissions shimscript, '+x'
|
2016-08-05 12:03:32 +08:00
|
|
|
end
|
|
|
|
end
|