Skip to content

Commit

Permalink
feat: Make autoUpdate and autoLaunch features configurable in MakerWi…
Browse files Browse the repository at this point in the history
…xConfig (#2620)

- Added 'features' property to `MakerWixConfig` to enable configuration of `autoUpdate` and `autoLaunch` features
     - (see definition [here](https://github.com/felixrieseberg/electron-wix-msi/blob/master/src/creator.ts#L85))
- These features can then be configured by adding `features` to `@electron-forge/maker-wix`'s `config` in `forge.config.js`
Example:
```javascript
{ features: { autoUpdate: true, autoLaunch: false } }
```
  • Loading branch information
pthompson-asana authored Feb 11, 2022
1 parent bc2949a commit bf7d271
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/maker/wix/src/Config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MSICreator } from 'electron-wix-msi/lib/creator';
import { MSICreator, Features } from 'electron-wix-msi/lib/creator';

export interface MakerWixConfig {
/**
Expand Down Expand Up @@ -70,6 +70,11 @@ export interface MakerWixConfig {
* The password to decrypt the certificate given in `certificateFile`.
*/
certificatePassword?: string;
/**
* Enables configuration of the autoUpdate and autoLaunch features.
* By default, they are disabled.
*/
features?: Features | false;
/**
* Allows for the modification of the MSICreator before create is called.
*/
Expand Down

0 comments on commit bf7d271

Please sign in to comment.