@openzim/libzim 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env CHANGED
@@ -1 +1 @@
1
- LIBZIM_VERSION=9.4.0
1
+ LIBZIM_VERSION=9.5.1
package/Changelog CHANGED
@@ -1,3 +1,8 @@
1
+ Unreleased
2
+ * NEW: Use libzim 9.5.1
3
+ * FIX: Fix lib directories for aarch64
4
+ * FIX: Update Node.JS dependencies
5
+
1
6
  4.0.0
2
7
  * NEW: Use libzim 9.4.0
3
8
  * FIX: Segmentation Fault issues
package/binding.gyp CHANGED
@@ -34,8 +34,8 @@
34
34
  ],
35
35
  "libraries": [
36
36
  "-Wl,-rpath,'$$ORIGIN'",
37
- "-L<(libzim_dir)/lib/aarch64-rpi3-linux-gnu",
38
- "<(libzim_dir)/lib/aarch64-rpi3-linux-gnu/libzim.so.9",
37
+ "-L<(libzim_dir)/lib64",
38
+ "<(libzim_dir)/lib64/libzim.so.9",
39
39
  ],
40
40
  }],
41
41
  ["libzim_local!='true' and OS=='linux' and target_arch=='arm'", {
package/bundle-libzim.js CHANGED
@@ -19,15 +19,15 @@ if (isLinux) {
19
19
  const rawArch = os.arch();
20
20
  let libDir;
21
21
  if (rawArch === "arm64") {
22
- libDir = "aarch64-rpi3-linux-gnu";
22
+ libDir = "lib64";
23
23
  } else if (rawArch === "arm") {
24
- libDir = "arm-linux-gnueabihf";
24
+ libDir = "lib/arm-linux-gnueabihf";
25
25
  } else {
26
- libDir = "x86_64-linux-gnu";
26
+ libDir = "lib/x86_64-linux-gnu";
27
27
  }
28
28
 
29
29
  console.info(`Copying libzim.so.9 from ${libDir} to build folder`);
30
- exec(`cp download/lib/${libDir}/libzim.so.9 build/Release/libzim.so.9`);
30
+ exec(`cp download/${libDir}/libzim.so.9 build/Release/libzim.so.9`);
31
31
  exec("ln -sf build/Release/libzim.so.9 build/Release/libzim.so"); // convenience only, not required
32
32
  }
33
33
  if (isMacOS) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openzim/libzim",
3
3
  "main": "dist/index.js",
4
4
  "types": "dist/index.d.js",
5
- "version": "4.0.0",
5
+ "version": "4.1.0",
6
6
  "description": "Libzim bindings for NodeJS",
7
7
  "type": "module",
8
8
  "scripts": {