Explorar o código

allow texconv on node

Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
d91a94bf53
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxd/fs/Convert.hx

+ 1 - 1
hxd/fs/Convert.hx

@@ -239,7 +239,7 @@ class CompressIMG extends Convert {
 			var tmpPath = new haxe.io.Path(dstPath);
 			tmpPath.ext = "tmp."+new haxe.io.Path(srcPath).ext;
 			var tmpFile = tmpPath.toString();
-			#if sys
+			#if (sys || nodejs)
 			try sys.FileSystem.deleteFile(tmpFile) catch( e : Dynamic ) {};
 			try sys.FileSystem.deleteFile(dstPath) catch( e : Dynamic ) {};
 			sys.io.File.copy(srcPath, tmpFile);