Skip to content

Commit

Permalink
Merge pull request #6 from lbassin/asar
Browse files Browse the repository at this point in the history
added asar to build
  • Loading branch information
lbassin authored May 5, 2018
2 parents a41c444 + bf837b8 commit 1b97fc2
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 112 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 dist --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 --asar --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 dist --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 --asar --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 dist --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 --asar --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 1b97fc2

Please sign in to comment.