Merge pull request #163483 from dannflor/godot-mono-exec

Godot mono shim script
This commit is contained in:
Miccal Matthews
2023-12-31 12:07:42 +08:00
committed by GitHub
+10 -1
View File
@@ -18,7 +18,16 @@ cask "godot-mono" do
depends_on macos: ">= :sierra"
app "Godot_mono.app"
binary "#{appdir}/Godot_mono.app/Contents/MacOS/Godot", target: "godot-mono"
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/godot-mono.wrapper.sh"
binary shimscript, 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"