@webspatial/builder 0.0.19 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.d.ts +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.d.ts +1 -0
- package/dist/lib/pwa/validate.js +1 -1
- package/dist/lib/resource/file.js +1 -1
- package/dist/lib/resource/imageHelper.js +1 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.d.ts +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2a8658=_0x1e14;function _0x1e14(_0x2f07bf,_0x3ea66b){const _0x1bb0a6=_0x1bb0();return _0x1e14=function(_0x1e14d4,_0x313606){_0x1e14d4=_0x1e14d4-0x1c9;let _0x2ea106=_0x1bb0a6[_0x1e14d4];return _0x2ea106;},_0x1e14(_0x2f07bf,_0x3ea66b);}function _0x1bb0(){const _0x3de51e=['error','906OaCpjN','customMessage','message','5037656AufAvz','CustomError','./lib/Cli','run','18vyxhlS','4640538DwLKki','2495hSbanc','defineProperty','2475088JzGmKS','forEach','log','Cli','slice','40bAaNbR','exit','8535xDJRuZ','exports','./lib/utils/CustomError','3693447PdsyUw','1188531JXZduL','code'];_0x1bb0=function(){return _0x3de51e;};return _0x1bb0();}(function(_0x424ce9,_0xb3279a){const _0x274482=_0x1e14,_0x3189e9=_0x424ce9();while(!![]){try{const _0x2972bd=parseInt(_0x274482(0x1cb))/0x1*(-parseInt(_0x274482(0x1c9))/0x2)+parseInt(_0x274482(0x1d8))/0x3+-parseInt(_0x274482(0x1cd))/0x4+-parseInt(_0x274482(0x1d4))/0x5*(-parseInt(_0x274482(0x1db))/0x6)+-parseInt(_0x274482(0x1ca))/0x7+-parseInt(_0x274482(0x1de))/0x8+parseInt(_0x274482(0x1d7))/0x9*(parseInt(_0x274482(0x1d2))/0xa);if(_0x2972bd===_0xb3279a)break;else _0x3189e9['push'](_0x3189e9['shift']());}catch(_0xa1f2b1){_0x3189e9['push'](_0x3189e9['shift']());}}}(_0x1bb0,0x5847e));Object[_0x2a8658(0x1cc)](exports,'__esModule',{'value':!![]});const Cli_1=require(_0x2a8658(0x1e0)),CustomError_1=require(_0x2a8658(0x1d6));module[_0x2a8658(0x1d5)]=async()=>{const _0x5441d6=_0x2a8658,_0x52e5da=new Cli_1['Cli'](),_0x3faa7b=Cli_1[_0x5441d6(0x1d0)][_0x5441d6(0x1cf)],_0xdf5d7e=process['argv'][_0x5441d6(0x1d1)](0x2);let _0x38eadb;try{_0x38eadb=await _0x52e5da[_0x5441d6(0x1e1)](_0xdf5d7e);}catch(_0x5a3b99){if(_0x5a3b99 instanceof CustomError_1[_0x5441d6(0x1df)]){const _0x4c4bc1=_0x5a3b99[_0x5441d6(0x1dc)];Array['isArray'](_0x4c4bc1)?_0x4c4bc1[_0x5441d6(0x1ce)](_0x50cf82=>{const _0x1c1f36=_0x5441d6;_0x3faa7b[_0x1c1f36(0x1da)](_0x50cf82['code']+':\x20'+_0x50cf82[_0x1c1f36(0x1dd)]);}):_0x3faa7b['error'](_0x4c4bc1[_0x5441d6(0x1d9)]+':\x20'+_0x4c4bc1['message']);}else _0x3faa7b[_0x5441d6(0x1da)](_0x5a3b99[_0x5441d6(0x1dd)]);_0x38eadb=![];}!_0x38eadb?process[_0x5441d6(0x1d3)](0x1):process[_0x5441d6(0x1d3)](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1e5e3f=_0x474b;(function(_0x5adfa8,_0x567686){const _0x4cabe4=_0x474b,_0x2ebc70=_0x5adfa8();while(!![]){try{const _0x433f1e=-parseInt(_0x4cabe4(0x76))/0x1*(-parseInt(_0x4cabe4(0x8e))/0x2)+-parseInt(_0x4cabe4(0x7b))/0x3*(-parseInt(_0x4cabe4(0x92))/0x4)+-parseInt(_0x4cabe4(0x78))/0x5*(parseInt(_0x4cabe4(0x8b))/0x6)+-parseInt(_0x4cabe4(0x87))/0x7+parseInt(_0x4cabe4(0x83))/0x8+parseInt(_0x4cabe4(0x89))/0x9*(-parseInt(_0x4cabe4(0x80))/0xa)+-parseInt(_0x4cabe4(0x84))/0xb;if(_0x433f1e===_0x567686)break;else _0x2ebc70['push'](_0x2ebc70['shift']());}catch(_0x363853){_0x2ebc70['push'](_0x2ebc70['shift']());}}}(_0x1310,0xc5573));Object[_0x1e5e3f(0x6f)](exports,'__esModule',{'value':!![]}),exports[_0x1e5e3f(0x73)]=void 0x0;function _0x474b(_0x1c18af,_0x285021){const _0x1310fb=_0x1310();return _0x474b=function(_0x474b68,_0x2cc6b1){_0x474b68=_0x474b68-0x6f;let _0x1fa519=_0x1310fb[_0x474b68];return _0x1fa519;},_0x474b(_0x1c18af,_0x285021);}const minimist=require(_0x1e5e3f(0x85)),semver_1=require(_0x1e5e3f(0x7a)),Log_1=require('../lib/utils/Log'),FetchUtils_1_1=require(_0x1e5e3f(0x8f)),help_1=require(_0x1e5e3f(0x88)),build_1=require(_0x1e5e3f(0x81)),version_1=require(_0x1e5e3f(0x86)),fetch_1=require(_0x1e5e3f(0x8d));function _0x1310(){const _0x212a6e=['setDownloadFile','decompressResponseBuffer','run','version','4420HMRKWj','./cmds/build','webspatial-builder','11059168plXYkR','7149692whXNsP','minimist','./cmds/version','4448339OQHmmh','./cmds/help','17217hpJRFv','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','19014wiajBT','node','./utils/fetch','37756XbcZFG','./utils/FetchUtils-1','major','start','4JwdZSe','ConsoleLog','setFetch','fetchUtils','defineProperty','Current\x20Node.js\x20version\x20is\x20','versions','store','Cli','downloadFile','help','62QqqJME','publish','605cexfpH','fetch','semver','2309757NOYPaV'];_0x1310=function(){return _0x212a6e;};return _0x1310();}class Cli{async[_0x1e5e3f(0x7e)](_0x26fffb){const _0x26ddb0=_0x1e5e3f;if((0x0,semver_1[_0x26ddb0(0x90)])(process[_0x26ddb0(0x71)][_0x26ddb0(0x8c)])<0xe)throw new Error(_0x26ddb0(0x70)+process[_0x26ddb0(0x71)][_0x26ddb0(0x8c)]+'.'+_0x26ddb0(0x8a));FetchUtils_1_1[_0x26ddb0(0x95)][_0x26ddb0(0x94)](fetch_1[_0x26ddb0(0x79)]),FetchUtils_1_1[_0x26ddb0(0x95)][_0x26ddb0(0x7c)](fetch_1[_0x26ddb0(0x74)]),FetchUtils_1_1[_0x26ddb0(0x95)]['setDecompressResponseBuffer'](fetch_1[_0x26ddb0(0x7d)]);const _0xddb29b=minimist(_0x26fffb);let _0x132a96=undefined;if(_0xddb29b['_']['length']===0x0){if(_0xddb29b[_0x26ddb0(0x7f)])_0x132a96=_0x26ddb0(0x7f);else _0xddb29b[_0x26ddb0(0x75)]&&(_0x132a96=_0x26ddb0(0x75));}else _0x132a96=_0xddb29b['_'][0x0];!_0x132a96&&(_0x132a96=_0x26ddb0(0x75));switch(_0x132a96){case'help':case'h':return await(0x0,help_1[_0x26ddb0(0x75)])(_0xddb29b);case'build':return await(0x0,build_1[_0x26ddb0(0x91)])(_0xddb29b);case _0x26ddb0(0x77):return await(0x0,build_1[_0x26ddb0(0x72)])(_0xddb29b);case _0x26ddb0(0x7e):return await(0x0,build_1[_0x26ddb0(0x7e)])(_0xddb29b);case'version':{return await(0x0,version_1[_0x26ddb0(0x7f)])();}default:throw new Error('\x22'+_0x132a96+'\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands');}}}exports[_0x1e5e3f(0x73)]=Cli,Cli['log']=new Log_1[(_0x1e5e3f(0x93))](_0x1e5e3f(0x82));
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x429680=_0x3899;(function(_0x487fdd,_0x4f1b14){const _0x4119d3=_0x3899,_0x96e4f7=_0x487fdd();while(!![]){try{const _0x17aa6c=-parseInt(_0x4119d3(0x20b))/0x1*(parseInt(_0x4119d3(0x202))/0x2)+-parseInt(_0x4119d3(0x215))/0x3*(parseInt(_0x4119d3(0x209))/0x4)+parseInt(_0x4119d3(0x214))/0x5*(parseInt(_0x4119d3(0x1f3))/0x6)+-parseInt(_0x4119d3(0x20f))/0x7+-parseInt(_0x4119d3(0x216))/0x8+-parseInt(_0x4119d3(0x1fd))/0x9+parseInt(_0x4119d3(0x1f4))/0xa;if(_0x17aa6c===_0x4f1b14)break;else _0x96e4f7['push'](_0x96e4f7['shift']());}catch(_0x46d1bd){_0x96e4f7['push'](_0x96e4f7['shift']());}}}(_0x3321,0x7fac0));function _0x3321(){const _0x56dfbe=['__esModule','1021465DbMvic','3wrTcJm','4158672RmyJKM','checkBuildParams','defineProperty','ResourceManager','fromNet','teamId','../resource','30ravqxI','10050650tuAThv','json','buildType','WebSpatialTest','XcodeManager','-------------------\x20build\x20end\x20-------------------','generate\x20icon:\x20ok','run','name','376722GCUbXM','moveProjectFrom','icons','length','store','10OAPYDg','dist','version','log','checkPlatformPath','export','../xcode','2135852XrcAMd','move\x20web\x20project:\x20ok','4168sPWucT','../pwa','runWithSimulator','checkStoreParams','2709637aDrcgq','-------------------\x20build\x20start\x20-------------------','generator','upload'];_0x3321=function(){return _0x56dfbe;};return _0x3321();}function _0x3899(_0x1f5ee2,_0x470303){const _0x332113=_0x3321();return _0x3899=function(_0x38993a,_0x1fe024){_0x38993a=_0x38993a-0x1f0;let _0x12f383=_0x332113[_0x38993a];return _0x12f383;},_0x3899(_0x1f5ee2,_0x470303);}Object[_0x429680(0x218)](exports,_0x429680(0x213),{'value':!![]}),exports['start']=start,exports[_0x429680(0x201)]=store,exports[_0x429680(0x1fb)]=run;const pwa_1=require(_0x429680(0x20c)),resource_1=require(_0x429680(0x1f2)),xcode_1=require(_0x429680(0x208)),check_1=require('./check');async function start(_0x3f2981,_0x504b40=![]){const _0xd50165=_0x429680;var _0x5cd566,_0x4a17a5;(0x0,check_1[_0xd50165(0x217)])(_0x3f2981,_0x504b40),resource_1[_0xd50165(0x219)][_0xd50165(0x206)](_0x3f2981['platform']),console['log'](_0xd50165(0x210));let _0x22b85f=await pwa_1['PWAGenerator'][_0xd50165(0x211)](_0x3f2981,_0x504b40);!_0x22b85f[_0xd50165(0x1f0)]&&(await resource_1['ResourceManager'][_0xd50165(0x1fe)]((_0x5cd566=_0x3f2981['project'])!==null&&_0x5cd566!==void 0x0?_0x5cd566:_0xd50165(0x203)),console[_0xd50165(0x205)](_0xd50165(0x20a)));let _0x4d39f3;return((_0x4a17a5=_0x22b85f[_0xd50165(0x1f5)][_0xd50165(0x1ff)])===null||_0x4a17a5===void 0x0?void 0x0:_0x4a17a5[_0xd50165(0x200)])&&_0x504b40&&(_0x4d39f3=await resource_1[_0xd50165(0x219)]['generateIcon'](_0x22b85f)),console[_0xd50165(0x205)](_0xd50165(0x1fa)),await xcode_1[_0xd50165(0x1f8)]['parseProject']({'icon':_0x4d39f3,'manifestInfo':_0x22b85f,'teamId':_0x3f2981[_0xd50165(0x1f1)],'version':_0x3f2981[_0xd50165(0x204)],'buildType':_0x3f2981['buildType'],'export':_0x3f2981[_0xd50165(0x207)]},_0x504b40),console[_0xd50165(0x205)](_0xd50165(0x1f9)),_0x22b85f;}async function store(_0x3bc3a9){const _0x129e5a=_0x429680;resource_1[_0x129e5a(0x219)][_0x129e5a(0x206)](_0x3bc3a9['platform']),(0x0,check_1[_0x129e5a(0x20e)])(_0x3bc3a9);let _0x2e3d34={'name':'SpatialWebTest'};_0x3bc3a9[_0x129e5a(0x1f6)]='app-store-connect';if(_0x3bc3a9['name'])_0x2e3d34['name']=_0x3bc3a9['name'];else{const _0x2ee308=await start(_0x3bc3a9);if(!_0x2ee308)return![];_0x2e3d34[_0x129e5a(0x1fc)]=_0x2ee308[_0x129e5a(0x1f5)][_0x129e5a(0x1fc)];}return await xcode_1['XcodeManager'][_0x129e5a(0x212)](_0x3bc3a9,_0x2e3d34),!![];}async function run(_0x2bdae0){const _0xb6015e=_0x429680;let _0x2e2598={'name':_0xb6015e(0x1f7),'id':''};const _0x4aaba2=await start(_0x2bdae0,!![]);if(!_0x4aaba2)return![];return _0x2e2598[_0xb6015e(0x1fc)]=_0x4aaba2['json'][_0xb6015e(0x1fc)],_0x2e2598['id']=_0x4aaba2['json']['id'],await xcode_1['XcodeManager'][_0xb6015e(0x20d)](_0x2e2598),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3076d7=_0x249f;(function(_0xdf9ff9,_0x25b851){const _0x575120=_0x249f,_0x2835b4=_0xdf9ff9();while(!![]){try{const _0x4fdd93=-parseInt(_0x575120(0xd6))/0x1+-parseInt(_0x575120(0xc6))/0x2+-parseInt(_0x575120(0xdd))/0x3+parseInt(_0x575120(0xd8))/0x4*(parseInt(_0x575120(0xc7))/0x5)+parseInt(_0x575120(0xdc))/0x6+parseInt(_0x575120(0xcb))/0x7*(parseInt(_0x575120(0xc8))/0x8)+parseInt(_0x575120(0xcd))/0x9;if(_0x4fdd93===_0x25b851)break;else _0x2835b4['push'](_0x2835b4['shift']());}catch(_0x114f1e){_0x2835b4['push'](_0x2835b4['shift']());}}}(_0x5421,0x6f7ec));Object[_0x3076d7(0xca)](exports,_0x3076d7(0xd0),{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x3076d7(0xc9)]=checkStoreParams;const validate_1=require(_0x3076d7(0xcc));function checkBuildParams(_0x2b5c71,_0x14942e=![]){const _0x58e06e=_0x3076d7;if(_0x2b5c71['manifest']&&_0x2b5c71['manifest-url'])throw new Error('--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time');if(!_0x2b5c71[_0x58e06e(0xd4)]&&!_0x14942e)throw new Error(_0x58e06e(0xd2));if(_0x2b5c71[_0x58e06e(0xd5)]){if((0x0,validate_1[_0x58e06e(0xd7)])(_0x2b5c71[_0x58e06e(0xd5)]))try{const _0x1c0c5c=new URL(_0x2b5c71[_0x58e06e(0xd5)]);if(_0x1c0c5c[_0x58e06e(0xdb)]||_0x1c0c5c[_0x58e06e(0xd1)])throw new Error(_0x58e06e(0xd3));}catch(_0x3806af){throw new Error(_0x58e06e(0xd3));}else{const _0x4052cb=/(\?.*|\.\w+|#.*)$/,_0x2c253c=_0x2b5c71[_0x58e06e(0xd5)][_0x58e06e(0xce)]('/')[_0x58e06e(0xda)]()||'';if(_0x4052cb['test'](_0x2c253c))throw new Error(_0x58e06e(0xd3));}}}function _0x249f(_0x3b5275,_0x29dfb1){const _0x542131=_0x5421();return _0x249f=function(_0x249fd1,_0x44abfd){_0x249fd1=_0x249fd1-0xc6;let _0xe17876=_0x542131[_0x249fd1];return _0xe17876;},_0x249f(_0x3b5275,_0x29dfb1);}function checkStoreParams(_0x35f77d){const _0x524cbe=_0x3076d7;if(!(_0x35f77d['u']&&_0x35f77d['p']))throw new Error(_0x524cbe(0xcf));if(!_0x35f77d['version'])throw new Error(_0x524cbe(0xd9));}function _0x5421(){const _0x42e8ec=['425700WSidRe','686907UWbJti','1644758tgmOmv','330aOIwTU','2954584dTfXFX','checkStoreParams','defineProperty','7pAQDck','../pwa/validate','13415688Jemtuz','split','--u\x20and\x20--p\x20is\x20required','__esModule','hash','--teamId\x20is\x20required','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','teamId','base','677171TpAupg','validateURL','15412jyepSR','version\x20is\x20required','pop','search'];_0x5421=function(){return _0x42e8ec;};return _0x5421();}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x483ffe=_0x5e0d;(function(_0x170d57,_0x429bbf){const _0x1198ba=_0x5e0d,_0x46ea71=_0x170d57();while(!![]){try{const _0x519f38=parseInt(_0x1198ba(0xe8))/0x1+parseInt(_0x1198ba(0xf0))/0x2+parseInt(_0x1198ba(0xe1))/0x3+-parseInt(_0x1198ba(0xe5))/0x4+-parseInt(_0x1198ba(0xdc))/0x5*(parseInt(_0x1198ba(0xe0))/0x6)+-parseInt(_0x1198ba(0xe3))/0x7+parseInt(_0x1198ba(0xe2))/0x8;if(_0x519f38===_0x429bbf)break;else _0x46ea71['push'](_0x46ea71['shift']());}catch(_0x32af45){_0x46ea71['push'](_0x46ea71['shift']());}}}(_0x2c3d,0x91078));function _0x5e0d(_0x3484b7,_0x3117e0){const _0x2c3dc4=_0x2c3d();return _0x5e0d=function(_0x5e0d72,_0x71738e){_0x5e0d72=_0x5e0d72-0xdc;let _0x1948c1=_0x2c3dc4[_0x5e0d72];return _0x1948c1;},_0x5e0d(_0x3484b7,_0x3117e0);}Object[_0x483ffe(0xee)](exports,_0x483ffe(0xf4),{'value':!![]}),exports['help']=help;function _0x2c3d(){const _0x5571bc=['join','defineProperty','get','794150ToBrqS','main','publish','info','__esModule','build','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','40oLqKdX','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','../utils/Log','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','145932uAIGGP','1510443zNJMmt','7320616flgdMA','7548016WiAoee','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','1222600jMxUAt','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','356921LPeHZa','Usage:','dev','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','ConsoleLog'];_0x2c3d=function(){return _0x5571bc;};return _0x2c3d();}const Log_1=require(_0x483ffe(0xde)),HELP_MESSAGES=new Map([[_0x483ffe(0xf1),['webspatial\x20[command]\x20<options>','','','help\x20................\x20shows\x20this\x20menu',_0x483ffe(0xf6)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project',_0x483ffe(0xe4),_0x483ffe(0xe6)]['join']('\x0a')],[_0x483ffe(0xf5),[_0x483ffe(0xe9),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]'][_0x483ffe(0xed)]('\x0a')],[_0x483ffe(0xea),['Usage:','','','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','','',_0x483ffe(0xe7)][_0x483ffe(0xed)]('\x0a')],[_0x483ffe(0xf2),[_0x483ffe(0xe9),'','',_0x483ffe(0xeb),'','',_0x483ffe(0xdd),'','',_0x483ffe(0xdf)][_0x483ffe(0xed)]('\x0a')]]);async function help(_0x5ae1ed,_0x1287de=new Log_1[(_0x483ffe(0xec))]('help')){const _0x359a5c=_0x483ffe,_0x3d0bb7=_0x5ae1ed['_'][0x1],_0x2bd070=HELP_MESSAGES[_0x359a5c(0xef)](_0x3d0bb7)||HELP_MESSAGES[_0x359a5c(0xef)]('main');return _0x1287de[_0x359a5c(0xf3)](_0x2bd070),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3089af=_0x627b;function _0x405b(){const _0x404afd=['172230opNKMa','8666580iFmyLe','836661bMSIKi','15RQjGwv','13KuSngr','../../../package.json','info','72XxokNM','245bBhUqn','promises','2YFEkdY','__esModule','parse','../utils/Log','30IOvfAl','5535937grPgTr','version','path','1192845HPvJuV','defineProperty','join','toString','57856TeHWCk','2236664EFcJJR'];_0x405b=function(){return _0x404afd;};return _0x405b();}(function(_0x181939,_0x4f1d32){const _0x65799d=_0x627b,_0x15954c=_0x181939();while(!![]){try{const _0x3aeb2d=-parseInt(_0x65799d(0xac))/0x1+parseInt(_0x65799d(0xbc))/0x2*(parseInt(_0x65799d(0xb4))/0x3)+-parseInt(_0x65799d(0xb1))/0x4*(-parseInt(_0x65799d(0xb5))/0x5)+-parseInt(_0x65799d(0xb2))/0x6*(-parseInt(_0x65799d(0xba))/0x7)+-parseInt(_0x65799d(0xb0))/0x8*(parseInt(_0x65799d(0xb9))/0x9)+-parseInt(_0x65799d(0xc0))/0xa*(parseInt(_0x65799d(0xc1))/0xb)+parseInt(_0x65799d(0xb3))/0xc*(parseInt(_0x65799d(0xb6))/0xd);if(_0x3aeb2d===_0x4f1d32)break;else _0x15954c['push'](_0x15954c['shift']());}catch(_0x5f3251){_0x15954c['push'](_0x15954c['shift']());}}}(_0x405b,0xe1495));Object[_0x3089af(0xad)](exports,_0x3089af(0xbd),{'value':!![]}),exports[_0x3089af(0xc2)]=version;const fs=require('fs'),path=require(_0x3089af(0xab)),Log_1=require(_0x3089af(0xbf));function _0x627b(_0x458b5c,_0x14d17b){const _0x405be5=_0x405b();return _0x627b=function(_0x627bd8,_0x2c63ec){_0x627bd8=_0x627bd8-0xab;let _0x252120=_0x405be5[_0x627bd8];return _0x252120;},_0x627b(_0x458b5c,_0x14d17b);}async function version(_0x14206e=new Log_1['ConsoleLog'](_0x3089af(0xc2))){const _0x2cdd66=_0x3089af,_0x38233b=path[_0x2cdd66(0xae)](__dirname,_0x2cdd66(0xb7)),_0x4889be=await(await fs[_0x2cdd66(0xbb)]['readFile'](_0x38233b))[_0x2cdd66(0xaf)](),_0x1c2869=JSON[_0x2cdd66(0xbe)](_0x4889be);return _0x14206e[_0x2cdd66(0xb8)](_0x1c2869[_0x2cdd66(0xc2)]),!![];}
|
package/dist/lib/pwa/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function configId(manifestJson: Record<string, any>, bundleId: string): void;
|
|
1
|
+
export declare function configId(manifestJson: Record<string, any>, bundleId: string, isDev: boolean): void;
|
|
2
2
|
export declare function configStartUrl(manifestJson: Record<string, any>, base: string): any;
|
|
3
3
|
export declare function configScope(manifestJson: Record<string, any>): void;
|
|
4
4
|
export declare function configDisplay(manifestJson: Record<string, any>): void;
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3df619=_0x2f00;(function(_0x1be39e,_0x19ef8c){const _0x2130da=_0x2f00,_0x136f48=_0x1be39e();while(!![]){try{const _0x22f86d=-parseInt(_0x2130da(0x18d))/0x1*(parseInt(_0x2130da(0x1c1))/0x2)+parseInt(_0x2130da(0x1c3))/0x3*(-parseInt(_0x2130da(0x1a6))/0x4)+-parseInt(_0x2130da(0x1c9))/0x5+parseInt(_0x2130da(0x1b9))/0x6*(-parseInt(_0x2130da(0x198))/0x7)+parseInt(_0x2130da(0x191))/0x8+-parseInt(_0x2130da(0x1bb))/0x9*(-parseInt(_0x2130da(0x1b2))/0xa)+parseInt(_0x2130da(0x1c0))/0xb;if(_0x22f86d===_0x19ef8c)break;else _0x136f48['push'](_0x136f48['shift']());}catch(_0x73c39d){_0x136f48['push'](_0x136f48['shift']());}}}(_0x1fa0,0x9e9a4));Object[_0x3df619(0x18e)](exports,_0x3df619(0x1ae),{'value':!![]}),exports['safelist']=void 0x0,exports[_0x3df619(0x18a)]=configId,exports[_0x3df619(0x19c)]=configStartUrl,exports[_0x3df619(0x19e)]=configScope,exports[_0x3df619(0x1c4)]=configDisplay,exports[_0x3df619(0x1cd)]=configMainScene,exports[_0x3df619(0x1c6)]=configDeeplink;const utils_1=require(_0x3df619(0x18c)),validate_1=require(_0x3df619(0x1ba)),path_1=require(_0x3df619(0x1ac));function configId(_0xa22a,_0x59237f,_0x475695){const _0x580a19=_0x3df619;if(_0x475695)_0xa22a['id']=_0x580a19(0x19b);else{if(_0x59237f)_0xa22a['id']=_0x59237f;else{const _0x57ad8d=new URL(_0xa22a['id']);let _0x5ac344=_0x57ad8d[_0x580a19(0x1cb)][_0x580a19(0x1bd)]('.')[_0x580a19(0x1a1)]();_0xa22a['id']=_0x5ac344['join']('.');}}}function configStartUrl(_0x3f5a1a,_0x4171eb){const _0x175352=_0x3df619,_0x4ee645=(0x0,validate_1[_0x175352(0x1cf)])(_0x3f5a1a[_0x175352(0x19d)]),_0x2b7207=(0x0,validate_1['validateURL'])(_0x4171eb);let _0x2aeed1=_0x3f5a1a[_0x175352(0x19d)];if(!_0x4ee645&&!_0x2b7207){const _0xdfae5=(0x0,path_1[_0x175352(0x1d4)])(_0x175352(0x197)),_0x275148=(0x0,path_1[_0x175352(0x1d4)])(_0xdfae5,_0x4171eb,_0x2aeed1),_0x47d128=(0x0,path_1[_0x175352(0x1c5)])(_0x275148),_0x388745=(0x0,path_1['join'])(_0xdfae5,_0x47d128);_0x2aeed1=(0x0,path_1[_0x175352(0x1b7)])(process['cwd'](),_0x388745)[_0x175352(0x19f)](/^(\.\.\/)+/,'./')[_0x175352(0x19f)](/\/$/,'');}else{if(_0x4ee645&&!_0x2b7207){const _0x383f53=new URL(_0x2aeed1),_0x42721f=_0x383f53[_0x175352(0x1a7)]+_0x383f53[_0x175352(0x18f)]+_0x383f53[_0x175352(0x1d5)];let _0x4abef2=new URL(_0x4171eb,_0x383f53[_0x175352(0x194)]);_0x2aeed1=new URL(_0x42721f,_0x4abef2)[_0x175352(0x1b0)];}else{if(!_0x4ee645&&_0x2b7207){if(_0x2aeed1['startsWith']('/')){const _0x4e8589=new URL(_0x4171eb);_0x2aeed1=_0x4e8589['origin']+(0x0,path_1['join'])(_0x4e8589[_0x175352(0x1a7)],_0x2aeed1);}else _0x2aeed1=new URL(_0x2aeed1,_0x4171eb)[_0x175352(0x1b0)];}else{if(_0x4ee645&&_0x2b7207){const _0x2555a7=new URL(_0x2aeed1),_0x2180f9=new URL(_0x4171eb),_0x103826=_0x2555a7[_0x175352(0x1a7)]+_0x2555a7['search']+_0x2555a7[_0x175352(0x1d5)];_0x2aeed1=new URL(_0x103826,_0x2180f9['origin']+_0x2180f9['pathname'])[_0x175352(0x1b0)];}}}}return _0x2aeed1;}function _0x2f00(_0x483b60,_0x1dd796){const _0x1fa0fa=_0x1fa0();return _0x2f00=function(_0x2f00c9,_0x55438e){_0x2f00c9=_0x2f00c9-0x187;let _0x442aab=_0x1fa0fa[_0x2f00c9];return _0x442aab;},_0x2f00(_0x483b60,_0x1dd796);}function _0x1fa0(){const _0x1adeb0=['geo','scope','84jeWlck','pathname','display_override','defaultSize','xmpp','nntp','path','safelist','__esModule','tel','href','ftps','390KRzJrL','protocol_handlers','xr_main_scene','splice','join','relative','magnet','2352156CafCMV','./validate','108036TCAfcT','dynamic','split','width','automatic','30914620bEoDLs','2mWFQAg','web+','184476vMleOR','configDisplay','normalize','configDeeplink','height','smsto','1789480POIGLx','url','host','indexOf','configMainScene','length','validateURL','protocol','standalone','urn','mainScene','resolve','hash','sftp','minimal-ui','ircs','includes','sms','default_size','configId','ftp','../utils/utils','990107NvzsUA','defineProperty','search','ssh','9491784PxlkMS','parseRouter','openpgp4fpr','origin','contentSize','display','./static-web','21zymQEn','irc','string','com.WebSpatial.test','configStartUrl','start_url','configScope','replace','matrix','reverse','mailto','resizability'];_0x1fa0=function(){return _0x1adeb0;};return _0x1fa0();}function configScope(_0x175805){const _0x1267f1=_0x3df619;var _0x5336e1;let _0x59817e=(_0x5336e1=_0x175805['scope'])!==null&&_0x5336e1!==void 0x0?_0x5336e1:'';const _0x1c25c5=(0x0,validate_1['validateURL'])(_0x175805[_0x1267f1(0x19d)]),_0x47ac87=(0x0,validate_1[_0x1267f1(0x1cf)])(_0x59817e);if(_0x1c25c5&&_0x47ac87){const _0x3e64bb=new URL(_0x59817e),_0x464903=new URL(_0x175805[_0x1267f1(0x19d)]);(_0x3e64bb[_0x1267f1(0x1cb)]!==_0x464903[_0x1267f1(0x1cb)]||_0x175805['start_url'][_0x1267f1(0x1cc)](_0x59817e)!==0x0)&&(_0x59817e=(0x0,utils_1[_0x1267f1(0x192)])(_0x175805[_0x1267f1(0x19d)]));}else{if(_0x1c25c5&&!_0x47ac87)_0x59817e=new URL(_0x59817e,_0x175805[_0x1267f1(0x19d)])[_0x1267f1(0x1b0)];else{if(!_0x1c25c5&&_0x47ac87){const _0x41556c=_0x175805[_0x1267f1(0x19d)][_0x1267f1(0x19f)](/\/[^\/]+$/,'');_0x59817e=(0x0,path_1[_0x1267f1(0x1c5)])(_0x41556c+'/');}else _0x59817e=(0x0,path_1[_0x1267f1(0x1b6)])((0x0,utils_1['parseRouter'])(_0x175805[_0x1267f1(0x19d)]),_0x59817e);}}_0x175805[_0x1267f1(0x1a5)]=_0x59817e;}function configDisplay(_0x176008){const _0xbfe3e1=_0x3df619;let _0x563490=_0x176008[_0xbfe3e1(0x196)];_0x563490!==_0xbfe3e1(0x1d7)&&_0x563490!==_0xbfe3e1(0x1d1)&&(_0x563490='standalone');if(_0x176008[_0xbfe3e1(0x1a8)]&&_0x176008[_0xbfe3e1(0x1a8)][_0xbfe3e1(0x1ce)]>0x0){const _0x3eb049=_0x176008[_0xbfe3e1(0x1a8)][_0xbfe3e1(0x1cc)](_0xbfe3e1(0x1d7)),_0x4c4a6a=_0x176008[_0xbfe3e1(0x1a8)][_0xbfe3e1(0x1cc)](_0xbfe3e1(0x1d1));if(_0x3eb049>=0x0&&_0x4c4a6a>=0x0)_0x563490=_0x4c4a6a>_0x3eb049?'standalone':_0xbfe3e1(0x1d7);else{if(_0x3eb049>=0x0)_0x563490='minimal-ui';else _0x4c4a6a>=0x0&&(_0x563490=_0xbfe3e1(0x1d1));}}_0x176008['display']=_0x563490;}function configMainScene(_0x288d6d){const _0x42f902=_0x3df619;var _0x4dbdcb,_0x169b62;const _0x2a0ecc=[_0x42f902(0x1bf),'contentMinSize',_0x42f902(0x195)];let _0x3aad3e={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x42f902(0x1bf)};if(_0x288d6d[_0x42f902(0x1b4)]){if(typeof _0x288d6d[_0x42f902(0x1b4)]==='object')_0x3aad3e[_0x42f902(0x1a9)][_0x42f902(0x1be)]=Number((_0x4dbdcb=_0x288d6d[_0x42f902(0x1b4)][_0x42f902(0x189)])===null||_0x4dbdcb===void 0x0?void 0x0:_0x4dbdcb[_0x42f902(0x1be)])>0x0?_0x288d6d['xr_main_scene'][_0x42f902(0x189)][_0x42f902(0x1be)]:0x500,_0x3aad3e['defaultSize'][_0x42f902(0x1c7)]=Number((_0x169b62=_0x288d6d[_0x42f902(0x1b4)]['default_size'])===null||_0x169b62===void 0x0?void 0x0:_0x169b62[_0x42f902(0x1c7)])>0x0?_0x288d6d[_0x42f902(0x1b4)][_0x42f902(0x189)][_0x42f902(0x1c7)]:0x500,_0x3aad3e[_0x42f902(0x1a3)]=_0x2a0ecc[_0x42f902(0x187)](_0x288d6d['xr_main_scene']['resizability'])?_0x288d6d[_0x42f902(0x1b4)]['resizability']:_0x42f902(0x1bf),_0x288d6d[_0x42f902(0x1d3)]=_0x3aad3e;else typeof _0x288d6d[_0x42f902(0x1b4)]===_0x42f902(0x19a)&&(_0x288d6d[_0x42f902(0x1d3)]=_0x42f902(0x1bc));}}function configDeeplink(_0x71f878){const _0x517003=_0x3df619;if(_0x71f878[_0x517003(0x1b3)]&&_0x71f878[_0x517003(0x1b3)][_0x517003(0x1ce)]>0x0)for(var _0x3a6624=0x0;_0x3a6624<_0x71f878[_0x517003(0x1b3)]['length'];_0x3a6624++){const _0x2ae40d=_0x71f878[_0x517003(0x1b3)][_0x3a6624];if(_0x2ae40d[_0x517003(0x1d0)]&&(exports[_0x517003(0x1ad)][_0x517003(0x187)](_0x2ae40d['protocol'])||_0x2ae40d[_0x517003(0x1d0)][_0x517003(0x1cc)](_0x517003(0x1c2))===0x0)){if(!((0x0,validate_1[_0x517003(0x1cf)])(_0x2ae40d[_0x517003(0x1ca)])&&_0x2ae40d[_0x517003(0x1ca)][_0x517003(0x1cc)](_0x71f878[_0x517003(0x1a5)])<0x0))continue;}_0x71f878['protocol_handlers'][_0x517003(0x1b5)](_0x3a6624,0x1),_0x3a6624--;}}exports['safelist']=['bitcoin',_0x3df619(0x18b),_0x3df619(0x1b1),_0x3df619(0x1a4),'im',_0x3df619(0x199),_0x3df619(0x1d8),_0x3df619(0x1b8),_0x3df619(0x1a2),_0x3df619(0x1a0),'mms','news',_0x3df619(0x1ab),_0x3df619(0x193),_0x3df619(0x1d6),'sip',_0x3df619(0x188),_0x3df619(0x1c8),_0x3df619(0x190),_0x3df619(0x1af),_0x3df619(0x1d2),'webcal','wtai',_0x3df619(0x1aa)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1d3cb3=_0x5b30;(function(_0x2b85b1,_0x5ba309){const _0x511bf5=_0x5b30,_0x1f8602=_0x2b85b1();while(!![]){try{const _0x3a8239=-parseInt(_0x511bf5(0x1bc))/0x1*(-parseInt(_0x511bf5(0x1b1))/0x2)+-parseInt(_0x511bf5(0x1a3))/0x3+-parseInt(_0x511bf5(0x1c1))/0x4*(-parseInt(_0x511bf5(0x1b8))/0x5)+parseInt(_0x511bf5(0x1a7))/0x6*(-parseInt(_0x511bf5(0x197))/0x7)+-parseInt(_0x511bf5(0x1af))/0x8+-parseInt(_0x511bf5(0x1ae))/0x9+parseInt(_0x511bf5(0x1a4))/0xa;if(_0x3a8239===_0x5ba309)break;else _0x1f8602['push'](_0x1f8602['shift']());}catch(_0x462d0e){_0x1f8602['push'](_0x1f8602['shift']());}}}(_0x333d,0x87a81));function _0x5b30(_0x48d459,_0x3078af){const _0x333d85=_0x333d();return _0x5b30=function(_0x5b30f1,_0x124022){_0x5b30f1=_0x5b30f1-0x195;let _0x5b16fa=_0x333d85[_0x5b30f1];return _0x5b16fa;},_0x5b30(_0x48d459,_0x3078af);}Object[_0x1d3cb3(0x1a8)](exports,_0x1d3cb3(0x1b0),{'value':!![]}),exports[_0x1d3cb3(0x1a5)]=void 0x0;function _0x333d(){const _0x54db10=['minimal-ui','3694mlwGUH','../Cli','base','configDisplay','configStartUrl','252uowxpp','checkIcons','existsSync','public/manifest.json','log','validate','562240axvDTU','./validate','join','checkId','../resource/load','generator','checkStartUrl','cwd','manifest','loadJsonFromNet','configDeeplink','defaultManifestJson','265293Yrwekl','4608270eFgtMB','PWAGenerator','loadJsonFromDisk','24tjGcGC','defineProperty','DisplayModes','path','configId','WebSpatialTest','manifest-url','2541114JfTfwV','2508608XcOyjj','__esModule','386zionbc','Cli','standalone','json','bundle-id','config','warn','30755cduQjx','start_url','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode'];_0x333d=function(){return _0x54db10;};return _0x333d();}const path_1=require(_0x1d3cb3(0x1aa)),config_1=require('./config'),load_1=require(_0x1d3cb3(0x19b)),validate_1=require(_0x1d3cb3(0x198)),fs=require('fs'),Cli_1=require(_0x1d3cb3(0x1bd));class PWAGenerator{static async[_0x1d3cb3(0x19c)](_0x58826d,_0x28416c=![]){const _0x1369ad=_0x1d3cb3;let _0x5859ff=await this[_0x1369ad(0x196)](_0x58826d,_0x28416c);return console[_0x1369ad(0x195)]('check\x20manifest.json:\x20ok'),await this[_0x1369ad(0x1b6)](_0x5859ff,_0x58826d,_0x28416c),console[_0x1369ad(0x195)]('reset\x20manifest.json:\x20ok'),_0x5859ff;}static async[_0x1d3cb3(0x196)](_0x1b31c1,_0x3e6816=![]){const _0x367bb5=_0x1d3cb3;var _0x5619b8,_0x5870a3;let _0x1694db={},_0x1cbdcd='',_0x740339=![],_0x25b396=![];if(_0x1b31c1[_0x367bb5(0x1ad)])_0x1cbdcd=_0x1b31c1[_0x367bb5(0x1ad)],_0x740339=!![],_0x1694db=await(0x0,load_1[_0x367bb5(0x1a0)])(_0x1b31c1[_0x367bb5(0x1ad)]);else{_0x1b31c1['manifest']?_0x1cbdcd=(0x0,path_1[_0x367bb5(0x199)])(process[_0x367bb5(0x19e)](),_0x1b31c1[_0x367bb5(0x19f)]):(_0x1cbdcd=(0x0,path_1[_0x367bb5(0x199)])(process[_0x367bb5(0x19e)](),_0x367bb5(0x1c4)),!fs[_0x367bb5(0x1c3)](_0x1cbdcd)&&(_0x1cbdcd=(0x0,path_1[_0x367bb5(0x199)])(process[_0x367bb5(0x19e)](),'public/manifest.webmanifest')));if(!fs[_0x367bb5(0x1c3)](_0x1cbdcd)){if(_0x3e6816)_0x25b396=!![],Cli_1[_0x367bb5(0x1b2)][_0x367bb5(0x195)][_0x367bb5(0x1b7)](_0x367bb5(0x1ba));else throw new Error('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found');}_0x1694db=_0x25b396?this[_0x367bb5(0x1a2)]:await(0x0,load_1[_0x367bb5(0x1a6)])(_0x1cbdcd),this['useDefaultManifestJson']=_0x25b396;}(0x0,validate_1['checkManifestJson'])(_0x1694db,_0x3e6816);let _0x16eef5=(0x0,config_1[_0x367bb5(0x1c0)])(_0x1694db,(_0x5619b8=_0x1b31c1[_0x367bb5(0x1be)])!==null&&_0x5619b8!==void 0x0?_0x5619b8:'');var _0x59c533=(0x0,validate_1[_0x367bb5(0x19d)])(_0x16eef5,_0x1cbdcd,_0x740339,_0x3e6816);_0x1694db[_0x367bb5(0x1b9)]=_0x16eef5;if(!_0x3e6816)(0x0,validate_1[_0x367bb5(0x19a)])(_0x1694db,(_0x5870a3=_0x1b31c1['bundle-id'])!==null&&_0x5870a3!==void 0x0?_0x5870a3:'');return await(0x0,validate_1[_0x367bb5(0x1c2)])(_0x1694db,_0x1cbdcd,_0x3e6816),{'json':_0x1694db,'url':_0x1cbdcd,'fromNet':_0x59c533};}static['config'](_0xde1138,_0x495e1a,_0x12a14c){const _0x3b06a5=_0x1d3cb3;var _0x34cefc;(0x0,config_1[_0x3b06a5(0x1ab)])(_0xde1138[_0x3b06a5(0x1b4)],(_0x34cefc=_0x495e1a[_0x3b06a5(0x1b5)])!==null&&_0x34cefc!==void 0x0?_0x34cefc:'',_0x12a14c),(0x0,config_1['configScope'])(_0xde1138['json']),(0x0,config_1[_0x3b06a5(0x1bf)])(_0xde1138[_0x3b06a5(0x1b4)]),(0x0,config_1[_0x3b06a5(0x1a1)])(_0xde1138[_0x3b06a5(0x1b4)]),(0x0,config_1['configMainScene'])(_0xde1138[_0x3b06a5(0x1b4)]);}}exports['PWAGenerator']=PWAGenerator,PWAGenerator[_0x1d3cb3(0x1a9)]=[_0x1d3cb3(0x1b3),_0x1d3cb3(0x1bb)],PWAGenerator[_0x1d3cb3(0x1a2)]={'name':_0x1d3cb3(0x1ac),'display':'minimal-ui','start_url':'/','scope':'/'},PWAGenerator['useDefaultManifestJson']=![];
|
|
@@ -2,4 +2,5 @@ export declare function checkManifestJson(manifestJson: Record<string, any>, isD
|
|
|
2
2
|
export declare function checkStartUrl(startUrl: string, manifestUrl: string, isNet: boolean, isDev?: boolean): boolean;
|
|
3
3
|
export declare function checkIcons(manifest: Record<string, any>, manifestUrl: string, isDev?: boolean): Promise<void>;
|
|
4
4
|
export declare function checkId(manifest: Record<string, any>, bundleId: string): void;
|
|
5
|
+
export declare function validateBundleId(bundleId: string): boolean;
|
|
5
6
|
export declare function validateURL(url: string): boolean;
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x17f9(_0x10e267,_0x11bc3e){const _0x59ee31=_0x59ee();return _0x17f9=function(_0x17f947,_0x6c80f9){_0x17f947=_0x17f947-0xd0;let _0x58c919=_0x59ee31[_0x17f947];return _0x58c919;},_0x17f9(_0x10e267,_0x11bc3e);}const _0x3d0157=_0x17f9;(function(_0x8278aa,_0x5937fc){const _0x5195b8=_0x17f9,_0x170a66=_0x8278aa();while(!![]){try{const _0x374e38=-parseInt(_0x5195b8(0xdf))/0x1+parseInt(_0x5195b8(0xe9))/0x2+-parseInt(_0x5195b8(0xee))/0x3+-parseInt(_0x5195b8(0xf5))/0x4+-parseInt(_0x5195b8(0xfb))/0x5*(parseInt(_0x5195b8(0x105))/0x6)+parseInt(_0x5195b8(0xe3))/0x7+parseInt(_0x5195b8(0xf0))/0x8;if(_0x374e38===_0x5937fc)break;else _0x170a66['push'](_0x170a66['shift']());}catch(_0x504552){_0x170a66['push'](_0x170a66['shift']());}}}(_0x59ee,0x1fe51));Object[_0x3d0157(0x100)](exports,_0x3d0157(0xd9),{'value':!![]}),exports[_0x3d0157(0xfc)]=checkManifestJson,exports[_0x3d0157(0xe4)]=checkStartUrl,exports[_0x3d0157(0xf8)]=checkIcons,exports[_0x3d0157(0xe2)]=checkId,exports[_0x3d0157(0xe0)]=validateBundleId,exports[_0x3d0157(0xff)]=validateURL;const path_1=require(_0x3d0157(0xfd)),CustomError_1=require(_0x3d0157(0xf2)),utils_1=require(_0x3d0157(0xe7)),imageHelper_1=require(_0x3d0157(0xd8)),load_1=require('../resource/load'),Cli_1=require(_0x3d0157(0xe1));function checkManifestJson(_0x230721,_0x3ca475=![]){const _0x10dc31=_0x3d0157;var _0x379808;const _0x5cfbea=[];!_0x230721[_0x10dc31(0xd0)]&&!_0x230721[_0x10dc31(0xfe)]&&!_0x3ca475&&_0x5cfbea[_0x10dc31(0xdb)]({'code':0xbbe,'message':_0x10dc31(0xd6),'message_staring_params':{}});!((_0x379808=_0x230721['icons'])===null||_0x379808===void 0x0?void 0x0:_0x379808[_0x10dc31(0xfa)])&&!_0x3ca475&&_0x5cfbea['push']({'code':0xbbf,'message':_0x10dc31(0xe6),'message_staring_params':{}});!_0x230721[_0x10dc31(0xf7)]&&_0x5cfbea[_0x10dc31(0xdb)]({'code':0xbc0,'message':_0x10dc31(0x101),'message_staring_params':{}});if(_0x5cfbea[_0x10dc31(0xfa)])throw new CustomError_1[(_0x10dc31(0xf3))](_0x5cfbea);}function checkStartUrl(_0x337c20,_0x4f704f,_0x346b88,_0x481b1c=![]){const _0x57b4a9=_0x3d0157;var _0x25d412=![];if(_0x481b1c)return _0x337c20['startsWith'](_0x57b4a9(0x106))||_0x337c20['startsWith'](_0x57b4a9(0xed));if(_0x346b88){if(_0x337c20[_0x57b4a9(0xd7)](_0x57b4a9(0x106))){const _0x89eb54=new URL(_0x337c20),_0x40e85e=new URL(_0x4f704f);if(_0x89eb54[_0x57b4a9(0xf4)]!==_0x40e85e[_0x57b4a9(0xf4)])throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x57b4a9(0xef),'message_staring_params':{}});}else{if(_0x337c20['startsWith'](_0x57b4a9(0xed)))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x57b4a9(0xd5),'message_staring_params':{}});}}else{if(_0x337c20['startsWith'](_0x57b4a9(0x106))||_0x337c20[_0x57b4a9(0xd7)]('http://'))throw new CustomError_1[(_0x57b4a9(0xf3))]({'code':0xfa0,'message':_0x57b4a9(0xe8),'message_staring_params':{}});}return _0x25d412;}async function checkIcons(_0x40cc92,_0xfcd29,_0x3f781e=![]){const _0xf1d9e8=_0x3d0157;var _0x23953f,_0x12a672;if(!((_0x23953f=_0x40cc92[_0xf1d9e8(0xd4)])===null||_0x23953f===void 0x0?void 0x0:_0x23953f[_0xf1d9e8(0xfa)])&&_0x3f781e){Cli_1[_0xf1d9e8(0xf9)][_0xf1d9e8(0xe5)][_0xf1d9e8(0xea)](_0xf1d9e8(0xd1));return;}const _0x4e7498=(0x0,utils_1['parseRouter'])(_0xfcd29);let _0x40e927,_0x448602,_0x45cf35,_0x4d3710=0x0;for(var _0x383419=0x0;_0x383419<_0x40cc92[_0xf1d9e8(0xd4)][_0xf1d9e8(0xfa)];_0x383419++){const _0xd1b0e1=_0x40cc92[_0xf1d9e8(0xd4)][_0x383419];let _0x451223=((_0x12a672=_0xd1b0e1[_0xf1d9e8(0xeb)])===null||_0x12a672===void 0x0?void 0x0:_0x12a672['indexOf'](_0xf1d9e8(0xdc)))>=0x0;if(!_0x451223)continue;let _0x1db46c=![],_0x459871=_0xd1b0e1[_0xf1d9e8(0xec)],_0x309e0d,_0x1fdd49=0x0;!validateURL(_0x459871)&&(_0x459871=(0x0,path_1[_0xf1d9e8(0xde)])(_0x4e7498,_0x459871));if(_0xd1b0e1[_0xf1d9e8(0xdd)]){const _0x2973fc=_0xd1b0e1[_0xf1d9e8(0xdd)]['split']('\x20');_0x2973fc['forEach'](_0x3aecd3=>{const _0x204f5f=_0xf1d9e8;let _0x445d83=_0x3aecd3[_0x204f5f(0x102)]('x');Number(_0x445d83[0x0])>=0x400&&Number(_0x445d83[0x1])>=0x400&&(_0x1db46c=!![],Number(_0x445d83[0x0])>_0x1fdd49&&(_0x1fdd49=Number(_0x445d83[0x0])));});}else _0x309e0d=!_0x459871['startsWith']('http')?await(0x0,load_1[_0xf1d9e8(0xf6)])(_0x459871):await(0x0,load_1[_0xf1d9e8(0xf1)])(_0x459871),_0x309e0d['getWidth']()>=0x400&&_0x309e0d[_0xf1d9e8(0x108)]()>=0x400&&(_0x1db46c=!![],_0x309e0d[_0xf1d9e8(0xd3)]()>_0x1fdd49&&(_0x1fdd49=_0x309e0d[_0xf1d9e8(0xd3)]()));_0x1db46c&&_0x451223&&(_0x1fdd49>_0x4d3710&&(_0x4d3710=_0x1fdd49,_0x40e927=_0x309e0d,_0x448602=_0x459871,_0x45cf35=_0xd1b0e1[_0xf1d9e8(0xeb)]));}if(_0x4d3710===0x0){if(_0x3f781e){Cli_1[_0xf1d9e8(0xf9)][_0xf1d9e8(0xe5)][_0xf1d9e8(0xea)](_0xf1d9e8(0x104));return;}throw new CustomError_1[(_0xf1d9e8(0xf3))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','message_staring_params':{}});}else _0x448602&&(_0x40e927=!_0x448602[_0xf1d9e8(0xd7)](_0xf1d9e8(0xda))?await(0x0,load_1[_0xf1d9e8(0xf6)])(_0x448602):await(0x0,load_1[_0xf1d9e8(0xf1)])(_0x448602));if(_0x40e927&&!imageHelper_1[_0xf1d9e8(0x103)]['isFullyOpaque'](_0x40e927)){if(_0x3f781e){Cli_1[_0xf1d9e8(0xf9)]['log']['warn']('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable');return;}throw new CustomError_1[(_0xf1d9e8(0xf3))]({'code':0xfa0,'message':_0xf1d9e8(0x107),'message_staring_params':{}});}_0x40cc92[_0xf1d9e8(0xd4)]=[{'src':_0x448602,'sizes':_0x4d3710+'x'+_0x4d3710,'purpose':_0x45cf35}];}function checkId(_0x18dc92,_0x3a04c5){const _0x28a11a=_0x3d0157;if(_0x3a04c5){if(!validateBundleId(_0x3a04c5))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x28a11a(0xd2),'message_staring_params':{}});return;}!_0x18dc92['id']&&(_0x18dc92['id']=_0x18dc92[_0x28a11a(0xf7)]);if(!validateURL(_0x18dc92['id'])&&!_0x3a04c5)throw new CustomError_1['CustomError']({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','message_staring_params':{}});}function validateBundleId(_0x234908){const _0x43c9ad=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x43c9ad['test'](_0x234908);}function _0x59ee(){const _0x8fd1e3=['loadImageFromNet','../utils/CustomError','CustomError','host','916996pVunOf','loadImageFromDisk','start_url','checkIcons','Cli','length','2700psUBuh','checkManifestJson','path','short_name','validateURL','defineProperty','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','split','ImageHelper','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','486BCmgfu','https://','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','getHeight','name','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','getWidth','icons','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','startsWith','../resource/imageHelper','__esModule','http','push','maskable','sizes','join','127771QQkaOc','validateBundleId','../Cli','checkId','795529UvJiCW','checkStartUrl','log','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','../utils/utils','Local\x20manifest\x20cannot\x20package\x20network\x20project','108242NdvUxN','warn','purpose','src','http://','582234TObsOM','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','4461688iKDtue'];_0x59ee=function(){return _0x8fd1e3;};return _0x59ee();}function validateURL(_0x322ff6){try{return new URL(_0x322ff6),!![];}catch(_0x278b0b){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x488469=_0x32e3;function _0x5a4b(){const _0x2a0501=['1125273oVkdNx','readFileSync','6348520tskeWi','__esModule','936514HXyTLd','512JmqAsJ','7891476lDWbUq','41397ULpyTM','9013158DtJEKd','statSync','forEach','isDirectory','existsSync','5CKcHeh','7MdoTKQ','copyDir','isFile','readdirSync','writeFileSync','mkdirSync','11479184cARuAW','log','defineProperty'];_0x5a4b=function(){return _0x2a0501;};return _0x5a4b();}function _0x32e3(_0x4cacda,_0x34a805){const _0x5a4b1b=_0x5a4b();return _0x32e3=function(_0x32e34d,_0x267e20){_0x32e34d=_0x32e34d-0xfb;let _0x2ac478=_0x5a4b1b[_0x32e34d];return _0x2ac478;},_0x32e3(_0x4cacda,_0x34a805);}(function(_0x4a2fea,_0x2b41e8){const _0x2df296=_0x32e3,_0x2dbafa=_0x4a2fea();while(!![]){try{const _0x3098f6=parseInt(_0x2df296(0x102))/0x1+parseInt(_0x2df296(0x106))/0x2+-parseInt(_0x2df296(0x109))/0x3*(-parseInt(_0x2df296(0x107))/0x4)+-parseInt(_0x2df296(0x10f))/0x5*(parseInt(_0x2df296(0x108))/0x6)+-parseInt(_0x2df296(0x110))/0x7*(parseInt(_0x2df296(0xff))/0x8)+parseInt(_0x2df296(0x10a))/0x9+-parseInt(_0x2df296(0x104))/0xa;if(_0x3098f6===_0x2b41e8)break;else _0x2dbafa['push'](_0x2dbafa['shift']());}catch(_0x5436ec){_0x2dbafa['push'](_0x2dbafa['shift']());}}}(_0x5a4b,0xee58c));Object[_0x488469(0x101)](exports,_0x488469(0x105),{'value':!![]}),exports[_0x488469(0x111)]=copyDir,exports['clearDir']=clearDir;const fs=require('fs');function copyDir(_0x44392d,_0x180884){const _0x19231d=_0x488469,_0x1b7408=fs[_0x19231d(0xfc)](_0x44392d);_0x1b7408[_0x19231d(0x10c)](_0x509b80=>{const _0x22f4b9=_0x19231d,_0x19e311=_0x44392d+'/'+_0x509b80,_0x2e407a=_0x180884+'/'+_0x509b80,_0x1924c9=fs[_0x22f4b9(0x10b)](_0x19e311);if(_0x1924c9[_0x22f4b9(0xfb)]())try{fs[_0x22f4b9(0xfd)](_0x2e407a,fs[_0x22f4b9(0x103)](_0x19e311));}catch(_0x44cc6f){console[_0x22f4b9(0x100)](_0x44cc6f);}else _0x1924c9[_0x22f4b9(0x10d)]()&&(!fs[_0x22f4b9(0x10e)](_0x2e407a)&&fs[_0x22f4b9(0xfe)](_0x2e407a,{'recursive':!![]}),copyDir(_0x19e311,_0x2e407a));});}function clearDir(_0x26dc5d){const _0x455e2f=_0x488469,_0x3a0ca1=fs[_0x455e2f(0xfc)](_0x26dc5d);_0x3a0ca1[_0x455e2f(0x10c)](_0x5eddd3=>{const _0x466a3b=_0x455e2f,_0x2e3739=_0x26dc5d+'/'+_0x5eddd3,_0x22da85=fs[_0x466a3b(0x10b)](_0x2e3739);if(_0x22da85['isFile']())try{fs['unlinkSync'](_0x2e3739);}catch(_0x2a5b32){console[_0x466a3b(0x100)](_0x2a5b32);}else _0x22da85[_0x466a3b(0x10d)]()&&clearDir(_0x2e3739);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5069e1=_0x2295;(function(_0x15d1ad,_0x56aa3f){const _0x4e240c=_0x2295,_0x5e42b1=_0x15d1ad();while(!![]){try{const _0x2a0428=-parseInt(_0x4e240c(0x9e))/0x1*(parseInt(_0x4e240c(0x9d))/0x2)+parseInt(_0x4e240c(0xac))/0x3*(-parseInt(_0x4e240c(0xae))/0x4)+parseInt(_0x4e240c(0x9a))/0x5+-parseInt(_0x4e240c(0x97))/0x6*(-parseInt(_0x4e240c(0xa5))/0x7)+parseInt(_0x4e240c(0xad))/0x8+-parseInt(_0x4e240c(0x9b))/0x9*(parseInt(_0x4e240c(0x98))/0xa)+parseInt(_0x4e240c(0x9f))/0xb;if(_0x2a0428===_0x56aa3f)break;else _0x5e42b1['push'](_0x5e42b1['shift']());}catch(_0x115001){_0x5e42b1['push'](_0x5e42b1['shift']());}}}(_0x46c2,0x19e46));Object[_0x5069e1(0xa4)](exports,_0x5069e1(0xa2),{'value':!![]}),exports['ImageHelper']=void 0x0;function _0x46c2(){const _0x2eafa3=['sharp','svg2img','bitmap','render','@resvg/resvg-js','192069uDfcFI','1313872SXePWM','12alKpeC','ImageHelper','toBuffer','createImg','6YCmeyU','70GdsqDh','data','179290uLVIDt','264411KXCHxc','width','2ZYKtSs','131164lqMHUi','4407601szLHBo','jimp','png','__esModule','getHeight','defineProperty','239099VfuGFu','toFormat'];_0x46c2=function(){return _0x2eafa3;};return _0x46c2();}function _0x2295(_0x39952a,_0x2754bb){const _0x46c289=_0x46c2();return _0x2295=function(_0x229585,_0x5c288c){_0x229585=_0x229585-0x95;let _0x25227d=_0x46c289[_0x229585];return _0x25227d;},_0x2295(_0x39952a,_0x2754bb);}const Jimp=require(_0x5069e1(0xa0)),sharp=require(_0x5069e1(0xa7)),resvg_js_1=require(_0x5069e1(0xab));class ImageHelper{static[_0x5069e1(0x96)](_0x9fc6d4){return new Jimp(_0x9fc6d4,_0x9fc6d4,0x0);}static async['webp2PngBuffer'](_0x2fdc83){const _0x5431aa=_0x5069e1;return await sharp(_0x2fdc83)[_0x5431aa(0xa6)](_0x5431aa(0xa1))[_0x5431aa(0x95)]();}static async[_0x5069e1(0xa8)](_0x19af58){const _0x3dc061=_0x5069e1,_0xe55d55={'fitTo':{'mode':_0x3dc061(0x9c),'value':0x400}},_0x18247d=new resvg_js_1['Resvg'](_0x19af58,_0xe55d55),_0x23e750=_0x18247d[_0x3dc061(0xaa)](),_0x1c099a=_0x23e750['asPng']();return _0x1c099a;}static['isFullyOpaque'](_0x2b37dc){const _0x371b78=_0x5069e1,_0x570010=_0x2b37dc['getWidth']()*_0x2b37dc[_0x371b78(0xa3)]();for(var _0x22c916=0x0;_0x22c916<_0x570010;_0x22c916++){const _0xb6f601=_0x22c916*0x4+0x3;if(_0x2b37dc[_0x371b78(0xa9)][_0x371b78(0x99)][_0xb6f601]<0xff)return![];}return!![];}}exports[_0x5069e1(0xaf)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xd0993f=_0x41dd;(function(_0x287ab9,_0x1be25e){const _0x5ad1be=_0x41dd,_0x1e07f2=_0x287ab9();while(!![]){try{const _0x5ba377=parseInt(_0x5ad1be(0x9b))/0x1+-parseInt(_0x5ad1be(0x88))/0x2*(parseInt(_0x5ad1be(0x84))/0x3)+-parseInt(_0x5ad1be(0x9e))/0x4*(-parseInt(_0x5ad1be(0x7d))/0x5)+-parseInt(_0x5ad1be(0x90))/0x6*(-parseInt(_0x5ad1be(0x93))/0x7)+parseInt(_0x5ad1be(0x82))/0x8+-parseInt(_0x5ad1be(0x9f))/0x9*(-parseInt(_0x5ad1be(0x8a))/0xa)+-parseInt(_0x5ad1be(0x91))/0xb;if(_0x5ba377===_0x1be25e)break;else _0x1e07f2['push'](_0x1e07f2['shift']());}catch(_0x44c84a){_0x1e07f2['push'](_0x1e07f2['shift']());}}}(_0x451a,0xa5de2));function _0x41dd(_0x2a45de,_0x30c55c){const _0x451a92=_0x451a();return _0x41dd=function(_0x41ddb6,_0x2f9d80){_0x41ddb6=_0x41ddb6-0x77;let _0x899e76=_0x451a92[_0x41ddb6];return _0x899e76;},_0x41dd(_0x2a45de,_0x30c55c);}function _0x451a(){const _0x2a3471=['784855qDFgbV','./export','../../../node_modules/@webspatial/platform-','1028TNLYRf','18sfBXuM','MIDDLE_APPICON_DIRECTORY','PROJECT_DIRECTORY','join','PROJECT_EXPORT_DIRECTORY','src','__esModule','BACK_APPICON_DIRECTORY',',\x20now\x20WebSpatial\x20only\x20support\x20','not\x20support\x20platform\x20','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','ResourceManager','http','node_modules/@webspatial/platform-','cd\x20','5315XymGVd','copyDir','checkPlatformPath','includes','loadImageFromDisk','5524152TVwgWh','./load','1064649BDhFeb','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','path','child_process','6JhROMl','visionos','5570720TZEtFU','generateIcon','web-spatial/static-web','mkdirSync','ASSET_DIRECTORY','PROJECT_BUILD_DIRECTORY','5866158iMwXcY','23059949CyqQvy','icons','7LROPYd','WEB_PROJECT_DIRECTORY','../../../','json','existsSync','clearDir','log','startsWith'];_0x451a=function(){return _0x2a3471;};return _0x451a();}Object['defineProperty'](exports,_0xd0993f(0xa5),{'value':!![]}),exports['ResourceManager']=exports[_0xd0993f(0xa0)]=exports[_0xd0993f(0xa6)]=exports[_0xd0993f(0x8e)]=exports['WEB_PROJECT_DIRECTORY']=exports[_0xd0993f(0xa3)]=exports[_0xd0993f(0x8f)]=exports[_0xd0993f(0xa1)]=void 0x0;const fs=require('fs'),path_1=require(_0xd0993f(0x86)),file_1=require('./file'),load_1=require(_0xd0993f(0x83)),child_process_1=require(_0xd0993f(0x87));exports[_0xd0993f(0xa1)]='',exports[_0xd0993f(0x8f)]='',exports[_0xd0993f(0xa3)]='',exports[_0xd0993f(0x94)]=_0xd0993f(0x8c),exports[_0xd0993f(0x8e)]='web-spatial/Assets.xcassets',exports[_0xd0993f(0xa6)]=exports[_0xd0993f(0x8e)]+'/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset',exports[_0xd0993f(0xa0)]=exports[_0xd0993f(0x8e)]+_0xd0993f(0x78);const supportPlatform=[_0xd0993f(0x89)];class ResourceManager{static async['moveProjectFrom'](_0x11402c){const _0x133aec=_0xd0993f,_0x53ad36=(0x0,path_1[_0x133aec(0xa2)])(process['cwd'](),_0x11402c),_0x3b0ee6=(0x0,path_1[_0x133aec(0xa2)])(exports['PROJECT_DIRECTORY'],exports[_0x133aec(0x94)]);!fs[_0x133aec(0x97)](_0x3b0ee6)?fs[_0x133aec(0x8d)](_0x3b0ee6,{'recursive':!![]}):(0x0,file_1[_0x133aec(0x98)])(_0x3b0ee6);try{(0x0,file_1[_0x133aec(0x7e)])(_0x53ad36,_0x3b0ee6);}catch(_0x2740ed){console[_0x133aec(0x99)](_0x2740ed);}}static async[_0xd0993f(0x8b)](_0x4886b3){const _0x3cfcef=_0xd0993f,_0x6f19ae=_0x4886b3[_0x3cfcef(0x96)],_0x41ec39=_0x6f19ae[_0x3cfcef(0x92)][0x0][_0x3cfcef(0xa4)],_0x35ed56=!_0x41ec39[_0x3cfcef(0x9a)](_0x3cfcef(0x7a))?await(0x0,load_1[_0x3cfcef(0x81)])(_0x41ec39):await(0x0,load_1['loadImageFromNet'])(_0x41ec39);return _0x35ed56['resize'](0x400,0x400),_0x35ed56;}static[_0xd0993f(0x7f)](_0x59abbf){const _0x347ca4=_0xd0993f,_0x27a001=_0x59abbf!==null&&_0x59abbf!==void 0x0?_0x59abbf:supportPlatform[0x0];if(!supportPlatform[_0x347ca4(0x80)](_0x27a001))throw new Error(_0x347ca4(0x77)+_0x27a001+_0x347ca4(0xa7)+supportPlatform[_0x347ca4(0xa2)](','));let _0x441a43=(0x0,path_1[_0x347ca4(0xa2)])(process['cwd'](),_0x347ca4(0x7b)+_0x27a001);!fs[_0x347ca4(0x97)](_0x441a43)&&(_0x441a43=(0x0,path_1['join'])(__dirname,_0x347ca4(0x9d)+_0x27a001));const _0x182231=fs[_0x347ca4(0x97)](_0x441a43);!_0x182231&&(0x0,child_process_1['execSync'])(_0x347ca4(0x7c)+(0x0,path_1['join'])(__dirname,_0x347ca4(0x95))+_0x347ca4(0x85)+_0x27a001),exports[_0x347ca4(0xa1)]=_0x441a43,exports[_0x347ca4(0x8f)]=(0x0,path_1[_0x347ca4(0xa2)])(exports[_0x347ca4(0xa1)],'./build'),exports[_0x347ca4(0xa3)]=(0x0,path_1[_0x347ca4(0xa2)])(exports[_0x347ca4(0xa1)],_0x347ca4(0x9c));}}exports[_0xd0993f(0x79)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1be2b6=_0x2e8e;(function(_0x104717,_0x24bc74){const _0xc14f31=_0x2e8e,_0x38d4e9=_0x104717();while(!![]){try{const _0xab1801=parseInt(_0xc14f31(0x9a))/0x1*(parseInt(_0xc14f31(0x8c))/0x2)+parseInt(_0xc14f31(0x94))/0x3+parseInt(_0xc14f31(0xa2))/0x4*(-parseInt(_0xc14f31(0x92))/0x5)+-parseInt(_0xc14f31(0x7e))/0x6*(-parseInt(_0xc14f31(0x7d))/0x7)+parseInt(_0xc14f31(0x9e))/0x8+-parseInt(_0xc14f31(0xa3))/0x9+-parseInt(_0xc14f31(0x86))/0xa;if(_0xab1801===_0x24bc74)break;else _0x38d4e9['push'](_0x38d4e9['shift']());}catch(_0x55d3d2){_0x38d4e9['push'](_0x38d4e9['shift']());}}}(_0x11ca,0x33e16));function _0x2e8e(_0x210e21,_0x304109){const _0x11ca8d=_0x11ca();return _0x2e8e=function(_0x2e8eeb,_0x143153){_0x2e8eeb=_0x2e8eeb-0x7a;let _0x52dcde=_0x11ca8d[_0x2e8eeb];return _0x52dcde;},_0x2e8e(_0x210e21,_0x304109);}Object[_0x1be2b6(0xa0)](exports,_0x1be2b6(0xa6),{'value':!![]}),exports[_0x1be2b6(0xa9)]=loadJsonFromNet,exports['loadJsonFromDisk']=loadJsonFromDisk,exports[_0x1be2b6(0x81)]=loadImageFromNet,exports[_0x1be2b6(0x88)]=loadImageFromDisk,exports[_0x1be2b6(0x95)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x1be2b6(0xaa)),CustomError_1=require('../utils/CustomError'),Jimp=require(_0x1be2b6(0x99)),imageHelper_1=require('./imageHelper');async function loadJsonFromNet(_0x4ca8ee){const _0x52b58a=_0x1be2b6,_0x20f8ea=await FetchUtils_1_1[_0x52b58a(0x7b)]['fetch'](_0x4ca8ee,{'encoding':'binary'});if(_0x20f8ea[_0x52b58a(0x93)]!==0xc8)throw new CustomError_1[(_0x52b58a(0x7c))]({'code':0xbbc,'message':_0x52b58a(0x83)+_0x4ca8ee+'.'+(_0x52b58a(0x8f)+_0x20f8ea[_0x52b58a(0x93)]+_0x52b58a(0x87)),'message_staring_params':{'web_manifest_url':_0x4ca8ee,'status':_0x20f8ea['status']}});try{let _0x16c819;return _0x20f8ea['text']?_0x16c819=await _0x20f8ea[_0x52b58a(0x82)]():[_0x52b58a(0x89),'deflate','br'][_0x52b58a(0xa1)](_0x20f8ea[_0x52b58a(0x7f)]['content-encoding'])?_0x16c819=FetchUtils_1_1[_0x52b58a(0x7b)][_0x52b58a(0x80)](Buffer[_0x52b58a(0xa8)](_0x20f8ea[_0x52b58a(0x9c)],_0x52b58a(0x85)),_0x20f8ea[_0x52b58a(0x7f)][_0x52b58a(0x91)])[_0x52b58a(0x8b)]():_0x16c819=Buffer[_0x52b58a(0xa8)](_0x20f8ea[_0x52b58a(0x9c)],'binary')[_0x52b58a(0x8b)](),JSON['parse'](_0x16c819[_0x52b58a(0x84)]());}catch(_0x8e3ba6){throw new CustomError_1[(_0x52b58a(0x7c))]({'code':0xbbd,'message':'Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','message_staring_params':{}});}}async function loadJsonFromDisk(_0x2b7c9a){const _0x14da1e=_0x1be2b6,_0x27f068=await loadFileString(_0x2b7c9a[_0x14da1e(0x8b)]());return JSON[_0x14da1e(0x9f)](_0x27f068);}function _0x11ca(){const _0x557d39=['content-encoding','5QtlQIb','status','161568rHXYNm','loadFileString','readFile','\x20Responded\x20with\x20Content-Type\x20\x22','svg2img','jimp','387235KOkcfe','startsWith','data','image/','2820944yGeGRe','parse','defineProperty','includes','593372SdVgnm','846774CnspkV','fetch','arrayBuffer','__esModule','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','from','loadJsonFromNet','../utils/FetchUtils-1','Received\x20icon\x20with\x20invalid\x20Content-Type.','fetchUtils','CustomError','7EqIOyf','2032062VZDDOg','headers','decompressResponseBuffer','loadImageFromNet','text','Failed\x20to\x20download\x20Web\x20Manifest\x20','trim','binary','6774550rnSVEZ',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','loadImageFromDisk','gzip','read','toString','2Qcmyqi','ImageHelper','content-type','The\x20response\x20status\x20is\x20','get'];_0x11ca=function(){return _0x557d39;};return _0x11ca();}async function loadImageFromNet(_0x432031){const _0x5a2235=_0x1be2b6,_0x133d7e=await FetchUtils_1_1[_0x5a2235(0x7b)][_0x5a2235(0xa4)](_0x432031,{'encoding':_0x5a2235(0x85)});if(_0x133d7e[_0x5a2235(0x93)]!==0xc8)throw new CustomError_1['CustomError']({'code':0x7d2,'message':_0x5a2235(0xa7)+_0x133d7e['status'],'message_staring_params':{'icon_url':_0x432031,'status':_0x133d7e[_0x5a2235(0x93)]}});const _0x525fa5=_0x133d7e[_0x5a2235(0x7f)][_0x5a2235(0x90)]?_0x133d7e[_0x5a2235(0x7f)]['get'](_0x5a2235(0x8e)):_0x133d7e[_0x5a2235(0x7f)]['content-type'];if(!(_0x525fa5===null||_0x525fa5===void 0x0?void 0x0:_0x525fa5['startsWith'](_0x5a2235(0x9d))))throw new CustomError_1[(_0x5a2235(0x7c))]({'code':0x7d3,'message':_0x5a2235(0x7a)+(_0x5a2235(0x97)+_0x525fa5+'\x22'),'message_staring_params':{'icon_url':_0x432031,'contentType':_0x525fa5}});let _0xd03b42;_0x133d7e['arrayBuffer']?_0xd03b42=await _0x133d7e[_0x5a2235(0xa5)]():['gzip','deflate','br']['includes'](_0x133d7e[_0x5a2235(0x7f)]['content-encoding'])?_0xd03b42=FetchUtils_1_1[_0x5a2235(0x7b)][_0x5a2235(0x80)](Buffer[_0x5a2235(0xa8)](_0x133d7e[_0x5a2235(0x9c)],_0x5a2235(0x85)),_0x133d7e[_0x5a2235(0x7f)][_0x5a2235(0x91)]):_0xd03b42=Buffer[_0x5a2235(0xa8)](_0x133d7e[_0x5a2235(0x9c)],_0x5a2235(0x85));if(_0x525fa5[_0x5a2235(0x9b)]('image/svg')){const _0x205535=new TextDecoder();try{_0xd03b42=await imageHelper_1[_0x5a2235(0x8d)][_0x5a2235(0x98)](_0x205535['decode'](_0xd03b42));}catch(_0x25e59a){throw new CustomError_1['CustomError']({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x432031+':\x20'+_0x25e59a,'message_staring_params':{'icon_url':_0x432031,'error':_0x25e59a}});}}return _0x525fa5['startsWith']('image/webp')&&(_0xd03b42=await imageHelper_1[_0x5a2235(0x8d)]['webp2PngBuffer'](_0xd03b42)),await Jimp[_0x5a2235(0x8a)](Buffer[_0x5a2235(0xa8)](_0xd03b42));}async function loadImageFromDisk(_0x114fa8){const _0x8c1be=_0x1be2b6;return await Jimp[_0x8c1be(0x8a)](_0x114fa8);}async function loadFileString(_0x10409a){const _0x8f0e8e=_0x1be2b6;let _0x31b910=await fs['promises'][_0x8f0e8e(0x96)](_0x10409a[_0x8f0e8e(0x8b)]());return _0x31b910['toString']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0xab50a9=_0x1db6;function _0x1db6(_0x42d93e,_0x2c5aff){var _0x4029e3=_0x4029();return _0x1db6=function(_0x1db6ca,_0x4b5a8f){_0x1db6ca=_0x1db6ca-0x193;var _0x3440e3=_0x4029e3[_0x1db6ca];return _0x3440e3;},_0x1db6(_0x42d93e,_0x2c5aff);}(function(_0x14af16,_0x4c1472){var _0x4304b9=_0x1db6,_0x1177f7=_0x14af16();while(!![]){try{var _0x271ff1=-parseInt(_0x4304b9(0x1a0))/0x1+-parseInt(_0x4304b9(0x196))/0x2+-parseInt(_0x4304b9(0x194))/0x3*(parseInt(_0x4304b9(0x19f))/0x4)+parseInt(_0x4304b9(0x197))/0x5+parseInt(_0x4304b9(0x199))/0x6+parseInt(_0x4304b9(0x19e))/0x7*(parseInt(_0x4304b9(0x195))/0x8)+parseInt(_0x4304b9(0x19a))/0x9;if(_0x271ff1===_0x4c1472)break;else _0x1177f7['push'](_0x1177f7['shift']());}catch(_0x152483){_0x1177f7['push'](_0x1177f7['shift']());}}}(_0x4029,0x8a621));function _0x4029(){var _0x4b85ac=['902367VElufG','type','__esModule','stringify','259OhfuAB','16SuYrzG','22762APuVLW','info','56799bHTBLm','95528zafwcv','985778EgMMds','357885pkbmsi','CustomError','3267258LlVMcb'];_0x4029=function(){return _0x4b85ac;};return _0x4029();}Object['defineProperty'](exports,_0xab50a9(0x19c),{'value':!![]}),exports[_0xab50a9(0x198)]=void 0x0;class CustomError extends Error{constructor(_0x590d3b,_0x3a0c13){var _0x1af8ba=_0xab50a9;super(JSON[_0x1af8ba(0x19d)](_0x590d3b)),this['customMessage']=_0x590d3b,this[_0x1af8ba(0x19b)]=_0x3a0c13||_0x1af8ba(0x193);}}exports[_0xab50a9(0x198)]=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1144(){const _0x4e473a=['186ljXukp','5758571AymyET','2070220JmMULW','7PYnShn','__esModule','setFetchEngine','setDownloadFile','5731720EOCgsr','decompressResponseBuffer','1469rQNMYR','fetch','setDecompressResponseBuffer','fetchUtils','10307748OBliro','14452uxczAF','370755LaNyeZ','6nxbiCb','36bVCcpk','2200PVWwtG','fetchEngine','downloadFile','190mUIGkT'];_0x1144=function(){return _0x4e473a;};return _0x1144();}const _0x4cc8dd=_0x1f87;(function(_0xbad6d,_0x1d16bb){const _0x5583d7=_0x1f87,_0x1d800c=_0xbad6d();while(!![]){try{const _0x24acca=-parseInt(_0x5583d7(0x76))/0x1*(-parseInt(_0x5583d7(0x7f))/0x2)+-parseInt(_0x5583d7(0x83))/0x3*(-parseInt(_0x5583d7(0x7b))/0x4)+-parseInt(_0x5583d7(0x6f))/0x5*(parseInt(_0x5583d7(0x7d))/0x6)+-parseInt(_0x5583d7(0x70))/0x7*(-parseInt(_0x5583d7(0x74))/0x8)+-parseInt(_0x5583d7(0x7c))/0x9*(parseInt(_0x5583d7(0x82))/0xa)+parseInt(_0x5583d7(0x7a))/0xb+parseInt(_0x5583d7(0x7e))/0xc*(-parseInt(_0x5583d7(0x6e))/0xd);if(_0x24acca===_0x1d16bb)break;else _0x1d800c['push'](_0x1d800c['shift']());}catch(_0x1a962d){_0x1d800c['push'](_0x1d800c['shift']());}}}(_0x1144,0xec46d));Object['defineProperty'](exports,_0x4cc8dd(0x71),{'value':!![]}),exports[_0x4cc8dd(0x79)]=void 0x0;class FetchUtils{constructor(){const _0x532ef7=_0x4cc8dd;this[_0x532ef7(0x80)]=null,this[_0x532ef7(0x77)]=null,this['downloadFile']=null,this[_0x532ef7(0x75)]=null;}[_0x4cc8dd(0x72)](_0x2a9a48){const _0x5cd9b3=_0x4cc8dd;this[_0x5cd9b3(0x80)]=_0x2a9a48;}['setFetch'](_0x3d0832){const _0x1e15fe=_0x4cc8dd;this[_0x1e15fe(0x77)]=_0x3d0832;}[_0x4cc8dd(0x73)](_0x5db757){const _0x44bd96=_0x4cc8dd;this[_0x44bd96(0x81)]=_0x5db757;}[_0x4cc8dd(0x78)](_0x3c2bed){this['decompressResponseBuffer']=_0x3c2bed;}}function _0x1f87(_0x253d20,_0xef0777){const _0x114448=_0x1144();return _0x1f87=function(_0x1f875b,_0x437036){_0x1f875b=_0x1f875b-0x6e;let _0x2c73c6=_0x114448[_0x1f875b];return _0x2c73c6;},_0x1f87(_0x253d20,_0xef0777);}const fetchUtils=new FetchUtils();exports[_0x4cc8dd(0x79)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0xe0e809=_0x112d;function _0x112d(_0x4f1d1b,_0x25c138){var _0x3ca390=_0x3ca3();return _0x112d=function(_0x112dd4,_0x558df4){_0x112dd4=_0x112dd4-0x10c;var _0x1c46b=_0x3ca390[_0x112dd4];return _0x1c46b;},_0x112d(_0x4f1d1b,_0x25c138);}function _0x3ca3(){var _0x21f5b5=['setVerbose','\x1b[0m','debug','42TpmcSs','error','881778nvnkWa','WARNING\x20','prefix','\x1b[7m','5vOStsq','info','dim','red','inverse','\x1b[33m','newLog','yellow','8KmFPXN','147889SAXhga','verbose','1562MLuyAc','9872412MvCzWx','40ykagFn','123720iwfqur','log','ERROR\x20','3000308WQgeLf','1274436wzETUF','ConsoleLog','output','warn','229251MNNIHf','concat','__esModule','tag','\x1b[31m'];_0x3ca3=function(){return _0x21f5b5;};return _0x3ca3();}(function(_0x156c21,_0x272415){var _0x3a38bd=_0x112d,_0x42529c=_0x156c21();while(!![]){try{var _0x266def=parseInt(_0x3a38bd(0x12f))/0x1+parseInt(_0x3a38bd(0x11c))/0x2*(-parseInt(_0x3a38bd(0x125))/0x3)+-parseInt(_0x3a38bd(0x120))/0x4*(parseInt(_0x3a38bd(0x10f))/0x5)+-parseInt(_0x3a38bd(0x12d))/0x6*(parseInt(_0x3a38bd(0x118))/0x7)+parseInt(_0x3a38bd(0x117))/0x8*(-parseInt(_0x3a38bd(0x121))/0x9)+parseInt(_0x3a38bd(0x11d))/0xa*(parseInt(_0x3a38bd(0x11a))/0xb)+parseInt(_0x3a38bd(0x11b))/0xc;if(_0x266def===_0x272415)break;else _0x42529c['push'](_0x42529c['shift']());}catch(_0x33296a){_0x42529c['push'](_0x42529c['shift']());}}}(_0x3ca3,0xda1d1));Object['defineProperty'](exports,_0xe0e809(0x127),{'value':!![]}),exports[_0xe0e809(0x122)]=void 0x0;class ConsoleLog{constructor(_0x447780='',_0x319887=![],_0x2ae60d=console){var _0x4a62d0=_0xe0e809;this[_0x4a62d0(0x128)]=_0x447780,this[_0x4a62d0(0x119)]=_0x319887,this[_0x4a62d0(0x10d)]=this[_0x4a62d0(0x113)](_0x447780),this[_0x4a62d0(0x123)]=_0x2ae60d;}[_0xe0e809(0x12c)](_0x2408df,..._0x1b1250){var _0x2e7294=_0xe0e809;if(!this['verbose'])return;this['log'](this[_0x2e7294(0x123)][_0x2e7294(0x11e)],this['dim'](_0x2408df),..._0x1b1250);}[_0xe0e809(0x110)](_0x576211,..._0x5d0cb5){var _0x521198=_0xe0e809;this[_0x521198(0x11e)](this['output'][_0x521198(0x11e)],_0x576211,..._0x5d0cb5);}['warn'](_0x241c8f,..._0x54cfee){var _0x1bdc4a=_0xe0e809;this[_0x1bdc4a(0x11e)](this['output'][_0x1bdc4a(0x124)],this[_0x1bdc4a(0x116)](_0x1bdc4a(0x10c)+_0x241c8f),..._0x54cfee);}[_0xe0e809(0x12e)](_0x254bda,..._0x59dbfb){var _0x34f505=_0xe0e809;this['output'][_0x34f505(0x12e)]('\x0a'),this[_0x34f505(0x11e)](this[_0x34f505(0x123)][_0x34f505(0x12e)],this[_0x34f505(0x112)](_0x34f505(0x11f)+_0x254bda),..._0x59dbfb),this['output'][_0x34f505(0x12e)]('\x0a');}[_0xe0e809(0x12a)](_0x18f626){this['verbose']=_0x18f626;}[_0xe0e809(0x115)](_0x23d61d){var _0x7a4b30=_0xe0e809;return this[_0x7a4b30(0x128)]&&(_0x23d61d=this[_0x7a4b30(0x128)]+'\x20'+_0x23d61d),new ConsoleLog(_0x23d61d,this['verbose'],this[_0x7a4b30(0x123)]);}[_0xe0e809(0x11e)](_0x3f990c,_0x455f88,..._0x5dce8f){var _0x46fb54=_0xe0e809;this[_0x46fb54(0x10d)]&&(_0x455f88=this[_0x46fb54(0x10d)]+'\x20'+_0x455f88),_0x5dce8f?_0x3f990c(...[_0x455f88][_0x46fb54(0x126)](_0x5dce8f)):_0x3f990c(_0x455f88);}[_0xe0e809(0x113)](_0x2fd508){var _0x543b2d=_0xe0e809;return _0x543b2d(0x10e)+_0x2fd508+'\x1b[0m';}[_0xe0e809(0x111)](_0x85e111){var _0x34bbbb=_0xe0e809;return'\x1b[36m'+_0x85e111+_0x34bbbb(0x12b);}[_0xe0e809(0x116)](_0x537d50){var _0x4e0aa5=_0xe0e809;return _0x4e0aa5(0x114)+_0x537d50+_0x4e0aa5(0x12b);}[_0xe0e809(0x112)](_0x2780f4){var _0x7ace6c=_0xe0e809;return _0x7ace6c(0x129)+_0x2780f4+'\x1b[0m';}}exports[_0xe0e809(0x122)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2f5a55=_0x1df1;function _0x1df1(_0x3384a9,_0x181f8e){const _0x298faa=_0x298f();return _0x1df1=function(_0x1df130,_0x2075ad){_0x1df130=_0x1df130-0x180;let _0x4486f6=_0x298faa[_0x1df130];return _0x4486f6;},_0x1df1(_0x3384a9,_0x181f8e);}(function(_0x2e003e,_0x281622){const _0x3de72b=_0x1df1,_0x220f25=_0x2e003e();while(!![]){try{const _0x3703c5=parseInt(_0x3de72b(0x189))/0x1*(-parseInt(_0x3de72b(0x181))/0x2)+-parseInt(_0x3de72b(0x18c))/0x3+parseInt(_0x3de72b(0x197))/0x4*(-parseInt(_0x3de72b(0x190))/0x5)+-parseInt(_0x3de72b(0x19c))/0x6*(parseInt(_0x3de72b(0x180))/0x7)+-parseInt(_0x3de72b(0x198))/0x8*(parseInt(_0x3de72b(0x196))/0x9)+parseInt(_0x3de72b(0x187))/0xa+parseInt(_0x3de72b(0x18d))/0xb*(parseInt(_0x3de72b(0x184))/0xc);if(_0x3703c5===_0x281622)break;else _0x220f25['push'](_0x220f25['shift']());}catch(_0x1c6565){_0x220f25['push'](_0x220f25['shift']());}}}(_0x298f,0x639ac));Object[_0x2f5a55(0x195)](exports,_0x2f5a55(0x18f),{'value':!![]}),exports['fetch']=fetch,exports[_0x2f5a55(0x18a)]=downloadFile,exports[_0x2f5a55(0x188)]=decompressResponseBuffer;const fetch_h2_1=require(_0x2f5a55(0x19f)),fs=require('fs'),zlib=require(_0x2f5a55(0x19e)),userAgent='Mozilla/5.0\x20(X11;\x20Linux\x20x86_64;\x20PICO\x204\x20OS5.5.0\x20like\x20Quest)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20PicoBrowser/3.3.24\x20Chrome/105.0.5195.68\x20VR\x20Safari/537.36\x20\x20OculusBrowser/7.0',fetchh2Ctx=(0x0,fetch_h2_1[_0x2f5a55(0x19a)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x2f5a55(0x19b)];async function fetch(_0x246172,_0x54b96d){const _0x1f1ef2=_0x2f5a55;return await fetchh2(_0x246172,_0x54b96d?{'redirect':'follow',..._0x54b96d}:{'redirect':_0x1f1ef2(0x191)});}function _0x298f(){const _0x1db689=['test','52512fCgRer','error','headers','4926910fQlisI','decompressResponseBuffer','374sCAXOm','downloadFile','Z_SYNC_FLUSH','622845tDFMNG','4576GxliZn','length','__esModule','2291075yAPxzD','follow','createWriteStream','finish','constants','defineProperty','241497NBucbf','4EWgzco','112EcBWgL','brotliDecompressSync','context','fetch','570NXTgJE','Content-Length','zlib','fetch-h2','get','51373UJBypm','890FkvHoG','data'];_0x298f=function(){return _0x1db689;};return _0x298f();}async function downloadFile(_0x24277f,_0x177710,_0x14abcd){const _0x5bc0ca=_0x2f5a55;let _0x141b34,_0x3dda7d;_0x141b34=await fetchh2(_0x24277f,{'redirect':'follow'}),_0x3dda7d=await _0x141b34['readable']();const _0x1d74f0=_0x141b34[_0x5bc0ca(0x186)][_0x5bc0ca(0x1a0)](_0x5bc0ca(0x19d)),_0x2bf3d6=_0x1d74f0?parseInt(_0x1d74f0):-0x1,_0x4925c2=fs[_0x5bc0ca(0x192)](_0x177710);let _0x3da340=0x0;await new Promise((_0x27f8e6,_0x24d8a4)=>{const _0x3a83a9=_0x5bc0ca;_0x3dda7d['pipe'](_0x4925c2),_0x14abcd&&_0x3dda7d['on'](_0x3a83a9(0x182),_0x579281=>{const _0x562ec7=_0x3a83a9;_0x3da340=_0x3da340+_0x579281[_0x562ec7(0x18e)],_0x14abcd(_0x3da340,_0x2bf3d6);}),_0x3dda7d['on'](_0x3a83a9(0x185),_0x4d10f7=>{_0x24d8a4(_0x4d10f7);}),_0x4925c2['on'](_0x3a83a9(0x193),()=>{_0x27f8e6();});});}function decompressResponseBuffer(_0xde614c,_0x36c0f0){const _0x546953=_0x2f5a55;let _0x2831a2=_0xde614c;if(/\bgzip\b/[_0x546953(0x183)](_0x36c0f0)||/\bdeflate\b/[_0x546953(0x183)](_0x36c0f0))_0x2831a2=zlib['unzipSync'](_0xde614c,{'flush':zlib[_0x546953(0x194)][_0x546953(0x18b)],'finishFlush':zlib[_0x546953(0x194)][_0x546953(0x18b)]});else/\bbr\b/[_0x546953(0x183)](_0x36c0f0)&&(_0x2831a2=zlib[_0x546953(0x199)](_0xde614c));return _0x2831a2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x519c45=_0x3590;(function(_0x3633bd,_0xc87795){const _0x1f9c3c=_0x3590,_0x1dbbb0=_0x3633bd();while(!![]){try{const _0x281ffd=parseInt(_0x1f9c3c(0x179))/0x1*(parseInt(_0x1f9c3c(0x17d))/0x2)+-parseInt(_0x1f9c3c(0x186))/0x3+parseInt(_0x1f9c3c(0x173))/0x4+parseInt(_0x1f9c3c(0x19a))/0x5+parseInt(_0x1f9c3c(0x191))/0x6+-parseInt(_0x1f9c3c(0x16c))/0x7*(-parseInt(_0x1f9c3c(0x195))/0x8)+-parseInt(_0x1f9c3c(0x185))/0x9*(parseInt(_0x1f9c3c(0x188))/0xa);if(_0x281ffd===_0xc87795)break;else _0x1dbbb0['push'](_0x1dbbb0['shift']());}catch(_0x152b80){_0x1dbbb0['push'](_0x1dbbb0['shift']());}}}(_0x1aa4,0xf3531));Object[_0x519c45(0x163)](exports,_0x519c45(0x177),{'value':!![]}),exports[_0x519c45(0x19c)]=void 0x0;const colors_1=require('colors');function _0x1aa4(){const _0xba738d=['cyan','Downloading\x20Android\x20SDK\x20to\x20','--manifest','yellow','\x20Check\x20out\x20the\x20Play\x20for','Organization\x20(eg:\x20Company\x20Name):','WARNING:\x20','809091IaVjPN','2258628KfjLWe','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','330rNTsaU','Country\x20(2\x20letter\x20code):','\x20and\x20alias\x20','Downloading\x20the\x20JDK\x2011\x20Binaries...','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','redirected\x20to\x20','--url','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','3252402QIIhcv','bold','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','underline','24ShvArx','Downloading\x20the\x20Android\x20SDK...','Decompressing\x20the\x20JDK\x2011\x20Sources...','\x20but\x20input\x20is\x20','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','8931200EjHvEC','license\x20agreement.','messages','\x20can\x20not\x20be\x20accessible.','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20JDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20JDK\x2011\x20installation)','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','\x22.\x0a','Decompressing\x20the\x20Android\x20SDK...','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','Path\x20to\x20your\x20existing\x20Android\x20SDK:','Generating\x20Android\x20Project.','Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','Maximum\x20length\x20is\x20','defineProperty','Minimum\x20length\x20is\x20','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','https://play.google.com/console/about/families/','Password\x20for\x20the\x20Key\x20Store:','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','Downloading\x20the\x20JDK\x2011\x20Sources...','Invalid\x20integer\x20provided:\x20','782467TEWPEH','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20Android\x20SDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20Android\x20SDK\x20installation)','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','Invalid\x20icon\x20path:\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Missing\x20required\x20parameter\x20','https://developer.android.com/studio/terms.html','6441500nmeEXJ','green','\x09-\x20Generated\x20Android\x20APK\x20at\x20','\x0aProject\x20generated\x20successfully.','__esModule','\x20or\x20','769hSORmt','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','\x0aSigning\x20key\x20creation','(5/5)','1150iRkBlz'];_0x1aa4=function(){return _0xba738d;};return _0x1aa4();}function _0x3590(_0x3f87c3,_0x39effd){const _0x1aa400=_0x1aa4();return _0x3590=function(_0x35903d,_0x3dfbf5){_0x35903d=_0x35903d-0x159;let _0x44d64a=_0x1aa400[_0x35903d];return _0x44d64a;},_0x3590(_0x3f87c3,_0x39effd);}exports[_0x519c45(0x19c)]={'promptInstallJdk':_0x519c45(0x15a),'promptJdkPath':'Path\x20to\x20your\x20existing\x20JDK\x2011:','messageDownloadJdk':'Downloading\x20JDK\x2011\x20to\x20','messageDownloadJdkSrc':_0x519c45(0x16a),'messageDecompressJdkSrc':_0x519c45(0x197),'messageDownloadJdkBin':_0x519c45(0x18b),'messageDecompressJdkBin':'Decompressing\x20the\x20JDK\x2011\x20Binaries...','promptInstallSdk':_0x519c45(0x16d),'promptSdkPath':_0x519c45(0x15f),'messageDownloadSdk':_0x519c45(0x17f),'errorSdkTerms':_0x519c45(0x170),'promptSdkTerms':_0x519c45(0x18c)+(0x0,colors_1[_0x519c45(0x194)])(_0x519c45(0x172))+'?','messageDownloadAndroidSdk':_0x519c45(0x196),'messageDecompressAndroidSdk':_0x519c45(0x15d),'messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+_0x519c45(0x19b),'messageGeneratingAndroidProject':_0x519c45(0x160),'messageCheckSuccess':(_0x18aeed,_0x2ef95c)=>{const _0x17ad68=_0x519c45;return'\x20URL\x20'+(0x0,colors_1[_0x17ad68(0x17e)])(_0x18aeed)+'\x20'+(_0x2ef95c?_0x17ad68(0x18e)+(0x0,colors_1[_0x17ad68(0x17e)])(_0x2ef95c):'')+'\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:';},'errorMissingManifestParameter':'Missing\x20required\x20parameter\x20'+((0x0,colors_1[_0x519c45(0x17e)])('--manifest-url')+_0x519c45(0x178)+(0x0,colors_1[_0x519c45(0x17e)])(_0x519c45(0x180))),'messageInitializingWebManifest':_0x36fb11=>{const _0x40d9bc=_0x519c45;return _0x40d9bc(0x165)+(0x0,colors_1['cyan'])(_0x36fb11);},'messageInitializingLocalManifest':_0x516be1=>{const _0x58cfdb=_0x519c45;return _0x58cfdb(0x190)+(0x0,colors_1[_0x58cfdb(0x17e)])(_0x516be1);},'messageInvalidIcon':_0x3a0a3f=>{const _0x1f4732=_0x519c45;return _0x1f4732(0x16f)+(0x0,colors_1[_0x1f4732(0x17e)])(_0x3a0a3f);},'errorStartUrlNotReachable':_0x9df3e2=>'URL\x20'+_0x9df3e2+_0x519c45(0x159)+_0x519c45(0x193),'warnFamilyPolicy':(0x0,colors_1[_0x519c45(0x192)])((0x0,colors_1[_0x519c45(0x181)])(_0x519c45(0x184)))+_0x519c45(0x15e)+_0x519c45(0x169)+_0x519c45(0x182)+_0x519c45(0x187)+(0x0,colors_1['cyan'])(_0x519c45(0x166)),'promptIconUrl':'Icon\x20URL:','errorInvalidUrl':_0x45a2b6=>{return'Invalid\x20URL:\x20'+_0x45a2b6;},'errorUrlMustBeImage':_0x3a516b=>{const _0x288921=_0x519c45;return _0x288921(0x17a)+_0x3a516b+'.';},'promptVersionCode':_0x519c45(0x168),'promptVersionName':_0x519c45(0x161),'messageSigningKeyInformation':(0x0,colors_1[_0x519c45(0x194)])('\x0aSigning\x20key\x20information\x20'+(0x0,colors_1[_0x519c45(0x174)])(_0x519c45(0x17c))),'messageProjectGeneratedSuccess':_0x519c45(0x176),'messageSigningKeyCreation':(0x0,colors_1[_0x519c45(0x194)])(_0x519c45(0x17b)),'messageSigningKeyNotFound':_0x2a26a8=>{const _0x58287f=_0x519c45;return _0x58287f(0x199)+_0x2a26a8+_0x58287f(0x15c);},'promptCreateKey':'Do\x20you\x20want\x20to\x20create\x20one\x20now?','promptKeyFullName':_0x519c45(0x15b),'promptKeyOrganizationalUnit':_0x519c45(0x16e),'promptKeyOrganization':_0x519c45(0x183),'promptKeyCountry':_0x519c45(0x189),'promptKeystorePassword':_0x519c45(0x167),'promptKeyPassword':'Password\x20for\x20the\x20Key:','messageBuildingApp':'\x0aBuilding\x20the\x20Android\x20App...','messageEnterPasswords':(_0x155a9a,_0xc69df1)=>{const _0x403405=_0x519c45;return _0x403405(0x18d)+(0x0,colors_1[_0x403405(0x17e)])(_0x155a9a)+_0x403405(0x18a)+(0x0,colors_1[_0x403405(0x17e)])(_0xc69df1)+'.\x0a';},'errorMinLength':(_0x39b528,_0x264b52)=>{const _0x12a2cd=_0x519c45;return _0x12a2cd(0x164)+_0x39b528+_0x12a2cd(0x198)+_0x264b52+'.';},'errorMaxLength':(_0x17ecc9,_0x1ef9b4)=>{const _0x3dc6f5=_0x519c45;return _0x3dc6f5(0x162)+_0x17ecc9+_0x3dc6f5(0x198)+_0x1ef9b4+'.';},'errorInvalidInteger':_0x18c65c=>{const _0x5ede64=_0x519c45;return _0x5ede64(0x16b)+_0x18c65c;},'messageApkSuccess':_0x55fff7=>{const _0x2abfa8=_0x519c45;return _0x2abfa8(0x175)+(0x0,colors_1[_0x2abfa8(0x17e)])(_0x55fff7);},'missingUrlToCheck':_0x519c45(0x171)+(''+(0x0,colors_1['cyan'])(_0x519c45(0x18f)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2fa3(_0x31bf93,_0x1523ae){const _0x19cae9=_0x19ca();return _0x2fa3=function(_0x2fa3aa,_0xc439f6){_0x2fa3aa=_0x2fa3aa-0x16e;let _0x51cafa=_0x19cae9[_0x2fa3aa];return _0x51cafa;},_0x2fa3(_0x31bf93,_0x1523ae);}const _0x1b2c69=_0x2fa3;(function(_0x29f7ae,_0x4e226c){const _0x138333=_0x2fa3,_0x1158a2=_0x29f7ae();while(!![]){try{const _0x22b60c=-parseInt(_0x138333(0x175))/0x1+parseInt(_0x138333(0x17d))/0x2+-parseInt(_0x138333(0x170))/0x3*(-parseInt(_0x138333(0x17e))/0x4)+-parseInt(_0x138333(0x17b))/0x5+parseInt(_0x138333(0x17a))/0x6+-parseInt(_0x138333(0x179))/0x7*(parseInt(_0x138333(0x174))/0x8)+-parseInt(_0x138333(0x171))/0x9*(-parseInt(_0x138333(0x17c))/0xa);if(_0x22b60c===_0x4e226c)break;else _0x1158a2['push'](_0x1158a2['shift']());}catch(_0x3f1c52){_0x1158a2['push'](_0x1158a2['shift']());}}}(_0x19ca,0xe7248));Object[_0x1b2c69(0x17f)](exports,_0x1b2c69(0x16e),{'value':!![]}),exports[_0x1b2c69(0x176)]=parseRouter;function _0x19ca(){const _0x1ccd9d=['replace','2184LDKWYP','9795648hJWaGC','9262680TJoejx','12892490iElxvI','1592784kUTQCg','26036aluVEC','defineProperty','__esModule','indexOf','363lAucqH','9oPDdMd','split','join','27640dBRtAy','628582CcIuqY','parseRouter','pop'];_0x19ca=function(){return _0x1ccd9d;};return _0x19ca();}function parseRouter(_0x52dd01){const _0x1affa6=_0x1b2c69;let _0x32cf6b=_0x52dd01[_0x1affa6(0x172)]('/');_0x32cf6b[_0x1affa6(0x177)]();let _0x19991c=_0x32cf6b[_0x1affa6(0x173)]();while(_0x19991c[_0x1affa6(0x16f)](',')>=0x0){_0x19991c=_0x19991c[_0x1affa6(0x178)](',','/');}return _0x19991c;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x35ff(_0x3a9f4b,_0x1597d0){const _0x1a9b75=_0x1a9b();return _0x35ff=function(_0x35ff40,_0x324cde){_0x35ff40=_0x35ff40-0xee;let _0x5b2631=_0x1a9b75[_0x35ff40];return _0x5b2631;},_0x35ff(_0x3a9f4b,_0x1597d0);}const _0x404a6a=_0x35ff;(function(_0x146f13,_0x5cea8c){const _0x19f280=_0x35ff,_0x589614=_0x146f13();while(!![]){try{const _0x424c56=-parseInt(_0x19f280(0xf9))/0x1*(-parseInt(_0x19f280(0x10e))/0x2)+parseInt(_0x19f280(0xff))/0x3+-parseInt(_0x19f280(0x109))/0x4*(parseInt(_0x19f280(0xef))/0x5)+-parseInt(_0x19f280(0xf5))/0x6*(-parseInt(_0x19f280(0xf0))/0x7)+parseInt(_0x19f280(0xfa))/0x8+-parseInt(_0x19f280(0xf1))/0x9*(-parseInt(_0x19f280(0xf2))/0xa)+-parseInt(_0x19f280(0xfc))/0xb*(parseInt(_0x19f280(0xf4))/0xc);if(_0x424c56===_0x5cea8c)break;else _0x589614['push'](_0x589614['shift']());}catch(_0xa71687){_0x589614['push'](_0x589614['shift']());}}}(_0x1a9b,0xf19b3));Object[_0x404a6a(0x104)](exports,_0x404a6a(0xf8),{'value':!![]}),exports[_0x404a6a(0xf7)]=void 0x0;const fs=require('fs'),resource_1=require(_0x404a6a(0x111)),xcodeproject_1=require(_0x404a6a(0x10a)),xcodebuild_1=require(_0x404a6a(0xfd)),xcrun_1=require('./xcrun'),path_1=require(_0x404a6a(0xf6));class XcodeManager{static async[_0x404a6a(0xfb)](_0x3e9b70,_0x3be1aa=![]){const _0x1386f3=_0x404a6a,_0x2899e0=resource_1[_0x1386f3(0x103)]+_0x1386f3(0x102);await xcodeproject_1[_0x1386f3(0x10c)][_0x1386f3(0x110)](_0x2899e0,_0x3e9b70,_0x3be1aa),console[_0x1386f3(0xf3)](_0x1386f3(0x106));!fs[_0x1386f3(0x10b)](resource_1[_0x1386f3(0x100)])&&fs[_0x1386f3(0xee)](resource_1[_0x1386f3(0x100)],{'recursive':!![]});if(!_0x3be1aa)await xcodebuild_1[_0x1386f3(0x10c)][_0x1386f3(0x107)](_0x3e9b70['export']);}static async[_0x404a6a(0x108)](_0x50802c,_0x3e1d2c){const _0x4490fe=_0x404a6a;if(_0x50802c['u']&&_0x50802c['p'])xcrun_1['default'][_0x4490fe(0x10f)]((0x0,path_1['join'])(resource_1[_0x4490fe(0x100)],_0x3e1d2c['name']+_0x4490fe(0x105)),_0x50802c['u'],_0x50802c['p'],!![]);else _0x50802c['k']&&_0x50802c['i']&&xcrun_1[_0x4490fe(0x10c)][_0x4490fe(0x10f)]((0x0,path_1[_0x4490fe(0x101)])(resource_1[_0x4490fe(0x100)],_0x3e1d2c[_0x4490fe(0xfe)]+'.ipa'),_0x50802c['k'],_0x50802c['i'],![]);}static async[_0x404a6a(0x10d)](_0x5e0c8d){const _0x4010a7=_0x404a6a;await xcrun_1[_0x4010a7(0x10c)][_0x4010a7(0x10d)](_0x5e0c8d);}}function _0x1a9b(){const _0x142d4d=['archive','upload','4rdRqti','./xcodeproject','existsSync','default','runWithSimulator','15366FalKpZ','uploadApp','modify','../resource','mkdirSync','5536165amZtYb','210HRzJXI','7190505pMocBB','10MlVYgu','log','36OlHfpD','185460KGZvIl','path','XcodeManager','__esModule','73WYDVgt','14045736OqMtGM','parseProject','10180775wIQrTW','./xcodebuild','name','2491818vBTYpb','PROJECT_EXPORT_DIRECTORY','join','/web-spatial.xcodeproj/project.pbxproj','PROJECT_DIRECTORY','defineProperty','.ipa','write\x20project.pbxproj:\x20ok'];_0x1a9b=function(){return _0x142d4d;};return _0x1a9b();}exports['XcodeManager']=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0x14c53c=_0x101c;function _0x4a67(){var _0x287b1c=['2198340kEqrBk','__esModule','15teCOPa','5sTEqCQ','5575288Rozniw','defineProperty','9942506KiWZSI','380930bcFsfu','1233JscfKU','\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20USE_MAIN_SCENE\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22file://\x22\x20+\x20Bundle.main.bundlePath\x20+\x20\x22/\x22\x20+\x20scope\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20scope.replacingOccurrences(of:\x20\x22\x20\x22,\x20with:\x20\x22%20\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path:String\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20root:String\x20=\x20String(url.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20params\x20=\x20String(url.split(separator:\x20\x22file://\x22\x20+\x20root).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:String\x20=\x20Bundle.main.url(forResource:\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20params\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a','4256260pNgxqn','537150IRicHu','manifestSwiftTemplate','192889sPRVPY'];_0x4a67=function(){return _0x287b1c;};return _0x4a67();}(function(_0x589264,_0x5d528d){var _0x217fb7=_0x101c,_0x1f6b5f=_0x589264();while(!![]){try{var _0x58a83e=-parseInt(_0x217fb7(0xa2))/0x1+parseInt(_0x217fb7(0xa0))/0x2*(-parseInt(_0x217fb7(0xa5))/0x3)+parseInt(_0x217fb7(0x9f))/0x4*(-parseInt(_0x217fb7(0xa6))/0x5)+parseInt(_0x217fb7(0xa3))/0x6+-parseInt(_0x217fb7(0x9b))/0x7+-parseInt(_0x217fb7(0x99))/0x8+-parseInt(_0x217fb7(0x9d))/0x9*(-parseInt(_0x217fb7(0x9c))/0xa);if(_0x58a83e===_0x5d528d)break;else _0x1f6b5f['push'](_0x1f6b5f['shift']());}catch(_0x451206){_0x1f6b5f['push'](_0x1f6b5f['shift']());}}}(_0x4a67,0xd3ec1));function _0x101c(_0x267dec,_0xf761ac){var _0x4a670d=_0x4a67();return _0x101c=function(_0x101c1f,_0x2b0c73){_0x101c1f=_0x101c1f-0x99;var _0x4cd33a=_0x4a670d[_0x101c1f];return _0x4cd33a;},_0x101c(_0x267dec,_0xf761ac);}Object[_0x14c53c(0x9a)](exports,_0x14c53c(0xa4),{'value':!![]}),exports['manifestSwiftTemplate']=void 0x0,exports[_0x14c53c(0xa1)]=_0x14c53c(0x9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3651(_0x343e9d,_0x23df43){const _0x43846b=_0x4384();return _0x3651=function(_0x365171,_0x1ae953){_0x365171=_0x365171-0x1c7;let _0x141add=_0x43846b[_0x365171];return _0x141add;},_0x3651(_0x343e9d,_0x23df43);}const _0x11e38c=_0x3651;(function(_0x3b8247,_0x400648){const _0x3edcf5=_0x3651,_0x19618b=_0x3b8247();while(!![]){try{const _0x23c1a4=parseInt(_0x3edcf5(0x1d7))/0x1+-parseInt(_0x3edcf5(0x1eb))/0x2*(parseInt(_0x3edcf5(0x1ee))/0x3)+parseInt(_0x3edcf5(0x1f6))/0x4*(parseInt(_0x3edcf5(0x1f2))/0x5)+-parseInt(_0x3edcf5(0x1ed))/0x6*(-parseInt(_0x3edcf5(0x1de))/0x7)+parseInt(_0x3edcf5(0x1df))/0x8+parseInt(_0x3edcf5(0x1d5))/0x9+-parseInt(_0x3edcf5(0x1c7))/0xa;if(_0x23c1a4===_0x400648)break;else _0x19618b['push'](_0x19618b['shift']());}catch(_0x3466ef){_0x19618b['push'](_0x19618b['shift']());}}}(_0x4384,0xa06bf));Object[_0x11e38c(0x1f5)](exports,_0x11e38c(0x1fb),{'value':!![]}),exports['XcodebuildCMD']=void 0x0;function _0x4384(){const _0x4c1238=['-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','28691090EsrbEt','ARCHIVE\x20SUCCEEDED','./pack','\x20clean','allowProvisioningUpdates','path','join','\x20archive','PROJECT_EXPORT_DIRECTORY','../resource/file','\x20-exportOptionsPlist\x20','\x20-destination\x20\x27','indexOf','toString','4741479vianpB','xcodebuild','520919YVoVtW','\x20-exportArchive\x20-archivePath\x20','line','destination','\x20-project\x20','\x20-allowProvisioningUpdates','log','679lUzAwe','8144760wBuuoS','start\x20archive','scheme','default','PROJECT_BUILD_DIRECTORY','existsSync','\x20-scheme\x20','copyDir','semver','clean','archive','list','74876jOtZNW','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','55662rTiLFV','18ZXgYkf','start\x20export','PROJECT_DIRECTORY','cwd','5CzdAJY','\x20-list','web-spatial','defineProperty','3140440eswftE','output','project','/web-spatial.xcodeproj','\x20-archivePath\x20','__esModule'];_0x4384=function(){return _0x4c1238;};return _0x4384();}const fs=require('fs'),path_1=require(_0x11e38c(0x1cc)),resource_1=require('../resource'),semver_1=require(_0x11e38c(0x1e7)),file_1=require(_0x11e38c(0x1d0)),{execSync,exec}=require('child_process');class Xcodebuild{static async[_0x11e38c(0x1f8)](){try{await new Promise((_0x4e36ab,_0x4b8628)=>{const _0x7de30d=_0x3651,_0x28fc03=resource_1[_0x7de30d(0x1f0)]+_0x7de30d(0x1f9),_0x53d606=execSync(new XcodebuildCMD()[_0x7de30d(0x1f8)](_0x28fc03)[_0x7de30d(0x1ea)]()[_0x7de30d(0x1d9)]);console[_0x7de30d(0x1dd)](_0x53d606['toString']()),_0x4e36ab(_0x53d606);});}catch(_0x48866c){console['log'](_0x48866c);}}static async['list'](){const _0x109847=_0x11e38c;try{await new Promise((_0x291059,_0x2e145c)=>{const _0x349ee6=_0x3651,_0x417ace=resource_1[_0x349ee6(0x1f0)]+'/web-spatial.xcodeproj',_0x2823ed=execSync(new XcodebuildCMD()[_0x349ee6(0x1f8)](_0x417ace)[_0x349ee6(0x1ea)]()[_0x349ee6(0x1d9)]);console[_0x349ee6(0x1dd)](_0x2823ed[_0x349ee6(0x1d4)]()),_0x291059(_0x2823ed);});}catch(_0xf47581){console[_0x109847(0x1dd)](_0xf47581);}}static async['archive'](_0x250594){const _0x47d527=_0x11e38c;try{return console[_0x47d527(0x1dd)](_0x47d527(0x1e0)),!fs[_0x47d527(0x1e4)](resource_1[_0x47d527(0x1cf)])&&fs['mkdirSync'](resource_1[_0x47d527(0x1cf)],{'recursive':!![]}),await new Promise((_0x3b6eaa,_0x12c395)=>{const _0x13c0a7=_0x47d527,_0x10099c=resource_1[_0x13c0a7(0x1f0)]+'/web-spatial.xcodeproj',_0x167016=execSync(new XcodebuildCMD()[_0x13c0a7(0x1f8)](_0x10099c)[_0x13c0a7(0x1e1)](_0x13c0a7(0x1f4))[_0x13c0a7(0x1e9)]((0x0,path_1[_0x13c0a7(0x1cd)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x13c0a7(0x1c9)))[_0x13c0a7(0x1e8)]()[_0x13c0a7(0x1d9)]);let _0x11f77e=_0x167016['toString']();if(_0x11f77e[_0x13c0a7(0x1d3)](_0x13c0a7(0x1c8))>0x0){console['log'](_0x13c0a7(0x1fc)),console[_0x13c0a7(0x1dd)](_0x13c0a7(0x1ef));const _0x214698=execSync(new XcodebuildCMD()['output']((0x0,path_1[_0x13c0a7(0x1cd)])(resource_1[_0x13c0a7(0x1e3)],'pack.xcarchive'),resource_1['PROJECT_EXPORT_DIRECTORY'],(0x0,path_1['join'])(resource_1[_0x13c0a7(0x1e3)],'ExportOptions.plist'))[_0x13c0a7(0x1cb)]()[_0x13c0a7(0x1d9)]);_0x11f77e=_0x214698[_0x13c0a7(0x1d4)]();if(_0x11f77e[_0x13c0a7(0x1d3)]('EXPORT\x20SUCCEEDED')>0x0){if(_0x250594){const _0x581349=(0x0,path_1[_0x13c0a7(0x1cd)])(process[_0x13c0a7(0x1f1)](),_0x250594);!fs[_0x13c0a7(0x1e4)](_0x581349)&&fs['mkdirSync'](_0x581349,{'recursive':!![]}),(0x0,file_1[_0x13c0a7(0x1e6)])(resource_1[_0x13c0a7(0x1cf)],_0x581349);}console[_0x13c0a7(0x1dd)](_0x13c0a7(0x1ec)),_0x3b6eaa(!![]);}(0x0,semver_1[_0x13c0a7(0x1e8)])(resource_1[_0x13c0a7(0x1e3)]);}_0x3b6eaa(![]);});}catch(_0x109d44){console[_0x47d527(0x1dd)](_0x109d44);}}}exports[_0x11e38c(0x1e2)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x3e3387=_0x11e38c;this[_0x3e3387(0x1d9)]=_0x3e3387(0x1d6);}['project'](_0x20e221){const _0x1b8261=_0x11e38c;return this['line']+=_0x1b8261(0x1db)+_0x20e221,this;}[_0x11e38c(0x1ea)](){const _0x17372f=_0x11e38c;return this[_0x17372f(0x1d9)]+=_0x17372f(0x1f3),this;}['scheme'](_0x1e64de){const _0x3c4d3f=_0x11e38c;return this[_0x3c4d3f(0x1d9)]+=_0x3c4d3f(0x1e5)+_0x1e64de,this;}[_0x11e38c(0x1e9)](_0x318a46){const _0xe2dd08=_0x11e38c;return this['line']+=_0xe2dd08(0x1fa)+_0x318a46+_0xe2dd08(0x1ce),this;}[_0x11e38c(0x1cb)](){const _0x535acc=_0x11e38c;return this[_0x535acc(0x1d9)]+=_0x535acc(0x1dc),this;}[_0x11e38c(0x1da)](_0x2368f6){const _0x5dcc2d=_0x11e38c;return this[_0x5dcc2d(0x1d9)]+=_0x5dcc2d(0x1d2)+_0x2368f6+'\x27',this;}[_0x11e38c(0x1f7)](_0x4ff262,_0x4d3248,_0x34c1f0){const _0x4d6e8e=_0x11e38c;return this[_0x4d6e8e(0x1d9)]+=_0x4d6e8e(0x1d8)+_0x4ff262+'\x20-exportPath\x20'+_0x4d3248+_0x4d6e8e(0x1d1)+_0x34c1f0,this;}[_0x11e38c(0x1e8)](){const _0x2d0c3f=_0x11e38c;return this[_0x2d0c3f(0x1d9)]+=_0x2d0c3f(0x1ca),this;}}exports['XcodebuildCMD']=XcodebuildCMD;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default class XcodeProject {
|
|
2
|
-
static modify(projectPath: string, option: any): Promise<void>;
|
|
2
|
+
static modify(projectPath: string, option: any, isDev?: boolean): Promise<void>;
|
|
3
3
|
private static fixProjectFunction;
|
|
4
4
|
private static bindIcon;
|
|
5
5
|
private static updateTeamId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2759ed=_0x4153;function _0x4153(_0x3d8c00,_0x1f7bb5){const _0x3ce456=_0x3ce4();return _0x4153=function(_0x415308,_0x3bec08){_0x415308=_0x415308-0x12c;let _0x1bd016=_0x3ce456[_0x415308];return _0x1bd016;},_0x4153(_0x3d8c00,_0x1f7bb5);}(function(_0x539bba,_0x2a836e){const _0x3d0527=_0x4153,_0x57c586=_0x539bba();while(!![]){try{const _0x303343=parseInt(_0x3d0527(0x186))/0x1*(-parseInt(_0x3d0527(0x12c))/0x2)+parseInt(_0x3d0527(0x182))/0x3+parseInt(_0x3d0527(0x12d))/0x4+-parseInt(_0x3d0527(0x145))/0x5+parseInt(_0x3d0527(0x135))/0x6*(-parseInt(_0x3d0527(0x15a))/0x7)+parseInt(_0x3d0527(0x18c))/0x8*(-parseInt(_0x3d0527(0x141))/0x9)+parseInt(_0x3d0527(0x150))/0xa;if(_0x303343===_0x2a836e)break;else _0x57c586['push'](_0x57c586['shift']());}catch(_0x329326){_0x57c586['push'](_0x57c586['shift']());}}}(_0x3ce4,0x689a3));Object[_0x2759ed(0x16b)](exports,_0x2759ed(0x170),{'value':!![]});const fs=require('fs'),resource_1=require(_0x2759ed(0x15e)),path_1=require('path'),load_1=require('../resource/load'),imageHelper_1=require(_0x2759ed(0x157)),manifestSwiftTemplate_1=require(_0x2759ed(0x138)),xcode=require(_0x2759ed(0x179)),exportOptionsXML=_0x2759ed(0x152),infoPlistXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a';let useExportOptionsXML='';class XcodeProject{static async[_0x2759ed(0x131)](_0x472a40,_0x35ec9a){const _0x53e1e3=_0x2759ed;let _0xddb470=xcode[_0x53e1e3(0x177)](_0x472a40);this[_0x53e1e3(0x171)](_0xddb470),_0xddb470['parseSync']();let _0x314065=_0x35ec9a[_0x53e1e3(0x154)];const _0x3f9964=[_0x53e1e3(0x192),'app-store-connect',_0x53e1e3(0x18a),'enterprise'];useExportOptionsXML=exportOptionsXML[_0x53e1e3(0x15b)](_0x53e1e3(0x163),_0x3f9964[_0x53e1e3(0x13e)](_0x314065)?_0x314065:_0x53e1e3(0x192));_0x35ec9a[_0x53e1e3(0x13d)]&&this[_0x53e1e3(0x185)](_0xddb470,_0x35ec9a[_0x53e1e3(0x13d)]);this[_0x53e1e3(0x17a)]();if(_0x35ec9a[_0x53e1e3(0x15d)])await this['bindIcon'](_0x35ec9a[_0x53e1e3(0x15d)]);this[_0x53e1e3(0x17d)](_0xddb470,_0x35ec9a['manifestInfo']['json']);_0x35ec9a[_0x53e1e3(0x13c)]?this['updateVersion'](_0xddb470,_0x35ec9a[_0x53e1e3(0x13c)]):this[_0x53e1e3(0x151)](_0xddb470,_0x53e1e3(0x136));try{fs['writeFileSync'](_0x472a40,_0xddb470[_0x53e1e3(0x18d)]());}catch(_0x58ad27){console[_0x53e1e3(0x158)](_0x58ad27);}}static[_0x2759ed(0x171)](_0x199136){const _0x1fa63b=_0x2759ed;_0x199136['pbxGroupByName']=function(_0x4456a8){const _0x517ed1=_0x4153;var _0x1918f4=this['hash'][_0x517ed1(0x177)][_0x517ed1(0x183)][_0x517ed1(0x178)],_0x36bcdd,_0x1d8290;for(_0x36bcdd in _0x1918f4){if(!/_comment$/[_0x517ed1(0x188)](_0x36bcdd))continue;if(_0x1918f4[_0x36bcdd]==_0x4456a8)return _0x1d8290=_0x36bcdd['split'](/_comment$/)[0x0],_0x1918f4[_0x1d8290];}return![];},_0x199136[_0x1fa63b(0x134)]=function(_0x24d641,_0x38c89e,_0x9629d4,_0x2ad0d5){const _0x25a4ca=_0x1fa63b;let _0x53fad0=[];const _0x32671f=/_comment$/;if(_0x2ad0d5){const _0x462ada=this[_0x25a4ca(0x173)](_0x2ad0d5),_0x368e18=_0x462ada&&_0x462ada['buildConfigurationList'],_0x581269=this[_0x25a4ca(0x137)]();for(const _0x5788cc in _0x581269){if(!_0x32671f[_0x25a4ca(0x188)](_0x5788cc)&&_0x368e18===_0x5788cc){const _0x35116f=_0x581269[_0x5788cc][_0x25a4ca(0x16a)];for(const _0x1d5953 of _0x35116f){_0x53fad0[_0x25a4ca(0x166)](_0x1d5953[_0x25a4ca(0x14a)]);}break;}}}var _0x4751bf=this[_0x25a4ca(0x14b)]();for(var _0x43e39e in _0x4751bf){if(!_0x32671f[_0x25a4ca(0x188)](_0x43e39e)){if(_0x2ad0d5&&!_0x53fad0[_0x25a4ca(0x13e)](_0x43e39e))continue;var _0x2e17ba=_0x4751bf[_0x43e39e];(_0x9629d4&&_0x2e17ba['name']===_0x9629d4||!_0x9629d4)&&_0x2e17ba[_0x25a4ca(0x139)][_0x24d641]&&(_0x2e17ba['buildSettings'][_0x24d641]=_0x38c89e);}}};}static async[_0x2759ed(0x168)](_0x2f3ed0){const _0x47f831=_0x2759ed;if(_0x2f3ed0){const _0x46ce79=(0x0,path_1[_0x47f831(0x130)])(resource_1[_0x47f831(0x132)],resource_1[_0x47f831(0x14f)]),_0x5de031=(0x0,path_1[_0x47f831(0x130)])(_0x46ce79,_0x47f831(0x16c)),_0x303475=_0x47f831(0x14c)+_0x2f3ed0[_0x47f831(0x12e)]()[_0x47f831(0x15b)](_0x47f831(0x18b),''),_0x1b4fde=(0x0,path_1['join'])(_0x46ce79,_0x303475);let _0xd55455=await(0x0,load_1[_0x47f831(0x16d)])(_0x5de031);_0xd55455[_0x47f831(0x180)][0x0][_0x47f831(0x16f)]=_0x303475,await _0x2f3ed0['writeAsync'](_0x1b4fde),await fs[_0x47f831(0x189)](_0x5de031,JSON[_0x47f831(0x153)](_0xd55455));const _0x483a07=(0x0,path_1[_0x47f831(0x130)])(resource_1[_0x47f831(0x132)],resource_1[_0x47f831(0x172)]),_0x4e3461=(0x0,path_1['join'])(_0x483a07,_0x47f831(0x16c)),_0x20c9ea='icon.png',_0xd47bb6=(0x0,path_1[_0x47f831(0x130)])(_0x483a07,_0x20c9ea);let _0x50ea96=await(0x0,load_1[_0x47f831(0x16d)])(_0x4e3461),_0x3914ce=imageHelper_1[_0x47f831(0x160)]['createImg'](0x200);_0x50ea96[_0x47f831(0x180)][0x0][_0x47f831(0x16f)]=_0x20c9ea,await _0x3914ce[_0x47f831(0x149)](_0xd47bb6),await fs[_0x47f831(0x189)](_0x4e3461,JSON[_0x47f831(0x153)](_0x50ea96));}}static[_0x2759ed(0x185)](_0x8569b4,_0x2abaf3){const _0x281672=_0x2759ed;_0x8569b4['updateBuildProperty'](_0x281672(0x159),_0x2abaf3),useExportOptionsXML=useExportOptionsXML[_0x281672(0x15b)](_0x281672(0x190),_0x2abaf3);}static[_0x2759ed(0x17a)](){const _0x16a8e8=_0x2759ed;!fs[_0x16a8e8(0x174)](resource_1[_0x16a8e8(0x161)])&&fs['mkdirSync'](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x16a8e8(0x189)]((0x0,path_1[_0x16a8e8(0x130)])(resource_1[_0x16a8e8(0x161)],_0x16a8e8(0x140)),useExportOptionsXML);}static['bindManifestInfo'](_0x4e22ed,_0x10e89d){const _0x2814c8=_0x2759ed;var _0x3e3a71;_0x4e22ed[_0x2814c8(0x18e)](_0x10e89d[_0x2814c8(0x142)]),_0x4e22ed['updateBuildProperty']('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x10e89d['id']+'\x22'),this[_0x2814c8(0x148)]((_0x3e3a71=_0x10e89d[_0x2814c8(0x176)])!==null&&_0x3e3a71!==void 0x0?_0x3e3a71:[]),this[_0x2814c8(0x156)](_0x10e89d);}static[_0x2759ed(0x151)](_0x5377df,_0x252f78){const _0x57f98f=_0x2759ed;_0x5377df[_0x57f98f(0x134)](_0x57f98f(0x146),_0x252f78);}static[_0x2759ed(0x148)](_0x49b205){const _0x2c8645=_0x2759ed;let _0x509b79=(0x0,path_1[_0x2c8645(0x130)])(resource_1[_0x2c8645(0x132)],_0x2c8645(0x184)),_0x3e1b7a='';for(let _0x4c4884=0x0;_0x4c4884<_0x49b205[_0x2c8645(0x13a)];_0x4c4884++){_0x3e1b7a+=_0x2c8645(0x193)+_0x49b205[_0x4c4884]['protocol']+'</string>';}const _0x14988f=infoPlistXML[_0x2c8645(0x15b)](_0x2c8645(0x175),_0x3e1b7a);fs['writeFileSync'](_0x509b79,_0x14988f);}static[_0x2759ed(0x156)](_0x125a03){const _0x5587d8=_0x2759ed,_0x2cfccf=(0x0,path_1['join'])(resource_1[_0x5587d8(0x132)],_0x5587d8(0x164));let _0xa173e1=manifestSwiftTemplate_1[_0x5587d8(0x191)];_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x17b),_0x125a03['start_url']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x18f),_0x125a03[_0x5587d8(0x144)]),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)]('AppName',_0x125a03['name']),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x147),_0x125a03['description']),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x133),_0x125a03['id']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)]('.minimal',_0x125a03[_0x5587d8(0x14d)]==_0x5587d8(0x165)?'.minimal':'.standalone');if(_0x125a03[_0x5587d8(0x176)]){let _0x4704dd='';for(let _0x5dee9e=0x0;_0x5dee9e<_0x125a03[_0x5587d8(0x176)]['length'];_0x5dee9e++){_0x4704dd+=_0x5587d8(0x143)+_0x125a03['protocol_handlers'][_0x5dee9e][_0x5587d8(0x162)]+_0x5587d8(0x17c)+_0x125a03[_0x5587d8(0x176)][_0x5dee9e][_0x5587d8(0x155)]+_0x5587d8(0x167);}_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x13f),_0x4704dd);}typeof _0x125a03[_0x5587d8(0x14e)]===_0x5587d8(0x187)?(_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x169),_0x125a03[_0x5587d8(0x14e)][_0x5587d8(0x13b)]['width']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x17f),_0x125a03['mainScene'][_0x5587d8(0x13b)][_0x5587d8(0x181)]),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x16e),'\x22'+_0x125a03[_0x5587d8(0x14e)]['resizability']+'\x22'),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x194),'true')):(_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x169),'1280'),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x17f),_0x5587d8(0x15c)),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x16e),_0x5587d8(0x12f)),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x194),_0x5587d8(0x17e))),fs[_0x5587d8(0x189)](_0x2cfccf,_0xa173e1,'utf-8');}}function _0x3ce4(){const _0x37d725=['SCOPE','YOURTEAMID','manifestSwiftTemplate','release-testing','<string>','USE_MAIN_SCENE','12986aNySoU','3346172YiyFYu','getMIME','\x22automatic\x22','join','modify','PROJECT_DIRECTORY','AppID','updateBuildProperty','102Kpqhfo','1.0','pbxXCConfigurationList','./manifestSwiftTemplate','buildSettings','length','defaultSize','version','teamId','includes','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','ExportOptions.plist','4311VhVKcn','name','PWAProtocol(protocolValue:\x20\x22','scope','4140285UEkRuk','CURRENT_PROJECT_VERSION','Description','updateDeeplink','writeAsync','value','pbxXCBuildConfigurationSection','icon.','display','mainScene','BACK_APPICON_DIRECTORY','12902940cFLTrg','updateVersion','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>','stringify','buildType','url','modifySwift','../resource/imageHelper','log','DEVELOPMENT_TEAM','276437OSqTqe','replace','1280','icon','../resource','default','ImageHelper','PROJECT_BUILD_DIRECTORY','protocol','BUILDTYPE','./web-spatial/libs/webView/manifest.swift','minimal-ui','push','\x22),','bindIcon','SceneWidth','buildConfigurations','defineProperty','Contents.json','loadJsonFromDisk','SceneResizability','filename','__esModule','fixProjectFunction','MIDDLE_APPICON_DIRECTORY','pbxTargetByName','existsSync','DEEPLINK','protocol_handlers','project','PBXGroup','xcode','updateExportOptions','START_URL','\x22,\x20url:\x20\x22','bindManifestInfo','false','SceneHeight','images','height','1198164YYUGCX','objects','./web-spatial/Info.plist','updateTeamId','67mJYRHb','object','test','writeFileSync','debugging','image/','2728qMvwRE','writeSync','updateProductName'];_0x3ce4=function(){return _0x37d725;};return _0x3ce4();}exports[_0x2759ed(0x15f)]=XcodeProject;
|
|
1
|
+
'use strict';const _0x57969e=_0x4341;(function(_0x266204,_0x378136){const _0x52e64a=_0x4341,_0x52790b=_0x266204();while(!![]){try{const _0x4a99b9=parseInt(_0x52e64a(0xbd))/0x1+parseInt(_0x52e64a(0xa4))/0x2*(parseInt(_0x52e64a(0xba))/0x3)+-parseInt(_0x52e64a(0xe3))/0x4*(parseInt(_0x52e64a(0xa8))/0x5)+parseInt(_0x52e64a(0xdc))/0x6+-parseInt(_0x52e64a(0xe6))/0x7+parseInt(_0x52e64a(0xd1))/0x8*(-parseInt(_0x52e64a(0xfb))/0x9)+parseInt(_0x52e64a(0x9e))/0xa;if(_0x4a99b9===_0x378136)break;else _0x52790b['push'](_0x52790b['shift']());}catch(_0x2f41ad){_0x52790b['push'](_0x52790b['shift']());}}}(_0x7537,0x772ac));Object[_0x57969e(0xbf)](exports,_0x57969e(0xc0),{'value':!![]});function _0x4341(_0x5991d0,_0xaf89c2){const _0x753757=_0x7537();return _0x4341=function(_0x4341f9,_0x291afc){_0x4341f9=_0x4341f9-0x99;let _0x436b20=_0x753757[_0x4341f9];return _0x436b20;},_0x4341(_0x5991d0,_0xaf89c2);}const fs=require('fs'),resource_1=require(_0x57969e(0xf3)),path_1=require('path'),load_1=require(_0x57969e(0x105)),imageHelper_1=require(_0x57969e(0xe4)),manifestSwiftTemplate_1=require(_0x57969e(0xd9)),xcode=require(_0x57969e(0xe5)),exportOptionsXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>',infoPlistXML=_0x57969e(0xae);let useExportOptionsXML='';function _0x7537(){const _0x282a2f=['app-store-connect','buildSettings','protocol_handlers','getMIME','SceneResizability','Contents.json','replace','1.0','log','join','USE_MAIN_SCENE','../resource','display','false','teamId','enterprise','</string>','PROJECT_BUILD_DIRECTORY','images','46404YgOMWN','updateProductName','default','icon','filename','utf-8','manifestInfo','split','SCOPE','pbxGroupByName','../resource/load','ExportOptions.plist','version','<string>','mainScene','url','CURRENT_PROJECT_VERSION','pbxXCConfigurationList','665640bThwuP','.standalone','BACK_APPICON_DIRECTORY','Description','icon.png','true','2kqDABP','push','START_URL','buildType','616465eJkrqA','PROJECT_DIRECTORY','updateTeamId','DEEPLINK','value','\x22automatic\x22','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a','manifestSwiftTemplate','updateBuildProperty','updateVersion','objects','defaultSize','pbxXCBuildConfigurationSection','ImageHelper','writeSync','project','DEVELOPMENT_TEAM','existsSync','813606OjufZH','release-testing','json','673999jbTafs','buildConfigurationList','defineProperty','__esModule','height','modify','updateDeeplink','includes','length','writeFileSync','bindManifestInfo','scope','name','./web-spatial/Info.plist','writeAsync','./web-spatial/libs/webView/manifest.swift','test','\x22,\x20url:\x20\x22','bindIcon','AppName','320nVPYEm','object','fixProjectFunction','YOURTEAMID','parseSync','BUILDTYPE','createImg','loadJsonFromDisk','./manifestSwiftTemplate','debugging','MIDDLE_APPICON_DIRECTORY','5369520syApDE','start_url','AppID','updateExportOptions','buildConfigurations','stringify','description','28NfwzES','../resource/imageHelper','xcode','2445002GVZMPg','SceneWidth'];_0x7537=function(){return _0x282a2f;};return _0x7537();}class XcodeProject{static async[_0x57969e(0xc2)](_0x1c934d,_0x18263f,_0x5cb32c=![]){const _0x5dbb8a=_0x57969e;let _0x364f06=xcode[_0x5dbb8a(0xb7)](_0x1c934d);this[_0x5dbb8a(0xd3)](_0x364f06),_0x364f06[_0x5dbb8a(0xd5)]();let _0x545b42=_0x18263f[_0x5dbb8a(0xa7)];const _0x4c12c3=[_0x5dbb8a(0xbb),_0x5dbb8a(0xe8),_0x5dbb8a(0xda),_0x5dbb8a(0xf7)];useExportOptionsXML=exportOptionsXML[_0x5dbb8a(0xee)](_0x5dbb8a(0xd6),_0x4c12c3['includes'](_0x545b42)?_0x545b42:_0x5dbb8a(0xbb));_0x18263f['teamId']&&this[_0x5dbb8a(0xaa)](_0x364f06,_0x18263f[_0x5dbb8a(0xf6)]);this['updateExportOptions']();if(_0x18263f[_0x5dbb8a(0xfe)])await this[_0x5dbb8a(0xcf)](_0x18263f['icon']);this[_0x5dbb8a(0xc7)](_0x364f06,_0x18263f[_0x5dbb8a(0x101)][_0x5dbb8a(0xbc)],_0x5cb32c);_0x18263f['version']?this['updateVersion'](_0x364f06,_0x18263f[_0x5dbb8a(0x107)]):this[_0x5dbb8a(0xb1)](_0x364f06,_0x5dbb8a(0xef));try{fs['writeFileSync'](_0x1c934d,_0x364f06[_0x5dbb8a(0xb6)]());}catch(_0x49a61c){console[_0x5dbb8a(0xf0)](_0x49a61c);}}static[_0x57969e(0xd3)](_0xf7ebaf){const _0x1da953=_0x57969e;_0xf7ebaf[_0x1da953(0x104)]=function(_0x454bc3){const _0x5ae12c=_0x1da953;var _0x46c2e0=this['hash'][_0x5ae12c(0xb7)][_0x5ae12c(0xb2)]['PBXGroup'],_0x4dfd88,_0x3b01fe;for(_0x4dfd88 in _0x46c2e0){if(!/_comment$/[_0x5ae12c(0xcd)](_0x4dfd88))continue;if(_0x46c2e0[_0x4dfd88]==_0x454bc3)return _0x3b01fe=_0x4dfd88[_0x5ae12c(0x102)](/_comment$/)[0x0],_0x46c2e0[_0x3b01fe];}return![];},_0xf7ebaf[_0x1da953(0xb0)]=function(_0x5df5dd,_0x31805e,_0x224c06,_0xf0b1c1){const _0x1e526e=_0x1da953;let _0x4ac25b=[];const _0x8a68d7=/_comment$/;if(_0xf0b1c1){const _0x21c62b=this['pbxTargetByName'](_0xf0b1c1),_0x55d79a=_0x21c62b&&_0x21c62b[_0x1e526e(0xbe)],_0x1bd213=this[_0x1e526e(0x9d)]();for(const _0x3dee16 in _0x1bd213){if(!_0x8a68d7['test'](_0x3dee16)&&_0x55d79a===_0x3dee16){const _0x59515c=_0x1bd213[_0x3dee16][_0x1e526e(0xe0)];for(const _0x47a854 of _0x59515c){_0x4ac25b[_0x1e526e(0xa5)](_0x47a854[_0x1e526e(0xac)]);}break;}}}var _0x30b9db=this[_0x1e526e(0xb4)]();for(var _0x5c17e7 in _0x30b9db){if(!_0x8a68d7['test'](_0x5c17e7)){if(_0xf0b1c1&&!_0x4ac25b[_0x1e526e(0xc4)](_0x5c17e7))continue;var _0x5d758b=_0x30b9db[_0x5c17e7];(_0x224c06&&_0x5d758b[_0x1e526e(0xc9)]===_0x224c06||!_0x224c06)&&_0x5d758b[_0x1e526e(0xe9)][_0x5df5dd]&&(_0x5d758b['buildSettings'][_0x5df5dd]=_0x31805e);}}};}static async[_0x57969e(0xcf)](_0x55d63c){const _0x2e21a0=_0x57969e;if(_0x55d63c){const _0x25acec=(0x0,path_1[_0x2e21a0(0xf1)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x2e21a0(0xa0)]),_0x37d68c=(0x0,path_1[_0x2e21a0(0xf1)])(_0x25acec,'Contents.json'),_0x40c1b0='icon.'+_0x55d63c[_0x2e21a0(0xeb)]()[_0x2e21a0(0xee)]('image/',''),_0x4efb68=(0x0,path_1[_0x2e21a0(0xf1)])(_0x25acec,_0x40c1b0);let _0x1e6581=await(0x0,load_1['loadJsonFromDisk'])(_0x37d68c);_0x1e6581[_0x2e21a0(0xfa)][0x0][_0x2e21a0(0xff)]=_0x40c1b0,await _0x55d63c[_0x2e21a0(0xcb)](_0x4efb68),await fs[_0x2e21a0(0xc6)](_0x37d68c,JSON['stringify'](_0x1e6581));const _0x5111c9=(0x0,path_1[_0x2e21a0(0xf1)])(resource_1[_0x2e21a0(0xa9)],resource_1[_0x2e21a0(0xdb)]),_0x3b42ef=(0x0,path_1[_0x2e21a0(0xf1)])(_0x5111c9,_0x2e21a0(0xed)),_0x1fa973=_0x2e21a0(0xa2),_0x388f68=(0x0,path_1[_0x2e21a0(0xf1)])(_0x5111c9,_0x1fa973);let _0xca75e8=await(0x0,load_1[_0x2e21a0(0xd8)])(_0x3b42ef),_0x177a23=imageHelper_1[_0x2e21a0(0xb5)][_0x2e21a0(0xd7)](0x200);_0xca75e8['images'][0x0][_0x2e21a0(0xff)]=_0x1fa973,await _0x177a23[_0x2e21a0(0xcb)](_0x388f68),await fs[_0x2e21a0(0xc6)](_0x3b42ef,JSON[_0x2e21a0(0xe1)](_0xca75e8));}}static[_0x57969e(0xaa)](_0x5673c8,_0x2c4fa1){const _0x19d28f=_0x57969e;_0x5673c8[_0x19d28f(0xb0)](_0x19d28f(0xb8),_0x2c4fa1),useExportOptionsXML=useExportOptionsXML[_0x19d28f(0xee)](_0x19d28f(0xd4),_0x2c4fa1);}static[_0x57969e(0xdf)](){const _0x329978=_0x57969e;!fs[_0x329978(0xb9)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs['mkdirSync'](resource_1[_0x329978(0xf9)],{'recursive':!![]}),fs[_0x329978(0xc6)]((0x0,path_1[_0x329978(0xf1)])(resource_1[_0x329978(0xf9)],_0x329978(0x106)),useExportOptionsXML);}static['bindManifestInfo'](_0x14be75,_0xdd75d5,_0x4c71cb=![]){const _0x3dee34=_0x57969e;var _0x516675;_0x14be75[_0x3dee34(0xfc)](_0xdd75d5[_0x3dee34(0xc9)]),_0xdd75d5['id']&&!_0x4c71cb&&_0x14be75[_0x3dee34(0xb0)]('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0xdd75d5['id']+'\x22'),this[_0x3dee34(0xc3)]((_0x516675=_0xdd75d5[_0x3dee34(0xea)])!==null&&_0x516675!==void 0x0?_0x516675:[]),this['modifySwift'](_0xdd75d5);}static[_0x57969e(0xb1)](_0x3ee2f8,_0x51585d){const _0x5838fd=_0x57969e;_0x3ee2f8[_0x5838fd(0xb0)](_0x5838fd(0x9c),_0x51585d);}static[_0x57969e(0xc3)](_0x3313ff){const _0x6c9532=_0x57969e;let _0x3e3677=(0x0,path_1[_0x6c9532(0xf1)])(resource_1[_0x6c9532(0xa9)],_0x6c9532(0xca)),_0x445157='';for(let _0x607ede=0x0;_0x607ede<_0x3313ff['length'];_0x607ede++){_0x445157+=_0x6c9532(0x99)+_0x3313ff[_0x607ede]['protocol']+_0x6c9532(0xf8);}const _0x2c5250=infoPlistXML[_0x6c9532(0xee)](_0x6c9532(0xab),_0x445157);fs['writeFileSync'](_0x3e3677,_0x2c5250);}static['modifySwift'](_0x4e1efb){const _0x2ca7f4=_0x57969e,_0x546f8d=(0x0,path_1[_0x2ca7f4(0xf1)])(resource_1[_0x2ca7f4(0xa9)],_0x2ca7f4(0xcc));let _0x27b874=manifestSwiftTemplate_1[_0x2ca7f4(0xaf)];_0x27b874=_0x27b874['replace'](_0x2ca7f4(0xa6),_0x4e1efb[_0x2ca7f4(0xdd)]),_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0x103),_0x4e1efb[_0x2ca7f4(0xc8)]),_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0xd0),_0x4e1efb[_0x2ca7f4(0xc9)]),_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0xa1),_0x4e1efb[_0x2ca7f4(0xe2)]),_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0xde),_0x4e1efb['id']),_0x27b874=_0x27b874[_0x2ca7f4(0xee)]('.minimal',_0x4e1efb[_0x2ca7f4(0xf4)]=='minimal-ui'?'.minimal':_0x2ca7f4(0x9f));if(_0x4e1efb[_0x2ca7f4(0xea)]){let _0x50382d='';for(let _0x3a6a16=0x0;_0x3a6a16<_0x4e1efb[_0x2ca7f4(0xea)][_0x2ca7f4(0xc5)];_0x3a6a16++){_0x50382d+='PWAProtocol(protocolValue:\x20\x22'+_0x4e1efb[_0x2ca7f4(0xea)][_0x3a6a16]['protocol']+_0x2ca7f4(0xce)+_0x4e1efb['protocol_handlers'][_0x3a6a16][_0x2ca7f4(0x9b)]+'\x22),';}_0x27b874=_0x27b874[_0x2ca7f4(0xee)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x50382d);}typeof _0x4e1efb['mainScene']===_0x2ca7f4(0xd2)?(_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0xe7),_0x4e1efb[_0x2ca7f4(0x9a)][_0x2ca7f4(0xb3)]['width']),_0x27b874=_0x27b874[_0x2ca7f4(0xee)]('SceneHeight',_0x4e1efb[_0x2ca7f4(0x9a)][_0x2ca7f4(0xb3)][_0x2ca7f4(0xc1)]),_0x27b874=_0x27b874['replace'](_0x2ca7f4(0xec),'\x22'+_0x4e1efb[_0x2ca7f4(0x9a)]['resizability']+'\x22'),_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0xf2),_0x2ca7f4(0xa3))):(_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0xe7),'1280'),_0x27b874=_0x27b874[_0x2ca7f4(0xee)]('SceneHeight','1280'),_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0xec),_0x2ca7f4(0xad)),_0x27b874=_0x27b874[_0x2ca7f4(0xee)](_0x2ca7f4(0xf2),_0x2ca7f4(0xf5))),fs['writeFileSync'](_0x546f8d,_0x27b874,_0x2ca7f4(0x100));}}exports[_0x57969e(0xfd)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x923ef4=_0x2e08;(function(_0x46a852,_0x1bf68d){const _0x11b9cd=_0x2e08,_0xe0b369=_0x46a852();while(!![]){try{const _0x2e467c=parseInt(_0x11b9cd(0x115))/0x1*(parseInt(_0x11b9cd(0x12d))/0x2)+parseInt(_0x11b9cd(0x144))/0x3+-parseInt(_0x11b9cd(0x143))/0x4*(parseInt(_0x11b9cd(0x154))/0x5)+-parseInt(_0x11b9cd(0x156))/0x6+-parseInt(_0x11b9cd(0x12f))/0x7*(parseInt(_0x11b9cd(0x151))/0x8)+-parseInt(_0x11b9cd(0x164))/0x9*(-parseInt(_0x11b9cd(0x14b))/0xa)+parseInt(_0x11b9cd(0x12b))/0xb*(parseInt(_0x11b9cd(0x149))/0xc);if(_0x2e467c===_0x1bf68d)break;else _0xe0b369['push'](_0xe0b369['shift']());}catch(_0x45a07c){_0xe0b369['push'](_0xe0b369['shift']());}}}(_0x2eac,0xb630a));Object[_0x923ef4(0x15e)](exports,_0x923ef4(0x11d),{'value':!![]});const child_process_1=require(_0x923ef4(0x157)),resource_1=require('../resource'),path_1=require(_0x923ef4(0x11c)),fs=require('fs'),xcodebuild_1=require('./xcodebuild');class Xcrun{static async[_0x923ef4(0x15d)](_0x11a15e,_0x10239b,_0x35f893,_0x427310){const _0x5cc53c=_0x923ef4,_0x5d5937=new XcrunCMD()[_0x5cc53c(0x13a)]();_0x5d5937['validate'](_0x11a15e);_0x427310?_0x5d5937[_0x5cc53c(0x125)](_0x10239b,_0x35f893):_0x5d5937[_0x5cc53c(0x11b)](_0x10239b,_0x35f893);_0x5d5937[_0x5cc53c(0x155)]('visionos');const _0x4d210d=(0x0,child_process_1[_0x5cc53c(0x161)])(_0x5d5937[_0x5cc53c(0x118)]);return _0x4d210d['toString']();}static async['uploadPackage'](_0x449e17,_0x92daf8,_0x5c20f5,_0x2b8c55,_0x49aeef){const _0x1ff9d2=_0x923ef4,_0x202297=new XcrunCMD()[_0x1ff9d2(0x13a)]();_0x202297[_0x1ff9d2(0x153)](_0x449e17);_0x49aeef?_0x202297[_0x1ff9d2(0x125)](_0x92daf8,_0x5c20f5):_0x202297[_0x1ff9d2(0x11b)](_0x92daf8,_0x5c20f5);_0x202297[_0x1ff9d2(0x155)]('visionos'),_0x202297[_0x1ff9d2(0x146)](_0x2b8c55);const _0x219a42=(0x0,child_process_1[_0x1ff9d2(0x161)])(_0x202297[_0x1ff9d2(0x118)]);return _0x219a42['toString']();}static async[_0x923ef4(0x152)](_0x49f231,_0x5c28fe,_0x1e4349,_0x112e25){const _0x27628a=_0x923ef4,_0x34e193=new XcrunCMD()[_0x27628a(0x13a)]();_0x34e193[_0x27628a(0x152)](_0x49f231);_0x112e25?_0x34e193[_0x27628a(0x125)](_0x5c28fe,_0x1e4349):_0x34e193[_0x27628a(0x11b)](_0x5c28fe,_0x1e4349);_0x34e193['platform'](_0x27628a(0x167));const _0x71f4d7=(0x0,child_process_1[_0x27628a(0x161)])(_0x34e193[_0x27628a(0x118)]);return _0x71f4d7['toString']();}static async[_0x923ef4(0x147)](_0x5387b7){const _0x1fdcf7=_0x923ef4;let _0x40d3fb=new XcrunCMD()[_0x1fdcf7(0x163)]();_0x40d3fb[_0x1fdcf7(0x113)](_0x1fdcf7(0x116));const _0x5f5515=(0x0,child_process_1[_0x1fdcf7(0x161)])(_0x40d3fb[_0x1fdcf7(0x118)]),_0x478c06=this['parseListDevices'](_0x5f5515[_0x1fdcf7(0x140)]());if(_0x478c06[_0x1fdcf7(0x131)]===0x0)throw new Error(_0x1fdcf7(0x120));let _0x3745cd=_0x478c06[0x0];for(let _0x32d1f6=0x0;_0x32d1f6<_0x478c06[_0x1fdcf7(0x131)];_0x32d1f6++){if(_0x478c06[_0x32d1f6][_0x1fdcf7(0x11e)]==='Booted'){_0x3745cd=_0x478c06[_0x32d1f6];break;}}console[_0x1fdcf7(0x128)](_0x1fdcf7(0x158)+_0x3745cd['deviceId']);const _0x287446=resource_1[_0x1fdcf7(0x142)]+_0x1fdcf7(0x119),_0x3cd54c=resource_1[_0x1fdcf7(0x160)]+_0x1fdcf7(0x129);!fs[_0x1fdcf7(0x150)](resource_1[_0x1fdcf7(0x160)])&&fs[_0x1fdcf7(0x133)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]});!fs[_0x1fdcf7(0x150)](_0x3cd54c)&&fs[_0x1fdcf7(0x133)](_0x3cd54c,{'recursive':!![]});const _0x46a1cd=new xcodebuild_1[(_0x1fdcf7(0x134))]()[_0x1fdcf7(0x14f)](_0x287446)[_0x1fdcf7(0x118)]+(_0x1fdcf7(0x117)+_0x3745cd['deviceId']+_0x1fdcf7(0x13b)+_0x3cd54c);console['log'](_0x1fdcf7(0x162)),(0x0,child_process_1['execSync'])(_0x46a1cd),console[_0x1fdcf7(0x128)]('build\x20success');_0x3745cd[_0x1fdcf7(0x11e)]===_0x1fdcf7(0x13c)&&(_0x40d3fb=new XcrunCMD()['simctl'](),_0x40d3fb['boot'](_0x3745cd[_0x1fdcf7(0x166)]),(0x0,child_process_1['execSync'])(_0x40d3fb[_0x1fdcf7(0x118)]));(0x0,child_process_1[_0x1fdcf7(0x161)])(_0x1fdcf7(0x126)),console[_0x1fdcf7(0x128)]('installing\x20app');const _0x3326cc=(0x0,path_1[_0x1fdcf7(0x122)])(_0x3cd54c,'Build/Products/Debug-xrsimulator/'+_0x5387b7[_0x1fdcf7(0x13e)]+_0x1fdcf7(0x132));_0x40d3fb=new XcrunCMD()[_0x1fdcf7(0x163)](),_0x40d3fb[_0x1fdcf7(0x136)](_0x3745cd[_0x1fdcf7(0x166)],_0x3326cc),(0x0,child_process_1[_0x1fdcf7(0x161)])(_0x40d3fb['line']),console[_0x1fdcf7(0x128)](_0x1fdcf7(0x130)),console[_0x1fdcf7(0x128)](_0x1fdcf7(0x13f)),_0x40d3fb=new XcrunCMD()[_0x1fdcf7(0x163)](),_0x40d3fb[_0x1fdcf7(0x15a)](_0x3745cd['deviceId'],_0x5387b7['id']),(0x0,child_process_1[_0x1fdcf7(0x161)])(_0x40d3fb[_0x1fdcf7(0x118)]);}static[_0x923ef4(0x13d)](_0x446398){const _0x5abcbf=_0x923ef4;let _0x3feeb2=_0x446398[_0x5abcbf(0x12a)]('\x0a'),_0x41604c=[],_0x5cd46e=-0x1;for(let _0xb0e53c=0x0;_0xb0e53c<_0x3feeb2[_0x5abcbf(0x131)];_0xb0e53c++){if(_0x3feeb2[_0xb0e53c]['includes'](_0x5abcbf(0x15c)))_0x5cd46e=_0xb0e53c;else{if(_0x5cd46e>0x0){if(_0x3feeb2[_0xb0e53c][_0x5abcbf(0x11a)](_0x5abcbf(0x15b)))break;if(_0x3feeb2[_0xb0e53c][_0x5abcbf(0x131)]>0x0){const _0x3fc430=_0x3feeb2[_0xb0e53c][_0x5abcbf(0x12a)]('('),_0x57373c={'name':_0x3fc430[0x0][_0x5abcbf(0x15f)](),'deviceId':_0x3fc430[0x1][_0x5abcbf(0x12a)](')')[0x0][_0x5abcbf(0x15f)](),'state':_0x3fc430[0x2][_0x5abcbf(0x12a)](')')[0x0][_0x5abcbf(0x15f)]()};_0x41604c[_0x5abcbf(0x124)](_0x57373c);}}}}return _0x41604c;}}function _0x2e08(_0x808768,_0x1fd485){const _0x2eac8e=_0x2eac();return _0x2e08=function(_0x2e08d2,_0x485913){_0x2e08d2=_0x2e08d2-0x112;let _0x57085f=_0x2eac8e[_0x2e08d2];return _0x57085f;},_0x2e08(_0x808768,_0x1fd485);}exports[_0x923ef4(0x123)]=Xcrun;function _0x2eac(){const _0x299367=['install\x20success','length','.app','mkdirSync','XcodebuildCMD','list','install','\x20launch\x20\x22','\x20list\x20devices\x20\x22','\x20shutdown\x20booted','altool','\x27\x20-derivedDataPath\x20','Shutdown','parseListDevices','name','launch\x20app','toString','\x20-u\x20','PROJECT_DIRECTORY','9732VSyoju','1764189dqSwqD','\x20list','appleId','runWithSimulator','\x20--apiIssuer\x20','12lmCxSn','xcrun','10817160pYNqsw','\x20--apple-id\x20','\x20altool','\x20-t\x20','project','existsSync','56TDHXFJ','uploadApp','uploadPackage','1505hbIAIr','platform','231120bckxLL','child_process','find\x20simulator:\x20','\x20simctl','launch','--\x20','--\x20visionOS','validate','defineProperty','trim','PROJECT_BUILD_DIRECTORY','execSync','start\x20building','simctl','9yAbDiO','boot','deviceId','visionos','\x20-p\x20','\x22\x20\x22','\x20--verbose','listDevices','\x20--validate-app\x20-f\x20','704MeHHer','Apple\x20Vision\x20Pro','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','line','/web-spatial.xcodeproj','includes','authApi','path','__esModule','state','verbose','no\x20visionOS\x20simulator\x20found','\x20--upload-package\x20','join','default','push','authAccount','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','\x20--apiKey\x20','log','/test','split','107261qRAizy','version','2146Rtduuf','\x20--bundle-version\x20','917819cwTocs'];_0x2eac=function(){return _0x299367;};return _0x2eac();}class XcrunCMD{constructor(){const _0x3f1327=_0x923ef4;this[_0x3f1327(0x118)]=_0x3f1327(0x14a);}[_0x923ef4(0x13a)](){const _0x46a1a3=_0x923ef4;return this[_0x46a1a3(0x118)]+=_0x46a1a3(0x14d),this;}['simctl'](){const _0x2e4e01=_0x923ef4;return this['line']+=_0x2e4e01(0x159),this;}[_0x923ef4(0x135)](){const _0x11624e=_0x923ef4;return this[_0x11624e(0x118)]+=_0x11624e(0x145),this;}[_0x923ef4(0x113)](_0x2b1014){const _0x3421fd=_0x923ef4;return this['line']+=_0x3421fd(0x138)+_0x2b1014+'\x22',this;}[_0x923ef4(0x15d)](_0x31ca36){const _0x3ec606=_0x923ef4;return this[_0x3ec606(0x118)]+=_0x3ec606(0x114)+_0x31ca36,this;}[_0x923ef4(0x152)](_0x2b169a){const _0x39e438=_0x923ef4;return this[_0x39e438(0x118)]+='\x20--upload-app\x20-f\x20'+_0x2b169a,this;}[_0x923ef4(0x153)](_0x509323){const _0x19f654=_0x923ef4;return this[_0x19f654(0x118)]+=_0x19f654(0x121)+_0x509323,this;}[_0x923ef4(0x125)](_0x4c5945,_0x44416d){const _0x8cf8f0=_0x923ef4;return this[_0x8cf8f0(0x118)]+=_0x8cf8f0(0x141)+_0x4c5945+_0x8cf8f0(0x168)+_0x44416d,this;}[_0x923ef4(0x11b)](_0x13dd9b,_0x485cf3){const _0x5b202c=_0x923ef4;return this[_0x5b202c(0x118)]+=_0x5b202c(0x127)+_0x13dd9b+_0x5b202c(0x148)+_0x485cf3,this;}['appleId'](_0x29a443){const _0x1161d0=_0x923ef4;return this[_0x1161d0(0x118)]+=_0x1161d0(0x14c)+_0x29a443,this;}['platform'](_0x2c7fa5){const _0x16e785=_0x923ef4;return this[_0x16e785(0x118)]+=_0x16e785(0x14e)+_0x2c7fa5,this;}[_0x923ef4(0x12c)](_0xf51629){const _0x1b0ca9=_0x923ef4;return this[_0x1b0ca9(0x118)]+=_0x1b0ca9(0x12e)+_0xf51629,this;}[_0x923ef4(0x11f)](){const _0x13e37a=_0x923ef4;return this['line']+=_0x13e37a(0x112),this;}['shutdown'](){const _0x495c97=_0x923ef4;return this[_0x495c97(0x118)]+=_0x495c97(0x139),this;}[_0x923ef4(0x165)](_0x2b0ed4){const _0x58c180=_0x923ef4;return this[_0x58c180(0x118)]+='\x20boot\x20\x22'+_0x2b0ed4+'\x22',this;}['install'](_0x1d354d,_0x173999){const _0x1daff8=_0x923ef4;return this[_0x1daff8(0x118)]+='\x20install\x20\x22'+_0x1d354d+_0x1daff8(0x169)+_0x173999+'\x22',this;}[_0x923ef4(0x15a)](_0x3b3729,_0x4552ad){const _0x34d8a6=_0x923ef4;return this['line']+=_0x34d8a6(0x137)+_0x3b3729+_0x34d8a6(0x169)+_0x4552ad+'\x22',this;}}
|