Update build

This commit is contained in:
Nikolai Laevskii 2023-05-25 13:27:30 +02:00
parent 80a318b8b8
commit 2785e21d5e

14
dist/index.js vendored
View File

@ -432,7 +432,7 @@ DotnetInstallDir.default = {
}; };
DotnetInstallDir.path = process.env['DOTNET_INSTALL_DIR'] DotnetInstallDir.path = process.env['DOTNET_INSTALL_DIR']
? DotnetInstallDir.convertInstallPathToAbsolute(process.env['DOTNET_INSTALL_DIR']) ? DotnetInstallDir.convertInstallPathToAbsolute(process.env['DOTNET_INSTALL_DIR'])
: DotnetInstallDir.default[(0, utils_1.getPlatform)()]; : DotnetInstallDir.default[utils_1.PLATFORM];
class DotnetCoreInstaller { class DotnetCoreInstaller {
constructor(version, quality) { constructor(version, quality) {
this.version = version; this.version = version;
@ -633,17 +633,15 @@ run();
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getPlatform = exports.IS_LINUX = exports.IS_WINDOWS = void 0; exports.PLATFORM = exports.IS_WINDOWS = void 0;
exports.IS_WINDOWS = process.platform === 'win32'; exports.IS_WINDOWS = process.platform === 'win32';
exports.IS_LINUX = process.platform === 'linux'; exports.PLATFORM = (() => {
const getPlatform = () => { if (process.platform === 'win32')
if (exports.IS_WINDOWS)
return 'windows'; return 'windows';
if (exports.IS_LINUX) if (process.platform === 'linux')
return 'linux'; return 'linux';
return 'mac'; return 'mac';
}; })();
exports.getPlatform = getPlatform;
/***/ }), /***/ }),