Skip to content

Commit cd15e16

Browse files
authored
fix: default the downloaded update file name to fileInfo.info.url (#7597)
1 parent 99f49cf commit cd15e16

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fix-default-filename.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"electron-updater": patch
3+
---
4+
5+
fix: default file name of `update.${fileExtension}` for downloaded files in private repositories.

packages/electron-updater/src/AppUpdater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ export abstract class AppUpdater extends (EventEmitter as new () => TypedEmitter
636636
return path.basename(urlPath)
637637
} else {
638638
// url like /latest, generate name
639-
return `update.${taskOptions.fileExtension}`
639+
return taskOptions.fileInfo.info.url
640640
}
641641
}
642642

0 commit comments

Comments
 (0)