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:
@@ -33,15 +33,44 @@ class AIRHelper
|
|||||||
}
|
}
|
||||||
else
|
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 (project.debug)
|
||||||
{
|
{
|
||||||
|
if (exportMethod != null)
|
||||||
|
{
|
||||||
|
Log.error("Must not specify export method for a debug build. Found: " + exportMethod);
|
||||||
|
}
|
||||||
airTarget = "ipa-debug";
|
airTarget = "ipa-debug";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
switch (exportMethod)
|
||||||
|
{
|
||||||
|
case "appstore":
|
||||||
|
airTarget = "ipa-app-store";
|
||||||
|
case "adhoc":
|
||||||
|
airTarget = "ipa-ad-hoc";
|
||||||
|
default:
|
||||||
airTarget = "ipa-test";
|
airTarget = "ipa-test";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// extension = ".ipa";
|
// extension = ".ipa";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user