diff --git a/installers/nodejs/src/cpython.ts b/installers/nodejs/src/cpython.ts index d9ff569b..1c78b0c3 100644 --- a/installers/nodejs/src/cpython.ts +++ b/installers/nodejs/src/cpython.ts @@ -1,4 +1,4 @@ -import { platform, arch, release } from "os"; +import { platform, arch, release, version } from "os"; import { chmod, symlink, rename } from "fs/promises"; import { join } from "path"; @@ -13,6 +13,11 @@ const DL_PLATFORM = (() => { const releaseMajor = parseInt(releaseName.split(".")[0]); return `freebsd${releaseMajor}`; } + if (platform() == "sunos") { + const versionString = version(); + const versionMajor = parseInt(versionString.split(".")[0]); + return `solaris${versionMajor}`; + } return platform(); })();