@@ -196,8 +196,12 @@ async function downloadSDK(customPackageUrl) {
196196 // Use custom URL if provided, otherwise fetch from official server
197197 let downloadUrl = customPackageUrl
198198 if ( ! downloadUrl ) {
199+ let baseUrl = 'https://admin.netease.im/public-service/free/publish/list?application=message&page=1&pageSize=50'
200+ if ( version && version !== '0.0.0' ) {
201+ baseUrl = `${ baseUrl } &version=${ version } `
202+ }
199203 // Fetch package list from official server
200- const res = await axios . get ( 'https://admin.netease.im/public-service/free/publish/list' )
204+ const res = await axios . get ( baseUrl )
201205 const publishData = res . data . data [ channel ]
202206 // Find package URL for specified version or latest
203207 downloadUrl = findPackageUrl ( publishData , version , platform , arch , product )
@@ -457,7 +461,7 @@ async function findPackage(buildUrl, nodePlatform, nodeArch) {
457461// Build package URL from branch name
458462async function buildPackageUrlFromBranch ( branch , nodePlatform , nodeArch ) {
459463 // Base64 encoded internal server URL (decode when needed)
460- const encodedBaseUrl = 'aHR0cDovLzEwLjIxOS4yNS4xMjc6ODgvSU0tTmF0aXZlL0Rlc2t0b3A ='
464+ const encodedBaseUrl = 'aHR0cDovLzEwLjI0NC43Ni4wOjg4L0lNLU5hdGl2ZS9EZXNrdG9wLw= ='
461465 const baseUrl = Buffer . from ( encodedBaseUrl , 'base64' ) . toString ( 'utf-8' )
462466 log ( ` 🌿 Resolving package URL for branch: ${ branch } ` )
463467
0 commit comments