Skip to content
Permalink
Browse files

fix(packager): remove stray .bin files leftover by yarn installs duri…

…ng packaging
  • Loading branch information
MarshallOfSound authored and malept committed Dec 27, 2016
1 parent 5a568cb commit 50ad8e6d49a6275a0df8fd374d32d4753faea71a
Showing with 6 additions and 0 deletions.
  1. +1 −0 package.json
  2. +5 −0 src/electron-forge-package.js
@@ -67,6 +67,7 @@
"electron-winstaller": "^2.5.0",
"fs-promise": "^1.0.0",
"github": "^7.2.0",
"glob": "^7.1.1",
"inquirer": "^2.0.0",
"lodash.template": "^4.4.0",
"log-symbols": "^1.0.2",
@@ -1,5 +1,6 @@
import 'colors';
import fs from 'fs-promise';
import glob from 'glob';
import path from 'path';
import pify from 'pify';
import packager from 'electron-packager';
@@ -65,6 +66,10 @@ const main = async () => {
prepareSpinner = ora.ora(`Preparing to Package Application for arch: ${(prepareCounter === 2 ? 'armv7l' : 'x64').cyan}`).start();
}
await fs.remove(path.resolve(buildPath, 'node_modules/electron-compile/test'));
const bins = await pify(glob)(path.join(buildPath, '**/.bin/**/*'));
for (const bin of bins) {
await fs.remove(bin);
}
done();
}, async (...args) => {
prepareSpinner.succeed();

0 comments on commit 50ad8e6

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