Can't get npm run dist to work in packages/app-desktop on Linux. Getting tons of C compile warnings culminating in
../src/backup.cc:319:5: note: in expansion of macro ‘BACKUP_BEGIN’
319 | BACKUP_BEGIN(Finish);
| ^~~~~~~~~~~~
In file included from /home/roman/dev/joplin/packages/app-desktop/node_modules/node-addon-api/napi.h:2636,
from ../src/backup.cc:2:
/home/roman/dev/joplin/packages/app-desktop/node_modules/node-addon-api/napi-inl.h: In instantiation of ‘T* Napi::Env::GetInstanceData() [with T = Napi::FunctionReference]’:
../src/database.h:38:58: required from here
/home/roman/dev/joplin/packages/app-desktop/node_modules/node-addon-api/napi-inl.h:469:46: error: ‘napi_get_instance_data’ was not declared in this scope; did you mean ‘napi_new_instance’?
469 | napi_status status = napi_get_instance_data(_env, &data);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
| napi_new_instance
make: *** [node_sqlite3.target.mk:142: Release/obj.target/node_sqlite3/src/backup.o] Error 1
Laurent, how do you build windows releases?
I have tried building one on Linux (I'm moving to a new PC running Linux now) and while it builds without errors it looks like the exe ends up broken as it's missing sqlite binaries for Windows.
Is there some trick to that? Or do you build on Windows?