@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 +1 -1
- package/Changelog +5 -0
- package/binding.gyp +2 -2
- package/bundle-libzim.js +4 -4
- package/package.json +1 -1
package/.env
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
LIBZIM_VERSION=9.
|
|
1
|
+
LIBZIM_VERSION=9.5.1
|
package/Changelog
CHANGED
package/binding.gyp
CHANGED
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
],
|
|
35
35
|
"libraries": [
|
|
36
36
|
"-Wl,-rpath,'$$ORIGIN'",
|
|
37
|
-
"-L<(libzim_dir)/
|
|
38
|
-
"<(libzim_dir)/
|
|
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 = "
|
|
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
|
|
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) {
|