Closed athenakia closed 5 months ago
Hi. The version of prebuild in use uses a version of node-gyp that only supports visual studio up to 2019. Currently it's not possible to update prebuild to a newer version.
But please note that prebuild is only required if you want to create prebuilt binaries which are already provided at https://github.com/paymoapp/electron-shutdown-handler/releases.
You can execute npm run build:gyp
inside the package folder to build the binary from source with an up-to-date version of node-gyp. Also if you install this lib as a dependency to an electron application, the prebuilt binaries should be downloaded automatically.
I clone the repository and change version of every dependency to latest(including node-gyp), then it works well on my PC with VS 2022. Are there any potential problems and where it could be?
Hi, sorry for responding this late. Yes, the development builds will work. But prebuild (at least at that time) was using a really old version of node-gyp which only supported visual studio 2019. So you will only hit road blocks when you execute npm run prebuild
Error logs: