Skip to content
Permalink
Browse files

refactor(generic): replace electron-host-arch with hostArch in Electr…

…on Packager
  • Loading branch information
malept committed Sep 16, 2017
1 parent 5cee381 commit 45afdfb54d02b7423f7506d2a3e0451df29d4081
Showing with 4 additions and 24 deletions.
  1. +2 −2 src/api/make.js
  2. +2 −2 src/api/package.js
  3. +0 −7 src/util/electron-host-arch.js
  4. +0 −13 test/fast/electron-host-arch_spec.js
@@ -1,9 +1,9 @@
import 'colors';
import fs from 'fs-extra';
import path from 'path';
import { hostArch } from 'electron-packager/targets';

import asyncOra from '../util/ora-handler';
import electronHostArch from '../util/electron-host-arch';
import getForgeConfig from '../util/forge-config';
import runHook from '../util/hook';
import { info, warn } from '../util/messages';
@@ -45,7 +45,7 @@ export default async (providedOptions = {}) => {
dir: process.cwd(),
interactive: false,
skipPackage: false,
arch: electronHostArch(),
arch: hostArch(),
platform: process.platform,
}, providedOptions);

@@ -5,8 +5,8 @@ import glob from 'glob';
import path from 'path';
import pify from 'pify';
import packager from 'electron-packager';
import { hostArch } from 'electron-packager/targets';

import electronHostArch from '../util/electron-host-arch';
import getForgeConfig from '../util/forge-config';
import runHook from '../util/hook';
import realOra, { fakeOra } from '../util/ora';
@@ -38,7 +38,7 @@ export default async (providedOptions = {}) => {
let { dir, interactive, arch, platform } = Object.assign({
dir: process.cwd(),
interactive: false,
arch: electronHostArch(),
arch: hostArch(),
platform: process.platform,
}, providedOptions);

This file was deleted.

This file was deleted.

0 comments on commit 45afdfb

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