Skip to content

Commit

Permalink
fix(nsis): revert to 3.0.4.1
Browse files Browse the repository at this point in the history
Close #4793
  • Loading branch information
develar committed Apr 2, 2020
1 parent e909842 commit 9c43cc3
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 28 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ electron-builder-*.d.ts
/site/
/docs/

__publish.sh

/.yarn/cache
/.yarn/unplugged
/.yarn/build-state.yml
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test-all": "yarn pretest && node ./test/out/helpers/runTests.js",
"test-linux": "docker run --rm -ti -v ${PWD}:/project -v ${PWD##*/}-node-modules:/project/node_modules -v ~/Library/Caches/electron:/root/.cache/electron -v ~/Library/Caches/electron-builder:/root/.cache/electron-builder electronuserland/builder:wine /bin/bash -c \"yarn && TEST_FILES=HoistedNodeModuleTest node ./test/out/helpers/runTests.js\"",
"docker-images": "docker/build.sh",
"release": "BABEL_ENV=production yarn compile && sh ./__publish.sh && conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "BABEL_ENV=production yarn compile && ln -f README.md packages/electron-builder/README.md && yarn workspaces foreach -p npm publish && yarn dlx -p conventional-changelog-cli conventional-changelog -p angular -i CHANGELOG.md -s",
"schema": "typescript-json-schema packages/app-builder-lib/tsconfig.json Configuration --out packages/app-builder-lib/scheme.json --noExtraProps --useTypeOfKeyword --strictNullChecks --required && node ./scripts/fix-schema.js",
"jsdoc": "ts2jsdoc packages/builder-util-runtime packages/builder-util packages/app-builder-lib packages/electron-builder packages/electron-publish",
"jsdoc2md": "node scripts/jsdoc2md.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-builder-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"async-exit-hook": "^2.0.1",
"bluebird-lst": "^1.0.9",
"builder-util": "workspace:*",
"builder-util-runtime": "8.6.1",
"builder-util-runtime": "workspace:*",
"chromium-pickle-js": "^0.2.0",
"debug": "^4.1.1",
"ejs": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/targets/nsis/nsisUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const NSIS_PATH = new Lazy(() => {
return Promise.resolve(custom.trim())
}
// noinspection SpellCheckingInspection
return getBinFromUrl("nsis", "3.0.5.0", "cTeQgtymnETCMGZa89l5A790zw4otqFThfQbm52AbhUtPUD2yp2lmmu/T9Hd6fG/rDej0o6X6OTupxZB3n8HbA==")
return getBinFromUrl("nsis", "3.0.4.1", "VKMiizYdmNdJOWpRGz4trl4lD++BvYP2irAXpMilheUP0pc93iKlWAoP843Vlraj8YG19CVn0j+dCo/hURz9+Q==")
})

