Skip to content

Conversation

@WilsontheWolf
Copy link

This should work but I haven't tested it.
Basically it adds some features which make using this easier.
Added a dynamic Electron Version by seeing if its in dependencies, dev dependencies and falling back to v7.1.5.
Added a dynamic version check by using the version in the package.json falling back to v0.0.1.
Added a default icon file, which is where I store my icon as well as I've seen someone else do so. This change is more for my convenience but it is a smart place to save your icon.

This should work but I haven't tested it.
Added a dynamic Electron Version by seeing if its in dependencies, dev dependencies and falling back to v7.1.5.
Added a dynamic version check by using the version in the package.json falling back to v0.0.1.
Added a default icon file, which is where I store my icon as well as I've seen someone else do so. This change is more for my convenience but it is a smart place to save your icon.
electronVersion: '1.6.15',
electronVersion: getElectronVersion(),
version: getPackageVersion(),
defaultIcon: path.join(process.cwd(), 'assets', 'icon.ico'),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the path I use for my icons. You may remove this if you wish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant