occt-gltf-addon-linux-x64 0.1.4 → 0.1.5
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/index.js +8 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -30,6 +30,14 @@ if (process.platform === 'linux') {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
// Ensure SONAME symlinks exist even if npm didn't preserve them (or postinstall didn't run).
|
|
34
|
+
try {
|
|
35
|
+
// eslint-disable-next-line global-require, import/no-dynamic-require
|
|
36
|
+
require('./postinstall');
|
|
37
|
+
} catch (e) {
|
|
38
|
+
// ignore; we'll fail later if libs are actually missing
|
|
39
|
+
}
|
|
40
|
+
|
|
33
41
|
// Provide OCCT resource paths (needed for STEP/XDE translations, messages, etc).
|
|
34
42
|
// We mimic the key env vars set by OCCT's generated env.sh, but only if not already set.
|
|
35
43
|
{
|