build: deploy changes
* moved sample projects from data to user folder * added fallback files for app and window settings * implemented copying app and window settings to user folder when not found on app startup * fixed upgrading for windows installer
This commit is contained in:
@@ -62,7 +62,7 @@ void setupPlatform(int argc, char *argv[])
|
||||
dataDir.mkpath(dataPath);
|
||||
}
|
||||
|
||||
utility::copyNewFilesFromDirectory(QString::fromStdString(UserPaths::getUserDataPath()), dataPath);
|
||||
utility::copyNewFilesFromDirectory(QString::fromStdString(UserPaths::getUserDataPath() + "user/"), dataPath);
|
||||
|
||||
UserPaths::setUserDataPath(dataPath.toStdString() + "/");
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -79,6 +79,10 @@ void setupApp(int argc, char *argv[])
|
||||
{
|
||||
UserPaths::setUserDataPath(path.absolute().str() + "/user/");
|
||||
}
|
||||
else
|
||||
{
|
||||
UserPaths::setSampleProjectsPath(path.absolute().str() + "/data/");
|
||||
}
|
||||
}
|
||||
|
||||
#endif // INCLUDES_MAC_H
|
||||
|
||||
Reference in New Issue
Block a user