Skip to content

Commit

Permalink
return binaries to allow consumer to sign them
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdisaster committed May 12, 2020
1 parent 62d7cbb commit 6a37595
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/creator.ts
Expand Up @@ -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<string> }> {
const { files, directories } = await getDirectoryStructure(this.appDirectory);
const registry = this.getRegistryKeys();
const specialFiles = await this.getSpecialFiles();
Expand All @@ -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 };
}

/**
Expand Down

0 comments on commit 6a37595

Please sign in to comment.