fix: use mirrored arm64 frpc download source
This commit is contained in:
@@ -78,7 +78,11 @@ async function downloadFrpc() {
|
|||||||
const frpArch = archMap[arch] || 'amd64';
|
const frpArch = archMap[arch] || 'amd64';
|
||||||
|
|
||||||
const filename = `frp_${FRP_VERSION}_${platform}_${frpArch}.tar.gz`;
|
const filename = `frp_${FRP_VERSION}_${platform}_${frpArch}.tar.gz`;
|
||||||
const url = `https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/${filename}`;
|
const releaseBase = 'https://git.cutos.ai/claw-daemon/fatedier/releases/download';
|
||||||
|
const attachmentMap = {
|
||||||
|
'linux/arm64': 'https://git.cutos.ai/attachments/071748ed-955b-44c0-8dfb-38396b5dae6e',
|
||||||
|
};
|
||||||
|
const url = attachmentMap[`${platform}/${frpArch}`] || `${releaseBase}/v${FRP_VERSION}/${filename}`;
|
||||||
const tmpFile = `/tmp/${filename}`;
|
const tmpFile = `/tmp/${filename}`;
|
||||||
|
|
||||||
log.info('frpc', `下载 frpc ${FRP_VERSION} (${platform}/${frpArch})...`);
|
log.info('frpc', `下载 frpc ${FRP_VERSION} (${platform}/${frpArch})...`);
|
||||||
|
|||||||
Reference in New Issue
Block a user