Skip to content

Commit 574add7

Browse files
committed
fix: Error while creating delta nupkg for Windows: System.DllNotFoundException: msdelta.dl #294
Closes #294
1 parent 85a6fba commit 574add7

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
"bugs": "https://github.com/electron-userland/electron-builder/issues",
5555
"homepage": "https://github.com/electron-userland/electron-builder",
5656
"dependencies": {
57-
"bluebird": "^3.3.4",
57+
"bluebird": "^3.3.5",
5858
"command-line-args": "^2.1.6",
59-
"electron-packager-tf": "^6.0.3-beta.0",
60-
"electron-winstaller-fixed": "^2.0.6-beta.8",
59+
"electron-packager-tf": "^6.0.3-beta.1",
60+
"electron-winstaller-fixed": "^2.2.1-beta.0",
6161
"fs-extra": "^0.26.7",
6262
"fs-extra-p": "^0.2.0",
6363
"globby": "^4.0.0",

src/winPackager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export class WinPackager extends PlatformPackager<WinBuildOptions> {
126126
certificateFile: certificateFile,
127127
certificatePassword: this.options.cscKeyPassword,
128128
fixUpPaths: false,
129+
skipUpdateIcon: true,
129130
usePackageJson: false,
130131
noMsi: true,
131132
extraFileSpecs: this.extraNuGetFileSources == null ? null : ("\n" + (await this.extraNuGetFileSources).join("\n")),
@@ -229,7 +230,7 @@ export function computeDistOut(outDir: string, arch: string): string {
229230
}
230231

231232
function checkConflictingOptions(options: any) {
232-
for (let name of ["outputDirectory", "appDirectory", "exe", "fixUpPaths", "usePackageJson", "extraFileSpecs", "extraMetadataSpecs"]) {
233+
for (let name of ["outputDirectory", "appDirectory", "exe", "fixUpPaths", "usePackageJson", "extraFileSpecs", "extraMetadataSpecs", "skipUpdateIcon", "setupExe"]) {
233234
if (name in options) {
234235
throw new Error(`Option ${name} is ignored, do not specify it.`)
235236
}

test/src/helpers/expectedContents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const expectedLinuxContents = [
2323
"/usr/share/doc/",
2424
"/usr/share/icons/",
2525
"/usr/share/doc/testapp/",
26-
"/usr/share/doc/testapp/changelog.Debian.gz",
26+
"/usr/share/doc/testapp/changelog.gz",
2727
"/usr/share/icons/hicolor/",
2828
"/usr/share/icons/hicolor/128x128/",
2929
"/usr/share/icons/hicolor/16x16/",

test/src/winPackagerTest.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
///<reference path="helpers/packTester.ts"/>
22
import test from "./helpers/avaEx"
3-
import { assertPack, platform } from "./helpers/packTester"
3+
import { assertPack, platform, modifyPackageJson } from "./helpers/packTester"
44
import { move } from "fs-extra-p"
55
import * as path from "path"
66
import { WinPackager, computeDistOut } from "out/winPackager"
@@ -13,14 +13,14 @@ const __awaiter = require("out/awaiter")
1313

1414
test.ifNotTravis("win", () => assertPack("test-app-one", {
1515
platform: ["win32"],
16+
},
17+
{
18+
tempDirCreated: process.env.TEST_DELTA ? it => modifyPackageJson(it, data => {
19+
data.build.win = {
20+
remoteReleases: "https://github.com/develar/__test-app-releases",
21+
}
22+
}) : null
1623
}
17-
// {
18-
// tempDirCreated: it => modifyPackageJson(it, data => {
19-
// data.build.win = {
20-
// remoteReleases: "https://github.com/develar/__test-app-releases",
21-
// }
22-
// })
23-
// }
2424
))
2525

2626
test("detect install-spinner", () => {

0 commit comments

Comments
 (0)