You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the code of conduct that this project follows, as appropriate.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Issue Details
Electron Forge Version: 6.0.0-beta.54
Electron Version: v11.2.3
Operating System:
Windows 10
Actual Behavior
The start menu and desktop created shortcuts are poiting to $HOME/AppData/local/mypackage/mypackage.exe and the working .exe file is in $HOME/AppData/local/mypackage/app-0.0.0/mypackage.exe
Expected Behavior
The created shortcuts should point to the right .exe and start the aplication properly. If I click on the right file, the aplication starts just fine.
To Reproduce
main.js:
if(require('electron-squirrel-startup'))return;const{ app, BrowserWindow, globalShortcut }=require('electron');constnativeImage=require('electron').nativeImage;letwin;constimage=nativeImage.createFromPath(__dirname+'favicon.ico');image.setTemplateImage(true);// this should be placed at top of main.js to handle seup events quickly.// squirrel event handled and app will exit in 1000ms, so don't do anything else// if(handleSquirrelEvent()) return;functioncreateWindow(){win=newBrowserWindow({width: 1200,height: 800,backgroundColor: '#ffffff',icon: image,webPreferences: {nodeIntegration: true}});win.loadURL(`file://${__dirname}/dist/iq-web-bot/index.html`);// uncomment below to open the DevTools// win.webContents.openDevTools()win.on('closed',function(){win=null;});}// create window on electron initializationapp.on('ready',function(){createWindow();globalShortcut.register('f5',function(){console.log('f5 is pressed')win.reload()})globalShortcut.register('CommandOrControl+R',function(){console.log('CommandOrControl+R is pressed')win.reload()})})// quit when all windows are closedapp.on('window-all-closed',function(){// on macOS specific close processif(process.platform!=='darwin'){app.quit();}});app.on('activate',function(){if(win==null){createWindow();}});
Preflight Checklist
Issue Details
6.0.0-beta.54
v11.2.3
Windows 10
Actual Behavior
The start menu and desktop created shortcuts are poiting to
$HOME/AppData/local/mypackage/mypackage.exe
and the working .exe file is in$HOME/AppData/local/mypackage/app-0.0.0/mypackage.exe
Expected Behavior
The created shortcuts should point to the right .exe and start the aplication properly. If I click on the right file, the aplication starts just fine.
To Reproduce
main.js:
resumed package.json
config.js
this is the level of the .exe pointed by the shortcuts
this is lthe level it should be poiting:
The text was updated successfully, but these errors were encountered: