daff
daff copied to clipboard
Electron 32.0 support
Hi! When I'm trying to build my app with Electron 32.0 and daff 1.3.48 I'm getting the next error:
> [email protected] postinstall
> electron-builder install-app-deps
• electron-builder version=24.13.3
• loaded configuration file=package.json ("build" field)
• rebuilding native dependencies [email protected] platform=win32 arch=x64
⨯ cannot execute cause=exit status 1
errorOut=npm error code 1
npm error path D:\a\my_app\my_app\node_modules\sqlite3
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm error unpack_sqlite_dep
npm error sqlite3.c
npm error win_delay_load_hook.cc
npm error sqlite3.vcxproj -> D:\a\my_app\my_app\node_modules\sqlite3\build\Release\\sqlite3.lib
npm error backup.cc
npm error C:\Users\runneradmin\.electron-gyp\32.0.0\include\node\v8config.h(13,1): error C1189: #error: "C++20 or later required." [D:\a\my_app\my_app\node_modules\sqlite3\build\node_sqlite3.vcxproj]
I have no any issues with Electron 31.4
the reason is the version of node is too high, you should downgrade the version to v20
brew install node@20
v22 is too higher
If you don't need sqlite support, latest daff should be easier to work with now.