Windows installer create shortcut - question
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
I am stumped on trying to get the installer created using electron-forge make to create the windows shortcuts. Can I please verify I should just be adding the following to my main.js:
if(require(‘electron-squirrel-startup’)) app.quit();
I have seen another couple of older issues where config for win32metadata was added under electronPackagerConfig in package.json. This doesn’t seem to make a difference.
I am getting a javascript error when running the installer. I cannot copy the text from the alert so have attached snippet.
I am sorry if this is not the right place. I can see electron-forge uses windows-installer which in turn uses electron-squirrel-startup. electron-squirrel-startup seems dead. I can close and move this to appropriate place if needed.
Console output when you run electron-forge
with the environment variable DEBUG=electron-forge:*
. (Instructions on how to do so here). Please include the stack trace if one exists.
I don't have console output since this happens when running the installer.
What command line arguments are you passing?
None. I am just running installer created from electron-forge make.
What does your config.forge
data in package.json
look like?
"config": {
"forge": {
"make_targets": {
"win32": [
"squirrel"
],
"darwin": [
"zip"
],
"linux": [
"deb",
"rpm"
]
},
"electronPackagerConfig": {
"packageManager": "npm",
"dir": "./src",
"ignore": [
".idea",
".gitignore"
]
},
"electronWinstallerConfig": {
"name": "dymamic_soundboard"
},
"electronInstallerDebian": {},
"electronInstallerRedhat": {},
"github_repository": {
"owner": "",
"name": ""
},
"windowsStoreConfig": {
"packageName": "",
"name": "dymamicsoundboard"
}
}
}
Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-forge init
is a good starting point, if that is not the
source of your problem.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
@cballantyne Did you ever get this issue solved? Looking at this comment: https://github.com/electron/electron/issues/8862#issuecomment-294303518 prompted us to update our code:
And we updated to:
The issue got resolved doing this, but the shortcut is now not created.
I can confirm, changing:
to:
and the issue went away.