24 lines
772 B
Ruby
24 lines
772 B
Ruby
cask 'gogs' do
|
|
version '0.11.34'
|
|
sha256 '4bc9985342a1a421062fa691378b856d25dda532aa93e2453ce7d3580732b796'
|
|
|
|
# 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: 'a08e3b2812192c7662bf20be4211f1e0ff4bf9d718bb48c7175ba7c4d704514b'
|
|
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
|
|
#!/bin/sh
|
|
cd '#{staged_path}/gogs' && ./gogs "$@"
|
|
EOS
|
|
end
|
|
end
|