@@ -130,19 +130,25 @@ async function fetchLatestDownloadUrl(
130130 // Prefer new prerelease update endpoint for all platforms
131131 let normalizedPlatform : string | null = null ;
132132 if ( apiPlatform . includes ( "win32-x64" ) ) normalizedPlatform = "win32-x64" ;
133- else if ( apiPlatform . includes ( "win32-arm64" ) ) normalizedPlatform = "win32-arm64" ;
134- else if ( apiPlatform . includes ( "darwin-universal" ) ) normalizedPlatform = "darwin-universal" ;
135- else if ( apiPlatform . includes ( "darwin-arm64" ) ) normalizedPlatform = "darwin-arm64" ;
136- else if ( apiPlatform . includes ( "darwin-x64" ) ) normalizedPlatform = "darwin-x64" ;
137- else if ( apiPlatform . includes ( "linux-x64" ) ) normalizedPlatform = "linux-x64" ;
138- else if ( apiPlatform . includes ( "linux-arm64" ) ) normalizedPlatform = "linux-arm64" ;
133+ else if ( apiPlatform . includes ( "win32-arm64" ) )
134+ normalizedPlatform = "win32-arm64" ;
135+ else if ( apiPlatform . includes ( "darwin-universal" ) )
136+ normalizedPlatform = "darwin-universal" ;
137+ else if ( apiPlatform . includes ( "darwin-arm64" ) )
138+ normalizedPlatform = "darwin-arm64" ;
139+ else if ( apiPlatform . includes ( "darwin-x64" ) )
140+ normalizedPlatform = "darwin-x64" ;
141+ else if ( apiPlatform . includes ( "linux-x64" ) )
142+ normalizedPlatform = "linux-x64" ;
143+ else if ( apiPlatform . includes ( "linux-arm64" ) )
144+ normalizedPlatform = "linux-arm64" ;
139145
140146 if ( normalizedPlatform ) {
141147 const prereleaseUrl = `https://api2.cursor.sh/updates/api/update/${ normalizedPlatform } /cursor/1.0.0/hash/prerelease` ;
142148 try {
143149 const preResp = await fetch ( prereleaseUrl , {
144150 headers : {
145- " Accept" : "application/json" ,
151+ Accept : "application/json" ,
146152 "User-Agent" :
147153 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" ,
148154 "Cache-Control" : "no-cache" ,
0 commit comments