actions-hugo/lib/get-os.js
2019-09-21 06:49:40 +09:00

18 lines
460 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getOS(platform) {
if (platform === "linux") {
return "Linux";
}
else if (platform === "darwin") {
return "macOS";
}
else if (platform === "win32") {
return "Windows";
// throw new Error("Windows is not supported");
}
else {
throw new Error(`${platform} is not supported`);
}
}
exports.default = getOS;