const packager = require('electron-packager');
const readlineSync = require('readline-sync');
const fs = require('fs');
const path = require('path');

let platformOption = readlineSync.question('select platform. all - for all platforms.\n');
let pathOption = readlineSync.question('select output folder.\n');

let options = {
    dir: './',
    tmpdir: false,
    icon: './icon',
    arch: 'x64',
    ignore: [
        '.idea'
    ],
    overwrite: true,
    win32metadata: {
        ProductName: 'KolpaqueClientElectron',
        InternalName: 'KolpaqueClientElectron',
        FileDescription: 'KolpaqueClientElectron',
        OriginalFilename: 'KolpaqueClientElectron.exe'
    },
    asar: {
        unpackDir: 'node_modules/node-notifier/vendor/**'
    },
    packageManager: 'yarn',
    prune: true
};

if (platformOption === 'all') {
    options.platform = 'win32,darwin,linux';
} else {
    options.platform = platformOption;
}

if (!fs.existsSync(pathOption))
    return console.log('bad path.');

options.out = path.join(pathOption, 'KolpaqueClientElectron');

console.log(options);

packager(options, function (err, appPaths) {
    if (err) console.log(err);

    console.log(appPaths);
});

@@ -142,16 +142,42 @@
 'path');
+%0Aconst os = require('os');
 %0A%0Alet pl
@@ -255,19 +255,26 @@
 atforms.
-%5Cn'
+' + os.EOL
 );%0Alet p
@@ -333,11 +333,18 @@
 der.
-%5Cn'
+' + os.EOL
 );%0A%0A
@@ -406,16 +406,22 @@
 con: './
+icons/
 icon',%0A 
@@ -465,16 +465,31 @@
  '.idea'
+,%0A        'src'
 %0A    %5D,%0A
@@ -752,73 +752,12 @@
 ar: 
-%7B%0A        unpackDir: 'node_modules/node-notifier/vendor/**'%0A    %7D
+true
 ,%0A  
@@ -961,20 +961,16 @@
 Option))
-%0A   
  return 

Build update.