11import 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"
33import { parseDn } from "builder-util-runtime"
44import { CopyFileTransformer , FileTransformer , walk } from "builder-util/out/fs"
55import { createHash } from "crypto"
@@ -8,7 +8,7 @@ import isCI from "is-ci"
88import { Lazy } from "lazy-val"
99import * as path from "path"
1010import { 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"
1212import { AfterPackContext } from "./configuration"
1313import { DIR_TARGET , Platform , Target } from "./core"
1414import { RequestedExecutionLevel , WindowsConfiguration } from "./options/winOptions"
@@ -23,7 +23,6 @@ import { BuildCacheManager, digest } from "./util/cacheManager"
2323import { isBuildCacheEnabled } from "./util/flags"
2424import { time } from "./util/timer"
2525import { getWindowsVm , VmManager } from "./vm/vm"
26- import { execWine } from "./wine"
2726
2827export 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 )
0 commit comments