Skip to content

Commit

Permalink
add solaris to installer
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Nov 22, 2024
1 parent e48e37f commit f2a76c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion installers/nodejs/src/cpython.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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();
})();

Expand Down

0 comments on commit f2a76c1

Please sign in to comment.