Closed yuripourre closed 2 weeks ago
If I remove the following lines it works!
if (require("electron-squirrel-startup")) {
app.quit();
}
Hello, thank you for the report.
Unfortunately, I'm not able to reproduce this problem since I'm on Windows 11, but for what seems to be, it's something related to the Squirrel, which is a package to manage the installation and updating a Windows application, so it's make sense to throw error when not running on Windows.
As I said, I can't reproduce and fix the issue, so It'll be very appreciated if you or any other people fix this problem, guarantee that the problem was solved and send a PR.
You can simple check if the program is running on Windows or not using the Node's process.platform
variable, as is made for darwin
in the same main.ts
file.
@LuanRoger ok, I can try that! I am very new to Electron.
Since the line was removed, the project now runs without changes. Thank you!
When I try to use
npm run package
it successfully generates the binary but when I try to execute it, I got the following error.I am using Fedora 40.