@orkestrel/sea 0.0.9 → 0.0.11
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.
|
@@ -313,7 +313,7 @@ function runShell(command, options) {
|
|
|
313
313
|
const [cmd, ...args] = command;
|
|
314
314
|
if (cmd === void 0) throw new SEAError("STATE", "Command array must not be empty");
|
|
315
315
|
if (options?.signal?.aborted === true) throw new SEAError("ABORT", "Shell command aborted", { command: redactCommand(command) });
|
|
316
|
-
const result = (0, _orkestrel_process_server.
|
|
316
|
+
const result = (0, _orkestrel_process_server.executeSync)({
|
|
317
317
|
file: cmd,
|
|
318
318
|
arguments: args,
|
|
319
319
|
...options?.env !== void 0 ? { environment: options.env } : {}
|
|
@@ -2142,7 +2142,8 @@ var SEA = class {
|
|
|
2142
2142
|
configPath
|
|
2143
2143
|
], {
|
|
2144
2144
|
cwd: output,
|
|
2145
|
-
...this.#options.signal === void 0 ? {} : { signal: this.#options.signal }
|
|
2145
|
+
...this.#options.signal === void 0 ? {} : { signal: this.#options.signal },
|
|
2146
|
+
...this.#options.timeout === void 0 ? {} : { timeout: this.#options.timeout }
|
|
2146
2147
|
});
|
|
2147
2148
|
if (!(0, node_fs.existsSync)(blob)) throw new SEAError("BLOB", "SEA blob generation failed — blob not found", { blob });
|
|
2148
2149
|
this.#emitter.emit("blob", blob);
|
|
@@ -2156,7 +2157,10 @@ var SEA = class {
|
|
|
2156
2157
|
const name = process.platform === "win32" ? `${this.#options.name}.exe` : this.#options.name;
|
|
2157
2158
|
const finalOutput = (0, node_path.join)(output, name);
|
|
2158
2159
|
const temp = (0, node_path.join)(output, `.${this.#options.name}-${(0, node_crypto.randomUUID)()}.tmp${ext}`);
|
|
2159
|
-
const shell =
|
|
2160
|
+
const shell = {
|
|
2161
|
+
...this.#options.signal === void 0 ? {} : { signal: this.#options.signal },
|
|
2162
|
+
...this.#options.timeout === void 0 ? {} : { timeout: this.#options.timeout }
|
|
2163
|
+
};
|
|
2160
2164
|
let signed = false;
|
|
2161
2165
|
let stripped = false;
|
|
2162
2166
|
let terminal;
|