Handle appinfo.json as a template on Tizen.
The old code appeared to be trying to do this, but it didn't work. When it found appinfo.json, it would call `copyAsset()` with an extra `context` argument, which is what you do for templates. However, `copyAsset()` only processes templates when `type == TEMPLATE`, otherwise it ignores the extra argument and processes it as a normal asset.
This commit is contained in:
@@ -245,6 +245,14 @@ class TizenPlatform extends PlatformTarget
|
||||
ProjectHelper.recursiveSmartCopyTemplate(project, "haxe", targetDirectory + "/haxe", context);
|
||||
ProjectHelper.recursiveSmartCopyTemplate(project, "tizen/hxml", targetDirectory + "/haxe", context);
|
||||
|
||||
for (asset in project.assets)
|
||||
{
|
||||
if (asset.targetPath == "/appinfo.json" || asset.targetPath == "appinfo.json")
|
||||
{
|
||||
asset.type = AssetType.TEMPLATE;
|
||||
}
|
||||
}
|
||||
|
||||
// going to root directory now, but should it be a forced "assets" folder later?
|
||||
copyProjectAssets(destination + "res/", "");
|
||||
// copyProjectAssets(destination + "res/", "assets");
|
||||
|
||||
Reference in New Issue
Block a user