Official Go implementation of the Ethereum protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
go-ethereum/src/utils/getLatestBinaryURL.ts

13 lines
482 B

import {
LINUX_BINARY_BASE_URL,
MACOS_BINARY_BASE_URL,
WINDOWS_BINARY_BASE_URL
} from '../constants';
export const getLatestBinaryURL = (os: string, versionNumber: string, commit: string) => {
if (os === 'linux') return `${LINUX_BINARY_BASE_URL}${versionNumber.slice(1)}-${commit}.tar.gz`;
if (os === 'darwin') return `${MACOS_BINARY_BASE_URL}${versionNumber.slice(1)}-${commit}.tar.gz`;
return `${WINDOWS_BINARY_BASE_URL}${versionNumber.slice(1)}-${commit}.exe`;
};