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:
Joseph Cloutier
2025-08-31 22:12:16 -04:00
parent 31af41e69c
commit 6ed53a9b92

View File

@@ -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");