Skip to content

Commit

Permalink
pack only compiled source
Browse files Browse the repository at this point in the history
  • Loading branch information
vunb committed May 4, 2018
1 parent c0454d7 commit 39348a8
Show file tree
Hide file tree
Showing 4 changed files with 1,138 additions and 283 deletions.
6 changes: 3 additions & 3 deletions builder/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ switch (process.env.NODE_OS) {
console.log('Successfully removed ./mac_packager/');
}
console.log('Creating mac packager...');
exec("cross-env NODE_ENV=prod webpack && electron-packager . --overwrite --platform=" + spec['platform']['mac'] + " --arch=" + spec['arch']['64'] + " --prune=true --out=mac_packager --icon=builder/icons/mac/icon.icns", (error) => {
exec("cross-env NODE_ENV=prod webpack && electron-packager dist --overwrite --platform=" + spec['platform']['mac'] + " --arch=" + spec['arch']['64'] + " --prune=true --out=mac_packager --icon=builder/icons/mac/icon.icns", (error) => {
if (!error) {
console.log('Successfully created packager at ./mac_packager/');
} else {
Expand All @@ -43,7 +43,7 @@ switch (process.env.NODE_OS) {
console.log('Successfully removed ./linux_packager/');
}
console.log('Creating linux packager...');
exec("cross-env NODE_ENV=prod webpack && electron-packager . --overwrite --platform=" + spec['platform']['linux'] + " --arch=" + spec['arch']['64'] + " --prune=true --out=linux_packager --icon=builder/icons/linux/icon.png", (error) => {
exec("cross-env NODE_ENV=prod webpack && electron-packager dist --overwrite --platform=" + spec['platform']['linux'] + " --arch=" + spec['arch']['64'] + " --prune=true --out=linux_packager --icon=builder/icons/linux/icon.png", (error) => {
if (!error) {
console.log('Successfully created packager at ./linux_packager/');
} else {
Expand All @@ -58,7 +58,7 @@ switch (process.env.NODE_OS) {
console.log('Successfully removed ./win_packager/');
}
console.log('Creating windows packager...');
exec("cross-env NODE_ENV=prod webpack && electron-packager . --overwrite --platform=" + spec['platform']['win'] + " --arch=" + spec['arch']['64'] + " --prune=true --out=win_packager --icon=builder/icons/win/icon.ico", (error) => {
exec("cross-env NODE_ENV=prod webpack && electron-packager dist --overwrite --platform=" + spec['platform']['win'] + " --arch=" + spec['arch']['64'] + " --prune=true --out=win_packager --icon=builder/icons/win/icon.ico", (error) => {
if (!error) {
console.log('Successfully created packager at ./win_packager/');
} else {
Expand Down
Loading

0 comments on commit 39348a8

Please sign in to comment.