CtrlCore: MacOS bundle issues

git-svn-id: svn://ultimatepp.org/upp/trunk@12337 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-10-07 09:08:10 +00:00
parent 51a00eccf1
commit f3d60f1ee0
3 changed files with 11 additions and 2 deletions

View file

@ -1,5 +1,9 @@
sooner:
- support bundle icons
- correctly reload plist
- drag&drop in theide does not work
- ctrl tab does not work

View file

@ -570,13 +570,16 @@ bool GccBuilder::Link(const Vector<String>& linkfile, const String& linkoptions,
<< "<dict>\n"
<< " <key>CFBundleExecutable</key>\n"
<< " <string>" << GetFileName(target) << "</string>\n"
<< " <key>NSHighResolutionCapable</key>\n"
<< " <string>True</string>\n"
<< "</dict>\n"
<< "</plist>\n"
;
}
String Info_plist_path = GetFileFolder(GetFileFolder(target)) + "/Info.plist";
PutConsole("Saving " << Info_plist_path);
SaveFile(Info_plist_path, Info_plist);
if(SaveChangedFile(Info_plist_path, Info_plist))
Execute("defaults read " + Info_plist_path); // Force MacOS to reload plist
}
CustomStep(".post-link", Null, error);
PutConsole(String().Cat() << GetHostPath(target) << " (" << GetFileInfo(target).length

View file

@ -254,8 +254,10 @@ void AppMain___()
ide.SyncCh();
DelTemps();
#ifndef PLATFORM_COCOA // MacOS sends some weird things to app bundle - disable editor mode for now
StartEditorMode(arg, ide, clset);
#endif
if(splash_screen && !ide.IsEditorMode()) {
ShowSplash();