Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async make({
dir,
makeDir,
targetArch,
packageJSON,
appName,
}: MakerOptions) {
const outPath = path.resolve(makeDir, `wix/${targetArch}`);
await this.ensureDirectory(outPath);
const creator = new MSICreator(({
description: packageJSON.description,
name: appName,
version: packageJSON.version,
manufacturer: getNameFromAuthor(packageJSON.author),
exe: `${appName}.exe`,
...this.config,
appDirectory: dir,
outputDirectory: outPath,
}) as MSICreatorOptions);
if (this.config.beforeCreate) {
await Promise.resolve(this.config.beforeCreate(creator));
}
await creator.create();
const { msiFile } = await creator.compile();