fix(maker): wix only works on win32 currently
This commit is contained in:
Родитель
2d4179ffe2
Коммит
707a1e3385
|
@ -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) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче