Closed cyphunk closed 4 years ago
This isn't intentional, the lib was made for an electron app.
Are you using webpack or electron-forge? Make sure that node_modules/geolite2-redist/
is fully included in your asar archive, or perhaps exclude the dependency from the archive altogether (depending ont the build system, you might need to mark it as "unpacked" or "native")
I'm not sure. Packing into a tar.gz. Excerpts from package.json (source):
"scripts": {
"dist:linux": "electron-builder --linux",
},
"postinstall": "electron-builder install-app-deps",
"build": {
"linux": {
"target": [
"tar.gz"
],
But based on your advice I think I can resolve the issue later when I have a moment to examine more closely.
thanks!
The target packaging is a different thing. Electron apps bundle all their code and dependencies in an asar archive, which is then packed into whatever target you have (tar.gz, binaries, etc). More info.
Hi, perhaps this intentional but when using this lib in an electron application the download of updated database appears to fail with error (on linux ubuntu 18.04lts):