export class AppPackageHelper {
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"app-builder-lib": "workspace:*",
"bluebird-lst": "^1.0.9",
"builder-util": "workspace:*",
"builder-util-runtime": "8.6.1",
"builder-util-runtime": "workspace:*",
"chalk": "^3.0.0",
"dmg-builder": "workspace:*",
"fs-extra": "^9.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/fs-extra": "^8.1.0",
"bluebird-lst": "^1.0.9",
"builder-util": "workspace:*",
"builder-util-runtime": "8.6.1",
"builder-util-runtime": "workspace:*",
"chalk": "^3.0.0",
"fs-extra": "^9.0.0",
"lazy-val": "^1.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"dependencies": {
"@types/semver": "^7.1.0",
"builder-util-runtime": "8.6.1",
"builder-util-runtime": "workspace:*",
"fs-extra": "^9.0.0",
"js-yaml": "^3.13.1",
"lazy-val": "^1.0.4",
Expand Down
5 changes: 3 additions & 2 deletions test/src/helpers/runTests.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { createHash } from "crypto"
import { emptyDir, readJson, realpathSync, remove } from "fs-extra"
import { emptyDir, readJson, realpathSync } from "fs-extra"
import { isCI as isCi } from "ci-info"
import { tmpdir } from "os"
import * as path from "path"
import { deleteOldElectronVersion, downloadAllRequiredElectronVersions } from "./downloadElectron"
import { promises as fs } from "fs"

const baseDir = process.env.APP_BUILDER_TMP_DIR || realpathSync(tmpdir())
const APP_BUILDER_TMP_DIR = path.join(baseDir, `et-${createHash("md5").update(__dirname).digest("hex")}`)
Expand Down Expand Up @@ -154,7 +155,7 @@ async function runTests() {
process.exit(exitCode)
}

await remove(APP_BUILDER_TMP_DIR)
await fs.rmdir(APP_BUILDER_TMP_DIR, {recursive: true})
process.exitCode = exitCode
if (testResult.globalConfig.forceExit) {
process.exit(exitCode)
Expand Down
14 changes: 7 additions & 7 deletions test/src/linux/linuxPackagerTest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Arch, build, Platform } from "electron-builder"
import { outputFile, remove } from "fs-extra"
import { outputFile } from "fs-extra"
import * as path from "path"
import { GenericServerOptions } from "builder-util-runtime"
import { assertThat } from "../helpers/fileAssert"
Expand Down Expand Up @@ -111,7 +111,7 @@ test.ifNotWindows.ifNotCiMac("AppImage - default icon, custom executable and cus
return false
},
}, {
projectDirCreated: it => remove(path.join(it, "build")),
projectDirCreated: it => fs.rmdir(path.join(it, "build"), {recursive: true}),
packed: async context => {
const projectDir = context.getContent(Platform.LINUX)
await assertThat(path.join(projectDir, "Foo")).isFile()
Expand All @@ -133,7 +133,7 @@ test.ifNotWindows("icons from ICNS (mac)", app({
}, {
projectDirCreated: async projectDir => {
await fs.mkdir(path.join(projectDir, "resources"), {recursive: true}).then(() => fs.rename(path.join(projectDir, "build", "icon.icns"), path.join(projectDir, "resources", "time.icns")))
await remove(path.join(projectDir, "build"))
await fs.rmdir(path.join(projectDir, "build"), {recursive: true})
},
packed: async context => {
const projectDir = context.getResources(Platform.LINUX)
Expand All @@ -148,7 +148,7 @@ test.ifNotWindows("icons from ICNS if nothing specified", app({
},
}, {
projectDirCreated: async projectDir => {
await remove(path.join(projectDir, "build", "icons"))
await fs.rmdir(path.join(projectDir, "build", "icons"), {recursive: true})
},
}))

Expand Down Expand Up @@ -179,7 +179,7 @@ test.ifNotWindows("icons dir with images without size in the filename", app({
}, {
projectDirCreated: async projectDir => {
await fs.rename(path.join(projectDir, "build", "icons", "256x256.png"), path.join(projectDir, "build", "icon.png"))
await remove(path.join(projectDir, "build", "icons"))
await fs.rmdir(path.join(projectDir, "build", "icons"), {recursive: true})
await fs.rename(path.join(projectDir, "build"), path.join(projectDir, "icons"))
},
packed: async context => {
Expand All @@ -195,11 +195,11 @@ test.ifNotWindows("icons from ICNS", app({
publish: null,
},
}, {
projectDirCreated: it => remove(path.join(it, "build", "icons")),
projectDirCreated: it => fs.rmdir(path.join(it, "build", "icons"), {recursive: true}),
packed: async context => {
const projectDir = context.getResources(Platform.LINUX)

await remove(path.join(projectDir, "inspector"))
await fs.rmdir(path.join(projectDir, "inspector"), {recursive: true})

await build({
targets: appImageTarget,
Expand Down
3 changes: 1 addition & 2 deletions test/src/mac/dmgTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { copyFile } from "builder-util/out/fs"
import { attachAndExecute, getDmgTemplatePath } from "dmg-builder/out/dmgUtil"
import { Platform } from "electron-builder"
import { PlatformPackager } from "app-builder-lib"
import { remove } from "fs-extra"
import * as path from "path"
import { promises as fs } from "fs"
import { assertThat } from "../helpers/fileAssert"
Expand Down Expand Up @@ -38,7 +37,7 @@ test.ifMac("no build directory", app({
return false
},
}, {
projectDirCreated: projectDir => remove(path.join(projectDir, "build")),
projectDirCreated: projectDir => fs.rmdir(path.join(projectDir, "build"), {recursive: true}),
}))

test.ifMac("background color", app({
Expand Down
3 changes: 1 addition & 2 deletions test/src/mac/macIconTest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { DIR_TARGET, Platform } from "electron-builder"
import { promises as fs } from "fs"
import { remove } from "fs-extra"
import * as path from "path"
import { CheckingMacPackager } from "../helpers/CheckingPackager"
import { app } from "../helpers/packTester"
Expand Down Expand Up @@ -100,7 +99,7 @@ test.ifMac.ifAll("default png icon", () => {
fs.unlink(path.join(projectDir, "build", "icon.icns")),
fs.unlink(path.join(projectDir, "build", "icon.ico")),
fs.copyFile(path.join(projectDir, "build", "icons", "512x512.png"), path.join(projectDir, "build", "icon.png"))
.then(() => remove(path.join(projectDir, "build", "icons")))
.then(() => fs.rmdir(path.join(projectDir, "build", "icons"), {recursive: true}))
]),
packed: () => assertIcon(platformPackager!!),
})()
Expand Down
3 changes: 1 addition & 2 deletions test/src/windows/winPackagerTest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Platform, DIR_TARGET } from "electron-builder"
import { remove } from "fs-extra"
import { promises as fs } from "fs"
import * as path from "path"
import { CheckingWinPackager } from "../helpers/CheckingPackager"
Expand Down Expand Up @@ -71,7 +70,7 @@ test.ifAll("win icon from icns", () => {
}, {
projectDirCreated: projectDir => Promise.all([
fs.unlink(path.join(projectDir, "build", "icon.ico")),
remove(path.join(projectDir, "build", "icons")),
fs.rmdir(path.join(projectDir, "build", "icons"), {recursive: true}),
]),
packed: async () => {
const file = await platformPackager!!.getIconPath()
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2374,7 +2374,7 @@ __metadata:
async-exit-hook: ^2.0.1
bluebird-lst: ^1.0.9
builder-util: "workspace:*"
builder-util-runtime: 8.6.1
builder-util-runtime: "workspace:*"
chromium-pickle-js: ^0.2.0
debug: ^4.1.1
dmg-builder: "workspace:*"
Expand Down Expand Up @@ -3020,7 +3020,7 @@ __metadata:
languageName: node
linkType: hard

"builder-util-runtime@8.6.1, builder-util-runtime@workspace:*, builder-util-runtime@workspace:packages/builder-util-runtime":
"builder-util-runtime@workspace:*, builder-util-runtime@workspace:packages/builder-util-runtime":
version: 0.0.0-use.local
resolution: "builder-util-runtime@workspace:packages/builder-util-runtime"
dependencies:
Expand Down Expand Up @@ -3993,7 +3993,7 @@ __metadata:
app-builder-lib: "workspace:*"
bluebird-lst: ^1.0.9
builder-util: "workspace:*"
builder-util-runtime: 8.6.1
builder-util-runtime: "workspace:*"
chalk: ^3.0.0
dmg-builder: "workspace:*"
fs-extra: ^9.0.0
Expand Down Expand Up @@ -4048,7 +4048,7 @@ __metadata:
"@types/fs-extra": ^8.1.0
bluebird-lst: ^1.0.9
builder-util: "workspace:*"
builder-util-runtime: 8.6.1
builder-util-runtime: "workspace:*"
chalk: ^3.0.0
fs-extra: ^9.0.0
lazy-val: ^1.0.4
Expand All @@ -4071,7 +4071,7 @@ __metadata:
"@types/js-yaml": ^3.12.3
"@types/lodash.isequal": ^4.5.5
"@types/semver": ^7.1.0
builder-util-runtime: 8.6.1
builder-util-runtime: "workspace:*"
fs-extra: ^9.0.0
js-yaml: ^3.13.1
lazy-val: ^1.0.4
Expand Down

0 comments on commit 9c43cc3

Please sign in to comment.