seabox 0.4.0 → 0.5.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/lib/inject.mjs +10 -3
- package/package.json +4 -3
package/lib/inject.mjs
CHANGED
|
@@ -81,15 +81,22 @@ async function applyRcedit(exePath, options, verbose) {
|
|
|
81
81
|
diag.verbose('Applying rcedit to modify executable resources...', 2);
|
|
82
82
|
diag.verbose(`Options: ${JSON.stringify(options, null, 2)}`, 2);
|
|
83
83
|
|
|
84
|
-
// Try to import rcedit - it's a peer dependency
|
|
84
|
+
// Try to import rcedit - it's a peer dependency (v5+ uses named export)
|
|
85
85
|
let rcedit;
|
|
86
86
|
try {
|
|
87
|
-
|
|
87
|
+
const rceditModule = await import('rcedit');
|
|
88
|
+
rcedit = rceditModule.rcedit;
|
|
89
|
+
if (typeof rcedit !== 'function') {
|
|
90
|
+
throw new Error(
|
|
91
|
+
`rcedit module loaded but 'rcedit' export is ${typeof rcedit}. ` +
|
|
92
|
+
'Ensure rcedit v5+ is installed: npm install rcedit@^5'
|
|
93
|
+
);
|
|
94
|
+
}
|
|
88
95
|
} catch (error) {
|
|
89
96
|
if (error.code === 'ERR_MODULE_NOT_FOUND') {
|
|
90
97
|
throw new Error(
|
|
91
98
|
'rcedit is required for Windows executable metadata but not installed. ' +
|
|
92
|
-
'Install it with: npm install rcedit'
|
|
99
|
+
'Install it with: npm install rcedit@^5'
|
|
93
100
|
);
|
|
94
101
|
}
|
|
95
102
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seabox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Node.js Single Executable Application (SEA) builder tool with native and library extraction",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tar": "^7.5.7"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"rcedit": "^
|
|
44
|
+
"rcedit": "^5"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"rcedit": {
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
"javascript-obfuscator": "^4.1.1",
|
|
54
54
|
"mocha": "^11.3.0",
|
|
55
55
|
"node-api-headers": "^1.2.0",
|
|
56
|
-
"rimraf": "^6.0.1"
|
|
56
|
+
"rimraf": "^6.0.1",
|
|
57
|
+
"rcedit": "^5"
|
|
57
58
|
},
|
|
58
59
|
"engines": {
|
|
59
60
|
"node": ">=18.0.0"
|