Skip to content

Commit 0c07e2e

Browse files
nadyaArosen-vladimirov
authored andcommitted
Pass correct release arguments to run command
#2903
1 parent 80c9aac commit 0c07e2e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/commands/run.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,18 @@ export class RunCommandBase implements ICommand {
9797
const runPlatformOptions: IRunPlatformOptions = {
9898
device: this.$options.device,
9999
emulator: this.$options.emulator,
100-
justlaunch: this.$options.justlaunch,
100+
justlaunch: this.$options.justlaunch
101101
};
102102

103-
const deployOptions = _.merge<IDeployPlatformOptions>({ projectDir: this.$projectData.projectDir, clean: true }, this.$options);
103+
const deployOptions = _.merge<IDeployPlatformOptions>({
104+
projectDir: this.$projectData.projectDir,
105+
clean: true,
106+
release: this.$options.release,
107+
keyStoreAlias: this.$options.keyStoreAlias,
108+
keyStoreAliasPassword: this.$options.keyStoreAliasPassword,
109+
keyStorePassword: this.$options.keyStorePassword,
110+
keyStorePath: this.$options.keyStorePath
111+
}, this.$options);
104112

105113
await this.$platformService.deployPlatform(args[0], this.$options, deployOptions, this.$projectData, this.$options);
106114
await this.$platformService.startApplication(args[0], runPlatformOptions, this.$projectData.projectId);

0 commit comments

Comments
 (0)