Skip to content

Commit c56c663

Browse files
committed
重构软件管理的下载功能,并支持系统代理。
1 parent 5404b10 commit c56c663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/core/software/Installer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class Installer extends EventEmitter {
3737
this.fileName = this.getFileName()
3838
this.filePath = Path.Join(this.getDownloadsPath(), this.fileName)
3939
this.tempFilePath = `${this.filePath}.dl`
40-
this.downloader = new Downloader(this.getDownloadUrl(), this.tempFilePath,{timeout:3})
40+
this.downloader = new Downloader(this.getDownloadUrl(), this.tempFilePath)
4141

4242
if (!await DirUtil.Exists(GetPath.getDownloadsDir())) await DirUtil.Create(GetPath.getDownloadsDir())
4343
if (await FileUtil.Exists(this.filePath)) await FileUtil.Delete(this.filePath)

0 commit comments

Comments
 (0)