Allow 'lime update ios' without opening Xcode, support -xcode flag for 'lime test ios -xcode' or 'lime build ios -xcode'
This commit is contained in:
@@ -44,12 +44,20 @@ class IOSPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
public override function build ():Void {
|
public override function build ():Void {
|
||||||
|
|
||||||
IOSHelper.build (project, targetDirectory);
|
if (project.targetFlags.exists ("xcode") && PlatformHelper.hostPlatform == Platform.MAC) {
|
||||||
|
|
||||||
if (!project.targetFlags.exists ("simulator")) {
|
ProcessHelper.runCommand ("", "open", [ targetDirectory + "/" + project.app.file + ".xcodeproj" ] );
|
||||||
|
|
||||||
var entitlements = targetDirectory + "/" + project.app.file + "/" + project.app.file + "-Entitlements.plist";
|
} else {
|
||||||
IOSHelper.sign (project, targetDirectory + "/bin", entitlements);
|
|
||||||
|
IOSHelper.build (project, targetDirectory);
|
||||||
|
|
||||||
|
if (!project.targetFlags.exists ("simulator")) {
|
||||||
|
|
||||||
|
var entitlements = targetDirectory + "/" + project.app.file + "/" + project.app.file + "-Entitlements.plist";
|
||||||
|
IOSHelper.sign (project, targetDirectory + "/bin", entitlements);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -566,12 +574,6 @@ class IOSPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project.command == "update" && PlatformHelper.hostPlatform == Platform.MAC) {
|
|
||||||
|
|
||||||
ProcessHelper.runCommand ("", "open", [ targetDirectory + "/" + project.app.file + ".xcodeproj" ] );
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user