mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Add shim script
This commit is contained in:
@@ -18,8 +18,16 @@ cask "godot-mono" do
|
||||
depends_on macos: ">= :sierra"
|
||||
|
||||
app "Godot_mono.app"
|
||||
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
|
||||
shimscript = "#{staged_path}/godot-mono.wrapper.sh"
|
||||
binary shimscript, target: "godot-mono"
|
||||
|
||||
bin.write_exec_script "#{appdir}/Godot_mono.app/Contents/MacOS/Godot", target: "godot-mono"
|
||||
preflight do
|
||||
File.write shimscript, <<~EOS
|
||||
#!/bin/bash
|
||||
'#{appdir}/Godot_mono.app/Contents/MacOS/Godot' "$@"
|
||||
EOS
|
||||
end
|
||||
|
||||
uninstall quit: "org.godotengine.godot"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user