Skip to content

Commit 6898ca7

Browse files
committed
allow building an msi if you want. not sure if will be used.
1 parent c1c338c commit 6898ca7

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
"deleteAppDataOnUninstall": false,
118118
"allowToChangeInstallationDirectory": true
119119
},
120+
"msi": {
121+
"artifactName": "${productName}-Setup-${version}-${arch}.${ext}"
122+
},
120123
"mac": {
121124
"artifactName": "${productName}-Setup-${version}.${ext}",
122125
"icon": "build/icon.icns",

release-automation/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ You must specify which platform to build for:
1010

1111
```
1212
--windows
13-
Create Windows installers for Windows 10 or later.
13+
Create Windows installers for Windows 10 or later using NSIS.
1414
1515
--windows-legacy
16-
Create Windows installers for Windows 7 or later (less secure than --windows).
16+
Create Windows installers for Windows 7 or later using NSIS (less secure than --windows).
1717
1818
--windows-portable
19-
Create portable Windows executables for Windows 10 or later.
19+
Create portable Windows executables for Windows 10 or later using NSIS.
20+
21+
--windows-msi
22+
Create Windows installers for Windows 10 or later using the Windows Installer format.
2023
2124
--windows-dir
2225
Generate executables for Windows but don't package into a single executable file

release-automation/build.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ const buildWindowsPortable = () => build({
203203
manageUpdates: true
204204
});
205205

206+
const buildWindowsMSI = () => build({
207+
platformName: 'WINDOWS',
208+
platformType: 'msi',
209+
manageUpdates: true
210+
});
211+
206212
const buildWindowsDir = () => build({
207213
platformName: 'WINDOWS',
208214
platformType: 'dir',
@@ -291,6 +297,7 @@ const run = async () => {
291297
'--windows': buildWindows,
292298
'--windows-legacy': buildWindowsLegacy,
293299
'--windows-portable': buildWindowsPortable,
300+
'--windows-msi': buildWindowsMSI,
294301
'--windows-dir': buildWindowsDir,
295302
'--microsoft-store': buildMicrosoftStore,
296303
'--mac': buildMac,

0 commit comments

Comments
 (0)