Implement lime setup hl in a hopefully better way.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package;
|
||||
|
||||
import lime.tools.HashlinkHelper;
|
||||
import hxp.Haxelib;
|
||||
import hxp.HXML;
|
||||
import hxp.Path;
|
||||
@@ -220,19 +221,7 @@ class LinuxPlatform extends PlatformTarget
|
||||
|
||||
if (noOutput) return;
|
||||
|
||||
// System.copyFile(targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-Debug" : "") + ".hl",
|
||||
// Path.combine(applicationDirectory, project.app.file + ".hl"));
|
||||
System.recursiveCopyTemplate(project.templatePaths, "bin/hl/linux", applicationDirectory);
|
||||
System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(applicationDirectory, "hlboot.dat"));
|
||||
System.renameFile(Path.combine(applicationDirectory, "hl"), executablePath);
|
||||
// let's not keep around hxcpp's hash files
|
||||
for (file in System.readDirectory(applicationDirectory))
|
||||
{
|
||||
if (Path.extension(file) == "hash")
|
||||
{
|
||||
System.deleteFile(file);
|
||||
}
|
||||
}
|
||||
HashlinkHelper.copyHashlink(project, targetDirectory, applicationDirectory, executablePath);
|
||||
}
|
||||
else if (targetType == "nodejs")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package;
|
||||
|
||||
import lime.tools.HashlinkHelper;
|
||||
import hxp.Haxelib;
|
||||
import hxp.HXML;
|
||||
import hxp.Log;
|
||||
@@ -205,19 +206,21 @@ class MacPlatform extends PlatformTarget
|
||||
|
||||
if (noOutput) return;
|
||||
|
||||
// System.copyFile(targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-Debug" : "") + ".hl",
|
||||
// Path.combine(executableDirectory, project.app.file + ".hl"));
|
||||
System.recursiveCopyTemplate(project.templatePaths, "bin/hl/mac", executableDirectory);
|
||||
// let's not keep around hxcpp's hash files
|
||||
for (file in System.readDirectory(applicationDirectory))
|
||||
{
|
||||
if (Path.extension(file) == "hash")
|
||||
{
|
||||
System.deleteFile(file);
|
||||
}
|
||||
}
|
||||
System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(executableDirectory, "hlboot.dat"));
|
||||
System.renameFile(Path.combine(executableDirectory, "hl"), executablePath);
|
||||
HashlinkHelper.copyHashlink(project, targetDirectory, applicationDirectory, executablePath);
|
||||
|
||||
// // System.copyFile(targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-Debug" : "") + ".hl",
|
||||
// // Path.combine(executableDirectory, project.app.file + ".hl"));
|
||||
// System.recursiveCopyTemplate(project.templatePaths, "bin/hl/mac", executableDirectory);
|
||||
// // let's not keep around hxcpp's hash files
|
||||
// for (file in System.readDirectory(applicationDirectory))
|
||||
// {
|
||||
// if (Path.extension(file) == "hash")
|
||||
// {
|
||||
// System.deleteFile(file);
|
||||
// }
|
||||
// }
|
||||
// System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(executableDirectory, "hlboot.dat"));
|
||||
// System.renameFile(Path.combine(executableDirectory, "hl"), executablePath);
|
||||
}
|
||||
else if (targetType == "java")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package;
|
||||
|
||||
import lime.tools.HashlinkHelper;
|
||||
import hxp.Haxelib;
|
||||
import hxp.HXML;
|
||||
import hxp.Log;
|
||||
@@ -341,10 +342,12 @@ class WindowsPlatform extends PlatformTarget
|
||||
|
||||
if (noOutput) return;
|
||||
|
||||
HashlinkHelper.copyHashlink(project, targetDirectory, applicationDirectory, executablePath);
|
||||
|
||||
// System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(applicationDirectory, project.app.file + ".hl"));
|
||||
System.recursiveCopyTemplate(project.templatePaths, "bin/hl/windows", applicationDirectory);
|
||||
System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(applicationDirectory, "hlboot.dat"));
|
||||
System.renameFile(Path.combine(applicationDirectory, "hl.exe"), executablePath);
|
||||
// System.recursiveCopyTemplate(project.templatePaths, "bin/hl/windows", applicationDirectory);
|
||||
// System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(applicationDirectory, "hlboot.dat"));
|
||||
// System.renameFile(Path.combine(applicationDirectory, "hl.exe"), executablePath);
|
||||
// let's not keep around hxcpp's hash files
|
||||
for (file in System.readDirectory(applicationDirectory))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user