Skip to content

Commit

Permalink
fix(electron-updater): use app version as version for blockmap url in…
Browse files Browse the repository at this point in the history
…stead of parsed semver
  • Loading branch information
develar committed Jan 16, 2020
1 parent 9db61e9 commit 5efafa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electron-updater/src/NsisUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class NsisUpdater extends BaseUpdater {
}

const newBlockMapUrl = newUrlFromBase(`${fileInfo.url.pathname}.blockmap`, fileInfo.url)
const oldBlockMapUrl = newUrlFromBase(`${fileInfo.url.pathname.replace(new RegExp(downloadUpdateOptions.updateInfoAndProvider.info.version, "g"), this.currentVersion.version)}.blockmap`, fileInfo.url)
const oldBlockMapUrl = newUrlFromBase(`${fileInfo.url.pathname.replace(new RegExp(downloadUpdateOptions.updateInfoAndProvider.info.version, "g"), this.app.version)}.blockmap`, fileInfo.url)
this._logger.info(`Download block maps (old: "${oldBlockMapUrl.href}", new: ${newBlockMapUrl.href})`)

const downloadBlockMap = async (url: URL): Promise<BlockMap> => {
Expand Down

0 comments on commit 5efafa8

Please sign in to comment.