Skip to content

Commit d14cdaf

Browse files
authored
Merge pull request #4782 from NativeScript/fatme/fix-publish-exit
fix: exit publish command after uploading package to appstore
2 parents f9766bd + 67ce2ec commit d14cdaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/commands/appstore-upload.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export class PublishIOS implements ICommand {
5858
// As we need to build the package for device
5959
this.$options.forDevice = true;
6060

61-
const buildData = new IOSBuildData(this.$projectData.projectDir, platform, this.$options);
61+
const buildData = new IOSBuildData(this.$projectData.projectDir, platform, { ...this.$options.argv, watch: false });
6262
ipaFilePath = await this.$buildController.prepareAndBuild(buildData);
6363
} else {
6464
this.$logger.info("No .ipa, mobile provision or certificate set. Perfect! Now we'll build .xcarchive and let Xcode pick the distribution certificate and provisioning profile for you when exporting .ipa for AppStore submission.");
65-
const buildData = new IOSBuildData(this.$projectData.projectDir, platform, { ...this.$options.argv, buildForAppStore: true });
65+
const buildData = new IOSBuildData(this.$projectData.projectDir, platform, { ...this.$options.argv, buildForAppStore: true, watch: false });
6666
ipaFilePath = await this.$buildController.prepareAndBuild(buildData);
6767
this.$logger.info(`Export at: ${ipaFilePath}`);
6868
}

0 commit comments

Comments
 (0)