Skip to content

Commit

Permalink
fix(packager): remove stray .bin files leftover by yarn installs duri…
Browse files Browse the repository at this point in the history
…ng packaging
  • Loading branch information
MarshallOfSound authored and malept committed Dec 30, 2016
1 parent 5a568cb commit 50ad8e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/electron-forge-package.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 50ad8e6

Please sign in to comment.