mirror of https://github.com/ethereum/go-ethereum
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.
14 lines
482 B
14 lines
482 B
2 years ago
|
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`;
|
||
|
};
|