UNPKG

mixone

Version:

MixOne is a Node scaffolding tool implemented based on Vite, used for compiling HTML5, JavasCript, Vue, React and other codes. It supports packaging Web applications with multiple HTML entry points (BS architecture) and desktop installation packages (CS a

1 lines 6.23 kB
const x=d;function d(a,b){const e=c();return d=function(f,g){f=f-0x143;let h=e[f];return h;},d(a,b);}function c(){const K=['XWLgS','aNYlp','werlw','YIYob','arch,\x0a\x20\x20mirrorOptions:{\x0a\x20\x20\x20\x20mirror:\x20\x27https://mirrors.huaweicloud.com/electron/\x27\x0a\x20\x20}\x0a}).then(extractFile)','exit','flxrD','942340XuKzqd','523481yFNRvC','The\x20second\x20repair\x20failed','Your\x20electron\x20needs\x20to\x20be\x20fixed','fuLog','Rjjwb','node\x20install.js','1691610bqPXPs','2996888bwHdqi','15tUFwkp','zFRXW','LNtlq','lOuZI','rIcqb','fNigG','Zixdg','dist','readFileSync','XNzvf','zsrPJ','search','The\x20third\x20repair\x20was\x20successful','node_modules','dyHEj','Gjzdz','2WhQaYm','Replace\x20the\x20source\x202\x20and\x20continue\x20with\x20the\x20electron\x20installation...','pHIoe','log','hPUXh','utf-8','JbZGw','toString','40160qXrCgU','938412tzMaaN','JYnNT','gMBaU','315wFynAl','EPUmE','Qmjwx','error','pNtmy','hhIpu','wwDlH','(((.+)+)+)+$','existsSync','TdErx','The\x20second\x20repair\x20failed:','constructor','zGpGx','UivbS','join','electron','install.js','ZJZTY','writeFileSync','Replace\x20the\x20source\x201\x20and\x20continue\x20with\x20the\x20electron\x20installation...','XjvTE','IdFnu','WZYyY','VoNtP','xCeuy','UjvJO','aeSPB','replace','arch,\x0a\x20\x20mirrorOptions:{\x0a\x20\x20\x20\x20mirror:\x20\x27https://npmmirror.com/mirrors/electron/\x27\x0a\x20\x20}\x0a}).then(extractFile)','argv','The\x20install.js\x20file\x20does\x20not\x20exist:','The\x20third\x20repair\x20failed:','RwdsM','apply','VtueK','HHQDj','JSqhK','SeSjf','child_process','The\x20third\x20repair\x20failed','\x22Repaired\x20successfully','589924mpRFKZ'];c=function(){return K;};return c();}(function(a,b){const w=d,e=a();while(!![]){try{const f=-parseInt(w(0x177))/0x1+parseInt(w(0x18f))/0x2*(-parseInt(w(0x198))/0x3)+-parseInt(w(0x16e))/0x4*(-parseInt(w(0x17f))/0x5)+parseInt(w(0x17d))/0x6+-parseInt(w(0x176))/0x7+parseInt(w(0x17e))/0x8+parseInt(w(0x145))/0x9*(parseInt(w(0x197))/0xa);if(f===b)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(c,0x41964));const fs=require('fs'),path=require('path'),{exec}=require(x(0x16b));function manualCheck2(a){const y=x,b={'LNtlq':y(0x164),'uzPFN':function(f,g){return f(g);},'VoNtP':function(f,g){return f===g;},'jXkWA':y(0x18b),'hhIpu':function(f,g){return f(g);},'aeSPB':y(0x16c),'fuLog':y(0x190),'ZJZTY':y(0x155),'JSqhK':y(0x194),'IokZs':y(0x173),'zsrPJ':'The\x20install.js\x20file\x20was\x20successfully\x20modified\x20for\x20the\x20second\x20time','SeSjf':function(f,g,h){return f(g,h);},'zkzkH':y(0x17c),'lOuZI':y(0x148),'aNYlp':'exit'};console[y(0x192)](b[y(0x17a)]);const e=path['join'](a,b[y(0x156)]);if(fs['existsSync'](e)){let f=fs['readFileSync'](e,b[y(0x169)]);f=f[y(0x160)](/arch,\n mirrorOptions:\{\n mirror: 'https:\/\/npmmirror\.com\/mirrors\/electron\/'\n \}\n\}\)\.then\(extractFile\)/,b['IokZs']),fs[y(0x157)](e,f,y(0x194)),console[y(0x192)](b[y(0x189)]);const g=b[y(0x16a)](exec,b['zkzkH'],{'cwd':a});g['on'](b[y(0x182)],h=>{const z=y;console[z(0x148)](b[z(0x181)],h),b['uzPFN'](manualCheck,a);}),g['on'](b[y(0x170)],h=>{const A=y;b[A(0x15c)](h,0x0)?console[A(0x192)](b['jXkWA']):(b[A(0x14a)](manualCheck,a),console['log'](b[A(0x15f)]));});}else console[y(0x148)](y(0x163),e);}function manualCheck(a){const B=x,b={'YIYob':B(0x14f),'JYnNT':function(f,g){return f(g);},'UjvJO':function(f,g){return f===g;},'Zixdg':'The\x20second\x20repair\x20was\x20successful','EPUmE':function(f,g){return f(g);},'XjvTE':B(0x178),'zFRXW':B(0x158),'XNzvf':B(0x155),'xCeuy':B(0x194),'iBXuF':'The\x20install.js\x20file\x20was\x20successfully\x20modified\x20for\x20the\x20first\x20time','wwDlH':function(f,g,h){return f(g,h);},'rIcqb':'node\x20install.js','TdErx':B(0x148),'gMBaU':B(0x174),'UzmoE':B(0x163)};console['log'](b[B(0x180)]);const e=path[B(0x153)](a,b[B(0x188)]);if(fs['existsSync'](e)){let f=fs[B(0x187)](e,b[B(0x15d)]);f=f['replace'](/arch\n\}\)\.then\(extractFile\)/,B(0x161)),fs['writeFileSync'](e,f,b[B(0x15d)]),console[B(0x192)](b['iBXuF']);const g=b[B(0x14b)](exec,b[B(0x183)],{'cwd':a});g['on'](b[B(0x14e)],h=>{const C=B;console[C(0x148)](b[C(0x172)],h),b[C(0x143)](manualCheck2,a);}),g['on'](b[B(0x144)],h=>{const D=B;b[D(0x15e)](h,0x0)?console[D(0x192)](b[D(0x185)]):(b[D(0x146)](manualCheck2,a),console[D(0x192)](b[D(0x159)]));});}else console[B(0x148)](b['UzmoE'],e);}function checkElectronInstallation(e){const E=x,f={'IdFnu':E(0x14c),'XWLgS':'Repair\x20failed:','hPUXh':function(k,l){return k(l);},'Qmjwx':function(k,l){return k===l;},'Gjzdz':function(k,l){return k(l);},'pNtmy':function(k,l){return k===l;},'UivbS':'eMyNP','HHQDj':function(k,l){return k(l);},'WZYyY':E(0x175),'uFZiz':E(0x16d),'oyUzq':function(k,l){return k(l);},'RLPsA':'Repair\x20failed','fvjcX':function(k){return k();},'JbZGw':E(0x154),'pHIoe':function(k,l){return k===l;},'XNHXd':'cwQdj','dyHEj':E(0x171),'Rjjwb':E(0x186),'RwdsM':E(0x179),'zGpGx':function(k,l,m){return k(l,m);},'fNigG':E(0x17c)},g=(function(){let k=!![];return function(l,m){const n=k?function(){const F=d;if(m){const o=m[F(0x166)](l,arguments);return m=null,o;}}:function(){};return k=![],n;};}()),h=g(this,function(){const G=E;return h['toString']()['search'](f['IdFnu'])[G(0x196)]()[G(0x150)](h)[G(0x18a)](f[G(0x15a)]);});f['fvjcX'](h);const i=path['join'](e,E(0x18c),f[E(0x195)]);if(!fs[E(0x14d)](i)){if(f[E(0x191)](f['XNHXd'],f[E(0x18d)]))g['error'](f[E(0x16f)],h),f[E(0x193)](i,j);else return;}const j=path['join'](i,f[E(0x17b)]);if(!fs[E(0x14d)](j)){console[E(0x192)](f[E(0x165)]);const l=f[E(0x151)](exec,f[E(0x184)],{'cwd':i});l['on']('error',m=>{const I=E,n={'uubYU':function(o,p){return f['Qmjwx'](o,p);},'VtueK':function(o,p){const H=d;return f[H(0x18e)](o,p);}};f[I(0x149)](f['UivbS'],f[I(0x152)])?(console[I(0x148)](f[I(0x16f)],m),f[I(0x168)](manualCheck,i)):n['uubYU'](h,0x0)?m['log']('\x22Repaired\x20successfully'):(n[I(0x167)](n,o),p[I(0x192)]('Repair\x20failed'));}),l['on'](E(0x174),m=>{const J=E;f[J(0x147)](f[J(0x15b)],f[J(0x15b)])?f[J(0x147)](m,0x0)?console[J(0x192)](f['uFZiz']):(f['oyUzq'](manualCheck,i),console[J(0x192)](f['RLPsA'])):(g['error'](J(0x164),h),i(j));});}}const rootDir=process[x(0x162)][0x2]||process['cwd']();checkElectronInstallation(rootDir);