Skip to content

Commit 5cb085d

Browse files
committed
feat: update rcedit, use rcedit x64 on Windows x64
#3889
1 parent c8c37f2 commit 5cb085d

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111

1212
install:
1313
- ps: Install-Product node 10 x64
14-
- yarn
14+
- yarn --frozen-lockfile
1515

1616
build: off
1717

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@types/debug": "^4.1.4",
3535
"@types/is-ci": "^2.0.0",
3636
"@types/semver": "^6.0.1",
37-
"app-builder-bin": "3.1.6",
37+
"app-builder-bin": "3.2.0",
3838
"archiver": "^3.0.0",
3939
"async-exit-hook": "^2.0.1",
4040
"bluebird-lst": "^1.0.9",

packages/app-builder-lib/src/winPackager.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import BluebirdPromise from "bluebird-lst"
2-
import { Arch, asArray, InvalidConfigurationError, log, use } from "builder-util"
2+
import { Arch, asArray, InvalidConfigurationError, log, use, executeAppBuilder } from "builder-util"
33
import { parseDn } from "builder-util-runtime"
44
import { CopyFileTransformer, FileTransformer, walk } from "builder-util/out/fs"
55
import { createHash } from "crypto"
@@ -8,7 +8,7 @@ import isCI from "is-ci"
88
import { Lazy } from "lazy-val"
99
import * as path from "path"
1010
import { downloadCertificate } from "./codeSign/codesign"
11-
import { CertificateFromStoreInfo, CertificateInfo, FileCodeSigningInfo, getCertificateFromStoreInfo, getCertInfo, getSignVendorPath, sign, WindowsSignOptions } from "./codeSign/windowsCodeSign"
11+
import { CertificateFromStoreInfo, CertificateInfo, FileCodeSigningInfo, getCertificateFromStoreInfo, getCertInfo, sign, WindowsSignOptions } from "./codeSign/windowsCodeSign"
1212
import { AfterPackContext } from "./configuration"
1313
import { DIR_TARGET, Platform, Target } from "./core"
1414
import { RequestedExecutionLevel, WindowsConfiguration } from "./options/winOptions"
@@ -23,7 +23,6 @@ import { BuildCacheManager, digest } from "./util/cacheManager"
2323
import { isBuildCacheEnabled } from "./util/flags"
2424
import { time } from "./util/timer"
2525
import { getWindowsVm, VmManager } from "./vm/vm"
26-
import { execWine } from "./wine"
2726

2827
export class WinPackager extends PlatformPackager<WindowsConfiguration> {
2928
readonly cscInfo = new Lazy<FileCodeSigningInfo | CertificateFromStoreInfo | null>(() => {
@@ -318,8 +317,7 @@ export class WinPackager extends PlatformPackager<WindowsConfiguration> {
318317
const timer = time("wine&sign")
319318
// rcedit crashed of executed using wine, resourcehacker works
320319
if (process.platform === "win32" || this.info.framework.name === "electron") {
321-
const vendorPath = await getSignVendorPath()
322-
await execWine(path.join(vendorPath, "rcedit-ia32.exe"), path.join(vendorPath, "rcedit-x64.exe"), args)
320+
await executeAppBuilder(["rcedit", "--args", JSON.stringify(args)])
323321
}
324322

325323
await this.sign(file)

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": "3.1.6",
14+
"app-builder-bin": "3.2.0",
1515
"temp-file": "^3.3.3",
1616
"fs-extra": "^8.1.0",
1717
"is-ci": "^2.0.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,10 +1390,10 @@ anymatch@^2.0.0:
13901390
micromatch "^3.1.4"
13911391
normalize-path "^2.1.1"
13921392

1393-
app-builder-bin@3.1.6:
1394-
version "3.1.6"
1395-
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-3.1.6.tgz#1d35ca0a81dfba15181481fbe8adf68954fedfb9"
1396-
integrity sha512-jq07wuzB3WXJ7kDtMS7ANQLEH/ZPKtVS5Vtg8xjM2+vc2wdN2qCApvkBRLKuCjaQhVBdN4ZkEVrXzztavuuj4Q==
1393+
app-builder-bin@3.2.0:
1394+
version "3.2.0"
1395+
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-3.2.0.tgz#3ba41721fa38375a4c0ed8f63325dc33f46c20ed"
1396+
integrity sha512-KmT/k5sKYKixeTUp/chXJ608ddV7M6tsC31BskJ9WWMund+NU+2J5EYTnfysnP+oy6qRtClgPlRgRVFnJOYgzg==
13971397

13981398
aproba@^1.0.3:
13991399
version "1.2.0"

0 commit comments

Comments
 (0)