diff options
author | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 23:08:57 +0300 |
---|---|---|
committer | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 23:08:57 +0300 |
commit | 726b81b19251674e149ccfbb1abacbd837fc6db0 (patch) | |
tree | fbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/cross-spawn-windows-exe/dist/src/dotnet.js | |
parent | 34f0890e175698940d49238097579f44e4d78c89 (diff) | |
download | FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst |
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/cross-spawn-windows-exe/dist/src/dotnet.js')
-rw-r--r-- | node_modules/cross-spawn-windows-exe/dist/src/dotnet.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/node_modules/cross-spawn-windows-exe/dist/src/dotnet.js b/node_modules/cross-spawn-windows-exe/dist/src/dotnet.js deleted file mode 100644 index ca6fc75..0000000 --- a/node_modules/cross-spawn-windows-exe/dist/src/dotnet.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.spawnDotNet = exports.determineDotNetWrapper = exports.dotNetDependencyInstallInstructions = void 0; -const wrapper_1 = require("./wrapper"); -/** - * Installation instructions for dependencies related to running .NET executables on the - * host platform (i.e., Mono on non-Windows platforms). - */ -function dotNetDependencyInstallInstructions() { - switch (process.platform) { - /* istanbul ignore next */ - case "win32": - return "No wrapper necessary"; - case "darwin": - return "Run `brew install mono` to install Mono on macOS via Homebrew."; - case "linux": - return "Consult your Linux distribution's package manager to determine how to install Mono."; - /* istanbul ignore next */ - default: - return "Consult your operating system's package manager to determine how to install Mono."; - } -} -exports.dotNetDependencyInstallInstructions = dotNetDependencyInstallInstructions; -/** - * Heuristically determine the path to `mono` to use. - * - * Method used to determine the path: - * - * 1. `customDotNetPath`, if provided to the function - * 2. The `MONO_BINARY` environment variable, if set and non-empty - * 3. `mono` found by searching the directories in the `PATH` environment variable - */ -function determineDotNetWrapper(customDotNetPath) { - if (customDotNetPath) { - return customDotNetPath; - } - if (process.env.MONO_BINARY) { - return process.env.MONO_BINARY; - } - return "mono"; -} -exports.determineDotNetWrapper = determineDotNetWrapper; -/** - * Spawn a .NET executable. On non-Windows platforms, use [Nono](https://www.mono-project.com/) - * to run it. - */ -async function spawnDotNet(cmd, args, options) { - var _a; - options !== null && options !== void 0 ? options : (options = {}); - (_a = options.wrapperInstructions) !== null && _a !== void 0 ? _a : (options.wrapperInstructions = dotNetDependencyInstallInstructions()); - return wrapper_1.spawnWrapperFromFunction(determineDotNetWrapper, cmd, args, options); -} -exports.spawnDotNet = spawnDotNet; -//# sourceMappingURL=dotnet.js.map
\ No newline at end of file |