Skip to content

Commit 511de74

Browse files
authored
Merge pull request #153 from georgexu99/icon-rename
feat!: rename icon path fields to be consistent
2 parents fbb3049 + e027e54 commit 511de74

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ await msiCreator.compile();
118118
* `description` (string) - The app's description.
119119
* `version` (string) - The app's version.
120120
* `name` (string) - The app's name.
121-
* `appIconPath` 🆕 (string, optional) - A path to the Apps icon used for the stub executable.
121+
* `icon` 🆕 (string, optional) - A path to the Apps icon used for the stub executable.
122122
If not provided a lower quality version will be extracted form the `exe`
123123
* `manufacturer` (string) - Name of the manufacturer.
124124

e2e/src/utils/msi-packager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const defaultMsiOptions: MSICreatorOptions = {
1010
exe: 'HelloWix.exe',
1111
manufacturer: 'Wix Technologies',
1212
name: 'HelloWix',
13-
appIconPath: path.join(HARNESS_APP_DIR, '../HelloWix.ico'),
13+
icon: path.join(HARNESS_APP_DIR, '../HelloWix.ico'),
1414
outputDirectory: OUT_DIR,
1515
description: 'A hello wix package',
1616
ui: {

harness/harness.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function harness() {
1717
exe: 'HelloWix.exe',
1818
manufacturer: 'Wix Technologies',
1919
name: 'HelloWix',
20-
appIconPath: path.join(APP_DIR, '../HelloWix.ico'),
20+
icon: path.join(APP_DIR, '../HelloWix.ico'),
2121
outputDirectory: OUT_DIR,
2222
description: 'A hello wix package',
2323
toastActivatorClsid: '808ba5f6-12a4-4175-8cfe-9c10a6b1bab6',

src/creator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface MSICreatorOptions {
3737
toastActivatorClsid?: string;
3838
description: string;
3939
exe: string;
40-
appIconPath?: string;
40+
icon?: string;
4141
extensions?: Array<string>;
4242
lightSwitches?: Array<string>;
4343
cultures?: string;
@@ -115,7 +115,7 @@ export class MSICreator {
115115
public toastActivatorClsid?: string;
116116
public description: string;
117117
public exe: string;
118-
public iconPath?: string;
118+
public icon?: string;
119119
public extensions: Array<string>;
120120
public lightSwitches: Array<string>;
121121
public cultures?: string;
@@ -159,7 +159,7 @@ export class MSICreator {
159159
this.certificatePassword = options.certificatePassword;
160160
this.description = options.description;
161161
this.exe = options.exe.replace(/\.exe$/, '');
162-
this.iconPath = options.appIconPath;
162+
this.icon = options.icon;
163163
this.extensions = options.extensions || [];
164164
this.lightSwitches = options.lightSwitches || [];
165165
this.cultures = options.cultures;
@@ -676,7 +676,7 @@ export class MSICreator {
676676
this.manufacturer,
677677
this.description,
678678
this.windowsCompliantVersion,
679-
this.iconPath);
679+
this.icon);
680680

681681
const installInfoFile = createInstallInfoFile(this.manufacturer,
682682
this.shortName,

0 commit comments

Comments
 (0)