|
|
@@ -136,7 +136,7 @@ void PolycodeProjectManager::createNewProject(String templateFolder, String proj
|
|
|
openProject(projectLocation+"/"+projectName+"/"+projectName+".polyproject");
|
|
|
}
|
|
|
|
|
|
-void PolycodeProjectManager::exportProject(PolycodeProject *project, String exportPath, bool macOS, bool windows, bool _linux) {
|
|
|
+void PolycodeProjectManager::exportProject(PolycodeProject *project, String exportPath, bool macOS, bool windows, bool linux) {
|
|
|
|
|
|
String polycodeBasePath = CoreServices::getInstance()->getCore()->getDefaultWorkingDirectory();
|
|
|
|
|
|
@@ -163,6 +163,15 @@ void PolycodeProjectManager::exportProject(PolycodeProject *project, String expo
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if(windows) {
|
|
|
+ PolycodeConsole::print("Exporting Linux version to "+exportPath+"/Win \n");
|
|
|
+ CoreServices::getInstance()->getCore()->copyDiskItem(publishPath+"/Win", exportPath);
|
|
|
+ CoreServices::getInstance()->getCore()->copyDiskItem(publishPath+"/Win", exportPath);
|
|
|
+ CoreServices::getInstance()->getCore()->moveDiskItem(exportPath+"/Win/StandalonePlayer.exe", exportPath+"/Win/"+project->getProjectName()+".exe");
|
|
|
+ CoreServices::getInstance()->getCore()->removeDiskItem(exportPath+"/Win/main.polyapp");
|
|
|
+ CoreServices::getInstance()->getCore()->copyDiskItem(polyappPath, exportPath+"/Win/main.polyapp");
|
|
|
+ }
|
|
|
+
|
|
|
if(linux) {
|
|
|
PolycodeConsole::print("Exporting Linux version to "+exportPath+"/Linux \n");
|
|
|
CoreServices::getInstance()->getCore()->copyDiskItem(publishPath+"/Linux", exportPath);
|