Merge pull request #649 from jobs-git/patch-6
Fixes Icon Issue on Neko Cross Compile Linux to Windows, fix openfl/lime#626
This commit is contained in:
@@ -3,6 +3,8 @@ package lime.tools.helpers;
|
|||||||
|
|
||||||
import lime.project.Haxelib;
|
import lime.project.Haxelib;
|
||||||
import sys.io.File;
|
import sys.io.File;
|
||||||
|
import lime.tools.helpers.PlatformHelper;
|
||||||
|
import lime.project.Platform;
|
||||||
|
|
||||||
|
|
||||||
class NekoHelper {
|
class NekoHelper {
|
||||||
@@ -41,7 +43,7 @@ class NekoHelper {
|
|||||||
output.write (executable);
|
output.write (executable);
|
||||||
output.close ();
|
output.close ();
|
||||||
|
|
||||||
if (iconPath != null) {
|
if (iconPath != null && PlatformHelper.hostPlatform == Platform.WINDOWS) {
|
||||||
|
|
||||||
var templates = [ PathHelper.getHaxelib (new Haxelib ("lime")) + "/templates" ].concat (templatePaths);
|
var templates = [ PathHelper.getHaxelib (new Haxelib ("lime")) + "/templates" ].concat (templatePaths);
|
||||||
ProcessHelper.runCommand ("", PathHelper.findTemplate (templates, "bin/ReplaceVistaIcon.exe"), [ target, iconPath, "1" ], true, true);
|
ProcessHelper.runCommand ("", PathHelper.findTemplate (templates, "bin/ReplaceVistaIcon.exe"), [ target, iconPath, "1" ], true, true);
|
||||||
@@ -59,4 +61,4 @@ class NekoHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user