Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Laevskii committed May 25, 2023
1 parent 80a318b commit 2785e21
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ DotnetInstallDir.default = {
};
DotnetInstallDir.path = 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 {
constructor(version, quality) {
this.version = version;
Expand Down Expand Up @@ -633,17 +633,15 @@ run();
"use strict";

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_LINUX = process.platform === 'linux';
const getPlatform = () => {
if (exports.IS_WINDOWS)
exports.PLATFORM = (() => {
if (process.platform === 'win32')
return 'windows';
if (exports.IS_LINUX)
if (process.platform === 'linux')
return 'linux';
return 'mac';
};
exports.getPlatform = getPlatform;
})();


/***/ }),
Expand Down

0 comments on commit 2785e21

Please sign in to comment.