Skip to content

Commit

Permalink
fix(electron-updater): Nsis app from fall 2017 (electron-updater 2.10…
Browse files Browse the repository at this point in the history
….0) won't update to new version

Close #2583
  • Loading branch information
develar committed Feb 20, 2018
1 parent e670135 commit ba2957e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ export function createNsisWebDifferentialUpdateInfo(artifactPath: string, packag
const packages: { [arch: string]: PackageFileInfo } = {}
for (const arch of keys) {
const packageFileInfo = packageFiles[arch]
const file = path.basename(packageFileInfo.path)
packages[arch] = {
...packageFileInfo,
path: path.basename(packageFileInfo.path)
}
path: file,
// https://github.com/electron-userland/electron-builder/issues/2583
file,
} as any
}
return {packages}
}
Expand Down
29 changes: 20 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ atob@^2.0.0:
resolved "https://registry.yarnpkg.com/atob/-/atob-2.0.3.tgz#19c7a760473774468f20b2d2d03372ad7d4cbf5d"

aws-sdk@^2.197.0:
version "2.197.0"
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.197.0.tgz#986e3749f4d1944c6253d7824aa8035efb1db0e4"
version "2.198.0"
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.198.0.tgz#2245311337ddc844cc34c13f3fcf3b7ea843f434"
dependencies:
buffer "4.9.1"
events "^1.1.1"
Expand Down Expand Up @@ -2638,8 +2638,8 @@ ini@^1.3.4, ini@^1.3.5, ini@~1.3.0:
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"

invariant@^2.2.2:
version "2.2.2"
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360"
version "2.2.3"
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.3.tgz#1a827dfde7dcbd7c323f0ca826be8fa7c5e9d688"
dependencies:
loose-envify "^1.0.0"

Expand Down Expand Up @@ -3655,8 +3655,8 @@ lunr@0.5.12:
resolved "https://registry.yarnpkg.com/lunr/-/lunr-0.5.12.tgz#a2f6b7d7801cbe2ccb1696da67f1f7788f89e0c8"

make-dir@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.1.0.tgz#19b4369fe48c116f53c2af95ad102c0e39e85d51"
version "1.2.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.2.0.tgz#6d6a49eead4aae296c53bbf3a1a008bd6c89469b"
dependencies:
pify "^3.0.0"

Expand Down Expand Up @@ -4583,10 +4583,11 @@ regex-cache@^0.4.2:
is-equal-shallow "^0.1.3"

regex-not@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.0.tgz#42f83e39771622df826b02af176525d6a5f157f9"
version "1.0.2"
resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c"
dependencies:
extend-shallow "^2.0.1"
extend-shallow "^3.0.2"
safe-regex "^1.1.0"

registry-auth-token@^3.0.1:
version "3.3.2"
Expand Down Expand Up @@ -4729,6 +4730,10 @@ resolve@^1.0.0, resolve@^1.3.2:
dependencies:
path-parse "^1.0.5"

ret@~0.1.10:
version "0.1.15"
resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"

right-align@^0.1.1:
version "0.1.3"
resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef"
Expand All @@ -4745,6 +4750,12 @@ safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"

safe-regex@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"
dependencies:
ret "~0.1.10"

sane@^2.0.0:
version "2.4.1"
resolved "https://registry.yarnpkg.com/sane/-/sane-2.4.1.tgz#29f991208cf28636720efdc584293e7fd66663a5"
Expand Down

0 comments on commit ba2957e

Please sign in to comment.