Commit d097bd50 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent dd21d890
...@@ -653,7 +653,7 @@ export class AppsService { ...@@ -653,7 +653,7 @@ export class AppsService {
Logger.info('Update changed files: ', changedFiles); Logger.info('Update changed files: ', changedFiles);
const locale = ['zh-Hans', 'en-US', 'ja-JP'].includes(this.locale) ? this.locale : 'en-US'; const locale = ['zh-Hans', 'en-US', 'ja-JP'].includes(this.locale) ? this.locale : 'en-US';
let updateUrl = App.updateUrl(app, process.platform, locale, os.arch()); let updateUrl = App.updateUrl(app, process.platform, locale, os.arch());
let metalink = await lastValueFrom(this.http.post(updateUrl, changedFiles, { responseType: 'text' })); let metalink = await lastValueFrom(this.http.post(updateUrl, [...changedFiles].sort(), { responseType: 'text' }));
let downloadDir = path.join(path.dirname(app.local!.path), 'downloading'); let downloadDir = path.join(path.dirname(app.local!.path), 'downloading');
let downloadId = await this.downloadService.addMetalink(metalink, downloadDir); let downloadId = await this.downloadService.addMetalink(metalink, downloadDir);
await this.downloadService.progress(downloadId, (status: DownloadStatus) => { await this.downloadService.progress(downloadId, (status: DownloadStatus) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment