Skip to content
Permalink
Browse files

fix(maker): wix only works on win32 currently

  • Loading branch information
malept committed Jan 30, 2018
1 parent 2d4179f commit 707a1e33854e9183ef104a5ae0e63bca2d525aee
Showing with 3 additions and 2 deletions.
  1. +2 −2 src/makers/win32/wix.js
  2. +1 −0 test/fast/makers_spec.js
@@ -3,9 +3,9 @@ import path from 'path';
import { ensureDirectory } from '../../util/ensure-output';
import getNameFromAuthor from '../../util/author-name';
import configFn from '../../util/config-fn';
import isInstalled from '../../util/is-installed';

export const isSupportedOnCurrentPlatform = async () => isInstalled('electron-wix-msi');
// electron-wix-msi doesn't set its 'os' field even though it only runs on win32
export const isSupportedOnCurrentPlatform = async () => process.platform === 'win32';

export default async ({ dir, appName, targetArch, forgeConfig, packageJSON }) => {
const { MSICreator } = require('electron-wix-msi');
@@ -10,6 +10,7 @@ describe('makers', () => {
'linux/rpm': ['darwin', 'linux'],
'win32/appx': ['win32'],
'win32/squirrel': ['darwin', 'linux', 'win32'],
'win32/wix': ['win32'],
};

Object.keys(expected).forEach(async (maker) => {

0 comments on commit 707a1e3

Please sign in to comment.
You can’t perform that action at this time.