diff --git a/tools/platforms/AndroidPlatform.hx b/tools/platforms/AndroidPlatform.hx index 8c068f4ca..576a21e41 100644 --- a/tools/platforms/AndroidPlatform.hx +++ b/tools/platforms/AndroidPlatform.hx @@ -257,7 +257,7 @@ class AndroidPlatform extends PlatformTarget { //asset.flatName += ((extension != "") ? "." + extension : ""); //asset.resourceName = asset.flatName; - targetPath = destination + "/assets/" + asset.resourceName; + targetPath = PathHelper.combine (destination + "/assets/", asset.resourceName); //asset.resourceName = asset.id; //targetPath = destination + "/res/raw/" + asset.flatName + "." + Path.extension (asset.targetPath); @@ -376,8 +376,9 @@ class AndroidPlatform extends PlatformTarget { if (asset.type == AssetType.TEMPLATE) { - PathHelper.mkdir (Path.directory (destination + asset.targetPath)); - FileHelper.copyAsset (asset, destination + asset.targetPath, context); + var targetPath = PathHelper.combine (destination, asset.targetPath); + PathHelper.mkdir (Path.directory (targetPath)); + FileHelper.copyAsset (asset, targetPath, context); } diff --git a/tools/platforms/BlackBerryPlatform.hx b/tools/platforms/BlackBerryPlatform.hx index 4760e60ee..78d69f5c8 100644 --- a/tools/platforms/BlackBerryPlatform.hx +++ b/tools/platforms/BlackBerryPlatform.hx @@ -346,19 +346,20 @@ class BlackBerryPlatform extends PlatformTarget { for (asset in project.assets) { - PathHelper.mkdir (Path.directory (destination + asset.targetPath)); + var targetPath = PathHelper.combine (destination, asset.targetPath); + PathHelper.mkdir (Path.directory (targetPath)); if (asset.type != AssetType.TEMPLATE) { if (asset.type != AssetType.FONT || !project.targetFlags.exists ("html5")) { - FileHelper.copyAssetIfNewer (asset, destination + asset.targetPath); + FileHelper.copyAssetIfNewer (asset, targetPath); } } else { - FileHelper.copyAsset (asset, destination + asset.targetPath, context); + FileHelper.copyAsset (asset, targetPath, context); }