Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
[Package] Exclude src properly, and .babelrc as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ide committed Jan 14, 2016
1 parent ad9a1d1 commit 8b84dda
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gulp/package-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,19 @@ async function packageAppAsync(signed) {
let iconPath = path.join(XDE_ROOT, 'dev', 'Design', 'xde.icns');

let appPath = await electronPackager.promise({
dir: process.cwd(),
dir: path.resolve(__dirname, '..'),
name: APP_NAME,
platform: PLATFORM,
arch: ARCH,
version: electronVersion,
'app-bundle-id': APP_BUNDLE_ID,
icon: iconPath,
ignore: [/^src\//],
ignore: [/^\/src(\/|$)/, /^\/\.babelrc$/],
overwrite: true,
prune: true,
sign: signed ? CODE_SIGNING_IDENTITY : null
});



logger.info(`Packaged ${signed ? 'signed' : 'unsigned'} app at ${appPath}`);
return appPath;
}
Expand Down

0 comments on commit 8b84dda

Please sign in to comment.