build: windows deploy
* implemented a new deploy script for windows * created a new setup project for the Coati Trail
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
add_files(
|
||||
LIB_GUI_FILES
|
||||
|
||||
platform_includes/deploy.h
|
||||
platform_includes/includesDefault.h
|
||||
platform_includes/includesMac.h
|
||||
platform_includes/includesWindows.h
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
// #define DEPLOY
|
||||
@@ -6,14 +6,22 @@
|
||||
#include "vld.h"
|
||||
|
||||
#include "utility/UserPaths.h"
|
||||
#include "isTrial.h"
|
||||
|
||||
// #define DEPLOY
|
||||
#include "platform_includes/deploy.h"
|
||||
|
||||
void setup(int argc, char *argv[])
|
||||
{
|
||||
#ifdef DEPLOY
|
||||
std::string path = std::getenv("APPDATA");
|
||||
path += "/../local/Coati Software/Coati/";
|
||||
if (isTrial())
|
||||
{
|
||||
path += "/../local/Coati Software/Coati Trial/";
|
||||
}
|
||||
else
|
||||
{
|
||||
path += "/../local/Coati Software/Coati/";
|
||||
}
|
||||
UserPaths::setUserDataPath(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user