Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/commands/build-command-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ export class BuildCommandHelper implements IBuildCommandHelper {
}

const pathToProvision = this.$options.provision ? path.resolve(this.$options.provision) : "";
const projectSettings = { projectDir: this.$projectData.projectDir, projectId: this.$projectData.projectId, projectName: this.$projectData.projectName, nativescriptData, clean: this.$options.clean };
const projectSettings: IProjectSettings = {
nativescriptData,
projectDir: this.$projectData.projectDir,
projectId: this.$projectData.projectId,
projectName: this.$projectData.projectName,
clean: this.$options.clean,
env: this.$options.env
};
const buildConfiguration = this.$options.release ? CLOUD_BUILD_CONFIGURATIONS.RELEASE : CLOUD_BUILD_CONFIGURATIONS.DEBUG;
return {
projectSettings,
Expand Down Expand Up @@ -82,7 +89,8 @@ export class BuildCommandHelper implements IBuildCommandHelper {
keyStoreAlias: this.$options.keyStoreAlias,
keyStoreAliasPassword: this.$options.keyStoreAliasPassword,
keyStorePassword: this.$options.keyStorePassword,
keyStorePath: this.$options.keyStorePath
keyStorePath: this.$options.keyStorePath,
env: this.$options.env
}, this.$options.platformTemplate);
} else {
const buildData = this.getCloudBuildData(platform);
Expand Down
2 changes: 1 addition & 1 deletion lib/definitions/cloud-build-service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ interface IItmsPlistOptions {
/**
* Describes the project settings required for different operations.
*/
interface IProjectSettings {
interface IProjectSettings extends IEnvOptions {
/**
* The directory where the project is located. This should be the path to the directory where application's package.json is located.
*/
Expand Down
11 changes: 10 additions & 1 deletion lib/services/cloud-build-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,16 @@ export class CloudBuildService extends CloudService implements ICloudBuildServic
};

this.emitStepChanged(buildId, constants.BUILD_STEP_NAME.PREPARE, constants.BUILD_STEP_PROGRESS.START);
await this.$platformService.preparePlatform(platform, appFilesUpdaterOptions, null, projectData, config, [], { skipNativePrepare: true });
await this.$platformService.preparePlatform({
platform,
appFilesUpdaterOptions,
projectData,
config,
filesToSync: [],
nativePrepare: { skipNativePrepare: true },
platformTemplate: null,
env: projectSettings.env
});
this.emitStepChanged(buildId, constants.BUILD_STEP_NAME.PREPARE, constants.BUILD_STEP_PROGRESS.END);
}

Expand Down