How to use electron-wix-msi - 3 common examples

To help you get started, we’ve selected a few electron-wix-msi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IBM / kui / packages / builder / dist / electron / builders / msi.js View on Github external
* See the License for the specific language governing permissions and
 * limitations under the License.
 */

const path = require('path')
const { MSICreator } = require('electron-wix-msi')

const BUILDDIR = path.join(__dirname, '..', process.env.BUILDDIR)
const { PRODUCT_NAME, SETUP_ICON: setupIcon } = process.env

const appDirectory = path.join(BUILDDIR, `${PRODUCT_NAME}-win32-x64`)
const outputDirectory = path.join(BUILDDIR, 'installers/win32-x64')

console.log('Windows msi build started')

const creator = new MSICreator({
  appDirectory,
  outputDirectory,
  setupIcon,
  name: 'kui',
  setupExe: `${PRODUCT_NAME}.exe`,
  exe: 'kui'
})

creator
  .create()
  .then(() => creator.compile())
  .then(() => {
    console.log('Windows msi build succeeded')
  })
  .catch(err => {
    console.error(err)
github electron-userland / electron-forge / src / makers / win32 / wix.js View on Github external
export default async ({ dir, appName, targetArch, forgeConfig, packageJSON }) => {
  const { MSICreator } = require('electron-wix-msi');

  const outPath = path.resolve(dir, `../make/wix/${targetArch}`);
  await ensureDirectory(outPath);

  const creator = new MSICreator(Object.assign({
    description: packageJSON.description,
    name: appName,
    version: packageJSON.version,
    manufacturer: getNameFromAuthor(packageJSON.author),
    exe: `${appName}.exe`,
  }, configFn(forgeConfig.electronWixMSIConfig, targetArch), {
    appDirectory: dir,
    outputDirectory: outPath,
  }));

  await creator.create();
  const { msiFile } = await creator.compile();

  return [msiFile];
};
github electron-userland / electron-forge / packages / maker / wix / src / MakerWix.ts View on Github external
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();

electron-wix-msi

Creates an MSI installer for your Electron app

MIT
Latest version published 9 months ago

Package Health Score

67 / 100
Full package analysis