Skip to content

Commit

Permalink
fix(publisher-ers): properly publish non-default flavors (#3079)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusclay authored Nov 30, 2022
1 parent d2eea20 commit d4a51de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export default class PublisherERS extends PublisherBase<PublisherERSConfig> {
let channel = 'stable';
if (config.channel) {
channel = config.channel;
} else if (packageJSON.version.includes('rc')) {
channel = 'rc';
} else if (packageJSON.version.includes('beta')) {
channel = 'beta';
} else if (packageJSON.version.includes('alpha')) {
Expand Down Expand Up @@ -127,7 +129,7 @@ export default class PublisherERS extends PublisherBase<PublisherERSConfig> {
d('attempting to upload asset:', artifactPath);
const artifactForm = new FormData();
artifactForm.append('token', token);
artifactForm.append('version', packageJSON.version);
artifactForm.append('version', `${packageJSON.version}_${flavor}`);
artifactForm.append('platform', ersPlatform(makeResult.platform, makeResult.arch));

// see https://github.com/form-data/form-data/issues/426
Expand Down

0 comments on commit d4a51de

Please sign in to comment.