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:
Eberhard Graether
2017-05-31 16:23:25 +02:00
parent 8ab0abbe69
commit 8660ab5b14
5 changed files with 72 additions and 117 deletions
+1 -1
View File
@@ -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;
-16
View File
@@ -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"));
-4
View File
@@ -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
+1 -5
View File
@@ -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