From 6a375954d001c62625f14394889081f11a0faf92 Mon Sep 17 00:00:00 2001 From: Jan Hannemann Date: Tue, 12 May 2020 16:36:05 -0700 Subject: [PATCH] return binaries to allow consumer to sign them --- src/creator.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/creator.ts b/src/creator.ts index 2455722..9eb90a1 100644 --- a/src/creator.ts +++ b/src/creator.ts @@ -176,7 +176,7 @@ export class MSICreator { * * @returns {Promise<{ wxsFile: string, wxsContent: string }>} */ - public async create(): Promise<{ wxsFile: string, wxsContent: string }> { + public async create(): Promise<{ wxsFile: string, wxsContent: string, supportBinaries: Array }> { const { files, directories } = await getDirectoryStructure(this.appDirectory); const registry = this.getRegistryKeys(); const specialFiles = await this.getSpecialFiles(); @@ -190,7 +190,8 @@ export class MSICreator { const { wxsContent, wxsFile } = await this.createWxs(); this.wxsFile = wxsFile; - return { wxsContent, wxsFile }; + const supportBinaries = this.specialFiles.filter((f) => f.path.endsWith('.exe')).map((f) => f.path); + return { wxsContent, wxsFile, supportBinaries }; } /**