uppsrc: Fixed to compile in MacOS

git-svn-id: svn://ultimatepp.org/upp/trunk@15618 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-12-22 22:18:08 +00:00
parent 752758e690
commit 7b86b84b0a
3 changed files with 5 additions and 3 deletions

View file

@ -297,7 +297,7 @@ bool MakeBuild::BuildPackage(const Workspace& wspc, int pkindex, int pknumber, i
#ifdef PLATFORM_COCOA
if(m.target_override && !IsNull(m.target)
&& IsFolder(m.target) && GetFileExt(m.target) == ".app")
target = host->NormalizePath(m.target);
target = NormalizePath(m.target);
else
#endif
if(m.target_override && !IsNull(m.target) && IsFolder(m.target))

View file

@ -28,7 +28,7 @@ void GccBuilder::CocoaAppBundle()
}
if(imgs.GetCount() && convert_icons) {
String icons = AppendFileName(outdir, "icons.iconset");
RealizeDir(icons);
RealizeDirectory(icons);
PutConsole("Exporting bundle icons to " + icons);
for(String fn : {

View file

@ -627,7 +627,9 @@ Ide::Ide()
#ifdef PLATFORM_COCOA
WhenDockMenu = [=](Bar& bar) {
bar.Add("Open main package..", [=] {
CreateHost(false, false)->Launch(GetExeFilePath() + " --nosplash");
Host h;
CreateHost(h, false, false);
h.Launch(GetExeFilePath() + " --nosplash");
});
};
#endif