Skip to content

Commit

Permalink
Merge pull request #153 from georgexu99/icon-rename
Browse files Browse the repository at this point in the history
feat!: rename icon path fields to be consistent
  • Loading branch information
VerteDinde committed Oct 26, 2022
2 parents fbb3049 + e027e54 commit 511de74
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ await msiCreator.compile();
* `description` (string) - The app's description.
* `version` (string) - The app's version.
* `name` (string) - The app's name.
* `appIconPath` 🆕 (string, optional) - A path to the Apps icon used for the stub executable.
* `icon` 🆕 (string, optional) - A path to the Apps icon used for the stub executable.
If not provided a lower quality version will be extracted form the `exe`
* `manufacturer` (string) - Name of the manufacturer.

Expand Down
2 changes: 1 addition & 1 deletion e2e/src/utils/msi-packager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const defaultMsiOptions: MSICreatorOptions = {
exe: 'HelloWix.exe',
manufacturer: 'Wix Technologies',
name: 'HelloWix',
appIconPath: path.join(HARNESS_APP_DIR, '../HelloWix.ico'),
icon: path.join(HARNESS_APP_DIR, '../HelloWix.ico'),
outputDirectory: OUT_DIR,
description: 'A hello wix package',
ui: {
Expand Down
2 changes: 1 addition & 1 deletion harness/harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function harness() {
exe: 'HelloWix.exe',
manufacturer: 'Wix Technologies',
name: 'HelloWix',
appIconPath: path.join(APP_DIR, '../HelloWix.ico'),
icon: path.join(APP_DIR, '../HelloWix.ico'),
outputDirectory: OUT_DIR,
description: 'A hello wix package',
toastActivatorClsid: '808ba5f6-12a4-4175-8cfe-9c10a6b1bab6',
Expand Down
8 changes: 4 additions & 4 deletions src/creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface MSICreatorOptions {
toastActivatorClsid?: string;
description: string;
exe: string;
appIconPath?: string;
icon?: string;
extensions?: Array<string>;
lightSwitches?: Array<string>;
cultures?: string;
Expand Down Expand Up @@ -115,7 +115,7 @@ export class MSICreator {
public toastActivatorClsid?: string;
public description: string;
public exe: string;
public iconPath?: string;
public icon?: string;
public extensions: Array<string>;
public lightSwitches: Array<string>;
public cultures?: string;
Expand Down Expand Up @@ -159,7 +159,7 @@ export class MSICreator {
this.certificatePassword = options.certificatePassword;
this.description = options.description;
this.exe = options.exe.replace(/\.exe$/, '');
this.iconPath = options.appIconPath;
this.icon = options.icon;
this.extensions = options.extensions || [];
this.lightSwitches = options.lightSwitches || [];
this.cultures = options.cultures;
Expand Down Expand Up @@ -676,7 +676,7 @@ export class MSICreator {
this.manufacturer,
this.description,
this.windowsCompliantVersion,
this.iconPath);
this.icon);

const installInfoFile = createInstallInfoFile(this.manufacturer,
this.shortName,
Expand Down

0 comments on commit 511de74

Please sign in to comment.