I had build an electron app with the tutorial from here.
The problem is now, that the "minimize to tray" function and the 'autostart' function doesnt work anymore. When starting my app via npm start
it works but not with the .exe
The code of the tray function is from this answer: Electron.js How to minimize/close window to system tray and restore window back from tray?
The code of the autostart function is from here: How to use auto-launch to start app on system startup?
Does anybody know why those functions doesnt work anymore after building a .exe? (Start as admin doesnt help)