MCPcopy Index your code
hub / github.com/lightningpixel/modly / getPbsUrl

Function getPbsUrl

scripts/download-python-embed.js:15–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const PBS_RELEASE = '20240726'
14
15function getPbsUrl() {
16 const arch = process.arch === 'arm64' ? 'aarch64' : 'x86_64'
17 const triple = process.platform === 'win32'
18 ? `${arch}-pc-windows-msvc`
19 : process.platform === 'darwin'
20 ? `${arch}-apple-darwin`
21 : `${arch}-unknown-linux-gnu`
22 return (
23 `https://github.com/indygreg/python-build-standalone/releases/download/` +
24 `${PBS_RELEASE}/cpython-${PBS_VERSION}+${PBS_RELEASE}-${triple}-install_only.tar.gz`
25 )
26}
27
28// ── Helpers ───────────────────────────────────────────────────────────────────
29

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected