This commit is contained in:
2026-03-25 14:14:07 +01:00
parent d6b31e2ef7
commit a0073b4fb1
10368 changed files with 2214340 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.execWine = execWine;
exports.prepareWindowsExecutableArgs = prepareWindowsExecutableArgs;
const builder_util_1 = require("builder-util");
/** @private */
function execWine(file, file64 = null, appArgs = [], options = {}) {
if (process.platform === "win32") {
if (options.timeout == null) {
// 2 minutes
options.timeout = 120 * 1000;
}
return (0, builder_util_1.exec)(file, appArgs, options);
}
const commandArgs = ["wine", "--ia32", file];
if (file64 != null) {
commandArgs.push("--x64", file64);
}
if (appArgs.length > 0) {
commandArgs.push("--args", JSON.stringify(appArgs));
}
return (0, builder_util_1.executeAppBuilder)(commandArgs, undefined, options);
}
/** @private */
function prepareWindowsExecutableArgs(args, exePath) {
if (process.platform !== "win32") {
args.unshift(exePath);
}
return args;
}
//# sourceMappingURL=wine.js.map