@@ -26,19 +26,6 @@ async function main() {
2626 process . stdout . write ( '1. Packaging main executable...' ) ;
2727 let dir = await packager ( packageOptions ) ;
2828 dir = dir [ 0 ] ;
29- /*
30- console.log(`Electron app bundles created:\n${dir}`)
31- fs.readdirSync(dir).forEach(file => {
32- err = false;
33- try{
34- fs.accessSync(file, fs.constants.X_OK);
35- }
36- catch(e){
37- err = true;
38- }
39- console.log(`${file} ${err ? '' : '\tx'}`);
40- });
41- */
4229 process . stdout . write ( '\t\tOK\n' ) ;
4330
4431
@@ -51,32 +38,6 @@ async function main() {
5138 process . stdout . write ( '\t\tOK\n' ) ;
5239 }
5340
54- process . stdout . write ( '2. Installing NPM for updater...' ) ;
55- execSync ( 'npm install' , {
56- cwd : './updater' ,
57- } ) ;
58- process . stdout . write ( '\tOK\n' ) ;
59-
60- process . stdout . write ( '3. Packaging updater...' ) ;
61- execSync ( 'npm run package' , {
62- cwd : './updater' ,
63- } ) ;
64- process . stdout . write ( '\t\t\tOK\n' ) ;
65-
66- if ( process . platform === 'linux' || process . platform === 'darwin' ) {
67- process . stdout . write ( '3.1. chmod-ing updater...' ) ;
68- execSync ( `chmod +x updater` , {
69- cwd : './updater' ,
70- } ) ;
71- process . stdout . write ( '\t\tOK\n' ) ;
72- }
73-
74- process . stdout . write ( '4. Copying updater...' ) ;
75- const updater = fs . readdirSync ( './updater/' ) . filter ( ( fn ) => fn . startsWith ( 'updater' ) ) ;
76- fs . mkdirSync ( `${ dir } /${ pjson . version } ` ) ;
77- fs . copyFileSync ( `./updater/${ updater [ 0 ] } ` , `${ dir } /${ pjson . version } /${ updater [ 0 ] } ` ) ;
78- process . stdout . write ( '\t\t\tOK\n' ) ;
79-
8041 console . log ( '------ FINISHED PACKAGING ------' ) ;
8142}
8243
0 commit comments