mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 19:41:08 +07:00
Update build
This commit is contained in:
parent
80a318b8b8
commit
2785e21d5e
14
dist/index.js
vendored
14
dist/index.js
vendored
@ -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;
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
Loading…
Reference in New Issue
Block a user