29 lines
1.0 KiB
Ruby
29 lines
1.0 KiB
Ruby
cask 'eventstore' do
|
|
version '5.0.2'
|
|
sha256 'c42d61c675416c7537827ab882702c55fd6c19a2b04ad28aec413ef82e9d7675'
|
|
|
|
url "https://eventstore.org/downloads/macos/EventStore-OSS-MacOS-macOS-v#{version}.tar.gz"
|
|
name 'Event Store'
|
|
homepage 'https://eventstore.org/'
|
|
|
|
binary "EventStore-OSS-MacOS-macOS-v#{version}/eventstore"
|
|
binary "EventStore-OSS-MacOS-macOS-v#{version}/eventstore-testclient"
|
|
|
|
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
|
|
eventstore_shimscript = "#{staged_path}/EventStore-OSS-MacOS-macOS-v#{version}/eventstore"
|
|
testclient_shimscript = "#{staged_path}/EventStore-OSS-MacOS-macOS-v#{version}/eventstore-testclient"
|
|
|
|
preflight do
|
|
IO.write eventstore_shimscript, <<~EOS
|
|
#!/bin/sh
|
|
cd "#{staged_path}/EventStore-OSS-MacOS-macOS-v#{version}"
|
|
exec "#{staged_path}/EventStore-OSS-MacOS-macOS-v#{version}/run-node.sh" "$@"
|
|
EOS
|
|
|
|
IO.write testclient_shimscript, <<~EOS
|
|
#!/bin/sh
|
|
exec "#{staged_path}/EventStore-OSS-MacOS-macOS-v#{version}/testclient" "$@"
|
|
EOS
|
|
end
|
|
end
|