electron-multi-monitor icon indicating copy to clipboard operation
electron-multi-monitor copied to clipboard

How to build an application for window?

Open viethd98 opened this issue 1 year ago • 2 comments
trafficstars

Hello, can you help me build the app for window?

viethd98 avatar Feb 21 '24 09:02 viethd98

The project needs to be updated. I'll try to make an update when I have some spare time.

pvrobays avatar Feb 26 '24 20:02 pvrobays

I just recently gave this project example a try. After npm install I needed to also cd into node_modules/electron and then run node install.js otherwise Electron would not work for some reason (I don't remember the error I had before this). Then I had to change the "example" script in package.json to this to get it running on a recent version of Node without errors:

    "example": "npm run build && npm run build-example && NODE_OPTIONS=--openssl-legacy-provider npm run build-example-app && electron example/dist/Main.js",

Basically I had to add the NODE_OPTIONS=--openssl-legacy-provider in front of npm run build-example-app.

Probably something needs to be updated to not require this.

Haprog avatar Mar 14 '24 13:03 Haprog