Fix iOS target path combining
This commit is contained in:
@@ -28,16 +28,6 @@ import project.PlatformTarget;
|
|||||||
import sys.io.File;
|
import sys.io.File;
|
||||||
import sys.FileSystem;
|
import sys.FileSystem;
|
||||||
|
|
||||||
private typedef SplashSize = {
|
|
||||||
name:String,
|
|
||||||
w:Int,
|
|
||||||
h:Int,
|
|
||||||
}
|
|
||||||
|
|
||||||
private typedef IconSize = {
|
|
||||||
name:String,
|
|
||||||
size:Int,
|
|
||||||
}
|
|
||||||
|
|
||||||
class IOSPlatform extends PlatformTarget {
|
class IOSPlatform extends PlatformTarget {
|
||||||
|
|
||||||
@@ -546,7 +536,8 @@ class IOSPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
if (asset.type != AssetType.TEMPLATE) {
|
if (asset.type != AssetType.TEMPLATE) {
|
||||||
|
|
||||||
var targetPath = projectDirectory + "/assets/" + asset.resourceName;
|
var targetPath = PathHelper.combine (projectDirectory + "/assets/", asset.resourceName);
|
||||||
|
|
||||||
//var sourceAssetPath:String = projectDirectory + "haxe/" + asset.sourcePath;
|
//var sourceAssetPath:String = projectDirectory + "haxe/" + asset.sourcePath;
|
||||||
|
|
||||||
PathHelper.mkdir (Path.directory (targetPath));
|
PathHelper.mkdir (Path.directory (targetPath));
|
||||||
@@ -557,8 +548,10 @@ class IOSPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
PathHelper.mkdir (Path.directory (projectDirectory + "/" + asset.targetPath));
|
var targetPath = PathHelper.combine (projectDirectory, asset.targetPath);
|
||||||
FileHelper.copyAsset (asset, projectDirectory + "/" + asset.targetPath, context);
|
|
||||||
|
PathHelper.mkdir (Path.directory (targetPath));
|
||||||
|
FileHelper.copyAsset (asset, targetPath, context);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -599,4 +592,21 @@ class IOSPlatform extends PlatformTarget {
|
|||||||
@ignore public override function uninstall ():Void {}
|
@ignore public override function uninstall ():Void {}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private typedef IconSize = {
|
||||||
|
|
||||||
|
name:String,
|
||||||
|
size:Int,
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private typedef SplashSize = {
|
||||||
|
|
||||||
|
name:String,
|
||||||
|
w:Int,
|
||||||
|
h:Int,
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user