File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,20 @@ function createConfig(isDev = false, buildConfig = {}) {
3030 // Add parameters for update endpoint
3131 if ( endpoint === 'update' ) {
3232 const params = new URLSearchParams ( ) ;
33- systemInfo = '' ;
3433 // Add OS information
3534 platform = process . platform || 'unknown' ;
36- systemInfo + = platform ;
35+ var systemInfo = platform ;
3736
3837 // Add architecture information (ensure it's not undefined)
3938 const arch = process . arch || 'unknown' ;
40- arch = process . arch || 'unknown' ;
41- systeminfo += `-${ arch } ` ;
39+ systemInfo += `-${ arch } ` ;
4240
4341 if ( process . platform === 'win32' && this . build && this . build . packagingMethod ) {
4442 method = this . build . packagingMethod || 'installed' ;
4543 systemInfo += `-${ method } ` ;
4644 }
47-
4845 params . append ( 'info' , systemInfo ) ;
46+ const finalUrl = `${ baseUrl } ?${ params . toString ( ) } ` ;
4947
5048 return finalUrl ;
5149 }
You can’t perform that action at this time.
0 commit comments