AIRHelper: can specify -appstore and -adhoc for AIR ios builds, similar to cpp ios builds

Uses ipa-app-store or ipa-ad-hoc, instead of ipa-test
This commit is contained in:
Josh Tynjala
2022-05-11 14:15:09 -07:00
parent c406bc53ea
commit b091ba88bb

View File

@@ -33,13 +33,42 @@ class AIRHelper
}
else
{
var supportedExportMethods = ["adhoc", "appstore"];
var exportMethod:String = null;
for (m in supportedExportMethods)
{
if (project.targetFlags.exists(m))
{
if (exportMethod != null)
{
Log.error("Must not specify multiple export methods. Found: " + exportMethod + " and " + m);
}
exportMethod = m;
}
}
if (exportMethod == null && project.targetFlags.exists("final")) {
exportMethod = "appstore";
}
if (project.debug)
{
if (exportMethod != null)
{
Log.error("Must not specify export method for a debug build. Found: " + exportMethod);
}
airTarget = "ipa-debug";
}
else
{
airTarget = "ipa-test";
switch (exportMethod)
{
case "appstore":
airTarget = "ipa-app-store";
case "adhoc":
airTarget = "ipa-ad-hoc";
default:
airTarget = "ipa-test";
}
}
}