From dcacb9f04a1b6b767501133d247d6e4580d90d12 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 26 Apr 2018 12:11:14 -0700 Subject: [PATCH] Minor fixes --- lime/tools/platforms/LinuxPlatform.hx | 7 ++++++- lime/tools/platforms/MacPlatform.hx | 7 ++++++- lime/tools/platforms/WindowsPlatform.hx | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/lime/tools/platforms/LinuxPlatform.hx b/lime/tools/platforms/LinuxPlatform.hx index c95fb9120..5ad1440ad 100644 --- a/lime/tools/platforms/LinuxPlatform.hx +++ b/lime/tools/platforms/LinuxPlatform.hx @@ -138,6 +138,7 @@ class LinuxPlatform extends PlatformTarget { if (noOutput) return; + FileHelper.copyFile (targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-Debug" : "") + ".hl", PathHelper.combine (applicationDirectory, project.app.file + ".hl")); NekoHelper.copyLibraries (project.templatePaths, "linux" + (is64 ? "64" : ""), applicationDirectory); } else if (targetType == "nodejs") { @@ -323,7 +324,11 @@ class LinuxPlatform extends PlatformTarget { } - if (targetType == "nodejs") { + if (targetType == "hl") { + + ProcessHelper.runCommand (applicationDirectory, "hl", [ project.app.file + ".hl" ].concat (arguments)); + + } else if (targetType == "nodejs") { NodeJSHelper.run (project, targetDirectory + "/bin/ApplicationMain.js", arguments); diff --git a/lime/tools/platforms/MacPlatform.hx b/lime/tools/platforms/MacPlatform.hx index 92bedd5b3..85a941e57 100644 --- a/lime/tools/platforms/MacPlatform.hx +++ b/lime/tools/platforms/MacPlatform.hx @@ -121,6 +121,7 @@ class MacPlatform extends PlatformTarget { if (noOutput) return; + FileHelper.copyFile (targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-Debug" : "") + ".hl", PathHelper.combine (executableDirectory, project.app.file + ".hl")); NekoHelper.copyLibraries (project.templatePaths, "mac" + (is64 ? "64" : ""), executableDirectory); } else if (targetType == "java") { @@ -289,7 +290,11 @@ class MacPlatform extends PlatformTarget { } - if (targetType == "nodejs") { + if (targetType == "hl") { + + ProcessHelper.runCommand (applicationDirectory, "hl", [ project.app.file + ".hl" ].concat (arguments)); + + } else if (targetType == "nodejs") { NodeJSHelper.run (project, executableDirectory + "/ApplicationMain.js", arguments); diff --git a/lime/tools/platforms/WindowsPlatform.hx b/lime/tools/platforms/WindowsPlatform.hx index 15ea304f0..1e1006dd1 100644 --- a/lime/tools/platforms/WindowsPlatform.hx +++ b/lime/tools/platforms/WindowsPlatform.hx @@ -198,6 +198,7 @@ class WindowsPlatform extends PlatformTarget { if (noOutput) return; + FileHelper.copyFile (targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-Debug" : "") + ".hl", PathHelper.combine (applicationDirectory, project.app.file + ".hl")); NekoHelper.copyLibraries (project.templatePaths, "windows" + (is64 ? "64" : ""), applicationDirectory); } else if (targetType == "nodejs") { @@ -428,7 +429,11 @@ class WindowsPlatform extends PlatformTarget { } - if (targetType == "nodejs") { + if (targetType == "hl") { + + ProcessHelper.runCommand (applicationDirectory, "hl", [ project.app.file + ".hl" ].concat (arguments)); + + } else if (targetType == "nodejs") { NodeJSHelper.run (project, targetDirectory + "/bin/ApplicationMain.js", arguments);