Small MacOS integration fixes

This commit is contained in:
crschnick 2023-02-06 13:26:37 +00:00
parent 7f0372a4d5
commit 08d17d2d50

View file

@ -56,6 +56,8 @@ public class DesktopShortcuts {
try (var pc = ShellStore.local().create().start()) {
pc.executeSimpleCommand(
pc.getShellType().flatten(pc.getShellType().getMkdirsCommand(base + "/Contents/MacOS")));
pc.executeSimpleCommand(
pc.getShellType().flatten(pc.getShellType().getMkdirsCommand(base + "/Contents/Resources")));
var executable = base + "/Contents/MacOS/" + name;
pc.executeSimpleCommand(pc.getShellType().getTextFileWriteCommand(content, executable));