Fix iOS target path combining

This commit is contained in:
Joshua Granick
2015-01-13 11:48:51 -08:00
parent 269004cff8
commit 63fb63285e

View File

@@ -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);
} }
@@ -600,3 +593,20 @@ class IOSPlatform extends PlatformTarget {
} }
private typedef IconSize = {
name:String,
size:Int,
}
private typedef SplashSize = {
name:String,
w:Int,
h:Int,
}