Skip to content

Commit 4caf2cb

Browse files
tzraikovrosen-vladimirov
authored andcommitted
Fixed: the app doesn't exit when using --release and --justlaunch (#2423)
1 parent b842e9e commit 4caf2cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/services/platform-service.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ export class PlatformService implements IPlatformService {
399399
} else {
400400
this.$logger.out("Skipping package build. No changes detected on the native side. This will be fast!");
401401
}
402+
402403
if (forceInstall || shouldBuild || (await this.shouldInstall(device))) {
403404
await this.installApplication(device);
404405
} else {
@@ -409,11 +410,17 @@ export class PlatformService implements IPlatformService {
409410
}
410411

411412
public async runPlatform(platform: string): Promise<void> {
413+
if (this.$options.justlaunch) {
414+
this.$options.watch = false;
415+
}
416+
412417
this.$logger.out("Starting...");
418+
413419
let action = async (device: Mobile.IDevice) => {
414420
await device.applicationManager.startApplication(this.$projectData.projectId);
415421
this.$logger.out(`Successfully started on device with identifier '${device.deviceInfo.identifier}'.`);
416422
};
423+
417424
await this.$devicesService.initialize({ platform: platform, deviceId: this.$options.device });
418425
await this.$devicesService.execute(action, this.getCanExecuteAction(platform));
419426
}

0 commit comments

Comments
 (0)