File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
packages/electron-builder/src/targets
test/out/windows/__snapshots__ Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ export default class WebInstallerTarget extends NsisTarget {
39
39
}
40
40
41
41
protected generateGitHubInstallerName ( ) : string {
42
- return `${ this . packager . appInfo . name } -WebSetup-${ this . packager . appInfo . version } .exe`
42
+ const appInfo = this . packager . appInfo
43
+ const classifier = appInfo . name . toLowerCase ( ) === appInfo . name ? "web-setup" : "WebSetup"
44
+ return `${ appInfo . name } -${ classifier } -${ appInfo . version } .exe`
43
45
}
44
46
}
Original file line number Diff line number Diff line change @@ -180,7 +180,9 @@ export default class NsisTarget extends Target {
180
180
}
181
181
182
182
protected generateGitHubInstallerName ( ) {
183
- return `${ this . packager . appInfo . name } -${ this . isPortable ? "" : "Setup-" } ${ this . packager . appInfo . version } .exe`
183
+ const appInfo = this . packager . appInfo
184
+ const classifier = appInfo . name . toLowerCase ( ) === appInfo . name ? "setup-" : "Setup-"
185
+ return `${ appInfo . name } -${ this . isPortable ? "" : classifier } ${ appInfo . version } .exe`
184
186
}
185
187
186
188
private get isUnicodeEnabled ( ) {
Original file line number Diff line number Diff line change 5
5
" win" : Array [
6
6
Object {
7
7
" file" : " Test Custom Installation Dir Setup 1.1.0.exe" ,
8
- " safeArtifactName" : " test-custom-inst-dir-Setup -1.1.0.exe" ,
8
+ " safeArtifactName" : " test-custom-inst-dir-setup -1.1.0.exe" ,
9
9
},
10
10
],
11
11
}
@@ -21,7 +21,7 @@ Object {
21
21
22
22
exports [` allowToChangeInstallationDirectory 3` ] = `
23
23
Object {
24
- " githubArtifactName" : " test-custom-inst-dir-Setup -1.1.0.exe" ,
24
+ " githubArtifactName" : " test-custom-inst-dir-setup -1.1.0.exe" ,
25
25
" path" : " Test Custom Installation Dir Setup 1.1.0.exe" ,
26
26
" version" : " 1.1.0" ,
27
27
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Object {
29
29
" win" : Array [
30
30
Object {
31
31
" file" : " Test Menu Category CustomName 1.1.0.exe" ,
32
- " safeArtifactName" : " test-menu-category-Setup -1.1.0.exe" ,
32
+ " safeArtifactName" : " test-menu-category-setup -1.1.0.exe" ,
33
33
},
34
34
],
35
35
}
You can’t perform that action at this time.
0 commit comments