INNER CODE UNIT · JavaScript
isAvailableAsync
agent-sh/agentsys · lib/binary/index.js:154
async function isAvailableAsync() {
return isAvailable();
}
// ---------------------------------------------------------------------------
// Download + checksum verification
// ---------------------------------------------------------------------------
/**
* Build the GitHub release download URL.
* @param {string} ver
* @param {string} platformKey
* @returns {string}
*/
function buildDownloadUrl(ver, platformKey) {
const ext = process.platform === 'win32' ? '.zip' : '.tar.gz';
return 'https://github.com/' + GITHUB_REPO + '/releases/download/v' + ver + '/' + BINARY_NAME + '-' + platformKey + ext;
}