Skip to content

Commit d4a51de

Browse files
authored
fix(publisher-ers): properly publish non-default flavors (#3079)
1 parent d2eea20 commit d4a51de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/publisher/electron-release-server/src/PublisherERS.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ export default class PublisherERS extends PublisherBase<PublisherERSConfig> {
8585
let channel = 'stable';
8686
if (config.channel) {
8787
channel = config.channel;
88+
} else if (packageJSON.version.includes('rc')) {
89+
channel = 'rc';
8890
} else if (packageJSON.version.includes('beta')) {
8991
channel = 'beta';
9092
} else if (packageJSON.version.includes('alpha')) {
@@ -127,7 +129,7 @@ export default class PublisherERS extends PublisherBase<PublisherERSConfig> {
127129
d('attempting to upload asset:', artifactPath);
128130
const artifactForm = new FormData();
129131
artifactForm.append('token', token);
130-
artifactForm.append('version', packageJSON.version);
132+
artifactForm.append('version', `${packageJSON.version}_${flavor}`);
131133
artifactForm.append('platform', ersPlatform(makeResult.platform, makeResult.arch));
132134

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

0 commit comments

Comments
 (0)