Skip to content

Commit

Permalink
refactor(generic): replace electron-host-arch with hostArch in Electr…
Browse files Browse the repository at this point in the history
…on Packager
  • Loading branch information
malept committed Sep 16, 2017
1 parent 5cee381 commit 45afdfb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/api/make.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';
Expand Down Expand Up @@ -45,7 +45,7 @@ export default async (providedOptions = {}) => {
dir: process.cwd(),
interactive: false,
skipPackage: false,
arch: electronHostArch(),
arch: hostArch(),
platform: process.platform,
}, providedOptions);

Expand Down
4 changes: 2 additions & 2 deletions src/api/package.js
Expand Up @@ -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';
Expand Down Expand Up @@ -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);

Expand Down
7 changes: 0 additions & 7 deletions src/util/electron-host-arch.js

This file was deleted.

13 changes: 0 additions & 13 deletions test/fast/electron-host-arch_spec.js

This file was deleted.

0 comments on commit 45afdfb

Please sign in to comment.