mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: Fixed issue with MacOS install
This commit is contained in:
parent
dbe763c771
commit
5a332b0c93
2 changed files with 8 additions and 5 deletions
|
|
@ -71,15 +71,20 @@ bool Install(bool& hasvars)
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#ifdef PLATFORM_COCOA
|
||||
String idir = GetFileFolder(GetAppFolder());
|
||||
String myapps = DirectoryExists(idir + "/uppsrc") ? idir + "/MyApps" : GetHomeDirFile("MyApps");
|
||||
#else
|
||||
String myapps = (DirectoryExists(GetExeDirFile("uppsrc")) ? GetExeDirFile : GetHomeDirFile)("MyApps");
|
||||
#endif
|
||||
|
||||
for(pass = 0; pass < 2; pass++) {
|
||||
if(pass)
|
||||
MakeAssembly(myapps);
|
||||
#ifdef PLATFORM_COCOA
|
||||
Scan(GetFileFolder(GetAppFolder()) + "/uppsrc");
|
||||
Scan(GetFileFolder(GetAppFolder()) + "/*");
|
||||
Scan(idir + "/uppsrc");
|
||||
Scan(idir + "/*");
|
||||
#endif
|
||||
Scan(GetExeFolder() + "/uppsrc");
|
||||
Scan(GetExeFolder() + "/*");
|
||||
|
|
|
|||
|
|
@ -149,9 +149,7 @@ void AppMain___()
|
|||
#ifdef PLATFORM_WIN32
|
||||
AutoInstantSetup();
|
||||
#endif
|
||||
|
||||
bool hasvars = FindFile(ConfigFile("*.var"));
|
||||
|
||||
#ifdef PLATFORM_POSIX
|
||||
RemoveConsoleScripts(); // remove old console-script files
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue