2017-08-17 20:29:21 +08:00
|
|
|
cask 'logisim-evolution' do
|
2017-11-21 04:49:47 +08:00
|
|
|
version '2.14.2'
|
|
|
|
sha256 '9c1c766d9ebc92ec6444a7ae79c68c5676a61a4ddd2e7d329f468694d32ad164'
|
2017-08-17 20:29:21 +08:00
|
|
|
|
2017-11-21 04:49:47 +08:00
|
|
|
url "https://github.com/reds-heig/logisim-evolution/releases/download/v#{version}/logisim-evolution.jar"
|
2017-08-17 20:29:21 +08:00
|
|
|
appcast 'https://github.com/reds-heig/logisim-evolution/releases.atom',
|
2017-11-21 04:49:47 +08:00
|
|
|
checkpoint: '98c5c4c9e67ef35fd77bbf4d7df6d178f0148df1950094d72c9470ee1f9eadf0'
|
2017-08-17 20:29:21 +08:00
|
|
|
name 'Logisim Evolution'
|
|
|
|
homepage 'https://github.com/reds-heig/logisim-evolution'
|
|
|
|
|
|
|
|
container type: :naked
|
|
|
|
|
|
|
|
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
|
|
|
|
shimscript = "#{staged_path}/logisim-evolution.wrapper.sh"
|
|
|
|
binary shimscript, target: 'logisim-evolution'
|
|
|
|
|
|
|
|
preflight do
|
2017-10-22 23:36:29 +08:00
|
|
|
IO.write shimscript, <<~EOS
|
2017-08-17 20:29:21 +08:00
|
|
|
#!/bin/bash
|
|
|
|
cd "$(dirname "$(readlink -n "${0}")")" && \
|
|
|
|
java "${@}" -jar 'logisim-evolution.jar'
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
zap trash: '~/Library/Preferences/com.cburch.logisim.plist'
|
|
|
|
end
|