mirror of
https://github.com/wavetermdev/dev.commandline.waveterm.git
synced 2026-08-05 13:46:53 -07:00
Use a more official download URL
The requests to vscode-update.azurewebsites.net redirect permanently to the new location, so use it directly.
This commit is contained in:
@@ -28,7 +28,7 @@ ARCHES = {'x64': -2, 'ia32': -1}
|
||||
|
||||
for arch, pos in ARCHES.items():
|
||||
source_entry = data['modules'][-1]['sources'][pos]
|
||||
source_entry['url'] = 'https://vscode-update.azurewebsites.net/' + VERSION + '/linux-deb-' + arch + '/stable'
|
||||
source_entry['url'] = 'https://update.code.visualstudio.com/' + VERSION + '/linux-deb-' + arch + '/stable'
|
||||
FILENAME = 'code_' + VERSION + '_' + arch + '.deb'
|
||||
subprocess.call(['curl', '-R', '-L', '-o', FILENAME, '-C', '-', source_entry['url']])
|
||||
source_entry['sha256'] = subprocess.check_output(['sha256sum', FILENAME]).decode("utf-8").split(None, 1)[0]
|
||||
|
||||
Reference in New Issue
Block a user