fix(maker): wix only works on win32 currently

This commit is contained in:
Mark Lee 2018-01-30 15:07:17 -08:00
Родитель 2d4179ffe2
Коммит 707a1e3385
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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) => {