Skip to content

Commit e5e0782

Browse files
committed
fix: CSC_LINK is ignored on Windows
Close #2639
1 parent 5f39a05 commit e5e0782

File tree

5 files changed

+21
-20
lines changed

5 files changed

+21
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"////": "All typings are added into root `package.json` to avoid duplication errors in the IDE compiler (several `node.d.ts` files).",
3030
"dependencies": {
3131
"7zip-bin": "~3.1.0",
32-
"app-builder-bin": "1.5.1",
32+
"app-builder-bin": "1.6.0",
3333
"archiver": "^2.1.1",
3434
"async-exit-hook": "^2.0.1",
3535
"aws-sdk": "^2.205.0",

packages/builder-util/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"out"
1212
],
1313
"dependencies": {
14-
"app-builder-bin": "1.5.1",
14+
"app-builder-bin": "1.6.0",
1515
"temp-file": "^3.1.1",
1616
"fs-extra-p": "^4.5.2",
1717
"is-ci": "^1.1.0",

packages/electron-builder-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"homepage": "https://github.com/electron-userland/electron-builder",
4343
"dependencies": {
4444
"7zip-bin": "~3.1.0",
45-
"app-builder-bin": "1.5.1",
45+
"app-builder-bin": "1.6.0",
4646
"async-exit-hook": "^2.0.1",
4747
"bluebird-lst": "^1.0.5",
4848
"chromium-pickle-js": "^0.2.0",

packages/electron-builder-lib/src/platformPackager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
8989
}
9090
}
9191

92-
protected getCscLink(envName: string = "CSC_LINK"): string | null | undefined {
92+
protected getCscLink(extraEnvName?: string | null): string | null | undefined {
9393
// allow to specify as empty string
94-
return chooseNotNull(chooseNotNull(this.info.config.cscLink, this.platformSpecificBuildOptions.cscLink), process.env[envName])
94+
const envValue = chooseNotNull(extraEnvName == null ? null : process.env[extraEnvName], process.env.CSC_LINK)
95+
return chooseNotNull(chooseNotNull(this.info.config.cscLink, this.platformSpecificBuildOptions.cscLink), envValue)
9596
}
9697

9798
protected doGetCscPassword(): string | null | undefined {

yarn.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -275,25 +275,25 @@ anymatch@^1.3.0:
275275
micromatch "^2.1.5"
276276
normalize-path "^2.0.0"
277277

278-
app-builder-bin-linux@1.5.1:
279-
version "1.5.1"
280-
resolved "https://registry.yarnpkg.com/app-builder-bin-linux/-/app-builder-bin-linux-1.5.1.tgz#452feffa1a31834e4d8be2add078ab222e655e73"
278+
app-builder-bin-linux@1.6.0:
279+
version "1.6.0"
280+
resolved "https://registry.yarnpkg.com/app-builder-bin-linux/-/app-builder-bin-linux-1.6.0.tgz#d7731d7988b8a740e74d591cbd565f168a266111"
281281

282-
app-builder-bin-mac@1.5.1:
283-
version "1.5.1"
284-
resolved "https://registry.yarnpkg.com/app-builder-bin-mac/-/app-builder-bin-mac-1.5.1.tgz#8f989f047b7f149c8e0f3adfb9e914f0ad26a16a"
282+
app-builder-bin-mac@1.6.0:
283+
version "1.6.0"
284+
resolved "https://registry.yarnpkg.com/app-builder-bin-mac/-/app-builder-bin-mac-1.6.0.tgz#c976da70796d67aeb7134a57899636f2581d1c67"
285285

286-
app-builder-bin-win@1.5.1:
287-
version "1.5.1"
288-
resolved "https://registry.yarnpkg.com/app-builder-bin-win/-/app-builder-bin-win-1.5.1.tgz#03fa63c628b577cc3cea3668bf197f286d5d3e6c"
286+
app-builder-bin-win@1.6.0:
287+
version "1.6.0"
288+
resolved "https://registry.yarnpkg.com/app-builder-bin-win/-/app-builder-bin-win-1.6.0.tgz#528ef96430d519c270b4de260bea0ddc70df1733"
289289

290-
app-builder-bin@1.5.1:
291-
version "1.5.1"
292-
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-1.5.1.tgz#30e4a151dfff1e4dc69e5f87062d7f1f686e6389"
290+
app-builder-bin@1.6.0:
291+
version "1.6.0"
292+
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-1.6.0.tgz#c0e88a488d4c23c2e7fe0bbfb70c1d61165be206"
293293
optionalDependencies:
294-
app-builder-bin-linux "1.5.1"
295-
app-builder-bin-mac "1.5.1"
296-
app-builder-bin-win "1.5.1"
294+
app-builder-bin-linux "1.6.0"
295+
app-builder-bin-mac "1.6.0"
296+
app-builder-bin-win "1.6.0"
297297

298298
append-transform@^0.4.0:
299299
version "0.4.0"

0 commit comments

Comments
 (0)