build: Codesign MacOS app bundle to avoid "from unidentified developer" warning
fortune cookie message = Der Stern des Reichtums wird in Kürze auf dich scheinen
This commit is contained in:
@@ -369,7 +369,7 @@ std::vector<FilePath> ApplicationSettings::getRecentProjects() const
|
||||
}
|
||||
else
|
||||
{
|
||||
recentProjects.push_back(UserPaths::getSampleProjectsPath().concat(project));
|
||||
recentProjects.push_back(UserPaths::getUserDataPath().concat(project));
|
||||
}
|
||||
}
|
||||
return recentProjects;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "utility/UserPaths.h"
|
||||
|
||||
FilePath UserPaths::s_userDataPath;
|
||||
FilePath UserPaths::s_sampleProjectsPath;
|
||||
|
||||
FilePath UserPaths::getUserDataPath()
|
||||
{
|
||||
@@ -13,21 +12,6 @@ void UserPaths::setUserDataPath(const FilePath& path)
|
||||
s_userDataPath = path;
|
||||
}
|
||||
|
||||
FilePath UserPaths::getSampleProjectsPath()
|
||||
{
|
||||
if (s_sampleProjectsPath.str().size())
|
||||
{
|
||||
return s_sampleProjectsPath;
|
||||
}
|
||||
|
||||
return s_userDataPath;
|
||||
}
|
||||
|
||||
void UserPaths::setSampleProjectsPath(const FilePath& path)
|
||||
{
|
||||
s_sampleProjectsPath = path;
|
||||
}
|
||||
|
||||
FilePath UserPaths::getAppSettingsPath()
|
||||
{
|
||||
return getUserDataPath().concat(FilePath("ApplicationSettings.xml"));
|
||||
|
||||
@@ -11,16 +11,12 @@ public:
|
||||
static FilePath getUserDataPath();
|
||||
static void setUserDataPath(const FilePath& path);
|
||||
|
||||
static FilePath getSampleProjectsPath();
|
||||
static void setSampleProjectsPath(const FilePath& path);
|
||||
|
||||
static FilePath getAppSettingsPath();
|
||||
static FilePath getWindowSettingsPath();
|
||||
static FilePath getLogPath();
|
||||
|
||||
private:
|
||||
static FilePath s_userDataPath;
|
||||
static FilePath s_sampleProjectsPath;
|
||||
};
|
||||
|
||||
#endif // USER_PATHS_H
|
||||
|
||||
@@ -79,8 +79,8 @@ void setupPlatform(int argc, char *argv[])
|
||||
|
||||
utility::copyNewFilesFromDirectory(oldDataPath, dataPath);
|
||||
|
||||
UserPaths::setUserDataPath(FilePath(dataPath.toStdString() + "/"));
|
||||
// ----------------------------------------------------------------------------
|
||||
UserPaths::setUserDataPath(FilePath(dataPath.toStdString() + "/"));
|
||||
|
||||
appIsMacBundle = true;
|
||||
}
|
||||
@@ -94,10 +94,6 @@ void setupApp(int argc, char *argv[])
|
||||
{
|
||||
UserPaths::setUserDataPath(FilePath("./user/"));
|
||||
}
|
||||
else
|
||||
{
|
||||
UserPaths::setSampleProjectsPath(FilePath(path.absolute().str() + "/data/"));
|
||||
}
|
||||
}
|
||||
|
||||
#endif // INCLUDES_MAC_H
|
||||
|
||||
Reference in New Issue
Block a user