@webspatial/builder 0.1.14 → 0.1.16
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/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/launch.js +1 -1
- package/dist/lib/cmds/shutdown.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.js +1 -1
- 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/types.d.ts +2 -2
- package/dist/lib/types.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/history.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.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2e0811=_0x1318;(function(_0x45284d,_0x4c36bc){const _0xd08a3c=_0x1318,_0x48e74e=_0x45284d();while(!![]){try{const _0x5665cd=parseInt(_0xd08a3c(0x185))/0x1+parseInt(_0xd08a3c(0x180))/0x2+-parseInt(_0xd08a3c(0x169))/0x3+-parseInt(_0xd08a3c(0x19b))/0x4*(parseInt(_0xd08a3c(0x15c))/0x5)+parseInt(_0xd08a3c(0x181))/0x6+-parseInt(_0xd08a3c(0x174))/0x7*(parseInt(_0xd08a3c(0x18f))/0x8)+parseInt(_0xd08a3c(0x18c))/0x9;if(_0x5665cd===_0x4c36bc)break;else _0x48e74e['push'](_0x48e74e['shift']());}catch(_0x31bc29){_0x48e74e['push'](_0x48e74e['shift']());}}}(_0x3040,0x8a27d));function _0x1318(_0x1c8c22,_0x58440d){const _0x30402a=_0x3040();return _0x1318=function(_0x13185e,_0x12cb90){_0x13185e=_0x13185e-0x158;let _0x10332=_0x30402a[_0x13185e];return _0x10332;},_0x1318(_0x1c8c22,_0x58440d);}function _0x3040(){const _0x48a8ce=['exports','requiredOption','xr\x20platform','14TOMsfT','export\x20path','parseAsync','Launch\x20WebSpatial\x20App','run\x20without\x20build','setDownloadFile','run','setFetch','--manifest\x20<manifest>','Current\x20Node.js\x20version\x20is\x20','store','bundle\x20id','987262PJfcmv','3120540ZLDoIa','app\x20version','./lib/cmds/shutdown','./lib/utils/FetchUtils-1','988283CKwLqQ','./lib/cmds/launch','shutdown','build','By\x20compiling\x20or\x20running\x20directly\x20on\x20the\x20simulator\x20the\x20WebSpatial\x20App','--project\x20<project>','./lib/cmds/version','6722478tLmExi','manifest\x20url','--tryWithoutBuild\x20<tryWithoutBuild>','2147296wUMggb','--bundle-id\x20<bundleId>','Shutdown\x20Simulator','node','version','publish','--base\x20<base>','action','fetchUtils','Build\x20WebSpatial\x20App','--version\x20<version>','setDecompressResponseBuffer','70340VAiKOF','option','command','./lib/utils/fetch','base\x20path','--manifest-url\x20<manifestUrl>','manifest\x20path','description','webspatial-builder','project\x20path','235Mdppqf','semver','--teamId\x20<teamId>','launch','team\x20id','configureHelp','--p\x20<password>','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','username','--buildType\x20<buildType>','major','defineProperty','WebSpatial\x20Builder\x20is\x20a\x20client-side\x20CLI\x20tool\x20used\x20to\x20generate\x20cross\x20platform\x20XRApp\x20projects.','2459226cjxGvn','-v,\x20--version','--platform\x20<platform>','log','--u\x20<username>','decompressResponseBuffer','--export\x20<export>','downloadFile'];_0x3040=function(){return _0x48a8ce;};return _0x3040();}Object[_0x2e0811(0x167)](exports,'__esModule',{'value':!![]});const commander_1=require('commander'),semver_1=require(_0x2e0811(0x15d)),FetchUtils_1_1=require(_0x2e0811(0x184)),build_1=require('./lib/cmds/build'),version_1=require(_0x2e0811(0x18b)),fetch_1=require(_0x2e0811(0x19e)),launch_1=require(_0x2e0811(0x186)),shutdown_1=require(_0x2e0811(0x183));module[_0x2e0811(0x171)]=async()=>{const _0x26dcba=_0x2e0811;if((0x0,semver_1[_0x26dcba(0x166)])(process['versions'][_0x26dcba(0x192)])<0xe)throw new Error(_0x26dcba(0x17d)+process['versions']['node']+'.'+_0x26dcba(0x163));const _0x3c9a26=new commander_1['Command']();FetchUtils_1_1[_0x26dcba(0x197)][_0x26dcba(0x17b)](fetch_1['fetch']),FetchUtils_1_1[_0x26dcba(0x197)][_0x26dcba(0x179)](fetch_1[_0x26dcba(0x170)]),FetchUtils_1_1['fetchUtils'][_0x26dcba(0x19a)](fetch_1[_0x26dcba(0x16e)]),await setupCommands(_0x3c9a26),await _0x3c9a26[_0x26dcba(0x176)](process['argv']);};async function setupCommands(_0x256a4f){const _0x5590e0=_0x2e0811,_0x2418b0=await(0x0,version_1['getVersion'])();_0x256a4f['name'](_0x5590e0(0x15a))[_0x5590e0(0x159)](_0x5590e0(0x168))[_0x5590e0(0x193)](_0x2418b0,_0x5590e0(0x16a))[_0x5590e0(0x161)]({'showGlobalOptions':!![]}),_0x256a4f[_0x5590e0(0x19d)]('run')[_0x5590e0(0x159)](_0x5590e0(0x189))[_0x5590e0(0x19c)]('--manifest\x20<manifest>',_0x5590e0(0x158))[_0x5590e0(0x19c)](_0x5590e0(0x18a),_0x5590e0(0x15b))['option'](_0x5590e0(0x1a0),'manifest\x20url')[_0x5590e0(0x19c)](_0x5590e0(0x16b),'xr\x20platform')['option'](_0x5590e0(0x195),_0x5590e0(0x19f))[_0x5590e0(0x19c)](_0x5590e0(0x190),_0x5590e0(0x17f))[_0x5590e0(0x19c)](_0x5590e0(0x18e),_0x5590e0(0x178))['action'](async _0x4e8db0=>{const _0x3f5365=_0x5590e0;await(0x0,build_1[_0x3f5365(0x17a)])(_0x4e8db0);}),_0x256a4f[_0x5590e0(0x19d)](_0x5590e0(0x188))[_0x5590e0(0x159)](_0x5590e0(0x198))['option'](_0x5590e0(0x17c),'manifest\x20path')['option'](_0x5590e0(0x18a),_0x5590e0(0x15b))[_0x5590e0(0x19c)]('--manifest-url\x20<manifest-url>','manifest\x20url')['option']('--platform\x20<platform>','xr\x20platform')[_0x5590e0(0x19c)]('--version\x20<version>','app\x20version')[_0x5590e0(0x19c)]('--buildType\x20<buildType>','app\x20build\x20type')[_0x5590e0(0x19c)](_0x5590e0(0x16f),_0x5590e0(0x175))[_0x5590e0(0x19c)](_0x5590e0(0x190),_0x5590e0(0x17f))[_0x5590e0(0x172)]('--base\x20<base>',_0x5590e0(0x19f))[_0x5590e0(0x172)](_0x5590e0(0x15e),_0x5590e0(0x160))[_0x5590e0(0x196)](async _0xdc8f4b=>{const _0x1fc165=_0x5590e0;console[_0x1fc165(0x16c)](_0xdc8f4b),await(0x0,build_1[_0x1fc165(0x188)])(_0xdc8f4b);}),_0x256a4f[_0x5590e0(0x19d)](_0x5590e0(0x194))[_0x5590e0(0x159)]('Publish\x20WebSpatial\x20App')[_0x5590e0(0x19c)](_0x5590e0(0x17c),_0x5590e0(0x158))[_0x5590e0(0x19c)]('--project\x20<project>',_0x5590e0(0x15b))['option'](_0x5590e0(0x1a0),_0x5590e0(0x18d))[_0x5590e0(0x19c)](_0x5590e0(0x16b),_0x5590e0(0x173))[_0x5590e0(0x19c)](_0x5590e0(0x165),'app\x20build\x20type')[_0x5590e0(0x19c)]('--export\x20<export>',_0x5590e0(0x175))['option'](_0x5590e0(0x190),_0x5590e0(0x17f))[_0x5590e0(0x172)]('--base\x20<base>','base\x20path')[_0x5590e0(0x172)](_0x5590e0(0x15e),_0x5590e0(0x160))[_0x5590e0(0x172)](_0x5590e0(0x199),_0x5590e0(0x182))[_0x5590e0(0x172)](_0x5590e0(0x16d),_0x5590e0(0x164))[_0x5590e0(0x172)](_0x5590e0(0x162),'password')[_0x5590e0(0x196)](async _0x56b6d9=>{const _0x10e843=_0x5590e0;console[_0x10e843(0x16c)](_0x56b6d9),await(0x0,build_1[_0x10e843(0x17e)])(_0x56b6d9);}),_0x256a4f[_0x5590e0(0x19d)](_0x5590e0(0x15f))[_0x5590e0(0x159)](_0x5590e0(0x177))[_0x5590e0(0x19c)](_0x5590e0(0x190),'bundle\x20id')[_0x5590e0(0x196)](async _0x4f1973=>{const _0x172443=_0x5590e0;console[_0x172443(0x16c)](_0x4f1973),await(0x0,launch_1[_0x172443(0x15f)])(_0x4f1973);}),_0x256a4f[_0x5590e0(0x19d)]('shutdown')[_0x5590e0(0x159)](_0x5590e0(0x191))[_0x5590e0(0x196)](async _0x33eca7=>{const _0x18e382=_0x5590e0;console[_0x18e382(0x16c)](_0x33eca7),await(0x0,shutdown_1[_0x18e382(0x187)])(_0x33eca7);});}
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x710a(){const _0x121b64=['export','292347lREcmP','fromNet','move\x20web\x20project:\x20ok','app-store-connect','checkBuildParams','228WpIizA','buildType','-------------------\x20parse\x20start\x20-------------------','Same\x20as\x20the\x20previous\x20record','version','project','64kRFCxj','../resource','checkManifest','./check','true','WebSpatialTest','tryWithoutBuild','641pvgfxq','ResourceManager','PWAGenerator','20JWnYEH','6011096uHZDXn','2003215WxPbms','2597157lrECDl','log','name','checkPlatformPath','init','default','moveProjectFrom','stringify','store','20tVDOPZ','-------------------\x20parse\x20end\x20-------------------','parseProject','runWithHistory','dist','../xcode','503406GzyYyP','../utils/history','platform','checkStoreParams','generator','json','build','142752ztIqMJ','defineProperty','upload','XcodeManager','teamId','21MOiiFM'];_0x710a=function(){return _0x121b64;};return _0x710a();}const _0x1105f2=_0x4ae1;(function(_0x156d12,_0x18ce0d){const _0x586e13=_0x4ae1,_0x2a0952=_0x156d12();while(!![]){try{const _0x45aaf7=parseInt(_0x586e13(0x1fb))/0x1*(-parseInt(_0x586e13(0x1d5))/0x2)+parseInt(_0x586e13(0x1e2))/0x3*(parseInt(_0x586e13(0x1f4))/0x4)+parseInt(_0x586e13(0x1cb))/0x5+parseInt(_0x586e13(0x1db))/0x6*(parseInt(_0x586e13(0x1e7))/0x7)+-parseInt(_0x586e13(0x1ca))/0x8+-parseInt(_0x586e13(0x1cc))/0x9*(parseInt(_0x586e13(0x1c9))/0xa)+-parseInt(_0x586e13(0x1e9))/0xb*(-parseInt(_0x586e13(0x1ee))/0xc);if(_0x45aaf7===_0x18ce0d)break;else _0x2a0952['push'](_0x2a0952['shift']());}catch(_0xbc2c36){_0x2a0952['push'](_0x2a0952['shift']());}}}(_0x710a,0x8e81e));Object[_0x1105f2(0x1e3)](exports,'__esModule',{'value':!![]}),exports[_0x1105f2(0x1e1)]=build,exports[_0x1105f2(0x1d4)]=store,exports['run']=run;const pwa_1=require('../pwa'),resource_1=require(_0x1105f2(0x1f5)),xcode_1=require(_0x1105f2(0x1da)),check_1=require(_0x1105f2(0x1f7)),history_1=require(_0x1105f2(0x1dc));async function build(_0x2a6ac1){const _0x19961e=_0x1105f2;var _0xd8419f;console['log']('-------------------\x20parse\x20start\x20-------------------'),resource_1['ResourceManager'][_0x19961e(0x1cf)](_0x2a6ac1['platform']);const _0x20afaf=await doPwa(_0x2a6ac1),_0x1ce705=await doReadyProject((_0xd8419f=_0x2a6ac1[_0x19961e(0x1f3)])!==null&&_0xd8419f!==void 0x0?_0xd8419f:_0x19961e(0x1d9),_0x20afaf);return await doXcode(_0x2a6ac1,_0x1ce705,_0x20afaf),console[_0x19961e(0x1cd)](_0x19961e(0x1d6)),await xcode_1[_0x19961e(0x1e5)][_0x19961e(0x1e1)](_0x2a6ac1[_0x19961e(0x1e8)]),_0x20afaf;}async function store(_0x58fa8b){const _0x57e3bb=_0x1105f2;resource_1[_0x57e3bb(0x1c7)][_0x57e3bb(0x1cf)](_0x58fa8b['platform']),(0x0,check_1[_0x57e3bb(0x1de)])(_0x58fa8b);let _0x109508={'name':_0x57e3bb(0x1f9)};_0x58fa8b[_0x57e3bb(0x1ef)]=_0x57e3bb(0x1ec);if(_0x58fa8b[_0x57e3bb(0x1ce)])_0x109508[_0x57e3bb(0x1ce)]=_0x58fa8b[_0x57e3bb(0x1ce)];else{const _0x52afa7=await build(_0x58fa8b);_0x109508[_0x57e3bb(0x1ce)]=_0x52afa7[_0x57e3bb(0x1e0)][_0x57e3bb(0x1ce)];}await xcode_1[_0x57e3bb(0x1e5)][_0x57e3bb(0x1e4)](_0x58fa8b,_0x109508);}async function run(_0x46630f){const _0x4df749=_0x1105f2;var _0x5d086f;const _0x2eaa81=JSON[_0x4df749(0x1d3)](_0x46630f);history_1['default'][_0x4df749(0x1d0)](_0x2eaa81),console[_0x4df749(0x1cd)](_0x4df749(0x1f0)),resource_1[_0x4df749(0x1c7)][_0x4df749(0x1cf)](_0x46630f[_0x4df749(0x1dd)]);const _0x2912ba=await doPwa(_0x46630f,!![]);history_1[_0x4df749(0x1d1)]['recordManifest'](_0x2912ba[_0x4df749(0x1e0)]);if(_0x2912ba[_0x4df749(0x1ea)]||_0x46630f[_0x4df749(0x1fa)]===_0x4df749(0x1f8)){if(history_1[_0x4df749(0x1d1)][_0x4df749(0x1f6)](_0x2912ba[_0x4df749(0x1e0)])){console['log'](_0x4df749(0x1f1)),await xcode_1[_0x4df749(0x1e5)][_0x4df749(0x1d8)]();return;}}const _0x5725d7=await doReadyProject((_0x5d086f=_0x46630f[_0x4df749(0x1f3)])!==null&&_0x5d086f!==void 0x0?_0x5d086f:_0x4df749(0x1d9),_0x2912ba);await doXcode(_0x46630f,_0x5725d7,_0x2912ba,!![]),console[_0x4df749(0x1cd)](_0x4df749(0x1d6)),await xcode_1['XcodeManager']['runWithSimulator']();}async function doPwa(_0x4a1693,_0x195de2=![]){const _0x23f264=_0x1105f2;return(0x0,check_1[_0x23f264(0x1ed)])(_0x4a1693,_0x195de2),await pwa_1[_0x23f264(0x1c8)][_0x23f264(0x1df)](_0x4a1693,_0x195de2);}function _0x4ae1(_0x1c513e,_0x53b105){const _0x710a11=_0x710a();return _0x4ae1=function(_0x4ae161,_0x3bd37c){_0x4ae161=_0x4ae161-0x1c7;let _0x3f8f69=_0x710a11[_0x4ae161];return _0x3f8f69;},_0x4ae1(_0x1c513e,_0x53b105);}async function doReadyProject(_0x25551f,_0x5491a2){const _0x1d2a48=_0x1105f2;return!_0x5491a2[_0x1d2a48(0x1ea)]&&(await resource_1[_0x1d2a48(0x1c7)][_0x1d2a48(0x1d2)](_0x25551f),console[_0x1d2a48(0x1cd)](_0x1d2a48(0x1eb))),await resource_1[_0x1d2a48(0x1c7)]['generateIcon'](_0x5491a2);}async function doXcode(_0x2e76c7,_0x25ba4d,_0xff5410,_0x113b14=![]){const _0x3acc2d=_0x1105f2;await xcode_1['XcodeManager'][_0x3acc2d(0x1d7)]({'icon':_0x25ba4d,'manifestInfo':_0xff5410,'teamId':_0x2e76c7[_0x3acc2d(0x1e6)],'version':_0x2e76c7[_0x3acc2d(0x1f2)],'buildType':_0x2e76c7['buildType'],'export':_0x2e76c7['export']},_0x113b14);}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x20cd7d=_0x56a4;(function(_0x14b8a6,_0x386307){const _0x3f479a=_0x56a4,_0x27ad85=_0x14b8a6();while(!![]){try{const _0x29f780=parseInt(_0x3f479a(0x8c))/0x1*(-parseInt(_0x3f479a(0xa1))/0x2)+-parseInt(_0x3f479a(0x90))/0x3+parseInt(_0x3f479a(0x9a))/0x4+-parseInt(_0x3f479a(0x97))/0x5*(-parseInt(_0x3f479a(0x92))/0x6)+parseInt(_0x3f479a(0x95))/0x7+-parseInt(_0x3f479a(0x9e))/0x8+parseInt(_0x3f479a(0x91))/0x9;if(_0x29f780===_0x386307)break;else _0x27ad85['push'](_0x27ad85['shift']());}catch(_0x53a95d){_0x27ad85['push'](_0x27ad85['shift']());}}}(_0xfac5,0x91297));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x20cd7d(0x9c)]=checkStoreParams;const validate_1=require('../pwa/validate');function _0x56a4(_0x554463,_0x3a7d9b){const _0xfac501=_0xfac5();return _0x56a4=function(_0x56a4c9,_0x415d94){_0x56a4c9=_0x56a4c9-0x8b;let _0x5e48e3=_0xfac501[_0x56a4c9];return _0x5e48e3;},_0x56a4(_0x554463,_0x3a7d9b);}function _0xfac5(){const _0x4b1848=['--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','2193436mRlHxs','manifest','340PRnhCa','hash','search','2361780dUPKzQ','validateURL','checkStoreParams','split','9288688RKSGax','version','--teamId\x20is\x20required','106188grrHCy','version\x20is\x20required','10vmeobP','manifestUrl','teamId','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','1720383ZkaWbg','7051941ywYEet','103476KLsFNu','base'];_0xfac5=function(){return _0x4b1848;};return _0xfac5();}function checkBuildParams(_0x21ee4d,_0x2b18ec=![]){const _0x408dd3=_0x20cd7d;if(_0x21ee4d[_0x408dd3(0x96)]&&_0x21ee4d[_0x408dd3(0x8d)])throw new Error(_0x408dd3(0x94));if(!_0x21ee4d[_0x408dd3(0x8e)]&&!_0x2b18ec)throw new Error(_0x408dd3(0xa0));if(_0x21ee4d['base']){if((0x0,validate_1[_0x408dd3(0x9b)])(_0x21ee4d[_0x408dd3(0x93)]))try{const _0xed615e=new URL(_0x21ee4d[_0x408dd3(0x93)]);if(_0xed615e[_0x408dd3(0x99)]||_0xed615e[_0x408dd3(0x98)])throw new Error(_0x408dd3(0x8f));}catch(_0x33898b){throw new Error('The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.');}else{const _0x43fb94=/(\?.*|\.\w+|#.*)$/,_0x56d522=_0x21ee4d['base'][_0x408dd3(0x9d)]('/')['pop']()||'';if(_0x43fb94['test'](_0x56d522))throw new Error(_0x408dd3(0x8f));}}}function checkStoreParams(_0x5a1a90){const _0x424d70=_0x20cd7d;if(!(_0x5a1a90['u']&&_0x5a1a90['p']))throw new Error('--u\x20and\x20--p\x20is\x20required');if(!_0x5a1a90[_0x424d70(0x9f)])throw new Error(_0x424d70(0x8b));}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x29d135=_0xc192;(function(_0x429422,_0x27c892){const _0x54533c=_0xc192,_0x24bdb3=_0x429422();while(!![]){try{const _0x4e7973=-parseInt(_0x54533c(0x86))/0x1+-parseInt(_0x54533c(0x8a))/0x2*(parseInt(_0x54533c(0x89))/0x3)+parseInt(_0x54533c(0x8d))/0x4*(-parseInt(_0x54533c(0x8e))/0x5)+parseInt(_0x54533c(0x8b))/0x6*(parseInt(_0x54533c(0x80))/0x7)+-parseInt(_0x54533c(0x7c))/0x8+parseInt(_0x54533c(0x7d))/0x9*(-parseInt(_0x54533c(0x81))/0xa)+parseInt(_0x54533c(0x82))/0xb;if(_0x4e7973===_0x27c892)break;else _0x24bdb3['push'](_0x24bdb3['shift']());}catch(_0x27e27a){_0x24bdb3['push'](_0x24bdb3['shift']());}}}(_0x3e6a,0xa1bd5));Object[_0x29d135(0x78)](exports,_0x29d135(0x93),{'value':!![]}),exports[_0x29d135(0x85)]=help;function _0xc192(_0xa15911,_0x4bd29a){const _0x3e6a0f=_0x3e6a();return _0xc192=function(_0xc19233,_0x11fbab){_0xc19233=_0xc19233-0x78;let _0x34e7d7=_0x3e6a0f[_0xc19233];return _0x34e7d7;},_0xc192(_0xa15911,_0x4bd29a);}const Log_1=require('../utils/Log'),HELP_MESSAGES=new Map([['main',['webspatial\x20[command]\x20<options>','','','help\x20................\x20shows\x20this\x20menu','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project'+_0x29d135(0x79),_0x29d135(0x87),_0x29d135(0x8c)][_0x29d135(0x91)]('\x0a')],[_0x29d135(0x84),[_0x29d135(0x8f),'','',_0x29d135(0x7a),'','',_0x29d135(0x83)]['join']('\x0a')],['dev',['Usage:','','','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','','',_0x29d135(0x7f)][_0x29d135(0x91)]('\x0a')],[_0x29d135(0x88),[_0x29d135(0x8f),'','',_0x29d135(0x92),'','','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','','',_0x29d135(0x95)][_0x29d135(0x91)]('\x0a')]]);function _0x3e6a(){const _0x50eff1=['webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','info','2352184HMeLrF','68157WnDpTi','main','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','14ktuYQN','670ICPvVI','40510745eSUniT','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','build','help','149975dlnXcW','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','publish','3IIxiYL','2519878neojMc','777804dSUqeq','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','20udbKwN','1068250uWfmsb','Usage:','ConsoleLog','join','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>','__esModule','get','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','defineProperty','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project'];_0x3e6a=function(){return _0x50eff1;};return _0x3e6a();}async function help(_0x5dc4c2,_0x1fe354=new Log_1[(_0x29d135(0x90))](_0x29d135(0x85))){const _0x3aba06=_0x29d135,_0x4b1354=_0x5dc4c2['_'][0x1],_0x4f319a=HELP_MESSAGES[_0x3aba06(0x94)](_0x4b1354)||HELP_MESSAGES[_0x3aba06(0x94)](_0x3aba06(0x7e));return _0x1fe354[_0x3aba06(0x7b)](_0x4f319a),!![];}
|
package/dist/lib/cmds/launch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x532686=_0x3ba9;(function(_0x173ddc,_0x4a58b1){const _0x427d34=_0x3ba9,_0x194306=_0x173ddc();while(!![]){try{const _0x120d6b=-parseInt(_0x427d34(0x82))/0x1*(-parseInt(_0x427d34(0x81))/0x2)+parseInt(_0x427d34(0x87))/0x3+parseInt(_0x427d34(0x8c))/0x4*(-parseInt(_0x427d34(0x86))/0x5)+-parseInt(_0x427d34(0x84))/0x6+parseInt(_0x427d34(0x8b))/0x7+-parseInt(_0x427d34(0x89))/0x8*(-parseInt(_0x427d34(0x83))/0x9)+-parseInt(_0x427d34(0x7e))/0xa*(parseInt(_0x427d34(0x7c))/0xb);if(_0x120d6b===_0x4a58b1)break;else _0x194306['push'](_0x194306['shift']());}catch(_0x5a421a){_0x194306['push'](_0x194306['shift']());}}}(_0x1eec,0xef002));function _0x3ba9(_0xceeedb,_0x24f278){const _0x1eec2e=_0x1eec();return _0x3ba9=function(_0x3ba999,_0xc4e8fa){_0x3ba999=_0x3ba999-0x7c;let _0x46d8d0=_0x1eec2e[_0x3ba999];return _0x46d8d0;},_0x3ba9(_0xceeedb,_0x24f278);}function _0x1eec(){const _0x3dadd4=['bundleId','587338VFusCZ','6DXBmCA','9NXesys','3673566scQsan','default','20qBulCh','5164617afuRDb','__esModule','5748832bUQbpz','launchWithSimulator','7623224meWqjA','23612KvhNsA','55pMbUDv','../xcode/xcrun','7352740okDeKa','defineProperty'];_0x1eec=function(){return _0x3dadd4;};return _0x1eec();}Object[_0x532686(0x7f)](exports,_0x532686(0x88),{'value':!![]}),exports['launch']=launch;const xcrun_1=require(_0x532686(0x7d));async function launch(_0x5bd86b){const _0x305c48=_0x532686;var _0x42e439;const _0x5a8822=(_0x42e439=_0x5bd86b[_0x305c48(0x80)])!==null&&_0x42e439!==void 0x0?_0x42e439:'com.webspatial.test',_0x2f07b2={'name':'','id':_0x5a8822};return xcrun_1[_0x305c48(0x85)][_0x305c48(0x8a)](_0x2f07b2),!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x1eb695=_0xa85e;(function(_0x5290ca,_0x4b0b80){const _0x579579=_0xa85e,_0x250043=_0x5290ca();while(!![]){try{const _0x671494=-parseInt(_0x579579(0x87))/0x1*(-parseInt(_0x579579(0x90))/0x2)+-parseInt(_0x579579(0x89))/0x3*(parseInt(_0x579579(0x91))/0x4)+parseInt(_0x579579(0x8e))/0x5*(-parseInt(_0x579579(0x8d))/0x6)+-parseInt(_0x579579(0x85))/0x7+parseInt(_0x579579(0x84))/0x8+-parseInt(_0x579579(0x8a))/0x9*(-parseInt(_0x579579(0x88))/0xa)+parseInt(_0x579579(0x8b))/0xb;if(_0x671494===_0x4b0b80)break;else _0x250043['push'](_0x250043['shift']());}catch(_0x4652a1){_0x250043['push'](_0x250043['shift']());}}}(_0x2260,0xa3341));function _0xa85e(_0x1aff58,_0x50cbce){const _0x22607b=_0x2260();return _0xa85e=function(_0xa85e28,_0x497e7b){_0xa85e28=_0xa85e28-0x84;let _0x29f8b1=_0x22607b[_0xa85e28];return _0x29f8b1;},_0xa85e(_0x1aff58,_0x50cbce);}Object[_0x1eb695(0x8c)](exports,'__esModule',{'value':!![]}),exports['shutdown']=shutdown;function _0x2260(){const _0x38cad5=['3nykXaV','31095CdNgLQ','15901094zooDRa','defineProperty','1632702wgzVrY','20BQPfit','../xcode/xcrun','2MDmJZx','4483876cHwPFO','8220144zskSHJ','2244466HvFASK','default','3389IfhCcJ','2090MtSjxB'];_0x2260=function(){return _0x38cad5;};return _0x2260();}const xcrun_1=require(_0x1eb695(0x8f));async function shutdown(_0x27aaab){const _0x4de230=_0x1eb695;return xcrun_1[_0x4de230(0x86)]['shutdownSimulator'](),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x100077=_0x2af8;(function(_0x2773e9,_0x1a8a27){const _0x4a2a0d=_0x2af8,_0x46f784=_0x2773e9();while(!![]){try{const _0x457c2d=-parseInt(_0x4a2a0d(0x17f))/0x1+parseInt(_0x4a2a0d(0x179))/0x2*(-parseInt(_0x4a2a0d(0x17a))/0x3)+-parseInt(_0x4a2a0d(0x17e))/0x4+parseInt(_0x4a2a0d(0x17c))/0x5*(-parseInt(_0x4a2a0d(0x178))/0x6)+-parseInt(_0x4a2a0d(0x186))/0x7+parseInt(_0x4a2a0d(0x181))/0x8+-parseInt(_0x4a2a0d(0x17d))/0x9*(-parseInt(_0x4a2a0d(0x189))/0xa);if(_0x457c2d===_0x1a8a27)break;else _0x46f784['push'](_0x46f784['shift']());}catch(_0x342159){_0x46f784['push'](_0x46f784['shift']());}}}(_0x4db2,0xb7eb2));function _0x2af8(_0x43ab7e,_0x51c27b){const _0x4db212=_0x4db2();return _0x2af8=function(_0x2af864,_0x21c255){_0x2af864=_0x2af864-0x178;let _0x288471=_0x4db212[_0x2af864];return _0x288471;},_0x2af8(_0x43ab7e,_0x51c27b);}Object[_0x100077(0x17b)](exports,_0x100077(0x187),{'value':!![]}),exports[_0x100077(0x185)]=getVersion;const fs=require('fs'),path=require('path');function _0x4db2(){const _0x9f0df9=['toString','10989800ZkafTw','version','../../../package.json','readFile','getVersion','893235ElxVyS','__esModule','parse','2130lbGmPQ','promises','join','6cIGnmn','172jwYqur','6510xONFeF','defineProperty','2679835eeOetl','87273NoVXwi','2757604RDuYaA','1146263ynZqRI'];_0x4db2=function(){return _0x9f0df9;};return _0x4db2();}async function getVersion(){const _0x4c87ae=_0x100077,_0xc899c1=path[_0x4c87ae(0x18b)](__dirname,_0x4c87ae(0x183)),_0x39742e=await(await fs[_0x4c87ae(0x18a)][_0x4c87ae(0x184)](_0xc899c1))[_0x4c87ae(0x180)](),_0xb43228=JSON[_0x4c87ae(0x188)](_0x39742e);return _0xb43228[_0x4c87ae(0x182)];}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x138855=_0x2599;(function(_0x3277e6,_0x37f5b0){const _0x400734=_0x2599,_0x4c60bf=_0x3277e6();while(!![]){try{const _0x35b248=parseInt(_0x400734(0x82))/0x1*(parseInt(_0x400734(0xc7))/0x2)+-parseInt(_0x400734(0x97))/0x3*(-parseInt(_0x400734(0x93))/0x4)+parseInt(_0x400734(0xc6))/0x5+parseInt(_0x400734(0x84))/0x6*(parseInt(_0x400734(0x9b))/0x7)+parseInt(_0x400734(0x8e))/0x8*(parseInt(_0x400734(0xba))/0x9)+parseInt(_0x400734(0x9c))/0xa+-parseInt(_0x400734(0x8a))/0xb*(parseInt(_0x400734(0xb2))/0xc);if(_0x35b248===_0x37f5b0)break;else _0x4c60bf['push'](_0x4c60bf['shift']());}catch(_0x4b311b){_0x4c60bf['push'](_0x4c60bf['shift']());}}}(_0x309d,0xabff7));Object[_0x138855(0xc5)](exports,_0x138855(0x87),{'value':!![]}),exports['safelist']=void 0x0,exports[_0x138855(0xaf)]=configId,exports[_0x138855(0xa3)]=configStartUrl,exports[_0x138855(0xc0)]=configScope,exports[_0x138855(0xc9)]=configDisplay,exports['configMainScene']=configMainScene,exports[_0x138855(0x94)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require('./validate'),path_1=require('path');function _0x2599(_0x1acc5a,_0x3f5d54){const _0x309d4a=_0x309d();return _0x2599=function(_0x2599d7,_0x5cce06){_0x2599d7=_0x2599d7-0x7d;let _0x186532=_0x309d4a[_0x2599d7];return _0x186532;},_0x2599(_0x1acc5a,_0x3f5d54);}function configId(_0x5f1b13,_0x566af4){const _0x6cbf5e=_0x138855;if(_0x566af4)_0x5f1b13['id']=_0x566af4;else try{const _0x4182be=new URL(_0x5f1b13['id']);let _0x1fe323=_0x4182be[_0x6cbf5e(0xc4)]['split']('.')['reverse']();_0x5f1b13['id']=_0x1fe323[_0x6cbf5e(0xb0)]('.');}catch(_0x380e87){throw new Error(_0x6cbf5e(0x80)+_0x5f1b13['id']+_0x6cbf5e(0xaa));}}function configStartUrl(_0x252201,_0xe11d80,_0x585c8a,_0x37f44a){const _0x27389e=_0x138855;var _0x1b0735;let _0xd50255=(_0x1b0735=_0x252201[_0x27389e(0xb6)])!==null&&_0x1b0735!==void 0x0?_0x1b0735:'/';const _0x176728=(0x0,validate_1[_0x27389e(0xb8)])(_0xd50255),_0x4feee0=_0xe11d80[_0x27389e(0xb3)]>0x0;if(_0x4feee0){const _0x5a325a=(0x0,validate_1[_0x27389e(0xb8)])(_0xe11d80);if(!_0x176728&&!_0x5a325a){const _0x168944=(0x0,path_1[_0x27389e(0x7e)])(_0x27389e(0xc2)),_0x37eb88=(0x0,path_1[_0x27389e(0x7e)])(_0x168944,_0xe11d80,_0xd50255),_0xc2e2cb=(0x0,path_1['normalize'])(_0x37eb88),_0x9fbffc=(0x0,path_1[_0x27389e(0xb0)])(_0x168944,_0xc2e2cb);_0xd50255=(0x0,path_1[_0x27389e(0xca)])(process['cwd'](),_0x9fbffc)[_0x27389e(0xb1)](/^(\.\.\/)+/,'./')[_0x27389e(0xb1)](/\/$/,'');}else{if(_0x176728&&!_0x5a325a){const _0x3a0f9e=new URL(_0xd50255),_0x27d702=_0x3a0f9e[_0x27389e(0x83)]+_0x3a0f9e[_0x27389e(0xa4)]+_0x3a0f9e['hash'];let _0x4adaa1=new URL(_0xe11d80,_0x3a0f9e[_0x27389e(0x9e)]);_0xd50255=new URL(_0x27d702,_0x4adaa1)[_0x27389e(0x92)];}else{if(!_0x176728&&_0x5a325a){if(_0xd50255['startsWith']('/')){const _0x2de9d2=new URL(_0xe11d80);_0xd50255=_0x2de9d2['origin']+(0x0,path_1[_0x27389e(0xb0)])(_0x2de9d2['pathname'],_0xd50255);}else _0xd50255=new URL(_0xd50255,_0xe11d80)[_0x27389e(0x92)];}else{if(_0x176728&&_0x5a325a){const _0x1e6b02=new URL(_0xd50255),_0x243daf=new URL(_0xe11d80),_0x1ea35d=_0x1e6b02['pathname']+_0x1e6b02['search']+_0x1e6b02[_0x27389e(0x9f)];_0xd50255=new URL(_0x1ea35d,_0x243daf[_0x27389e(0x9e)]+_0x243daf[_0x27389e(0x83)])[_0x27389e(0x92)];}}}}}else{if(_0x37f44a){const _0x18e065=new URL(_0x585c8a);if(!_0x176728){const _0xebb035=new URL(_0xd50255,_0x18e065[_0x27389e(0x9e)]);_0xd50255=_0xebb035[_0x27389e(0x92)];}else{const _0x3dae3f=new URL(_0xd50255);_0xd50255=_0x18e065['origin']+_0x3dae3f[_0x27389e(0x83)]+_0x3dae3f[_0x27389e(0xa4)]+_0x3dae3f['hash'];}}else{if(!_0x176728){const _0x3d7b4d=(0x0,path_1['resolve'])(_0x27389e(0xc2)),_0x563fac=(0x0,path_1['resolve'])(_0x3d7b4d,_0xd50255),_0x20704e=(0x0,path_1['normalize'])(_0x563fac),_0x5cfe46=(0x0,path_1[_0x27389e(0xb0)])(_0x3d7b4d,_0x20704e);_0xd50255=(0x0,path_1[_0x27389e(0xca)])(process['cwd'](),_0x5cfe46)[_0x27389e(0xb1)](/^(\.\.\/)+/,'./')[_0x27389e(0xb1)](/\/$/,'');}}}return _0xd50255;}function configScope(_0x2c88e9){const _0x2f6b5f=_0x138855;var _0x1653c9;let _0x3c1573=(_0x1653c9=_0x2c88e9['scope'])!==null&&_0x1653c9!==void 0x0?_0x1653c9:'/';const _0x4c6720=(0x0,validate_1[_0x2f6b5f(0xb8)])(_0x2c88e9['start_url']),_0x4744a9=(0x0,validate_1[_0x2f6b5f(0xb8)])(_0x3c1573);if(_0x4c6720&&_0x4744a9){const _0x35937d=new URL(_0x3c1573),_0x1e1181=new URL(_0x2c88e9['start_url']);(_0x35937d['host']!==_0x1e1181['host']||_0x2c88e9[_0x2f6b5f(0xb6)][_0x2f6b5f(0xbd)](_0x3c1573)!==0x0)&&(_0x3c1573=(0x0,utils_1[_0x2f6b5f(0xc3)])(_0x2c88e9[_0x2f6b5f(0xb6)]));}else{if(_0x4c6720&&!_0x4744a9)_0x3c1573=new URL(_0x3c1573,_0x2c88e9[_0x2f6b5f(0xb6)])[_0x2f6b5f(0x92)];else{if(!_0x4c6720&&_0x4744a9){const _0x4fe520=_0x2c88e9[_0x2f6b5f(0xb6)][_0x2f6b5f(0xb1)](/\/[^\/]+$/,'');_0x3c1573=(0x0,path_1['normalize'])(_0x4fe520+'/');}else _0x3c1573=(0x0,path_1[_0x2f6b5f(0xb0)])((0x0,utils_1[_0x2f6b5f(0xc3)])(_0x2c88e9['start_url']),_0x3c1573);}}_0x2c88e9[_0x2f6b5f(0x86)]=_0x3c1573;}function configDisplay(_0x4978ee){const _0x39298e=_0x138855;let _0xb23ed6=_0x4978ee[_0x39298e(0xbb)];const _0x452926=[_0x39298e(0x95),_0x39298e(0x88),_0x39298e(0x8f)];!_0x452926[_0x39298e(0xac)](_0xb23ed6)&&(_0xb23ed6='standalone');if(_0x4978ee[_0x39298e(0x89)]&&_0x4978ee[_0x39298e(0x89)]['length']>0x0){const _0x3acd26=_0x4978ee[_0x39298e(0x89)][_0x39298e(0xb4)]((_0xece9c5,_0x90f47)=>({'mode':_0xece9c5,'index':_0x90f47}))[_0x39298e(0xa7)](({mode:_0x17522a})=>_0x452926['includes'](_0x17522a))['sort']((_0x5ec8e9,_0x31e72c)=>_0x5ec8e9[_0x39298e(0xae)]-_0x31e72c[_0x39298e(0xae)]);_0x3acd26[_0x39298e(0xb3)]>0x0&&(_0xb23ed6=_0x3acd26[0x0][_0x39298e(0xa2)]);}_0x4978ee['display']=_0xb23ed6;}function _0x309d(){const _0x13f1dc=['join','replace','3168IGIvoA','length','map','ftps','start_url','protocol_handlers','validateURL','sms','2772666LrczNU','display','urn','indexOf','nntp','string','configScope','object','./static-web','parseRouter','host','defineProperty','854590nnXcNR','1931068flJlox','height','configDisplay','relative','ftp','smsto','tel','geo','resolve','url','id:','dynamic','1pWNCnN','pathname','42inYmsd','safelist','scope','__esModule','standalone','display_override','108053szTocc','magnet','default_size','bitcoin','24vmhODa','fullscreen','mainScene','width','href','4FCYKfb','configDeeplink','minimal-ui','matrix','442227cvlZSE','protocol','defaultSize','mms','398461hJlRWP','6912310TeOIjA','webcal','origin','hash','resizability','automatic','mode','configStartUrl','search','web+','sip','filter','xr_main_scene','ssh','\x20\x20is\x20not\x20a\x20valid\x20url','wtai','includes','ircs','index','configId'];_0x309d=function(){return _0x13f1dc;};return _0x309d();}function configMainScene(_0x2b707a){const _0x336464=_0x138855;var _0x2a5ee4,_0x8f78fa;const _0x235883=[_0x336464(0xa1),'contentMinSize','contentSize'];let _0x31ed15={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x336464(0xa1)};if(_0x2b707a[_0x336464(0xa8)]){if(typeof _0x2b707a['xr_main_scene']===_0x336464(0xc1))_0x31ed15[_0x336464(0x99)]['width']=Number((_0x2a5ee4=_0x2b707a[_0x336464(0xa8)][_0x336464(0x8c)])===null||_0x2a5ee4===void 0x0?void 0x0:_0x2a5ee4[_0x336464(0x91)])>0x0?_0x2b707a['xr_main_scene']['default_size'][_0x336464(0x91)]:0x500,_0x31ed15[_0x336464(0x99)][_0x336464(0xc8)]=Number((_0x8f78fa=_0x2b707a[_0x336464(0xa8)]['default_size'])===null||_0x8f78fa===void 0x0?void 0x0:_0x8f78fa[_0x336464(0xc8)])>0x0?_0x2b707a[_0x336464(0xa8)][_0x336464(0x8c)][_0x336464(0xc8)]:0x500,_0x31ed15['resizability']=_0x235883['includes'](_0x2b707a['xr_main_scene'][_0x336464(0xa0)])?_0x2b707a[_0x336464(0xa8)][_0x336464(0xa0)]:_0x336464(0xa1),_0x2b707a[_0x336464(0x90)]=_0x31ed15;else typeof _0x2b707a['xr_main_scene']===_0x336464(0xbf)&&(_0x2b707a['mainScene']=_0x336464(0x81));}}function configDeeplink(_0x34092a){const _0x1d70a6=_0x138855;if(_0x34092a['protocol_handlers']&&_0x34092a['protocol_handlers']['length']>0x0)for(var _0x455322=0x0;_0x455322<_0x34092a[_0x1d70a6(0xb7)][_0x1d70a6(0xb3)];_0x455322++){const _0x29bc64=_0x34092a['protocol_handlers'][_0x455322];if(_0x29bc64[_0x1d70a6(0x98)]&&(exports[_0x1d70a6(0x85)][_0x1d70a6(0xac)](_0x29bc64[_0x1d70a6(0x98)])||_0x29bc64[_0x1d70a6(0x98)][_0x1d70a6(0xbd)](_0x1d70a6(0xa5))===0x0)){if(!((0x0,validate_1[_0x1d70a6(0xb8)])(_0x29bc64['url'])&&_0x29bc64[_0x1d70a6(0x7f)][_0x1d70a6(0xbd)](_0x34092a[_0x1d70a6(0x86)])<0x0))continue;}_0x34092a[_0x1d70a6(0xb7)]['splice'](_0x455322,0x1),_0x455322--;}}exports[_0x138855(0x85)]=[_0x138855(0x8d),_0x138855(0xcb),_0x138855(0xb5),_0x138855(0x7d),'im','irc',_0x138855(0xad),_0x138855(0x8b),'mailto',_0x138855(0x96),_0x138855(0x9a),'news',_0x138855(0xbe),'openpgp4fpr','sftp',_0x138855(0xa6),_0x138855(0xb9),_0x138855(0xcc),_0x138855(0xa9),_0x138855(0xcd),_0x138855(0xbc),_0x138855(0x9d),_0x138855(0xab),'xmpp'];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3155(){const _0x1e5154=['generator','CliLog','minimal-ui','932070aZjLtD','defaultBundleId','configDisplay','210uVbfJh','852mKNzhH','join','configStartUrl','1101eLNlXA','public/manifest.json','json','configId','PWAGenerator','path','loadJsonFromNet','bundleId','37818XjfcDx','defaultManifestJson','cwd','checkIcons','checkId','configDeeplink','standalone','manifestUrl','start_url','validate','defineProperty','../utils/utils','manifest','useDefaultManifestJson','300953EHOsAt','loadJsonFromDisk','16746pIvvjT','reset\x20manifest.json:\x20ok','./config','__esModule','checkStartUrl','configScope','check\x20manifest.json:\x20ok','config','413890UPNgiW','com.webspatial.test','DisplayModes','13840Movvnv','../resource/load','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','WebSpatialTest','log','525AnFyHx','public/manifest.webmanifest','configMainScene','existsSync'];_0x3155=function(){return _0x1e5154;};return _0x3155();}const _0x12e3aa=_0x2f48;(function(_0x48bc57,_0x125c88){const _0x17372c=_0x2f48,_0x282665=_0x48bc57();while(!![]){try{const _0x3d0ea0=-parseInt(_0x17372c(0x1fa))/0x1+parseInt(_0x17372c(0x204))/0x2+-parseInt(_0x17372c(0x1e4))/0x3*(parseInt(_0x17372c(0x1e1))/0x4)+-parseInt(_0x17372c(0x1d6))/0x5*(-parseInt(_0x17372c(0x1fc))/0x6)+parseInt(_0x17372c(0x1e0))/0x7*(parseInt(_0x17372c(0x1d1))/0x8)+parseInt(_0x17372c(0x1ec))/0x9+parseInt(_0x17372c(0x1dd))/0xa;if(_0x3d0ea0===_0x125c88)break;else _0x282665['push'](_0x282665['shift']());}catch(_0xf7444b){_0x282665['push'](_0x282665['shift']());}}}(_0x3155,0x41f69));Object[_0x12e3aa(0x1f6)](exports,_0x12e3aa(0x1ff),{'value':!![]}),exports[_0x12e3aa(0x1e8)]=void 0x0;const path_1=require(_0x12e3aa(0x1e9)),config_1=require(_0x12e3aa(0x1fe)),load_1=require(_0x12e3aa(0x1d2)),validate_1=require('./validate'),fs=require('fs'),utils_1=require(_0x12e3aa(0x1f7));class PWAGenerator{static async[_0x12e3aa(0x1da)](_0x3bf6b8,_0x324d02=![]){const _0x4ae1a0=_0x12e3aa;let _0x2baa42=await this[_0x4ae1a0(0x1f5)](_0x3bf6b8,_0x324d02);return console[_0x4ae1a0(0x1d5)](_0x4ae1a0(0x202)),await this[_0x4ae1a0(0x203)](_0x2baa42,_0x3bf6b8,_0x324d02),console['log'](_0x4ae1a0(0x1fd)),_0x2baa42;}static async[_0x12e3aa(0x1f5)](_0xf16a5a,_0x181979=![]){const _0x5280c6=_0x12e3aa;var _0x3b5c1d,_0x48acf3;let _0x4caef6={},_0x49cbf0='',_0x23dd66=![],_0x5d63ff=![];if(_0xf16a5a[_0x5280c6(0x1f3)])_0x49cbf0=_0xf16a5a[_0x5280c6(0x1f3)],_0x23dd66=!![],_0x4caef6=await(0x0,load_1[_0x5280c6(0x1ea)])(_0xf16a5a[_0x5280c6(0x1f3)]);else{_0xf16a5a[_0x5280c6(0x1f8)]?_0x49cbf0=(0x0,path_1[_0x5280c6(0x1e2)])(process[_0x5280c6(0x1ee)](),_0xf16a5a[_0x5280c6(0x1f8)]):(_0x49cbf0=(0x0,path_1[_0x5280c6(0x1e2)])(process[_0x5280c6(0x1ee)](),_0x5280c6(0x1e5)),!fs[_0x5280c6(0x1d9)](_0x49cbf0)&&(_0x49cbf0=(0x0,path_1[_0x5280c6(0x1e2)])(process[_0x5280c6(0x1ee)](),_0x5280c6(0x1d7))));if(!fs[_0x5280c6(0x1d9)](_0x49cbf0)){if(_0x181979)_0x5d63ff=!![],utils_1[_0x5280c6(0x1db)]['warn'](_0x5280c6(0x1d3));else throw new Error('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found');}_0x4caef6=_0x5d63ff?this[_0x5280c6(0x1ed)]:await(0x0,load_1[_0x5280c6(0x1fb)])(_0x49cbf0),this[_0x5280c6(0x1f9)]=_0x5d63ff;}(0x0,validate_1['checkManifestJson'])(_0x4caef6,_0x181979);let _0x5d6386=(0x0,config_1[_0x5280c6(0x1e3)])(_0x4caef6,(_0x3b5c1d=_0xf16a5a['base'])!==null&&_0x3b5c1d!==void 0x0?_0x3b5c1d:'',_0x49cbf0,_0x23dd66);var _0x427317=(0x0,validate_1[_0x5280c6(0x200)])(_0x5d6386,_0x49cbf0,_0x23dd66,_0x181979);_0x4caef6[_0x5280c6(0x1f4)]=_0x5d6386;if(!_0x181979)(0x0,validate_1[_0x5280c6(0x1f0)])(_0x4caef6,(_0x48acf3=_0xf16a5a[_0x5280c6(0x1eb)])!==null&&_0x48acf3!==void 0x0?_0x48acf3:'');return await(0x0,validate_1[_0x5280c6(0x1ef)])(_0x4caef6,_0x49cbf0,_0x181979),{'json':_0x4caef6,'url':_0x49cbf0,'fromNet':_0x427317};}static['config'](_0x5e5620,_0x4ced87,_0x2a20a9){const _0x52d014=_0x12e3aa;var _0x4eadb1;let _0x459a53=(_0x4eadb1=_0x4ced87[_0x52d014(0x1eb)])!==null&&_0x4eadb1!==void 0x0?_0x4eadb1:'';_0x2a20a9&&!_0x5e5620[_0x52d014(0x1e6)]['id']&&(_0x459a53=this[_0x52d014(0x1de)]),(0x0,config_1[_0x52d014(0x1e7)])(_0x5e5620[_0x52d014(0x1e6)],_0x459a53),(0x0,config_1[_0x52d014(0x201)])(_0x5e5620['json']),(0x0,config_1[_0x52d014(0x1df)])(_0x5e5620[_0x52d014(0x1e6)]),(0x0,config_1[_0x52d014(0x1f1)])(_0x5e5620[_0x52d014(0x1e6)]),(0x0,config_1[_0x52d014(0x1d8)])(_0x5e5620[_0x52d014(0x1e6)]);}}function _0x2f48(_0x169df1,_0xf97bde){const _0x315584=_0x3155();return _0x2f48=function(_0x2f48a7,_0x59e765){_0x2f48a7=_0x2f48a7-0x1d0;let _0x263e82=_0x315584[_0x2f48a7];return _0x263e82;},_0x2f48(_0x169df1,_0xf97bde);}exports[_0x12e3aa(0x1e8)]=PWAGenerator,PWAGenerator[_0x12e3aa(0x1d0)]=[_0x12e3aa(0x1f2),_0x12e3aa(0x1dc)],PWAGenerator['defaultBundleId']=_0x12e3aa(0x205),PWAGenerator['defaultManifestJson']={'name':_0x12e3aa(0x1d4),'display':_0x12e3aa(0x1dc),'start_url':'/','scope':'/'},PWAGenerator[_0x12e3aa(0x1f9)]=![];
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2cbd88=_0x4509;function _0x4509(_0x181088,_0x5cdde2){const _0x150aca=_0x150a();return _0x4509=function(_0x4509b1,_0x3c039b){_0x4509b1=_0x4509b1-0x15c;let _0x37477a=_0x150aca[_0x4509b1];return _0x37477a;},_0x4509(_0x181088,_0x5cdde2);}(function(_0x2d4eb0,_0x351910){const _0x3636a7=_0x4509,_0x4bc5d6=_0x2d4eb0();while(!![]){try{const _0x34ffa9=-parseInt(_0x3636a7(0x161))/0x1+-parseInt(_0x3636a7(0x18a))/0x2*(parseInt(_0x3636a7(0x18c))/0x3)+parseInt(_0x3636a7(0x180))/0x4*(-parseInt(_0x3636a7(0x186))/0x5)+parseInt(_0x3636a7(0x184))/0x6*(parseInt(_0x3636a7(0x15c))/0x7)+-parseInt(_0x3636a7(0x174))/0x8*(parseInt(_0x3636a7(0x193))/0x9)+-parseInt(_0x3636a7(0x16f))/0xa+parseInt(_0x3636a7(0x17d))/0xb;if(_0x34ffa9===_0x351910)break;else _0x4bc5d6['push'](_0x4bc5d6['shift']());}catch(_0x5176a6){_0x4bc5d6['push'](_0x4bc5d6['shift']());}}}(_0x150a,0x8b3ce));Object[_0x2cbd88(0x185)](exports,_0x2cbd88(0x16b),{'value':!![]}),exports[_0x2cbd88(0x162)]=checkManifestJson,exports[_0x2cbd88(0x167)]=checkStartUrl,exports[_0x2cbd88(0x175)]=checkIcons,exports['checkId']=checkId,exports[_0x2cbd88(0x18f)]=validateBundleId,exports['validateURL']=validateURL;function _0x150a(){const _0xe9331f=['Local\x20manifest\x20cannot\x20package\x20network\x20project','2182836iBTkTP','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','3myalqs','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','warn','validateBundleId','../resource/imageHelper','../utils/CustomError','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','1333917ENoKVz','CustomError','3871DCKmhp','indexOf','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','http://','CliLog','617432ubpZAM','checkManifestJson','icons','../utils/utils','startsWith','split','checkStartUrl','maskable','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','push','__esModule','path','ImageHelper','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','3424010HjxkEH','loadImageFromNet','src','getWidth','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','24psvUdq','checkIcons','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','length','1024x1024','http','parseRouter','host','purpose','37373127aTMZli','join','icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode','12wNeVmC','sizes','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','https://','186gyzLEq','defineProperty','580820sAvxmg','name','start_url'];_0x150a=function(){return _0xe9331f;};return _0x150a();}const path_1=require(_0x2cbd88(0x16c)),CustomError_1=require(_0x2cbd88(0x191)),utils_1=require(_0x2cbd88(0x164)),imageHelper_1=require(_0x2cbd88(0x190)),load_1=require('../resource/load'),utils_2=require('../utils/utils');function checkManifestJson(_0x6d6290,_0x4628d9=![]){const _0x4f14ab=_0x2cbd88;var _0x52d361;const _0x4e1205=[];!_0x6d6290[_0x4f14ab(0x187)]&&!_0x6d6290['short_name']&&!_0x4628d9&&_0x4e1205['push']({'code':0xbbe,'message':_0x4f14ab(0x182),'message_staring_params':{}});!((_0x52d361=_0x6d6290[_0x4f14ab(0x163)])===null||_0x52d361===void 0x0?void 0x0:_0x52d361[_0x4f14ab(0x177)])&&!_0x4628d9&&_0x4e1205[_0x4f14ab(0x16a)]({'code':0xbbf,'message':_0x4f14ab(0x18d),'message_staring_params':{}});!_0x6d6290[_0x4f14ab(0x188)]&&!_0x4628d9&&_0x4e1205[_0x4f14ab(0x16a)]({'code':0xbc0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','message_staring_params':{}});if(_0x4e1205[_0x4f14ab(0x177)])throw new CustomError_1[(_0x4f14ab(0x194))](_0x4e1205);}function checkStartUrl(_0x482bf5,_0x1313e8,_0x16ac9c,_0x512287=![]){const _0xec6bd6=_0x2cbd88;var _0x5b8f88=![];if(_0x512287)return _0x482bf5['startsWith'](_0xec6bd6(0x183))||_0x482bf5[_0xec6bd6(0x165)](_0xec6bd6(0x15f));if(_0x16ac9c){if(_0x482bf5[_0xec6bd6(0x165)]('https://')){const _0x26dc3c=new URL(_0x482bf5),_0x47617f=new URL(_0x1313e8);if(_0x26dc3c[_0xec6bd6(0x17b)]!==_0x47617f[_0xec6bd6(0x17b)])throw new CustomError_1[(_0xec6bd6(0x194))]({'code':0xfa0,'message':_0xec6bd6(0x176),'message_staring_params':{}});}else{if(_0x482bf5[_0xec6bd6(0x165)]('http://'))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0xec6bd6(0x192),'message_staring_params':{}});}}else{if(_0x482bf5['startsWith'](_0xec6bd6(0x183))||_0x482bf5['startsWith'](_0xec6bd6(0x15f)))throw new CustomError_1[(_0xec6bd6(0x194))]({'code':0xfa0,'message':_0xec6bd6(0x189),'message_staring_params':{}});}return _0x5b8f88;}async function checkIcons(_0x5718fc,_0x501a55,_0x619aa0=![]){const _0xb7fc45=_0x2cbd88;var _0x2dd6f3,_0x2a219c;if(!((_0x2dd6f3=_0x5718fc[_0xb7fc45(0x163)])===null||_0x2dd6f3===void 0x0?void 0x0:_0x2dd6f3[_0xb7fc45(0x177)])&&_0x619aa0){_0x5718fc[_0xb7fc45(0x163)]=[{'src':(0x0,path_1[_0xb7fc45(0x17e)])(__dirname,'../../assets/icon-default.png'),'sizes':_0xb7fc45(0x178),'purpose':_0xb7fc45(0x168)}],utils_2['CliLog'][_0xb7fc45(0x18e)](_0xb7fc45(0x18b));return;}const _0x218780=(0x0,utils_1[_0xb7fc45(0x17a)])(_0x501a55);let _0x34776d,_0x526641,_0x20b976,_0x5eadb8=0x0;for(var _0x5dcbf3=0x0;_0x5dcbf3<_0x5718fc[_0xb7fc45(0x163)][_0xb7fc45(0x177)];_0x5dcbf3++){const _0x12df49=_0x5718fc[_0xb7fc45(0x163)][_0x5dcbf3];let _0x574481=((_0x2a219c=_0x12df49[_0xb7fc45(0x17c)])===null||_0x2a219c===void 0x0?void 0x0:_0x2a219c[_0xb7fc45(0x15d)](_0xb7fc45(0x168)))>=0x0;if(!_0x574481)continue;let _0x301dd0=![],_0x21c63a=_0x12df49[_0xb7fc45(0x171)],_0x363a57,_0x154169=0x0;!validateURL(_0x21c63a)&&(_0x21c63a=(0x0,path_1['join'])(_0x218780,_0x21c63a));if(_0x12df49[_0xb7fc45(0x181)]){const _0x28577b=_0x12df49[_0xb7fc45(0x181)][_0xb7fc45(0x166)]('\x20');_0x28577b['forEach'](_0xacc9f1=>{const _0x5a1761=_0xb7fc45;let _0x162c3e=_0xacc9f1[_0x5a1761(0x166)]('x');Number(_0x162c3e[0x0])>=0x400&&Number(_0x162c3e[0x1])>=0x400&&(_0x301dd0=!![],Number(_0x162c3e[0x0])>_0x154169&&(_0x154169=Number(_0x162c3e[0x0])));});}else _0x363a57=!_0x21c63a[_0xb7fc45(0x165)](_0xb7fc45(0x179))?await(0x0,load_1['loadImageFromDisk'])(_0x21c63a):await(0x0,load_1[_0xb7fc45(0x170)])(_0x21c63a),_0x363a57[_0xb7fc45(0x172)]()>=0x400&&_0x363a57['getHeight']()>=0x400&&(_0x301dd0=!![],_0x363a57[_0xb7fc45(0x172)]()>_0x154169&&(_0x154169=_0x363a57[_0xb7fc45(0x172)]()));_0x301dd0&&_0x574481&&(_0x154169>_0x5eadb8&&(_0x5eadb8=_0x154169,_0x34776d=_0x363a57,_0x526641=_0x21c63a,_0x20b976=_0x12df49[_0xb7fc45(0x17c)]));}if(_0x5eadb8===0x0){if(_0x619aa0){_0x5718fc[_0xb7fc45(0x163)]=[{'src':(0x0,path_1[_0xb7fc45(0x17e)])(__dirname,'../../assets/icon-default.png'),'sizes':_0xb7fc45(0x178),'purpose':_0xb7fc45(0x168)}],utils_2['CliLog'][_0xb7fc45(0x18e)](_0xb7fc45(0x169)),utils_2[_0xb7fc45(0x160)][_0xb7fc45(0x18e)](_0xb7fc45(0x17f));return;}throw new CustomError_1[(_0xb7fc45(0x194))]({'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 _0x526641&&(_0x34776d=!_0x526641[_0xb7fc45(0x165)](_0xb7fc45(0x179))?await(0x0,load_1['loadImageFromDisk'])(_0x526641):await(0x0,load_1['loadImageFromNet'])(_0x526641));if(_0x34776d&&!imageHelper_1[_0xb7fc45(0x16d)]['isFullyOpaque'](_0x34776d)){if(_0x619aa0){utils_2[_0xb7fc45(0x160)][_0xb7fc45(0x18e)]('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[(_0xb7fc45(0x194))]({'code':0xfa0,'message':_0xb7fc45(0x16e),'message_staring_params':{}});}_0x5718fc[_0xb7fc45(0x163)]=[{'src':_0x526641,'sizes':_0x5eadb8+'x'+_0x5eadb8,'purpose':_0x20b976}];}function checkId(_0x27e541,_0xc04af7){const _0x2ab1cc=_0x2cbd88;if(_0xc04af7){if(!validateBundleId(_0xc04af7))throw new CustomError_1[(_0x2ab1cc(0x194))]({'code':0xfa0,'message':_0x2ab1cc(0x15e),'message_staring_params':{}});return;}!_0x27e541['id']&&(_0x27e541['id']=_0x27e541[_0x2ab1cc(0x188)]);if(!validateURL(_0x27e541['id'])&&!_0xc04af7)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x2ab1cc(0x173),'message_staring_params':{}});}function validateBundleId(_0x31f661){const _0x4717b3=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x4717b3['test'](_0x31f661);}function validateURL(_0x2664bc){try{return new URL(_0x2664bc),!![];}catch(_0x9f0ec2){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';const _0x5c4e1a=_0x290d;function _0x42fa(){const _0x4665ce=['9dIDDYL','isDirectory','373788tHuhzw','isFile','1624916dCUTpN','readFileSync','log','existsSync','copyDir','1365966kJKJOv','statSync','writeFileSync','2100917qSuNRL','894055CrquQe','unlinkSync','1OzOHaE','4814200GhmVhQ','2113488TfIlBp','readdirSync','clearDir','forEach','mkdirSync'];_0x42fa=function(){return _0x4665ce;};return _0x42fa();}function _0x290d(_0x41eae3,_0x46df6b){const _0x42faa8=_0x42fa();return _0x290d=function(_0x290d86,_0x3e6045){_0x290d86=_0x290d86-0xb7;let _0x7ad0ac=_0x42faa8[_0x290d86];return _0x7ad0ac;},_0x290d(_0x41eae3,_0x46df6b);}(function(_0x883330,_0x2bf61a){const _0x5bb372=_0x290d,_0x2d0258=_0x883330();while(!![]){try{const _0x4a7f21=-parseInt(_0x5bb372(0xc2))/0x1*(parseInt(_0x5bb372(0xbc))/0x2)+parseInt(_0x5bb372(0xc4))/0x3+parseInt(_0x5bb372(0xb7))/0x4+-parseInt(_0x5bb372(0xc0))/0x5+-parseInt(_0x5bb372(0xcb))/0x6+-parseInt(_0x5bb372(0xbf))/0x7+parseInt(_0x5bb372(0xc3))/0x8*(parseInt(_0x5bb372(0xc9))/0x9);if(_0x4a7f21===_0x2bf61a)break;else _0x2d0258['push'](_0x2d0258['shift']());}catch(_0xb77d7e){_0x2d0258['push'](_0x2d0258['shift']());}}}(_0x42fa,0x77355));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x5c4e1a(0xbb)]=copyDir,exports[_0x5c4e1a(0xc6)]=clearDir;const fs=require('fs');function copyDir(_0x5ebf48,_0x20f2b8){const _0x1e8163=_0x5c4e1a,_0x23c260=fs[_0x1e8163(0xc5)](_0x5ebf48);_0x23c260[_0x1e8163(0xc7)](_0x5f2699=>{const _0x1f53b7=_0x1e8163,_0x104b3d=_0x5ebf48+'/'+_0x5f2699,_0x3af5d3=_0x20f2b8+'/'+_0x5f2699,_0x7918e5=fs[_0x1f53b7(0xbd)](_0x104b3d);if(_0x7918e5[_0x1f53b7(0xcc)]())try{fs[_0x1f53b7(0xbe)](_0x3af5d3,fs[_0x1f53b7(0xb8)](_0x104b3d));}catch(_0x455450){console[_0x1f53b7(0xb9)](_0x455450);}else _0x7918e5[_0x1f53b7(0xca)]()&&(!fs[_0x1f53b7(0xba)](_0x3af5d3)&&fs[_0x1f53b7(0xc8)](_0x3af5d3,{'recursive':!![]}),copyDir(_0x104b3d,_0x3af5d3));});}function clearDir(_0x288daa){const _0x2f490d=_0x5c4e1a,_0x24ee89=fs[_0x2f490d(0xc5)](_0x288daa);_0x24ee89['forEach'](_0x4d8fb7=>{const _0x56187c=_0x2f490d,_0xe5c0ae=_0x288daa+'/'+_0x4d8fb7,_0x3b3b9d=fs['statSync'](_0xe5c0ae);if(_0x3b3b9d[_0x56187c(0xcc)]())try{fs[_0x56187c(0xc1)](_0xe5c0ae);}catch(_0x5c853e){console[_0x56187c(0xb9)](_0x5c853e);}else _0x3b3b9d[_0x56187c(0xca)]()&&clearDir(_0xe5c0ae);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x360231=_0x1f82;(function(_0x3fb342,_0x2c5b63){const _0x1caf17=_0x1f82,_0x40f92f=_0x3fb342();while(!![]){try{const _0x1f68a4=parseInt(_0x1caf17(0x157))/0x1+parseInt(_0x1caf17(0x14c))/0x2*(parseInt(_0x1caf17(0x14a))/0x3)+parseInt(_0x1caf17(0x155))/0x4+-parseInt(_0x1caf17(0x143))/0x5+parseInt(_0x1caf17(0x145))/0x6*(-parseInt(_0x1caf17(0x14e))/0x7)+parseInt(_0x1caf17(0x148))/0x8+-parseInt(_0x1caf17(0x14f))/0x9*(parseInt(_0x1caf17(0x13f))/0xa);if(_0x1f68a4===_0x2c5b63)break;else _0x40f92f['push'](_0x40f92f['shift']());}catch(_0x33e134){_0x40f92f['push'](_0x40f92f['shift']());}}}(_0x4700,0x3ac87));Object[_0x360231(0x149)](exports,_0x360231(0x141),{'value':!![]}),exports['ImageHelper']=void 0x0;function _0x4700(){const _0x4fd85d=['defineProperty','69NusKLi','jimp','3374fiHfxb','toFormat','24829RGVDLp','216981DkLqcp','@resvg/resvg-js','webp2PngBuffer','asPng','width','sharp','702076JWZkdx','Resvg','438888RPwHdL','60naTFaD','getHeight','__esModule','png','1047735XceJIT','isFullyOpaque','246wmPWer','bitmap','svg2img','697560zpeDGR'];_0x4700=function(){return _0x4fd85d;};return _0x4700();}const Jimp=require(_0x360231(0x14b)),sharp=require(_0x360231(0x154)),resvg_js_1=require(_0x360231(0x150));class ImageHelper{static['createImg'](_0x1b5aca){return new Jimp(_0x1b5aca,_0x1b5aca,0x0);}static async[_0x360231(0x151)](_0x21895d){const _0x2d4605=_0x360231;return await sharp(_0x21895d)[_0x2d4605(0x14d)](_0x2d4605(0x142))['toBuffer']();}static async[_0x360231(0x147)](_0x5cad18){const _0x226a45=_0x360231,_0x26fdf2={'fitTo':{'mode':_0x226a45(0x153),'value':0x400}},_0x3b2eba=new resvg_js_1[(_0x226a45(0x156))](_0x5cad18,_0x26fdf2),_0x53bb1e=_0x3b2eba['render'](),_0x540464=_0x53bb1e[_0x226a45(0x152)]();return _0x540464;}static[_0x360231(0x144)](_0x61591b){const _0x1e5622=_0x360231,_0x5c46a0=_0x61591b['getWidth']()*_0x61591b[_0x1e5622(0x140)]();for(var _0x3bf998=0x0;_0x3bf998<_0x5c46a0;_0x3bf998++){const _0x444302=_0x3bf998*0x4+0x3;if(_0x61591b[_0x1e5622(0x146)]['data'][_0x444302]<0xff)return![];}return!![];}}function _0x1f82(_0x2f4f14,_0x29571f){const _0x470018=_0x4700();return _0x1f82=function(_0x1f8237,_0x3c3a87){_0x1f8237=_0x1f8237-0x13f;let _0x2641ff=_0x470018[_0x1f8237];return _0x2641ff;},_0x1f82(_0x2f4f14,_0x29571f);}exports['ImageHelper']=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3cf0(){const _0x2bf71b=['path','defineProperty','PROJECT_EXPORT_DIRECTORY','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset',',\x20now\x20WebSpatial\x20only\x20support\x20','8sGIlpm','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','3260asGVYo','generateIcon','../../../node_modules/@webspatial/platform-','visionos','123XHbwYD','./export','src','14jQhSUS','BACK_APPICON_DIRECTORY','__esModule','moveProjectFrom','ResourceManager','18491EsMOND','execSync','529015eldApW','./load','http','child_process','mkdirSync','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','5286720GDFLXn','loadImageFromNet','icons','PROJECT_DIRECTORY','PROJECT_BUILD_DIRECTORY','616224MlSNyi','web-spatial/static-web','startsWith','not\x20support\x20platform\x20','ASSET_DIRECTORY','rm\x20-rf\x20','PROJECT_TEST_DIRECTORY','log','28vsiRLc','join','cwd','../../../','2508642ZsOdgy','includes','copyDir','cd\x20','509538KZshfs','../../temp','WEB_PROJECT_DIRECTORY','14682kFmXpx','MIDDLE_APPICON_DIRECTORY','web-spatial/Assets.xcassets','existsSync','./test','node_modules/@webspatial/platform-','./build','checkPlatformPath'];_0x3cf0=function(){return _0x2bf71b;};return _0x3cf0();}const _0x1ae7f5=_0x2d8c;(function(_0x1a2e18,_0xe77114){const _0x503513=_0x2d8c,_0x110610=_0x1a2e18();while(!![]){try{const _0x2eb56d=parseInt(_0x503513(0x8a))/0x1+-parseInt(_0x503513(0x9d))/0x2*(-parseInt(_0x503513(0x75))/0x3)+parseInt(_0x503513(0x92))/0x4*(parseInt(_0x503513(0x7f))/0x5)+-parseInt(_0x503513(0x9a))/0x6*(-parseInt(_0x503513(0x78))/0x7)+parseInt(_0x503513(0xaa))/0x8*(-parseInt(_0x503513(0x96))/0x9)+parseInt(_0x503513(0xac))/0xa*(-parseInt(_0x503513(0x7d))/0xb)+-parseInt(_0x503513(0x85))/0xc;if(_0x2eb56d===_0xe77114)break;else _0x110610['push'](_0x110610['shift']());}catch(_0x19c714){_0x110610['push'](_0x110610['shift']());}}}(_0x3cf0,0x88cf0));Object[_0x1ae7f5(0xa6)](exports,_0x1ae7f5(0x7a),{'value':!![]}),exports[_0x1ae7f5(0x7c)]=exports[_0x1ae7f5(0x9e)]=exports[_0x1ae7f5(0x79)]=exports[_0x1ae7f5(0x8e)]=exports['WEB_PROJECT_DIRECTORY']=exports[_0x1ae7f5(0x90)]=exports['PROJECT_EXPORT_DIRECTORY']=exports[_0x1ae7f5(0x89)]=exports[_0x1ae7f5(0x88)]=void 0x0;const fs=require('fs'),path_1=require(_0x1ae7f5(0xa5)),file_1=require('./file'),load_1=require(_0x1ae7f5(0x80)),child_process_1=require(_0x1ae7f5(0x82));exports[_0x1ae7f5(0x88)]='',exports[_0x1ae7f5(0x89)]='',exports[_0x1ae7f5(0xa7)]='',exports[_0x1ae7f5(0x90)]='',exports[_0x1ae7f5(0x9c)]=_0x1ae7f5(0x8b),exports['ASSET_DIRECTORY']=_0x1ae7f5(0x9f),exports[_0x1ae7f5(0x79)]=exports[_0x1ae7f5(0x8e)]+_0x1ae7f5(0xa8),exports[_0x1ae7f5(0x9e)]=exports[_0x1ae7f5(0x8e)]+_0x1ae7f5(0x84);const supportPlatform=[_0x1ae7f5(0x74)];function _0x2d8c(_0x3dc301,_0x16d1c2){const _0x3cf072=_0x3cf0();return _0x2d8c=function(_0x2d8cf1,_0x2a1e7b){_0x2d8cf1=_0x2d8cf1-0x72;let _0x59ef33=_0x3cf072[_0x2d8cf1];return _0x59ef33;},_0x2d8c(_0x3dc301,_0x16d1c2);}class ResourceManager{static async[_0x1ae7f5(0x7b)](_0x5a7165){const _0x2030a8=_0x1ae7f5,_0x5f2ab1=(0x0,path_1['join'])(process['cwd'](),_0x5a7165),_0x35b67d=(0x0,path_1[_0x2030a8(0x93)])(exports['PROJECT_DIRECTORY'],exports[_0x2030a8(0x9c)]);!fs[_0x2030a8(0xa0)](_0x35b67d)?fs[_0x2030a8(0x83)](_0x35b67d,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0x35b67d);try{(0x0,file_1[_0x2030a8(0x98)])(_0x5f2ab1,_0x35b67d);}catch(_0x5f4ec5){console[_0x2030a8(0x91)](_0x5f4ec5);}}static async[_0x1ae7f5(0x72)](_0x473506){const _0x40ca73=_0x1ae7f5,_0x22cd5d=_0x473506['json'],_0x4f6e87=_0x22cd5d[_0x40ca73(0x87)][0x0][_0x40ca73(0x77)],_0x118704=!_0x4f6e87[_0x40ca73(0x8c)](_0x40ca73(0x81))?await(0x0,load_1['loadImageFromDisk'])(_0x4f6e87):await(0x0,load_1[_0x40ca73(0x86)])(_0x4f6e87);return _0x118704['resize'](0x400,0x400),_0x118704;}static[_0x1ae7f5(0xa4)](_0xf9a619){const _0x507ce3=_0x1ae7f5,_0x35de5d=_0xf9a619!==null&&_0xf9a619!==void 0x0?_0xf9a619:supportPlatform[0x0];if(!supportPlatform[_0x507ce3(0x97)](_0x35de5d))throw new Error(_0x507ce3(0x8d)+_0x35de5d+_0x507ce3(0xa9)+supportPlatform[_0x507ce3(0x93)](','));let _0x255d78=(0x0,path_1[_0x507ce3(0x93)])(process[_0x507ce3(0x94)](),_0x507ce3(0xa2)+_0x35de5d);!fs[_0x507ce3(0xa0)](_0x255d78)&&(_0x255d78=(0x0,path_1[_0x507ce3(0x93)])(__dirname,_0x507ce3(0x73)+_0x35de5d));const _0x46c696=fs[_0x507ce3(0xa0)](_0x255d78);!_0x46c696&&(0x0,child_process_1[_0x507ce3(0x7e)])(_0x507ce3(0x99)+(0x0,path_1[_0x507ce3(0x93)])(__dirname,_0x507ce3(0x95))+_0x507ce3(0xab)+_0x35de5d);let _0x1e29a6=(0x0,path_1['join'])(__dirname,_0x507ce3(0x9b)),_0x3eb0ba=(0x0,path_1['join'])(_0x1e29a6,'platform-'+_0x35de5d);fs[_0x507ce3(0xa0)](_0x1e29a6)&&(0x0,child_process_1[_0x507ce3(0x7e)])(_0x507ce3(0x8f)+_0x1e29a6),fs[_0x507ce3(0x83)](_0x1e29a6),fs[_0x507ce3(0x83)](_0x3eb0ba),(0x0,file_1[_0x507ce3(0x98)])(_0x255d78,_0x3eb0ba),exports[_0x507ce3(0x88)]=_0x3eb0ba,exports[_0x507ce3(0x89)]=(0x0,path_1[_0x507ce3(0x93)])(exports[_0x507ce3(0x88)],_0x507ce3(0xa3)),exports['PROJECT_EXPORT_DIRECTORY']=(0x0,path_1[_0x507ce3(0x93)])(exports['PROJECT_DIRECTORY'],_0x507ce3(0x76)),exports['PROJECT_TEST_DIRECTORY']=(0x0,path_1[_0x507ce3(0x93)])(exports['PROJECT_BUILD_DIRECTORY'],_0x507ce3(0xa1));}}exports[_0x1ae7f5(0x7c)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x278d(){const _0x3d7782=['from','1472415tMfLmM','ImageHelper','data','Failed\x20to\x20download\x20Web\x20Manifest\x20','967596mOlcFr','Problem\x20reading\x20','./imageHelper','1149078wuFsJO','gzip','headers',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','loadFileString','loadJsonFromNet','content-type','content-encoding','The\x20response\x20status\x20is\x20','defineProperty','includes','startsWith','loadImageFromNet','decompressResponseBuffer','readFile','../utils/CustomError','deflate','image/svg','status','read','__esModule','fetchUtils','951860fwLhpr','CustomError','2358099lLZbeP','loadImageFromDisk','promises','3503948NdapdC','text','get','image/webp','fetch','binary','toString','jimp','trim','image/','1288554rSLXje','../utils/FetchUtils-1','arrayBuffer','loadJsonFromDisk','6KucEHp','40ASOEPg'];_0x278d=function(){return _0x3d7782;};return _0x278d();}const _0x1d4eb0=_0x1a73;(function(_0x3c4b79,_0x439b43){const _0x3dba2=_0x1a73,_0x14a2ac=_0x3c4b79();while(!![]){try{const _0x3463d8=-parseInt(_0x3dba2(0x13d))/0x1+-parseInt(_0x3dba2(0x15a))/0x2+-parseInt(_0x3dba2(0x14c))/0x3+parseInt(_0x3dba2(0x142))/0x4+parseInt(_0x3dba2(0x153))/0x5+-parseInt(_0x3dba2(0x150))/0x6*(-parseInt(_0x3dba2(0x157))/0x7)+-parseInt(_0x3dba2(0x151))/0x8*(-parseInt(_0x3dba2(0x13f))/0x9);if(_0x3463d8===_0x439b43)break;else _0x14a2ac['push'](_0x14a2ac['shift']());}catch(_0x5ca907){_0x14a2ac['push'](_0x14a2ac['shift']());}}}(_0x278d,0xa1d34));Object[_0x1d4eb0(0x163)](exports,_0x1d4eb0(0x13b),{'value':!![]}),exports[_0x1d4eb0(0x15f)]=loadJsonFromNet,exports[_0x1d4eb0(0x14f)]=loadJsonFromDisk,exports[_0x1d4eb0(0x166)]=loadImageFromNet,exports[_0x1d4eb0(0x140)]=loadImageFromDisk,exports[_0x1d4eb0(0x15e)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x1d4eb0(0x14d)),CustomError_1=require(_0x1d4eb0(0x136)),Jimp=require(_0x1d4eb0(0x149)),imageHelper_1=require(_0x1d4eb0(0x159));async function loadJsonFromNet(_0x1e7ab9){const _0xfe08c3=_0x1d4eb0,_0x3b3d38=await FetchUtils_1_1[_0xfe08c3(0x13c)][_0xfe08c3(0x146)](_0x1e7ab9,{'encoding':'binary'});if(_0x3b3d38['status']!==0xc8)throw new CustomError_1['CustomError']({'code':0xbbc,'message':_0xfe08c3(0x156)+_0x1e7ab9+'.'+(_0xfe08c3(0x162)+_0x3b3d38[_0xfe08c3(0x139)]+_0xfe08c3(0x15d)),'message_staring_params':{'web_manifest_url':_0x1e7ab9,'status':_0x3b3d38[_0xfe08c3(0x139)]}});try{let _0x1f43c4;return _0x3b3d38[_0xfe08c3(0x143)]?_0x1f43c4=await _0x3b3d38[_0xfe08c3(0x143)]():['gzip',_0xfe08c3(0x137),'br'][_0xfe08c3(0x164)](_0x3b3d38['headers']['content-encoding'])?_0x1f43c4=FetchUtils_1_1[_0xfe08c3(0x13c)][_0xfe08c3(0x167)](Buffer[_0xfe08c3(0x152)](_0x3b3d38['data'],_0xfe08c3(0x147)),_0x3b3d38[_0xfe08c3(0x15c)][_0xfe08c3(0x161)])[_0xfe08c3(0x148)]():_0x1f43c4=Buffer['from'](_0x3b3d38[_0xfe08c3(0x155)],_0xfe08c3(0x147))[_0xfe08c3(0x148)](),JSON['parse'](_0x1f43c4[_0xfe08c3(0x14a)]());}catch(_0xeb9b4e){throw new CustomError_1[(_0xfe08c3(0x13e))]({'code':0xbbd,'message':'Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','message_staring_params':{}});}}function _0x1a73(_0xa6864a,_0x467a67){const _0x278de4=_0x278d();return _0x1a73=function(_0x1a7348,_0x3deaa1){_0x1a7348=_0x1a7348-0x135;let _0x5035d5=_0x278de4[_0x1a7348];return _0x5035d5;},_0x1a73(_0xa6864a,_0x467a67);}async function loadJsonFromDisk(_0x383dbd){const _0x29bca9=_0x1d4eb0,_0x16e00d=await loadFileString(_0x383dbd[_0x29bca9(0x148)]());return JSON['parse'](_0x16e00d);}async function loadImageFromNet(_0xeeca2){const _0x5680f7=_0x1d4eb0,_0xc26c79=await FetchUtils_1_1[_0x5680f7(0x13c)][_0x5680f7(0x146)](_0xeeca2,{'encoding':_0x5680f7(0x147)});if(_0xc26c79[_0x5680f7(0x139)]!==0xc8)throw new CustomError_1[(_0x5680f7(0x13e))]({'code':0x7d2,'message':'Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20'+_0xc26c79[_0x5680f7(0x139)],'message_staring_params':{'icon_url':_0xeeca2,'status':_0xc26c79[_0x5680f7(0x139)]}});const _0x2a4435=_0xc26c79[_0x5680f7(0x15c)]['get']?_0xc26c79[_0x5680f7(0x15c)][_0x5680f7(0x144)](_0x5680f7(0x160)):_0xc26c79[_0x5680f7(0x15c)][_0x5680f7(0x160)];if(!(_0x2a4435===null||_0x2a4435===void 0x0?void 0x0:_0x2a4435[_0x5680f7(0x165)](_0x5680f7(0x14b))))throw new CustomError_1[(_0x5680f7(0x13e))]({'code':0x7d3,'message':'Received\x20icon\x20with\x20invalid\x20Content-Type.'+('\x20Responded\x20with\x20Content-Type\x20\x22'+_0x2a4435+'\x22'),'message_staring_params':{'icon_url':_0xeeca2,'contentType':_0x2a4435}});let _0x3c611f;_0xc26c79[_0x5680f7(0x14e)]?_0x3c611f=await _0xc26c79['arrayBuffer']():[_0x5680f7(0x15b),_0x5680f7(0x137),'br'][_0x5680f7(0x164)](_0xc26c79['headers']['content-encoding'])?_0x3c611f=FetchUtils_1_1['fetchUtils']['decompressResponseBuffer'](Buffer['from'](_0xc26c79[_0x5680f7(0x155)],'binary'),_0xc26c79['headers'][_0x5680f7(0x161)]):_0x3c611f=Buffer[_0x5680f7(0x152)](_0xc26c79[_0x5680f7(0x155)],_0x5680f7(0x147));if(_0x2a4435['startsWith'](_0x5680f7(0x138))){const _0x4b90b9=new TextDecoder();try{_0x3c611f=await imageHelper_1['ImageHelper']['svg2img'](_0x4b90b9['decode'](_0x3c611f));}catch(_0x54588b){throw new CustomError_1[(_0x5680f7(0x13e))]({'code':0x7d4,'message':_0x5680f7(0x158)+_0xeeca2+':\x20'+_0x54588b,'message_staring_params':{'icon_url':_0xeeca2,'error':_0x54588b}});}}return _0x2a4435[_0x5680f7(0x165)](_0x5680f7(0x145))&&(_0x3c611f=await imageHelper_1[_0x5680f7(0x154)]['webp2PngBuffer'](_0x3c611f)),await Jimp[_0x5680f7(0x13a)](Buffer[_0x5680f7(0x152)](_0x3c611f));}async function loadImageFromDisk(_0x431507){const _0x1bc95e=_0x1d4eb0;return await Jimp[_0x1bc95e(0x13a)](_0x431507);}async function loadFileString(_0x432dba){const _0x4f5b95=_0x1d4eb0;let _0x2bc07b=await fs[_0x4f5b95(0x141)][_0x4f5b95(0x135)](_0x432dba[_0x4f5b95(0x148)]());return _0x2bc07b['toString']();}
|
package/dist/lib/types.d.ts
CHANGED
package/dist/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0x123650=_0x38fc;function _0x7f73(){var _0x32d583=['7ZivIXK','10928258BxrjCl','43687rSHRPW','48Juxfol','1452744APtdRB','3664287LSZZrq','18658PoYtck','defineProperty','20PuWzgf','5429032rRwEop','5rAbqyt','3596121wSTpbB'];_0x7f73=function(){return _0x32d583;};return _0x7f73();}(function(_0x287a0e,_0x2d93b9){var _0x418390=_0x38fc,_0x20f217=_0x287a0e();while(!![]){try{var _0x5cfe94=parseInt(_0x418390(0x11d))/0x1*(-parseInt(_0x418390(0x123))/0x2)+parseInt(_0x418390(0x128))/0x3+parseInt(_0x418390(0x126))/0x4+parseInt(_0x418390(0x127))/0x5*(parseInt(_0x418390(0x121))/0x6)+parseInt(_0x418390(0x11f))/0x7*(-parseInt(_0x418390(0x120))/0x8)+parseInt(_0x418390(0x122))/0x9*(-parseInt(_0x418390(0x125))/0xa)+-parseInt(_0x418390(0x11e))/0xb;if(_0x5cfe94===_0x2d93b9)break;else _0x20f217['push'](_0x20f217['shift']());}catch(_0x4577e2){_0x20f217['push'](_0x20f217['shift']());}}}(_0x7f73,0xd8b18));function _0x38fc(_0xf79a76,_0x10ec0a){var _0x7f738d=_0x7f73();return _0x38fc=function(_0x38fc00,_0x27d10a){_0x38fc00=_0x38fc00-0x11d;var _0x5f3492=_0x7f738d[_0x38fc00];return _0x5f3492;},_0x38fc(_0xf79a76,_0x10ec0a);}Object[_0x123650(0x124)](exports,'__esModule',{'value':!![]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0xa33d42=_0x1462;function _0x1462(_0x32e33d,_0x4bc90e){var _0x28207f=_0x2820();return _0x1462=function(_0x146263,_0x10d2a9){_0x146263=_0x146263-0x14e;var _0x58373b=_0x28207f[_0x146263];return _0x58373b;},_0x1462(_0x32e33d,_0x4bc90e);}(function(_0x48f891,_0x4960b1){var _0x551c5f=_0x1462,_0x59b716=_0x48f891();while(!![]){try{var _0x21a55e=parseInt(_0x551c5f(0x14e))/0x1*(parseInt(_0x551c5f(0x154))/0x2)+-parseInt(_0x551c5f(0x15f))/0x3*(-parseInt(_0x551c5f(0x152))/0x4)+parseInt(_0x551c5f(0x153))/0x5+parseInt(_0x551c5f(0x150))/0x6*(-parseInt(_0x551c5f(0x157))/0x7)+parseInt(_0x551c5f(0x15e))/0x8*(-parseInt(_0x551c5f(0x15b))/0x9)+parseInt(_0x551c5f(0x15d))/0xa*(parseInt(_0x551c5f(0x156))/0xb)+-parseInt(_0x551c5f(0x155))/0xc*(parseInt(_0x551c5f(0x158))/0xd);if(_0x21a55e===_0x4960b1)break;else _0x59b716['push'](_0x59b716['shift']());}catch(_0x391d25){_0x59b716['push'](_0x59b716['shift']());}}}(_0x2820,0x3bed7));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0xa33d42(0x14f)]=void 0x0;class CustomError extends Error{constructor(_0x2bdd48,_0x523b93){var _0x4d2ca8=_0xa33d42;super(JSON[_0x4d2ca8(0x15c)](_0x2bdd48)),this[_0x4d2ca8(0x159)]=_0x2bdd48,this[_0x4d2ca8(0x151)]=_0x523b93||_0x4d2ca8(0x15a);}}exports['CustomError']=CustomError;function _0x2820(){var _0x5fdf1e=['1389335psyNrL','4DttPxt','48WKlneX','11BBgByG','49RXgczn','1497067OjHvqh','customMessage','info','333738rqQUAh','stringify','1196020LVrDaY','104ZfqqGD','1242591zlsZUR','228629azOwDn','CustomError','69222rDPFQc','type','4mAJQgf'];_0x2820=function(){return _0x5fdf1e;};return _0x2820();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3bce78=_0x40c2;(function(_0x347c65,_0x3a434d){const _0x10ea99=_0x40c2,_0x1707cd=_0x347c65();while(!![]){try{const _0x51424c=-parseInt(_0x10ea99(0x92))/0x1*(parseInt(_0x10ea99(0x96))/0x2)+parseInt(_0x10ea99(0x9c))/0x3*(parseInt(_0x10ea99(0xa2))/0x4)+-parseInt(_0x10ea99(0x9d))/0x5+-parseInt(_0x10ea99(0xa0))/0x6+parseInt(_0x10ea99(0x95))/0x7*(-parseInt(_0x10ea99(0x9e))/0x8)+parseInt(_0x10ea99(0xa1))/0x9*(parseInt(_0x10ea99(0x98))/0xa)+parseInt(_0x10ea99(0xa3))/0xb;if(_0x51424c===_0x3a434d)break;else _0x1707cd['push'](_0x1707cd['shift']());}catch(_0x347b0a){_0x1707cd['push'](_0x1707cd['shift']());}}}(_0x1d8d,0xa5033));function _0x40c2(_0x27babd,_0x5792f4){const _0x1d8d89=_0x1d8d();return _0x40c2=function(_0x40c297,_0x1f43a2){_0x40c297=_0x40c297-0x91;let _0xa56747=_0x1d8d89[_0x40c297];return _0xa56747;},_0x40c2(_0x27babd,_0x5792f4);}function _0x1d8d(){const _0x4ea0d3=['177611bauZzg','153926vCRzqe','decompressResponseBuffer','950ZZvcGI','downloadFile','defineProperty','fetchEngine','3zdTWBI','1764675fgFHrK','176NsVgFx','setDecompressResponseBuffer','561048XofXEH','107262kREMia','310564tRNrGu','11103730aIHPqJ','fetchUtils','7pWXOMc','setFetchEngine','fetch'];_0x1d8d=function(){return _0x4ea0d3;};return _0x1d8d();}Object[_0x3bce78(0x9a)](exports,'__esModule',{'value':!![]}),exports[_0x3bce78(0x91)]=void 0x0;class FetchUtils{constructor(){const _0x28e376=_0x3bce78;this['fetchEngine']=null,this[_0x28e376(0x94)]=null,this[_0x28e376(0x99)]=null,this[_0x28e376(0x97)]=null;}[_0x3bce78(0x93)](_0x55da5c){const _0x2e3074=_0x3bce78;this[_0x2e3074(0x9b)]=_0x55da5c;}['setFetch'](_0x33c765){const _0x268b36=_0x3bce78;this[_0x268b36(0x94)]=_0x33c765;}['setDownloadFile'](_0x4d9d04){const _0x4876bb=_0x3bce78;this[_0x4876bb(0x99)]=_0x4d9d04;}[_0x3bce78(0x9f)](_0x430eb7){const _0x5f2ee5=_0x3bce78;this[_0x5f2ee5(0x97)]=_0x430eb7;}}const fetchUtils=new FetchUtils();exports[_0x3bce78(0x91)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x31d6(){var _0x51b79e=['prefix','defineProperty','5PnNxxV','1924737jnsatK','WARNING\x20','5426778CqgLjR','ConsoleLog','tag','544080dYxsYb','dim','ERROR\x20','\x1b[31m','\x1b[7m','verbose','error','yellow','debug','__esModule','\x1b[0m','219159etcviP','inverse','red','985988qIxzUM','output','log','11607456AnBCkq','24UHquND','\x1b[36m','warn','1427155dtNtfN'];_0x31d6=function(){return _0x51b79e;};return _0x31d6();}var _0x36e350=_0x5ece;(function(_0x5571c4,_0x547907){var _0x931992=_0x5ece,_0x468e20=_0x5571c4();while(!![]){try{var _0x400330=-parseInt(_0x931992(0x87))/0x1+parseInt(_0x931992(0x72))/0x2+-parseInt(_0x931992(0x8b))/0x3+parseInt(_0x931992(0x80))/0x4+parseInt(_0x931992(0x8a))/0x5*(parseInt(_0x931992(0x6f))/0x6)+parseInt(_0x931992(0x83))/0x7+parseInt(_0x931992(0x84))/0x8*(-parseInt(_0x931992(0x7d))/0x9);if(_0x400330===_0x547907)break;else _0x468e20['push'](_0x468e20['shift']());}catch(_0x4991a9){_0x468e20['push'](_0x468e20['shift']());}}}(_0x31d6,0xe559d));Object[_0x36e350(0x89)](exports,_0x36e350(0x7b),{'value':!![]}),exports[_0x36e350(0x70)]=void 0x0;function _0x5ece(_0x41cbc2,_0x53e382){var _0x31d602=_0x31d6();return _0x5ece=function(_0x5ece05,_0x5b49c6){_0x5ece05=_0x5ece05-0x6e;var _0x31e120=_0x31d602[_0x5ece05];return _0x31e120;},_0x5ece(_0x41cbc2,_0x53e382);}class ConsoleLog{constructor(_0x58456f='',_0x5b7ad8=![],_0x5454d2=console){var _0x47e5f8=_0x36e350;this[_0x47e5f8(0x71)]=_0x58456f,this[_0x47e5f8(0x77)]=_0x5b7ad8,this[_0x47e5f8(0x88)]=this[_0x47e5f8(0x7e)](_0x58456f),this['output']=_0x5454d2;}[_0x36e350(0x7a)](_0x3ab35d,..._0x190b00){var _0xc50493=_0x36e350;if(!this[_0xc50493(0x77)])return;this[_0xc50493(0x82)](this[_0xc50493(0x81)]['log'],this[_0xc50493(0x73)](_0x3ab35d),..._0x190b00);}['info'](_0x5b1205,..._0x5d7d15){var _0x5788b6=_0x36e350;this[_0x5788b6(0x82)](this[_0x5788b6(0x81)][_0x5788b6(0x82)],_0x5b1205,..._0x5d7d15);}[_0x36e350(0x86)](_0x54840c,..._0x58089e){var _0x5a9c77=_0x36e350;this[_0x5a9c77(0x82)](this[_0x5a9c77(0x81)][_0x5a9c77(0x86)],this[_0x5a9c77(0x79)](_0x5a9c77(0x6e)+_0x54840c),..._0x58089e);}[_0x36e350(0x78)](_0x25722b,..._0x4147e2){var _0x160b14=_0x36e350;this[_0x160b14(0x81)][_0x160b14(0x78)]('\x0a'),this[_0x160b14(0x82)](this[_0x160b14(0x81)]['error'],this[_0x160b14(0x7f)](_0x160b14(0x74)+_0x25722b),..._0x4147e2),this[_0x160b14(0x81)]['error']('\x0a');}['setVerbose'](_0x1d6196){this['verbose']=_0x1d6196;}['newLog'](_0x315f0a){var _0x22e0ab=_0x36e350;return this[_0x22e0ab(0x71)]&&(_0x315f0a=this[_0x22e0ab(0x71)]+'\x20'+_0x315f0a),new ConsoleLog(_0x315f0a,this[_0x22e0ab(0x77)],this['output']);}[_0x36e350(0x82)](_0x1c221f,_0x3ea96a,..._0x34134c){var _0x5d7420=_0x36e350;this[_0x5d7420(0x88)]&&(_0x3ea96a=this[_0x5d7420(0x88)]+'\x20'+_0x3ea96a),_0x34134c?_0x1c221f(...[_0x3ea96a]['concat'](_0x34134c)):_0x1c221f(_0x3ea96a);}['inverse'](_0x1e0580){var _0x27dfe5=_0x36e350;return _0x27dfe5(0x76)+_0x1e0580+_0x27dfe5(0x7c);}[_0x36e350(0x73)](_0x47b170){var _0x55f958=_0x36e350;return _0x55f958(0x85)+_0x47b170+_0x55f958(0x7c);}['yellow'](_0x33702c){var _0x2c3cd9=_0x36e350;return'\x1b[33m'+_0x33702c+_0x2c3cd9(0x7c);}['red'](_0x1cd6d9){var _0x345c91=_0x36e350;return _0x345c91(0x75)+_0x1cd6d9+_0x345c91(0x7c);}}exports[_0x36e350(0x70)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x206f9b=_0x5b71;(function(_0x4479d5,_0x887bcc){const _0x5c8cf6=_0x5b71,_0x543122=_0x4479d5();while(!![]){try{const _0x4b9caa=-parseInt(_0x5c8cf6(0x12b))/0x1+parseInt(_0x5c8cf6(0x11b))/0x2+parseInt(_0x5c8cf6(0x12e))/0x3+parseInt(_0x5c8cf6(0x11e))/0x4*(parseInt(_0x5c8cf6(0x131))/0x5)+parseInt(_0x5c8cf6(0x12a))/0x6+-parseInt(_0x5c8cf6(0x130))/0x7*(-parseInt(_0x5c8cf6(0x135))/0x8)+-parseInt(_0x5c8cf6(0x122))/0x9*(parseInt(_0x5c8cf6(0x11f))/0xa);if(_0x4b9caa===_0x887bcc)break;else _0x543122['push'](_0x543122['shift']());}catch(_0x464b8e){_0x543122['push'](_0x543122['shift']());}}}(_0x5b7a,0x70134));function _0x5b7a(){const _0x3ad770=['brotliDecompressSync','context','56RowZEK','readable','error','1399732MofWLL','follow','test','4OAhESm','21669260JHwiCj','Z_SYNC_FLUSH','createWriteStream','9YMldvW','fetch-h2','fetch','length','data','Content-Length','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','finish','4420818EQOUfT','160090BVhsGB','constants','get','1563708CmWMuH','__esModule','380597ZSMyUc','2237870hoQvnz','pipe'];_0x5b7a=function(){return _0x3ad770;};return _0x5b7a();}Object['defineProperty'](exports,_0x206f9b(0x12f),{'value':!![]}),exports[_0x206f9b(0x124)]=fetch,exports['downloadFile']=downloadFile,exports['decompressResponseBuffer']=decompressResponseBuffer;const fetch_h2_1=require(_0x206f9b(0x123)),fs=require('fs'),zlib=require('zlib'),userAgent=_0x206f9b(0x128),fetchh2Ctx=(0x0,fetch_h2_1[_0x206f9b(0x134)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x206f9b(0x124)];function _0x5b71(_0x5bed06,_0x549340){const _0x5b7a86=_0x5b7a();return _0x5b71=function(_0x5b7188,_0x50759a){_0x5b7188=_0x5b7188-0x11a;let _0x324619=_0x5b7a86[_0x5b7188];return _0x324619;},_0x5b71(_0x5bed06,_0x549340);}async function fetch(_0x220b18,_0x1c2b28){const _0x12e967=_0x206f9b;return await fetchh2(_0x220b18,_0x1c2b28?{'redirect':'follow',..._0x1c2b28}:{'redirect':_0x12e967(0x11c)});}async function downloadFile(_0x34246a,_0x55d4b6,_0x465802){const _0x2d1ce9=_0x206f9b;let _0x7d09aa,_0x32a0bd;_0x7d09aa=await fetchh2(_0x34246a,{'redirect':_0x2d1ce9(0x11c)}),_0x32a0bd=await _0x7d09aa[_0x2d1ce9(0x136)]();const _0x2150b9=_0x7d09aa['headers'][_0x2d1ce9(0x12d)](_0x2d1ce9(0x127)),_0x4894d4=_0x2150b9?parseInt(_0x2150b9):-0x1,_0x119fb1=fs[_0x2d1ce9(0x121)](_0x55d4b6);let _0x6e71d0=0x0;await new Promise((_0xf3c5fd,_0x39b95b)=>{const _0x244b0f=_0x2d1ce9;_0x32a0bd[_0x244b0f(0x132)](_0x119fb1),_0x465802&&_0x32a0bd['on'](_0x244b0f(0x126),_0x4e0dc4=>{const _0x3a0020=_0x244b0f;_0x6e71d0=_0x6e71d0+_0x4e0dc4[_0x3a0020(0x125)],_0x465802(_0x6e71d0,_0x4894d4);}),_0x32a0bd['on'](_0x244b0f(0x11a),_0x694d3b=>{_0x39b95b(_0x694d3b);}),_0x119fb1['on'](_0x244b0f(0x129),()=>{_0xf3c5fd();});});}function decompressResponseBuffer(_0x2f8782,_0x551a09){const _0x23df02=_0x206f9b;let _0x12061a=_0x2f8782;if(/\bgzip\b/[_0x23df02(0x11d)](_0x551a09)||/\bdeflate\b/[_0x23df02(0x11d)](_0x551a09))_0x12061a=zlib['unzipSync'](_0x2f8782,{'flush':zlib[_0x23df02(0x12c)]['Z_SYNC_FLUSH'],'finishFlush':zlib[_0x23df02(0x12c)][_0x23df02(0x120)]});else/\bbr\b/[_0x23df02(0x11d)](_0x551a09)&&(_0x12061a=zlib[_0x23df02(0x133)](_0x2f8782));return _0x12061a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2d34(){const _0x5d497f=['Historical\x20records\x20found','cmd','join','writeFileSync','init','utf-8','history','recordSimulator','existsSync','manifest','defineProperty','2hWgYxQ','log','compareObjects','372586WWMCaD','1431615dpLbxk','default','2993564RaWzoH','getSimulatorHistory','simulator','appInfo','path','66672pmKecz','name','CliLog','record','defaultHistory','checkCommand','getSimulatorRecord','18120IwnZOo','keys','getAppInfoRecord','3707QiyJmy','4UtJcTM','1330161OkAKDj','No\x20historical\x20records\x20found','stringify','261uizOrf','./utils','warn','length','20680ygNQYd','recordManifest'];_0x2d34=function(){return _0x5d497f;};return _0x2d34();}const _0x1a03bc=_0x1c77;(function(_0xa4f720,_0x487553){const _0x2dd5a0=_0x1c77,_0x2fd31d=_0xa4f720();while(!![]){try{const _0x5780db=-parseInt(_0x2dd5a0(0xa0))/0x1*(parseInt(_0x2dd5a0(0xa3))/0x2)+parseInt(_0x2dd5a0(0xb7))/0x3+parseInt(_0x2dd5a0(0xb6))/0x4*(parseInt(_0x2dd5a0(0xa4))/0x5)+-parseInt(_0x2dd5a0(0xab))/0x6+parseInt(_0x2dd5a0(0xa6))/0x7+parseInt(_0x2dd5a0(0x93))/0x8*(parseInt(_0x2dd5a0(0xba))/0x9)+-parseInt(_0x2dd5a0(0xb2))/0xa*(parseInt(_0x2dd5a0(0xb5))/0xb);if(_0x5780db===_0x487553)break;else _0x2fd31d['push'](_0x2fd31d['shift']());}catch(_0x413f46){_0x2fd31d['push'](_0x2fd31d['shift']());}}}(_0x2d34,0x3a1a1));Object[_0x1a03bc(0x9f)](exports,'__esModule',{'value':!![]});function _0x1c77(_0x2812f1,_0x2effb8){const _0x2d3447=_0x2d34();return _0x1c77=function(_0x1c7758,_0x2a30c6){_0x1c7758=_0x1c7758-0x93;let _0x5c91f7=_0x2d3447[_0x1c7758];return _0x5c91f7;},_0x1c77(_0x2812f1,_0x2effb8);}const path_1=require(_0x1a03bc(0xaa)),fs=require('fs'),utils_1=require(_0x1a03bc(0xbb));class CliHistory{static[_0x1a03bc(0x99)](_0x5c5a65){const _0x3f8695=_0x1a03bc;let _0x7b4473=(0x0,path_1['join'])(__dirname,'../../run_history.txt'),_0x5e80b2=this[_0x3f8695(0xaf)];if(!fs[_0x3f8695(0x9d)](_0x7b4473))fs[_0x3f8695(0x98)](_0x7b4473,'');else try{_0x5e80b2=JSON['parse'](fs['readFileSync'](_0x7b4473,_0x3f8695(0x9a))),console[_0x3f8695(0xa1)](_0x3f8695(0x95));}catch(_0x51f41e){utils_1[_0x3f8695(0xad)][_0x3f8695(0xbc)](_0x3f8695(0xb8));}this[_0x3f8695(0x9b)]=_0x5e80b2,this['record'][_0x3f8695(0x96)]=_0x5c5a65;}static[_0x1a03bc(0xb4)](){const _0xa7bb0c=_0x1a03bc;return this[_0xa7bb0c(0xae)][_0xa7bb0c(0xa9)];}static[_0x1a03bc(0xb1)](){const _0x363ea1=_0x1a03bc;return this[_0x363ea1(0xae)][_0x363ea1(0xa8)];}static[_0x1a03bc(0xa7)](){const _0x5e9957=_0x1a03bc;return this[_0x5e9957(0x9b)][_0x5e9957(0xa8)];}static[_0x1a03bc(0x94)](_0x2fc067){const _0x26cb79=_0x1a03bc;this[_0x26cb79(0xae)][_0x26cb79(0x9e)]=_0x2fc067,this[_0x26cb79(0xae)][_0x26cb79(0xa9)]['name']=_0x2fc067[_0x26cb79(0xac)],this[_0x26cb79(0xae)][_0x26cb79(0xa9)]['id']=_0x2fc067['id'];}static[_0x1a03bc(0x9c)](_0x1ef1f9){const _0x4b369d=_0x1a03bc;this[_0x4b369d(0xae)][_0x4b369d(0xa8)]=_0x1ef1f9;}static['checkManifest'](_0x3adf32){const _0x5d8063=_0x1a03bc;return this[_0x5d8063(0xa2)](this['history'][_0x5d8063(0x9e)],_0x3adf32);}static[_0x1a03bc(0xa2)](_0x18895a,_0x2a836a){const _0x37d50e=_0x1a03bc,_0x1ef124=Object[_0x37d50e(0xb3)](_0x18895a),_0x284052=Object[_0x37d50e(0xb3)](_0x2a836a);if(_0x1ef124[_0x37d50e(0xbd)]!==_0x284052[_0x37d50e(0xbd)])return![];for(const _0x95c6f5 of _0x1ef124){const _0x473cb2=_0x18895a[_0x95c6f5],_0x20369c=_0x2a836a[_0x95c6f5];if(_0x473cb2===undefined||_0x20369c===undefined){if(_0x473cb2!==_0x20369c)return![];continue;}if(typeof _0x473cb2==='object'&&_0x473cb2!==null){if(!this[_0x37d50e(0xa2)](_0x473cb2,_0x20369c))return![];continue;}if(_0x473cb2!==_0x20369c)return console[_0x37d50e(0xa1)]('Mismatch\x20found\x20at\x20key:\x20'+_0x95c6f5),![];}return!![];}static[_0x1a03bc(0xb0)](_0x552926){const _0x1ed5cf=_0x1a03bc;return this[_0x1ed5cf(0x9b)][_0x1ed5cf(0x96)]===_0x552926;}static['write'](){const _0x5eb1f5=_0x1a03bc;let _0x50e43e=(0x0,path_1[_0x5eb1f5(0x97)])(__dirname,'../../run_history.txt');fs[_0x5eb1f5(0x98)](_0x50e43e,JSON[_0x5eb1f5(0xb9)](this[_0x5eb1f5(0xae)]));}}CliHistory[_0x1a03bc(0xaf)]={'cmd':'','manifest':{},'appInfo':{'name':'','id':''},'simulator':''},CliHistory[_0x1a03bc(0xae)]={'cmd':'','manifest':{},'appInfo':{'name':'','id':''},'simulator':''},exports[_0x1a03bc(0xa5)]=CliHistory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2b5968=_0x3c63;(function(_0x164b37,_0x6eaf30){const _0x57f0b5=_0x3c63,_0x37ccae=_0x164b37();while(!![]){try{const _0x1b8312=-parseInt(_0x57f0b5(0xe4))/0x1*(-parseInt(_0x57f0b5(0xf0))/0x2)+parseInt(_0x57f0b5(0xf8))/0x3+-parseInt(_0x57f0b5(0xd5))/0x4+parseInt(_0x57f0b5(0xdb))/0x5*(-parseInt(_0x57f0b5(0xe7))/0x6)+-parseInt(_0x57f0b5(0xc8))/0x7*(-parseInt(_0x57f0b5(0xe1))/0x8)+-parseInt(_0x57f0b5(0xed))/0x9*(-parseInt(_0x57f0b5(0x100))/0xa)+parseInt(_0x57f0b5(0xcb))/0xb;if(_0x1b8312===_0x6eaf30)break;else _0x37ccae['push'](_0x37ccae['shift']());}catch(_0xa1e25c){_0x37ccae['push'](_0x37ccae['shift']());}}}(_0x2f89,0x1dbf6));function _0x2f89(){const _0x44267c=['green','bold','Invalid\x20URL:\x20','--url','Downloading\x20the\x20Android\x20SDK...','\x20or\x20','Do\x20you\x20want\x20to\x20create\x20one\x20now?','\x22.\x0a','7NnVgjA','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)','Path\x20to\x20your\x20existing\x20Android\x20SDK:','2221637cpVpit','Path\x20to\x20your\x20existing\x20JDK\x2011:','messages','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','\x20and\x20alias\x20','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','Invalid\x20integer\x20provided:\x20','\x0aProject\x20generated\x20successfully.','underline','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','677612awzVwF','Decompressing\x20the\x20JDK\x2011\x20Sources...','Downloading\x20the\x20JDK\x2011\x20Binaries...','cyan','Generating\x20Android\x20Project.','URL\x20','5pCJXII','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','Invalid\x20icon\x20path:\x20','Maximum\x20length\x20is\x20','\x20URL\x20','44216gkAYtJ','\x0aSigning\x20key\x20information\x20','license\x20agreement.','1qnOZmU','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','Country\x20(2\x20letter\x20code):','1009398fLSbgB','\x20Check\x20out\x20the\x20Play\x20for','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)','Downloading\x20the\x20JDK\x2011\x20Sources...','Missing\x20required\x20parameter\x20','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','1665oRIOen','yellow','\x09-\x20Generated\x20Android\x20APK\x20at\x20','416180wBwYQQ','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','Organization\x20(eg:\x20Company\x20Name):','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','\x0aSigning\x20key\x20creation','Downloading\x20Android\x20SDK\x20to\x20','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','\x20can\x20not\x20be\x20accessible.','71199TSTdfQ','__esModule','--manifest-url','Minimum\x20length\x20is\x20','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Password\x20for\x20the\x20Key:','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','Decompressing\x20the\x20JDK\x2011\x20Binaries...','1090UJpiWf','\x20but\x20input\x20is\x20'];_0x2f89=function(){return _0x44267c;};return _0x2f89();}Object['defineProperty'](exports,_0x2b5968(0xf9),{'value':!![]}),exports[_0x2b5968(0xcd)]=void 0x0;const colors_1=require('colors');function _0x3c63(_0x4baadf,_0x49ffb1){const _0x2f8952=_0x2f89();return _0x3c63=function(_0x3c631f,_0x59e51b){_0x3c631f=_0x3c631f-0xc3;let _0x2116a1=_0x2f8952[_0x3c631f];return _0x2116a1;},_0x3c63(_0x4baadf,_0x49ffb1);}exports[_0x2b5968(0xcd)]={'promptInstallJdk':_0x2b5968(0xc9),'promptJdkPath':_0x2b5968(0xcc),'messageDownloadJdk':'Downloading\x20JDK\x2011\x20to\x20','messageDownloadJdkSrc':_0x2b5968(0xea),'messageDecompressJdkSrc':_0x2b5968(0xd6),'messageDownloadJdkBin':_0x2b5968(0xd7),'messageDecompressJdkBin':_0x2b5968(0xff),'promptInstallSdk':_0x2b5968(0xe9),'promptSdkPath':_0x2b5968(0xca),'messageDownloadSdk':_0x2b5968(0xf5),'errorSdkTerms':'Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','promptSdkTerms':_0x2b5968(0xfc)+(0x0,colors_1[_0x2b5968(0xd3)])('https://developer.android.com/studio/terms.html')+'?','messageDownloadAndroidSdk':_0x2b5968(0xc4),'messageDecompressAndroidSdk':'Decompressing\x20the\x20Android\x20SDK...','messageInstallingBuildTools':_0x2b5968(0xd0)+_0x2b5968(0xe3),'messageGeneratingAndroidProject':_0x2b5968(0xd9),'messageCheckSuccess':(_0x5677cf,_0x7f217e)=>{const _0x1c51ac=_0x2b5968;return _0x1c51ac(0xe0)+(0x0,colors_1[_0x1c51ac(0xd8)])(_0x5677cf)+'\x20'+(_0x7f217e?'redirected\x20to\x20'+(0x0,colors_1[_0x1c51ac(0xd8)])(_0x7f217e):'')+_0x1c51ac(0xdc);},'errorMissingManifestParameter':_0x2b5968(0xeb)+((0x0,colors_1['cyan'])(_0x2b5968(0xfa))+_0x2b5968(0xc5)+(0x0,colors_1['cyan'])('--manifest')),'messageInitializingWebManifest':_0x98a431=>{const _0x2e26d9=_0x2b5968;return'Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x2e26d9(0xd8)])(_0x98a431);},'messageInitializingLocalManifest':_0x25718b=>{const _0x2438f6=_0x2b5968;return _0x2438f6(0xe5)+(0x0,colors_1[_0x2438f6(0xd8)])(_0x25718b);},'messageInvalidIcon':_0x7fe0=>{const _0x3770a8=_0x2b5968;return _0x3770a8(0xde)+(0x0,colors_1['cyan'])(_0x7fe0);},'errorStartUrlNotReachable':_0xfa2196=>_0x2b5968(0xda)+_0xfa2196+_0x2b5968(0xf7)+_0x2b5968(0xce),'warnFamilyPolicy':(0x0,colors_1[_0x2b5968(0x103)])((0x0,colors_1[_0x2b5968(0xee)])('WARNING:\x20'))+_0x2b5968(0xf3)+'\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.'+_0x2b5968(0xe8)+_0x2b5968(0xd4)+(0x0,colors_1[_0x2b5968(0xd8)])('https://play.google.com/console/about/families/'),'promptIconUrl':'Icon\x20URL:','errorInvalidUrl':_0x1abbcf=>{const _0x4daff8=_0x2b5968;return _0x4daff8(0x104)+_0x1abbcf;},'errorUrlMustBeImage':_0x4fdff0=>{return'URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20'+_0x4fdff0+'.';},'promptVersionCode':'Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','promptVersionName':_0x2b5968(0xdd),'messageSigningKeyInformation':(0x0,colors_1[_0x2b5968(0xd3)])(_0x2b5968(0xe2)+(0x0,colors_1[_0x2b5968(0x102)])('(5/5)')),'messageProjectGeneratedSuccess':_0x2b5968(0xd2),'messageSigningKeyCreation':(0x0,colors_1[_0x2b5968(0xd3)])(_0x2b5968(0xf4)),'messageSigningKeyNotFound':_0x163540=>{const _0x4c6d9c=_0x2b5968;return _0x4c6d9c(0xf1)+_0x163540+_0x4c6d9c(0xc7);},'promptCreateKey':_0x2b5968(0xc6),'promptKeyFullName':_0x2b5968(0xec),'promptKeyOrganizationalUnit':_0x2b5968(0xfe),'promptKeyOrganization':_0x2b5968(0xf2),'promptKeyCountry':_0x2b5968(0xe6),'promptKeystorePassword':'Password\x20for\x20the\x20Key\x20Store:','promptKeyPassword':_0x2b5968(0xfd),'messageBuildingApp':'\x0aBuilding\x20the\x20Android\x20App...','messageEnterPasswords':(_0x267e8f,_0x34bcfd)=>{const _0x82f42b=_0x2b5968;return _0x82f42b(0xf6)+(0x0,colors_1['cyan'])(_0x267e8f)+_0x82f42b(0xcf)+(0x0,colors_1[_0x82f42b(0xd8)])(_0x34bcfd)+'.\x0a';},'errorMinLength':(_0x38f5e5,_0x511353)=>{const _0x3e70fa=_0x2b5968;return _0x3e70fa(0xfb)+_0x38f5e5+_0x3e70fa(0x101)+_0x511353+'.';},'errorMaxLength':(_0x4ab8c4,_0x14cdec)=>{const _0x41a916=_0x2b5968;return _0x41a916(0xdf)+_0x4ab8c4+_0x41a916(0x101)+_0x14cdec+'.';},'errorInvalidInteger':_0x5e11dd=>{const _0x48b224=_0x2b5968;return _0x48b224(0xd1)+_0x5e11dd;},'messageApkSuccess':_0x3508b6=>{const _0x204861=_0x2b5968;return _0x204861(0xef)+(0x0,colors_1[_0x204861(0xd8)])(_0x3508b6);},'missingUrlToCheck':_0x2b5968(0xeb)+(''+(0x0,colors_1[_0x2b5968(0xd8)])(_0x2b5968(0xc3)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x151f2e=_0x2348;function _0x2348(_0x5214ee,_0x21da61){const _0x28c4a1=_0x28c4();return _0x2348=function(_0x23481c,_0x5454f1){_0x23481c=_0x23481c-0x6f;let _0x17f5a7=_0x28c4a1[_0x23481c];return _0x17f5a7;},_0x2348(_0x5214ee,_0x21da61);}(function(_0x5d8026,_0x1ceccc){const _0x4e18e8=_0x2348,_0x31e4dc=_0x5d8026();while(!![]){try{const _0x5716d7=parseInt(_0x4e18e8(0x6f))/0x1+-parseInt(_0x4e18e8(0x7b))/0x2*(parseInt(_0x4e18e8(0x80))/0x3)+parseInt(_0x4e18e8(0x72))/0x4+parseInt(_0x4e18e8(0x7a))/0x5*(parseInt(_0x4e18e8(0x7c))/0x6)+-parseInt(_0x4e18e8(0x81))/0x7+-parseInt(_0x4e18e8(0x71))/0x8+parseInt(_0x4e18e8(0x7d))/0x9*(parseInt(_0x4e18e8(0x77))/0xa);if(_0x5716d7===_0x1ceccc)break;else _0x31e4dc['push'](_0x31e4dc['shift']());}catch(_0x399873){_0x31e4dc['push'](_0x31e4dc['shift']());}}}(_0x28c4,0x67523));function _0x28c4(){const _0x1b4790=['defineProperty','join','__esModule','4260jxwWIf','indexOf','webspatial-builder','5TXytWq','18686RAtcaO','4052364EALfav','234JUYQEO','./Log','pop','9iPPfIW','4484830RvsLGV','172001RNBlpl','ConsoleLog','108296GOYWsv','987952CFuzTW','CliLog'];_0x28c4=function(){return _0x1b4790;};return _0x28c4();}Object[_0x151f2e(0x74)](exports,_0x151f2e(0x76),{'value':!![]}),exports[_0x151f2e(0x73)]=void 0x0,exports['parseRouter']=parseRouter;const Log_1=require(_0x151f2e(0x7e));function parseRouter(_0x3e3f16){const _0x3a4b1b=_0x151f2e;let _0x5dd26d=_0x3e3f16['split']('/');_0x5dd26d[_0x3a4b1b(0x7f)]();let _0x26c243=_0x5dd26d[_0x3a4b1b(0x75)]();while(_0x26c243[_0x3a4b1b(0x78)](',')>=0x0){_0x26c243=_0x26c243['replace'](',','/');}return _0x26c243;}exports['CliLog']=new Log_1[(_0x151f2e(0x70))](_0x151f2e(0x79));
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1569(){const _0x355a3b=['282280pqvIxd','583843qiMPTo','default','XcodeManager','./xcodebuild','846549MoDspU','path','80lnsiPm','/web-spatial.xcodeproj/project.pbxproj','10145KjpGIi','PROJECT_DIRECTORY','.ipa','defineProperty','join','30843790VxAylr','987312vPyguJ','./xcrun','9yzKOwx','uploadApp','parseProject','876211fqMMiR','log','../resource','archive','PROJECT_EXPORT_DIRECTORY','write\x20project.pbxproj:\x20ok','2172xCVMvp','runWithHistory','name','./xcodeproject'];_0x1569=function(){return _0x355a3b;};return _0x1569();}const _0x186f12=_0x4206;(function(_0x23bc37,_0x2b560a){const _0x448c2b=_0x4206,_0x3df371=_0x23bc37();while(!![]){try{const _0x1824f3=-parseInt(_0x448c2b(0x7d))/0x1+parseInt(_0x448c2b(0x8b))/0x2+-parseInt(_0x448c2b(0x81))/0x3+-parseInt(_0x448c2b(0x7c))/0x4+-parseInt(_0x448c2b(0x85))/0x5*(parseInt(_0x448c2b(0x96))/0x6)+parseInt(_0x448c2b(0x90))/0x7*(-parseInt(_0x448c2b(0x83))/0x8)+-parseInt(_0x448c2b(0x8d))/0x9*(-parseInt(_0x448c2b(0x8a))/0xa);if(_0x1824f3===_0x2b560a)break;else _0x3df371['push'](_0x3df371['shift']());}catch(_0x2565cb){_0x3df371['push'](_0x3df371['shift']());}}}(_0x1569,0x9ff6b));Object[_0x186f12(0x88)](exports,'__esModule',{'value':!![]}),exports['XcodeManager']=void 0x0;const resource_1=require(_0x186f12(0x92)),xcodeproject_1=require(_0x186f12(0x7b)),xcodebuild_1=require(_0x186f12(0x80)),xcrun_1=require(_0x186f12(0x8c)),path_1=require(_0x186f12(0x82));class XcodeManager{static async[_0x186f12(0x8f)](_0x19a54d,_0x109cb0=![]){const _0x1c2e95=_0x186f12,_0x4c361d=resource_1[_0x1c2e95(0x86)]+_0x1c2e95(0x84);await xcodeproject_1[_0x1c2e95(0x7e)]['modify'](_0x4c361d,_0x19a54d,_0x109cb0),console[_0x1c2e95(0x91)](_0x1c2e95(0x95));}static async['build'](_0x5c43e){const _0x148153=_0x186f12;await xcodebuild_1[_0x148153(0x7e)][_0x148153(0x93)](_0x5c43e);}static async['upload'](_0x5380bd,_0x38171f){const _0x44602d=_0x186f12;if(_0x5380bd['u']&&_0x5380bd['p'])xcrun_1[_0x44602d(0x7e)][_0x44602d(0x8e)]((0x0,path_1[_0x44602d(0x89)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x38171f['name']+_0x44602d(0x87)),_0x5380bd['u'],_0x5380bd['p'],!![]);else _0x5380bd['k']&&_0x5380bd['i']&&xcrun_1[_0x44602d(0x7e)][_0x44602d(0x8e)]((0x0,path_1[_0x44602d(0x89)])(resource_1[_0x44602d(0x94)],_0x38171f[_0x44602d(0x7a)]+_0x44602d(0x87)),_0x5380bd['k'],_0x5380bd['i'],![]);}static async['runWithSimulator'](){const _0x4e46d3=_0x186f12;await xcrun_1[_0x4e46d3(0x7e)]['runWithSimulator']();}static async[_0x186f12(0x79)](){const _0x986cf9=_0x186f12;await xcrun_1['default'][_0x986cf9(0x79)]();}}function _0x4206(_0x10572c,_0x258eb2){const _0x15695f=_0x1569();return _0x4206=function(_0x4206bc,_0x420d95){_0x4206bc=_0x4206bc-0x79;let _0x3c1ad2=_0x15695f[_0x4206bc];return _0x3c1ad2;},_0x4206(_0x10572c,_0x258eb2);}exports[_0x186f12(0x7f)]=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0xb4672f=_0x4ea5;(function(_0x161de1,_0x333680){var _0x59c8dd=_0x4ea5,_0x2b9885=_0x161de1();while(!![]){try{var _0x47e3de=-parseInt(_0x59c8dd(0x15d))/0x1+parseInt(_0x59c8dd(0x15c))/0x2+parseInt(_0x59c8dd(0x162))/0x3*(parseInt(_0x59c8dd(0x159))/0x4)+parseInt(_0x59c8dd(0x15a))/0x5*(-parseInt(_0x59c8dd(0x15e))/0x6)+-parseInt(_0x59c8dd(0x161))/0x7+parseInt(_0x59c8dd(0x15b))/0x8+parseInt(_0x59c8dd(0x158))/0x9;if(_0x47e3de===_0x333680)break;else _0x2b9885['push'](_0x2b9885['shift']());}catch(_0x4114d2){_0x2b9885['push'](_0x2b9885['shift']());}}}(_0x51a0,0x4d785));function _0x4ea5(_0x2e557d,_0x388c14){var _0x51a009=_0x51a0();return _0x4ea5=function(_0x4ea522,_0x412c95){_0x4ea522=_0x4ea522-0x158;var _0x56e6f5=_0x51a009[_0x4ea522];return _0x56e6f5;},_0x4ea5(_0x2e557d,_0x388c14);}function _0x51a0(){var _0x187bdb=['1133248jALXnr','24006HdIBHh','6qcTJOQ','__esModule','manifestSwiftTemplate','2162342tfyYwQ','387PUbTZT','\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\x20if\x20scope\x20==\x20\x22\x22\x20||\x20scope\x20==\x20\x22/\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22./\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20startUrl\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20startUrl!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20URL(string:\x20scope,\x20relativeTo:\x20startUrl)!.absoluteString\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\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20newUrl\x20=\x20URL(string:\x20url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20fileManager\x20=\x20FileManager.default\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20fileManager.fileExists(atPath:\x20newUrl!.path)\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\x20var\x20resource:\x20String\x20=\x20Bundle.main.url(forResource:\x20newUrl?.path,\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\x20if\x20newUrl?.query()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20(newUrl?.query())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20newUrl?.fragment()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22#\x22\x20+\x20(newUrl?.fragment())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\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\x20\x20\x20\x20case\x20fullscreen\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','3942756WUEwEl','1612XlmkxW','3172595fHgprN','1824424FfKrdT'];_0x51a0=function(){return _0x187bdb;};return _0x51a0();}Object['defineProperty'](exports,_0xb4672f(0x15f),{'value':!![]}),exports[_0xb4672f(0x160)]=void 0x0,exports[_0xb4672f(0x160)]=_0xb4672f(0x163);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5e929c=_0x3313;(function(_0x27d84c,_0x1959f7){const _0x3830f0=_0x3313,_0xf02fc1=_0x27d84c();while(!![]){try{const _0x527a36=-parseInt(_0x3830f0(0x111))/0x1+parseInt(_0x3830f0(0x110))/0x2+-parseInt(_0x3830f0(0x105))/0x3*(parseInt(_0x3830f0(0xed))/0x4)+-parseInt(_0x3830f0(0x101))/0x5+parseInt(_0x3830f0(0xf1))/0x6+parseInt(_0x3830f0(0xe5))/0x7+parseInt(_0x3830f0(0x108))/0x8*(parseInt(_0x3830f0(0xfa))/0x9);if(_0x527a36===_0x1959f7)break;else _0xf02fc1['push'](_0xf02fc1['shift']());}catch(_0x35f062){_0xf02fc1['push'](_0xf02fc1['shift']());}}}(_0x38c6,0xbc075));function _0x3313(_0x548025,_0x2792c1){const _0x38c600=_0x38c6();return _0x3313=function(_0x331378,_0x231f02){_0x331378=_0x331378-0xe5;let _0x48c1f5=_0x38c600[_0x331378];return _0x48c1f5;},_0x3313(_0x548025,_0x2792c1);}function _0x38c6(){const _0x41d25b=['66670nwiHwp','\x20-exportArchive\x20-archivePath\x20','default','copyDir','651Ttieth','log','clean','39048oCdemL','XcodebuildCMD','__esModule','toString','join','ARCHIVE\x20SUCCEEDED','../resource','../resource/file','8348aCPQwv','441403Jfwvua','start\x20export','defineProperty','./pack','\x20-exportOptionsPlist\x20','\x20-exportPath\x20','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','2429637KGxMOe','output','web-spatial','scheme','PROJECT_DIRECTORY','existsSync','indexOf','line','28244petoPV','archive','\x20-list','PROJECT_EXPORT_DIRECTORY','8958762udxGGf','project','path','./build','\x20archive','\x20-archivePath\x20','ExportOptions.plist','mkdirSync','start\x20archive','1683XOxlKl','pack.xcarchive','list','\x20-project\x20','PROJECT_BUILD_DIRECTORY','/web-spatial.xcodeproj','\x20-allowProvisioningUpdates'];_0x38c6=function(){return _0x41d25b;};return _0x38c6();}Object[_0x5e929c(0x113)](exports,_0x5e929c(0x10a),{'value':!![]}),exports[_0x5e929c(0x109)]=void 0x0;const fs=require('fs'),path_1=require(_0x5e929c(0xf3)),resource_1=require(_0x5e929c(0x10e)),semver_1=require('semver'),file_1=require(_0x5e929c(0x10f)),{execSync,exec}=require('child_process');class Xcodebuild{static async['project'](){const _0x3ee6e5=_0x5e929c;try{await new Promise((_0x1944a5,_0x1f841c)=>{const _0x4f3c45=_0x3313,_0x88254a=resource_1[_0x4f3c45(0xe9)]+_0x4f3c45(0xff),_0x52a075=execSync(new XcodebuildCMD()[_0x4f3c45(0xf2)](_0x88254a)[_0x4f3c45(0xfc)]()['line']);console[_0x4f3c45(0x106)](_0x52a075['toString']()),_0x1944a5(_0x52a075);});}catch(_0xe741fe){console[_0x3ee6e5(0x106)](_0xe741fe);}}static async['list'](){try{await new Promise((_0x138d11,_0xd91a32)=>{const _0x19da9e=_0x3313,_0x172978=resource_1[_0x19da9e(0xe9)]+'/web-spatial.xcodeproj',_0x2e9d95=execSync(new XcodebuildCMD()[_0x19da9e(0xf2)](_0x172978)[_0x19da9e(0xfc)]()[_0x19da9e(0xec)]);console[_0x19da9e(0x106)](_0x2e9d95[_0x19da9e(0x10b)]()),_0x138d11(_0x2e9d95);});}catch(_0x22c2b7){console['log'](_0x22c2b7);}}static async['archive'](_0x3560ec){const _0x24aeb3=_0x5e929c;try{return console[_0x24aeb3(0x106)](_0x24aeb3(0xf9)),!fs[_0x24aeb3(0xea)](resource_1[_0x24aeb3(0xf0)])&&fs['mkdirSync'](resource_1[_0x24aeb3(0xf0)],{'recursive':!![]}),await new Promise((_0x217c78,_0x49aec3)=>{const _0x1bd5bc=_0x24aeb3,_0x35e7d9=resource_1[_0x1bd5bc(0xe9)]+_0x1bd5bc(0xff),_0x49a56a=execSync(new XcodebuildCMD()['project'](_0x35e7d9)[_0x1bd5bc(0xe8)](_0x1bd5bc(0xe7))[_0x1bd5bc(0xee)]((0x0,path_1[_0x1bd5bc(0x10c)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x1bd5bc(0x114)))[_0x1bd5bc(0x107)]()[_0x1bd5bc(0xec)]);let _0x295f2d=_0x49a56a[_0x1bd5bc(0x10b)]();if(_0x295f2d['indexOf'](_0x1bd5bc(0x10d))>0x0){console[_0x1bd5bc(0x106)](_0x1bd5bc(0x117)),console[_0x1bd5bc(0x106)](_0x1bd5bc(0x112));const _0x3ed2b4=execSync(new XcodebuildCMD()[_0x1bd5bc(0xe6)]((0x0,path_1[_0x1bd5bc(0x10c)])(resource_1[_0x1bd5bc(0xfe)],_0x1bd5bc(0xfb)),resource_1[_0x1bd5bc(0xf0)],(0x0,path_1[_0x1bd5bc(0x10c)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x1bd5bc(0xf7)))['allowProvisioningUpdates']()[_0x1bd5bc(0xec)]);_0x295f2d=_0x3ed2b4[_0x1bd5bc(0x10b)]();if(_0x295f2d[_0x1bd5bc(0xeb)]('EXPORT\x20SUCCEEDED')>0x0){const _0x360993=_0x3560ec!==null&&_0x3560ec!==void 0x0?_0x3560ec:_0x1bd5bc(0xf4),_0x2289a1=(0x0,path_1[_0x1bd5bc(0x10c)])(process['cwd'](),_0x360993);!fs[_0x1bd5bc(0xea)](_0x2289a1)&&fs[_0x1bd5bc(0xf8)](_0x2289a1,{'recursive':!![]}),(0x0,file_1[_0x1bd5bc(0x104)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x2289a1),console[_0x1bd5bc(0x106)]('-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------'),_0x217c78(!![]);}(0x0,semver_1[_0x1bd5bc(0x107)])(resource_1['PROJECT_BUILD_DIRECTORY']);}_0x217c78(![]);});}catch(_0x5d97){console[_0x24aeb3(0x106)](_0x5d97);}}}exports[_0x5e929c(0x103)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0xd360f1=_0x5e929c;this[_0xd360f1(0xec)]='xcodebuild';}[_0x5e929c(0xf2)](_0x16f5b7){const _0x1e1c23=_0x5e929c;return this[_0x1e1c23(0xec)]+=_0x1e1c23(0xfd)+_0x16f5b7,this;}[_0x5e929c(0xfc)](){const _0x13fff7=_0x5e929c;return this['line']+=_0x13fff7(0xef),this;}['scheme'](_0x1ca750){const _0x57d7d9=_0x5e929c;return this[_0x57d7d9(0xec)]+='\x20-scheme\x20'+_0x1ca750,this;}[_0x5e929c(0xee)](_0x3d64da){const _0x5c769b=_0x5e929c;return this[_0x5c769b(0xec)]+=_0x5c769b(0xf6)+_0x3d64da+_0x5c769b(0xf5),this;}['allowProvisioningUpdates'](){const _0x1dd063=_0x5e929c;return this[_0x1dd063(0xec)]+=_0x1dd063(0x100),this;}['destination'](_0x5c6f0b){return this['line']+='\x20-destination\x20\x27'+_0x5c6f0b+'\x27',this;}[_0x5e929c(0xe6)](_0x36bbb8,_0x2b4963,_0x17e563){const _0x228848=_0x5e929c;return this[_0x228848(0xec)]+=_0x228848(0x102)+_0x36bbb8+_0x228848(0x116)+_0x2b4963+_0x228848(0x115)+_0x17e563,this;}['clean'](){const _0x57059c=_0x5e929c;return this[_0x57059c(0xec)]+='\x20clean',this;}}exports[_0x5e929c(0x109)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x49f8(){const _0x5a8e76=['writeAsync','buildSettings','parseSync','writeFileSync','split','<?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','YOURTEAMID','USE_MAIN_SCENE','BACK_APPICON_DIRECTORY','url','buildType','modify','length','updateTeamId','64930UTTATi','pbxGroupByName','585660wRqjAY','./web-spatial/libs/webView/manifest.swift','protocol_handlers','join','182005peVOyN','SceneWidth','false','defaultSize','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','manifestSwiftTemplate','PBXGroup','pbxXCConfigurationList','162gqeHtD','START_URL','.minimal','mkdirSync','MIDDLE_APPICON_DIRECTORY','value','width','PROJECT_BUILD_DIRECTORY','</string>','utf-8','mainScene','updateExportOptions','388940zXGYqq','description','pbxTargetByName','images','resizability','CURRENT_PROJECT_VERSION','enterprise','scope','minimal-ui','1581668RcNhCY','6TEoohf','updateBuildProperty','PROJECT_DIRECTORY','buildConfigurationList','206JjaTiK','ExportOptions.plist','updateDeeplink','json','../resource/load','bindManifestInfo','modifySwift','app-store-connect','filename','./manifestSwiftTemplate','debugging','icon.','default','AppName','<?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>','project','SceneResizability','writeSync','1486yzHykx','replace','21jEBdps','getMIME','objects','display','../resource/imageHelper','image/','<string>','stringify','ImageHelper','protocol','loadJsonFromDisk','name','xcode','start_url','__esModule','release-testing','DEEPLINK','object','includes','pbxXCBuildConfigurationSection','147912aYBBbJ','Contents.json','true','../resource','1280','bindIcon','\x22),','defineProperty','updateVersion','test','teamId','\x22,\x20url:\x20\x22','PRODUCT_BUNDLE_IDENTIFIER','Description','fixProjectFunction','SceneHeight'];_0x49f8=function(){return _0x5a8e76;};return _0x49f8();}const _0xb9c5d8=_0x36d3;(function(_0x352572,_0x5307f4){const _0x30f7b8=_0x36d3,_0x5c1857=_0x352572();while(!![]){try{const _0x217b76=-parseInt(_0x30f7b8(0x151))/0x1*(parseInt(_0x30f7b8(0x163))/0x2)+parseInt(_0x30f7b8(0x12b))/0x3+parseInt(_0x30f7b8(0x143))/0x4+-parseInt(_0x30f7b8(0x12f))/0x5*(-parseInt(_0x30f7b8(0x14d))/0x6)+parseInt(_0x30f7b8(0x165))/0x7*(-parseInt(_0x30f7b8(0x10b))/0x8)+-parseInt(_0x30f7b8(0x137))/0x9*(parseInt(_0x30f7b8(0x129))/0xa)+parseInt(_0x30f7b8(0x14c))/0xb;if(_0x217b76===_0x5307f4)break;else _0x5c1857['push'](_0x5c1857['shift']());}catch(_0x5190ef){_0x5c1857['push'](_0x5c1857['shift']());}}}(_0x49f8,0x23f2d));Object[_0xb9c5d8(0x112)](exports,_0xb9c5d8(0x105),{'value':!![]});function _0x36d3(_0x3b5b5b,_0x4de080){const _0x49f83f=_0x49f8();return _0x36d3=function(_0x36d325,_0x43d0a7){_0x36d325=_0x36d325-0xfb;let _0x2792b3=_0x49f83f[_0x36d325];return _0x2792b3;},_0x36d3(_0x3b5b5b,_0x4de080);}const fs=require('fs'),resource_1=require(_0xb9c5d8(0x10e)),path_1=require('path'),load_1=require(_0xb9c5d8(0x155)),imageHelper_1=require(_0xb9c5d8(0xfb)),manifestSwiftTemplate_1=require(_0xb9c5d8(0x15a)),xcode=require(_0xb9c5d8(0x103)),exportOptionsXML=_0xb9c5d8(0x15f),infoPlistXML=_0xb9c5d8(0x120);let useExportOptionsXML='';class XcodeProject{static async[_0xb9c5d8(0x126)](_0x41e7cd,_0x38df97,_0x340c9=![]){const _0x4a7e19=_0xb9c5d8;let _0x3d8094=xcode[_0x4a7e19(0x160)](_0x41e7cd);this[_0x4a7e19(0x119)](_0x3d8094),_0x3d8094[_0x4a7e19(0x11d)]();let _0x18b7f7=_0x38df97[_0x4a7e19(0x125)];const _0x4ba06a=[_0x4a7e19(0x106),_0x4a7e19(0x158),_0x4a7e19(0x15b),_0x4a7e19(0x149)];useExportOptionsXML=exportOptionsXML['replace']('BUILDTYPE',_0x4ba06a['includes'](_0x18b7f7)?_0x18b7f7:'release-testing');_0x38df97[_0x4a7e19(0x115)]&&this['updateTeamId'](_0x3d8094,_0x38df97[_0x4a7e19(0x115)]);this[_0x4a7e19(0x142)]();if(_0x38df97['icon'])await this[_0x4a7e19(0x110)](_0x38df97['icon']);this[_0x4a7e19(0x156)](_0x3d8094,_0x38df97['manifestInfo'][_0x4a7e19(0x154)],_0x340c9);_0x38df97['version']?this[_0x4a7e19(0x113)](_0x3d8094,_0x38df97['version']):this[_0x4a7e19(0x113)](_0x3d8094,'1.0');try{fs['writeFileSync'](_0x41e7cd,_0x3d8094[_0x4a7e19(0x162)]());}catch(_0x2ac6f2){console['log'](_0x2ac6f2);}}static[_0xb9c5d8(0x119)](_0x40fcf5){const _0x384206=_0xb9c5d8;_0x40fcf5[_0x384206(0x12a)]=function(_0x35a964){const _0xbcd6d=_0x384206;var _0x1c343c=this['hash']['project'][_0xbcd6d(0x167)][_0xbcd6d(0x135)],_0x4bc567,_0x1709e1;for(_0x4bc567 in _0x1c343c){if(!/_comment$/['test'](_0x4bc567))continue;if(_0x1c343c[_0x4bc567]==_0x35a964)return _0x1709e1=_0x4bc567[_0xbcd6d(0x11f)](/_comment$/)[0x0],_0x1c343c[_0x1709e1];}return![];},_0x40fcf5[_0x384206(0x14e)]=function(_0x26369d,_0x193d4f,_0x26273c,_0x3d91eb){const _0x357817=_0x384206;let _0x1e61e7=[];const _0x293100=/_comment$/;if(_0x3d91eb){const _0x4d4816=this[_0x357817(0x145)](_0x3d91eb),_0x398429=_0x4d4816&&_0x4d4816[_0x357817(0x150)],_0x3b050b=this[_0x357817(0x136)]();for(const _0x444724 in _0x3b050b){if(!_0x293100[_0x357817(0x114)](_0x444724)&&_0x398429===_0x444724){const _0x138c2b=_0x3b050b[_0x444724]['buildConfigurations'];for(const _0x1cfabe of _0x138c2b){_0x1e61e7['push'](_0x1cfabe[_0x357817(0x13c)]);}break;}}}var _0x506f55=this[_0x357817(0x10a)]();for(var _0xb0f070 in _0x506f55){if(!_0x293100[_0x357817(0x114)](_0xb0f070)){if(_0x3d91eb&&!_0x1e61e7[_0x357817(0x109)](_0xb0f070))continue;var _0x35b01b=_0x506f55[_0xb0f070];(_0x26273c&&_0x35b01b[_0x357817(0x102)]===_0x26273c||!_0x26273c)&&_0x35b01b[_0x357817(0x11c)][_0x26369d]&&(_0x35b01b[_0x357817(0x11c)][_0x26369d]=_0x193d4f);}}};}static async[_0xb9c5d8(0x110)](_0x18ba60){const _0x41f2ef=_0xb9c5d8;if(_0x18ba60){const _0x438838=(0x0,path_1[_0x41f2ef(0x12e)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x41f2ef(0x123)]),_0xa150a5=(0x0,path_1[_0x41f2ef(0x12e)])(_0x438838,_0x41f2ef(0x10c)),_0x3dd7f7=_0x41f2ef(0x15c)+_0x18ba60[_0x41f2ef(0x166)]()['replace'](_0x41f2ef(0xfc),''),_0x204552=(0x0,path_1['join'])(_0x438838,_0x3dd7f7);let _0x443af3=await(0x0,load_1[_0x41f2ef(0x101)])(_0xa150a5);_0x443af3[_0x41f2ef(0x146)][0x0][_0x41f2ef(0x159)]=_0x3dd7f7,await _0x18ba60[_0x41f2ef(0x11b)](_0x204552),await fs[_0x41f2ef(0x11e)](_0xa150a5,JSON[_0x41f2ef(0xfe)](_0x443af3));const _0x516901=(0x0,path_1['join'])(resource_1[_0x41f2ef(0x14f)],resource_1[_0x41f2ef(0x13b)]),_0x4f9433=(0x0,path_1[_0x41f2ef(0x12e)])(_0x516901,_0x41f2ef(0x10c)),_0x55336f='icon.png',_0x3021e1=(0x0,path_1[_0x41f2ef(0x12e)])(_0x516901,_0x55336f);let _0x2aa87d=await(0x0,load_1[_0x41f2ef(0x101)])(_0x4f9433),_0x565e9d=imageHelper_1[_0x41f2ef(0xff)]['createImg'](0x200);_0x2aa87d[_0x41f2ef(0x146)][0x0]['filename']=_0x55336f,await _0x565e9d[_0x41f2ef(0x11b)](_0x3021e1),await fs[_0x41f2ef(0x11e)](_0x4f9433,JSON[_0x41f2ef(0xfe)](_0x2aa87d));}}static[_0xb9c5d8(0x128)](_0x4725cb,_0x33a9b4){const _0x58d45c=_0xb9c5d8;_0x4725cb['updateBuildProperty']('DEVELOPMENT_TEAM',_0x33a9b4),useExportOptionsXML=useExportOptionsXML[_0x58d45c(0x164)](_0x58d45c(0x121),_0x33a9b4);}static['updateExportOptions'](){const _0x4a51b2=_0xb9c5d8;!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x4a51b2(0x13a)](resource_1[_0x4a51b2(0x13e)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1['join'])(resource_1[_0x4a51b2(0x13e)],_0x4a51b2(0x152)),useExportOptionsXML);}static['bindManifestInfo'](_0xcbed67,_0x54cab9,_0x10db5b=![]){const _0x42918f=_0xb9c5d8;var _0x4bef20;_0xcbed67['updateProductName'](_0x54cab9[_0x42918f(0x102)]),_0x54cab9['id']&&!_0x10db5b&&_0xcbed67['updateBuildProperty'](_0x42918f(0x117),'\x22'+_0x54cab9['id']+'\x22'),this[_0x42918f(0x153)]((_0x4bef20=_0x54cab9['protocol_handlers'])!==null&&_0x4bef20!==void 0x0?_0x4bef20:[]),this[_0x42918f(0x157)](_0x54cab9);}static['updateVersion'](_0x112dad,_0x192c25){const _0x4b10e9=_0xb9c5d8;_0x112dad[_0x4b10e9(0x14e)](_0x4b10e9(0x148),_0x192c25);}static['updateDeeplink'](_0x3fb742){const _0x452fdb=_0xb9c5d8;let _0x1a402b=(0x0,path_1['join'])(resource_1[_0x452fdb(0x14f)],'./web-spatial/Info.plist'),_0x3e3814='';for(let _0xc62497=0x0;_0xc62497<_0x3fb742[_0x452fdb(0x127)];_0xc62497++){_0x3e3814+=_0x452fdb(0xfd)+_0x3fb742[_0xc62497][_0x452fdb(0x100)]+_0x452fdb(0x13f);}const _0x2bdd93=infoPlistXML[_0x452fdb(0x164)](_0x452fdb(0x107),_0x3e3814);fs[_0x452fdb(0x11e)](_0x1a402b,_0x2bdd93);}static['modifySwift'](_0x113014){const _0x3b3272=_0xb9c5d8,_0x44836d=(0x0,path_1[_0x3b3272(0x12e)])(resource_1[_0x3b3272(0x14f)],_0x3b3272(0x12c));let _0x4f0e54=manifestSwiftTemplate_1[_0x3b3272(0x134)];_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x138),_0x113014[_0x3b3272(0x104)]),_0x4f0e54=_0x4f0e54['replace']('SCOPE',_0x113014[_0x3b3272(0x14a)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x15e),_0x113014['name']),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x118),_0x113014[_0x3b3272(0x144)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('AppID',_0x113014['id']),_0x4f0e54=_0x4f0e54['replace']('.minimal',_0x113014[_0x3b3272(0x168)]==_0x3b3272(0x14b)?_0x3b3272(0x139):'.'+_0x113014['display']);if(_0x113014[_0x3b3272(0x12d)]){let _0x2b99b9='';for(let _0x2952cb=0x0;_0x2952cb<_0x113014[_0x3b3272(0x12d)]['length'];_0x2952cb++){_0x2b99b9+='PWAProtocol(protocolValue:\x20\x22'+_0x113014[_0x3b3272(0x12d)][_0x2952cb][_0x3b3272(0x100)]+_0x3b3272(0x116)+_0x113014[_0x3b3272(0x12d)][_0x2952cb][_0x3b3272(0x124)]+_0x3b3272(0x111);}_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x133),_0x2b99b9);}typeof _0x113014[_0x3b3272(0x141)]===_0x3b3272(0x108)?(_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('SceneWidth',_0x113014[_0x3b3272(0x141)][_0x3b3272(0x132)][_0x3b3272(0x13d)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x11a),_0x113014[_0x3b3272(0x141)]['defaultSize']['height']),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x161),'\x22'+_0x113014['mainScene'][_0x3b3272(0x147)]+'\x22'),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('USE_MAIN_SCENE',_0x3b3272(0x10d))):(_0x4f0e54=_0x4f0e54['replace'](_0x3b3272(0x130),_0x3b3272(0x10f)),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('SceneHeight',_0x3b3272(0x10f)),_0x4f0e54=_0x4f0e54['replace'](_0x3b3272(0x161),'\x22automatic\x22'),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x122),_0x3b3272(0x131))),fs['writeFileSync'](_0x44836d,_0x4f0e54,_0x3b3272(0x140));}}exports[_0xb9c5d8(0x15d)]=XcodeProject;
|
|
1
|
+
'use strict';const _0x37dc47=_0x5711;(function(_0x18a82c,_0x4b38b2){const _0xe68933=_0x5711,_0x2af8e3=_0x18a82c();while(!![]){try{const _0x168d35=-parseInt(_0xe68933(0x14d))/0x1*(parseInt(_0xe68933(0x144))/0x2)+-parseInt(_0xe68933(0xf8))/0x3+parseInt(_0xe68933(0x11c))/0x4+parseInt(_0xe68933(0x114))/0x5*(-parseInt(_0xe68933(0x145))/0x6)+-parseInt(_0xe68933(0x113))/0x7+parseInt(_0xe68933(0x155))/0x8*(parseInt(_0xe68933(0x121))/0x9)+-parseInt(_0xe68933(0x14f))/0xa*(-parseInt(_0xe68933(0xf5))/0xb);if(_0x168d35===_0x4b38b2)break;else _0x2af8e3['push'](_0x2af8e3['shift']());}catch(_0x25d1a2){_0x2af8e3['push'](_0x2af8e3['shift']());}}}(_0x2d6f,0x25a79));function _0x2d6f(){const _0x76ffd7=['mainScene','updateVersion','objects','true','updateTeamId','value','createImg','1280','START_URL','1935241kbphVs','replace','release-testing','732228LcxZjD','protocol_handlers','</string>','BACK_APPICON_DIRECTORY','Description','split','xcode','buildConfigurationList','../resource','pbxXCConfigurationList','\x22),','./web-spatial/libs/webView/manifest.swift','AppID','json','PBXGroup','default','buildSettings','name','defaultSize','manifestSwiftTemplate','ImageHelper','images','parseSync','YOURTEAMID','bindManifestInfo','fixProjectFunction','updateBuildProperty','942081iUFNIi','10TQwlMq','__esModule','AppName','BUILDTYPE','start_url','1.0','width','loadJsonFromDisk','1186708QQtSrJ','./web-spatial/Info.plist','ExportOptions.plist','project','icon.','585AqJcCs','protocol','log','updateProductName','manifestInfo','writeFileSync','modifySwift','SCOPE','SceneResizability','defineProperty','pbxTargetByName','PROJECT_BUILD_DIRECTORY','.minimal','getMIME','DEVELOPMENT_TEAM','scope','teamId','modify','updateDeeplink','join','updateExportOptions','length','<string>','DEEPLINK','pbxXCBuildConfigurationSection','stringify','image/','height','PROJECT_DIRECTORY','resizability','SceneWidth','existsSync','PWAProtocol(protocolValue:\x20\x22','hash','icon','8794YPasJC','374226ZceFOl','\x22automatic\x22','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','./manifestSwiftTemplate','filename','buildType','../resource/load','writeSync','27lDoDnx','pbxGroupByName','10EGfwxW','bindIcon','<?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>','writeAsync','description','Contents.json','37384VcmLJv','<?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','includes','icon.png','debugging','app-store-connect','buildConfigurations','USE_MAIN_SCENE','\x22,\x20url:\x20\x22','url','test'];_0x2d6f=function(){return _0x76ffd7;};return _0x2d6f();}function _0x5711(_0xffa4a0,_0x5c7af8){const _0x2d6f2c=_0x2d6f();return _0x5711=function(_0x571111,_0x45f8d5){_0x571111=_0x571111-0xf3;let _0xde1b52=_0x2d6f2c[_0x571111];return _0xde1b52;},_0x5711(_0xffa4a0,_0x5c7af8);}Object[_0x37dc47(0x12a)](exports,_0x37dc47(0x115),{'value':!![]});const fs=require('fs'),resource_1=require(_0x37dc47(0x100)),path_1=require('path'),load_1=require(_0x37dc47(0x14b)),imageHelper_1=require('../resource/imageHelper'),manifestSwiftTemplate_1=require(_0x37dc47(0x148)),xcode=require(_0x37dc47(0xfe)),exportOptionsXML=_0x37dc47(0x151),infoPlistXML=_0x37dc47(0x156);let useExportOptionsXML='';class XcodeProject{static async[_0x37dc47(0x132)](_0x5e6878,_0x22cb3b,_0x12d34c=![]){const _0x7d51aa=_0x37dc47;let _0x112794=xcode[_0x7d51aa(0x11f)](_0x5e6878);this[_0x7d51aa(0x111)](_0x112794),_0x112794[_0x7d51aa(0x10e)]();let _0x24ea49=_0x22cb3b[_0x7d51aa(0x14a)];const _0x28f569=['release-testing',_0x7d51aa(0x15a),_0x7d51aa(0x159),'enterprise'];useExportOptionsXML=exportOptionsXML['replace'](_0x7d51aa(0x117),_0x28f569[_0x7d51aa(0x157)](_0x24ea49)?_0x24ea49:_0x7d51aa(0xf7));_0x22cb3b['teamId']&&this[_0x7d51aa(0x164)](_0x112794,_0x22cb3b[_0x7d51aa(0x131)]);this[_0x7d51aa(0x135)]();if(_0x22cb3b[_0x7d51aa(0x143)])await this[_0x7d51aa(0x150)](_0x22cb3b[_0x7d51aa(0x143)]);this[_0x7d51aa(0x110)](_0x112794,_0x22cb3b[_0x7d51aa(0x125)][_0x7d51aa(0x105)],_0x12d34c);_0x22cb3b['version']?this[_0x7d51aa(0x161)](_0x112794,_0x22cb3b['version']):this[_0x7d51aa(0x161)](_0x112794,_0x7d51aa(0x119));try{fs[_0x7d51aa(0x126)](_0x5e6878,_0x112794[_0x7d51aa(0x14c)]());}catch(_0x250137){console[_0x7d51aa(0x123)](_0x250137);}}static[_0x37dc47(0x111)](_0x2d995c){const _0x2b5816=_0x37dc47;_0x2d995c[_0x2b5816(0x14e)]=function(_0x4393f7){const _0x55661f=_0x2b5816;var _0x3372fb=this[_0x55661f(0x142)][_0x55661f(0x11f)][_0x55661f(0x162)][_0x55661f(0x106)],_0xa7b6,_0x21e856;for(_0xa7b6 in _0x3372fb){if(!/_comment$/['test'](_0xa7b6))continue;if(_0x3372fb[_0xa7b6]==_0x4393f7)return _0x21e856=_0xa7b6[_0x55661f(0xfd)](/_comment$/)[0x0],_0x3372fb[_0x21e856];}return![];},_0x2d995c['updateBuildProperty']=function(_0x36d07f,_0x45a502,_0x162777,_0x5996fe){const _0x4dfee3=_0x2b5816;let _0x2b251d=[];const _0x7d909e=/_comment$/;if(_0x5996fe){const _0x2a7699=this[_0x4dfee3(0x12b)](_0x5996fe),_0x3f72ae=_0x2a7699&&_0x2a7699[_0x4dfee3(0xff)],_0x4c2e32=this[_0x4dfee3(0x101)]();for(const _0x3729d9 in _0x4c2e32){if(!_0x7d909e['test'](_0x3729d9)&&_0x3f72ae===_0x3729d9){const _0xea98ae=_0x4c2e32[_0x3729d9][_0x4dfee3(0x15b)];for(const _0x25f5f4 of _0xea98ae){_0x2b251d['push'](_0x25f5f4[_0x4dfee3(0x165)]);}break;}}}var _0x455c6c=this[_0x4dfee3(0x139)]();for(var _0x15fd21 in _0x455c6c){if(!_0x7d909e[_0x4dfee3(0x15f)](_0x15fd21)){if(_0x5996fe&&!_0x2b251d['includes'](_0x15fd21))continue;var _0x558daf=_0x455c6c[_0x15fd21];(_0x162777&&_0x558daf[_0x4dfee3(0x109)]===_0x162777||!_0x162777)&&_0x558daf[_0x4dfee3(0x108)][_0x36d07f]&&(_0x558daf[_0x4dfee3(0x108)][_0x36d07f]=_0x45a502);}}};}static async[_0x37dc47(0x150)](_0x501b1c){const _0x1503dc=_0x37dc47;if(_0x501b1c){const _0x1bfed6=(0x0,path_1[_0x1503dc(0x134)])(resource_1[_0x1503dc(0x13d)],resource_1[_0x1503dc(0xfb)]),_0x530a7b=(0x0,path_1[_0x1503dc(0x134)])(_0x1bfed6,_0x1503dc(0x154)),_0x5a82eb=_0x1503dc(0x120)+_0x501b1c[_0x1503dc(0x12e)]()[_0x1503dc(0xf6)](_0x1503dc(0x13b),''),_0x530ac4=(0x0,path_1[_0x1503dc(0x134)])(_0x1bfed6,_0x5a82eb);let _0x50fef4=await(0x0,load_1['loadJsonFromDisk'])(_0x530a7b);_0x50fef4[_0x1503dc(0x10d)][0x0][_0x1503dc(0x149)]=_0x5a82eb,await _0x501b1c['writeAsync'](_0x530ac4),await fs[_0x1503dc(0x126)](_0x530a7b,JSON[_0x1503dc(0x13a)](_0x50fef4));const _0xebfd2b=(0x0,path_1[_0x1503dc(0x134)])(resource_1['PROJECT_DIRECTORY'],resource_1['MIDDLE_APPICON_DIRECTORY']),_0x418f1a=(0x0,path_1['join'])(_0xebfd2b,_0x1503dc(0x154)),_0x3a789b=_0x1503dc(0x158),_0x39f4d9=(0x0,path_1[_0x1503dc(0x134)])(_0xebfd2b,_0x3a789b);let _0x5ef774=await(0x0,load_1[_0x1503dc(0x11b)])(_0x418f1a),_0x1aa668=imageHelper_1[_0x1503dc(0x10c)][_0x1503dc(0x166)](0x200);_0x5ef774[_0x1503dc(0x10d)][0x0][_0x1503dc(0x149)]=_0x3a789b,await _0x1aa668[_0x1503dc(0x152)](_0x39f4d9),await fs['writeFileSync'](_0x418f1a,JSON[_0x1503dc(0x13a)](_0x5ef774));}}static[_0x37dc47(0x164)](_0x2fb8aa,_0xc1df00){const _0x4cb089=_0x37dc47;_0x2fb8aa[_0x4cb089(0x112)](_0x4cb089(0x12f),_0xc1df00),useExportOptionsXML=useExportOptionsXML[_0x4cb089(0xf6)](_0x4cb089(0x10f),_0xc1df00);}static['updateExportOptions'](){const _0xcb764a=_0x37dc47;!fs[_0xcb764a(0x140)](resource_1[_0xcb764a(0x12c)])&&fs['mkdirSync'](resource_1[_0xcb764a(0x12c)],{'recursive':!![]}),fs[_0xcb764a(0x126)]((0x0,path_1[_0xcb764a(0x134)])(resource_1[_0xcb764a(0x12c)],_0xcb764a(0x11e)),useExportOptionsXML);}static[_0x37dc47(0x110)](_0x139b63,_0x5aba3d,_0x2d2d21=![]){const _0x53cf39=_0x37dc47;var _0x55f33d;_0x139b63[_0x53cf39(0x124)](_0x5aba3d[_0x53cf39(0x109)]),_0x5aba3d['id']&&!_0x2d2d21&&_0x139b63[_0x53cf39(0x112)]('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x5aba3d['id']+'\x22'),this[_0x53cf39(0x133)]((_0x55f33d=_0x5aba3d[_0x53cf39(0xf9)])!==null&&_0x55f33d!==void 0x0?_0x55f33d:[]),this['modifySwift'](_0x5aba3d);}static[_0x37dc47(0x161)](_0x1378c7,_0xf33ff7){_0x1378c7['updateBuildProperty']('CURRENT_PROJECT_VERSION',_0xf33ff7);}static[_0x37dc47(0x133)](_0x59014f){const _0x299137=_0x37dc47;let _0x3b93ef=(0x0,path_1[_0x299137(0x134)])(resource_1[_0x299137(0x13d)],_0x299137(0x11d)),_0x475216='';for(let _0x55e894=0x0;_0x55e894<_0x59014f[_0x299137(0x136)];_0x55e894++){_0x475216+=_0x299137(0x137)+_0x59014f[_0x55e894][_0x299137(0x122)]+_0x299137(0xfa);}const _0x28d228=infoPlistXML[_0x299137(0xf6)](_0x299137(0x138),_0x475216);fs[_0x299137(0x126)](_0x3b93ef,_0x28d228);}static[_0x37dc47(0x127)](_0x115a97){const _0x5ac9ce=_0x37dc47,_0x502ab3=(0x0,path_1[_0x5ac9ce(0x134)])(resource_1[_0x5ac9ce(0x13d)],_0x5ac9ce(0x103));let _0x5171ef=manifestSwiftTemplate_1[_0x5ac9ce(0x10b)];_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)](_0x5ac9ce(0xf4),_0x115a97[_0x5ac9ce(0x118)]),_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)](_0x5ac9ce(0x128),_0x115a97[_0x5ac9ce(0x130)]),_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)](_0x5ac9ce(0x116),_0x115a97[_0x5ac9ce(0x109)]),_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)](_0x5ac9ce(0xfc),_0x115a97[_0x5ac9ce(0x153)]),_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)](_0x5ac9ce(0x104),_0x115a97['id']),_0x5171ef=_0x5171ef['replace'](_0x5ac9ce(0x12d),_0x115a97['display']=='minimal-ui'?_0x5ac9ce(0x12d):'.'+_0x115a97['display']);if(_0x115a97['protocol_handlers']){let _0x50bbab='';for(let _0x1d2fd5=0x0;_0x1d2fd5<_0x115a97[_0x5ac9ce(0xf9)][_0x5ac9ce(0x136)];_0x1d2fd5++){_0x50bbab+=_0x5ac9ce(0x141)+_0x115a97[_0x5ac9ce(0xf9)][_0x1d2fd5][_0x5ac9ce(0x122)]+_0x5ac9ce(0x15d)+_0x115a97[_0x5ac9ce(0xf9)][_0x1d2fd5][_0x5ac9ce(0x15e)]+_0x5ac9ce(0x102);}_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)](_0x5ac9ce(0x147),_0x50bbab);}typeof _0x115a97[_0x5ac9ce(0x160)]==='object'?(_0x5171ef=_0x5171ef['replace'](_0x5ac9ce(0x13f),_0x115a97[_0x5ac9ce(0x160)][_0x5ac9ce(0x10a)][_0x5ac9ce(0x11a)]),_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)]('SceneHeight',_0x115a97[_0x5ac9ce(0x160)][_0x5ac9ce(0x10a)][_0x5ac9ce(0x13c)]),_0x5171ef=_0x5171ef['replace']('SceneResizability','\x22'+_0x115a97['mainScene'][_0x5ac9ce(0x13e)]+'\x22'),_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)](_0x5ac9ce(0x15c),_0x5ac9ce(0x163))):(_0x5171ef=_0x5171ef['replace'](_0x5ac9ce(0x13f),'1280'),_0x5171ef=_0x5171ef['replace']('SceneHeight',_0x5ac9ce(0xf3)),_0x5171ef=_0x5171ef[_0x5ac9ce(0xf6)](_0x5ac9ce(0x129),_0x5ac9ce(0x146)),_0x5171ef=_0x5171ef['replace'](_0x5ac9ce(0x15c),'false')),fs[_0x5ac9ce(0x126)](_0x502ab3,_0x5171ef,'utf-8');}}exports[_0x37dc47(0x107)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xf1c517=_0x1511;(function(_0x119008,_0x1e3ec5){const _0x551256=_0x1511,_0x448a81=_0x119008();while(!![]){try{const _0x6ead40=-parseInt(_0x551256(0x1b4))/0x1+-parseInt(_0x551256(0x1c5))/0x2+parseInt(_0x551256(0x16e))/0x3*(-parseInt(_0x551256(0x198))/0x4)+parseInt(_0x551256(0x1bf))/0x5+parseInt(_0x551256(0x1bb))/0x6*(parseInt(_0x551256(0x171))/0x7)+parseInt(_0x551256(0x1c2))/0x8*(-parseInt(_0x551256(0x167))/0x9)+-parseInt(_0x551256(0x149))/0xa*(-parseInt(_0x551256(0x19e))/0xb);if(_0x6ead40===_0x1e3ec5)break;else _0x448a81['push'](_0x448a81['shift']());}catch(_0x576628){_0x448a81['push'](_0x448a81['shift']());}}}(_0x52e0,0xc37c1));function _0x52e0(){const _0x5c7ca1=['../utils/utils','listSimulator','no\x20visionOS\x20simulator\x20found','\x20--validate-app\x20-f\x20','launchWithSimulator','\x27\x20-derivedDataPath\x20','973350JKgMLD','shutdownSimulator','write','verbose','parseSupportRuntimes','\x20--apiKey\x20','listDeviceTypes','3030uLvTWV','listDevices','No\x20visionOS\x20rumtime\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','replace','7860585WNXOBh','project','create\x20visionOS\x20simulator:\x20','24MZDxVQ','\x20and\x20','No\x20Apple\x20Vision\x20Pro\x20simulator\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','1438258bljeDf','Shutdown','visionos','\x20&&\x20xcodebuild\x20-showdestinations\x20-scheme\x20web-spatial','\x20--verbose','state','terminate','listRuntimes','\x20--bundle-version\x20','\x20--apiIssuer\x20','validate','../utils/history','\x20simctl','buildTestApp','line','find\x20simulators:','\x20boot\x20\x22','shutdown','15009020aXqHTu','install','uploadApp','altool','no\x20simulator\x20available','execSync','../resource','mkdirSync','cd\x20','appleId',',\x20try\x20next\x20device','getSimulatorHistory','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','runWithSimulator','createSimulator','xcrun','--\x20','findSimulator','__esModule','parseDeviceInfo','com','version','installApp','PROJECT_DIRECTORY','authApi','log','\x22\x20\x22','create','info','simctl','1106514atgaHU','**\x20BUILD\x20FAILED\x20**','error','runWithHistory','uploadPackage','split','indexOf','23367oWvjHa','\x20launch\x20\x22','PROJECT_BUILD_DIRECTORY','4417iDizCk','try\x20create\x20a\x20visionOS\x20simulator','\x20to\x20create\x20visionOS\x20simulator','\x20list\x20runtimes','installing\x20app','platform','includes','PROJECT_TEST_DIRECTORY','test','platform:visionOS\x20Simulator','join','----\x20build\x20start\x20on\x20','existsSync','trim','Build/Products/Debug-xrsimulator/','--\x20visionOS','install\x20success',',\x20name','launchApp','authAccount','toString','length','deviceId','default','launch','push','parseDestinationDevices','-------------------\x20build\x20end\x20-------------------','\x20list','visionOS','launchSimulator','id:','warn','../resource/file','find\x20simulator:\x20','getAppInfoRecord','parseListDevices','open\x20-a\x20Simulator\x20--args\x20-CurrentDeviceUDID\x20','\x20--apple-id\x20','272lKcAOl','\x20-p\x20','/web-spatial.xcodeproj','sleep\x2010','Apple\x20Vision\x20Pro','XcodebuildCMD','11NOmpUD','use\x20','\x20--upload-app\x20-f\x20','list','parseSupportDevices','CliLog','recordSimulator','simulator\x20is\x20already\x20shutdown','find\x20destination\x20device:\x20','.app','slice','use\x20simulator:\x20','boot','\x20----','./xcodebuild','name'];_0x52e0=function(){return _0x5c7ca1;};return _0x52e0();}Object['defineProperty'](exports,_0xf1c517(0x15b),{'value':!![]});const child_process_1=require('child_process'),resource_1=require(_0xf1c517(0x14f)),path_1=require('path'),fs=require('fs'),xcodebuild_1=require(_0xf1c517(0x1ac)),file_1=require(_0xf1c517(0x192)),utils_1=require(_0xf1c517(0x1ae)),history_1=require(_0xf1c517(0x1d0));function _0x1511(_0x135d46,_0x1f8d86){const _0x52e075=_0x52e0();return _0x1511=function(_0x1511a6,_0x2760ca){_0x1511a6=_0x1511a6-0x144;let _0x70a3d5=_0x52e075[_0x1511a6];return _0x70a3d5;},_0x1511(_0x135d46,_0x1f8d86);}class Xcrun{static async['validate'](_0x22c531,_0x1c4fb3,_0x7f3d71,_0x28616f){const _0x1650d1=_0xf1c517,_0x1f2519=new XcrunCMD()[_0x1650d1(0x14c)]();_0x1f2519[_0x1650d1(0x1cf)](_0x22c531);_0x28616f?_0x1f2519[_0x1650d1(0x184)](_0x1c4fb3,_0x7f3d71):_0x1f2519[_0x1650d1(0x161)](_0x1c4fb3,_0x7f3d71);_0x1f2519[_0x1650d1(0x176)](_0x1650d1(0x1c7));const _0x3af795=(0x0,child_process_1[_0x1650d1(0x14e)])(_0x1f2519[_0x1650d1(0x145)]);return _0x3af795['toString']();}static async[_0xf1c517(0x16b)](_0x5bd2f1,_0x3cc021,_0x5eb053,_0x5b5684,_0x394e42){const _0x2e5391=_0xf1c517,_0x59fcb7=new XcrunCMD()[_0x2e5391(0x14c)]();_0x59fcb7['uploadPackage'](_0x5bd2f1);_0x394e42?_0x59fcb7['authAccount'](_0x3cc021,_0x5eb053):_0x59fcb7[_0x2e5391(0x161)](_0x3cc021,_0x5eb053);_0x59fcb7['platform'](_0x2e5391(0x1c7)),_0x59fcb7['appleId'](_0x5b5684);const _0x2390a4=(0x0,child_process_1[_0x2e5391(0x14e)])(_0x59fcb7['line']);return _0x2390a4[_0x2e5391(0x185)]();}static async[_0xf1c517(0x14b)](_0x3aa21c,_0x4030b0,_0x42a358,_0x22f0f4){const _0xa311c9=_0xf1c517,_0x52ad94=new XcrunCMD()[_0xa311c9(0x14c)]();_0x52ad94[_0xa311c9(0x14b)](_0x3aa21c);_0x22f0f4?_0x52ad94[_0xa311c9(0x184)](_0x4030b0,_0x42a358):_0x52ad94[_0xa311c9(0x161)](_0x4030b0,_0x42a358);_0x52ad94[_0xa311c9(0x176)](_0xa311c9(0x1c7));const _0x160758=(0x0,child_process_1['execSync'])(_0x52ad94[_0xa311c9(0x145)]);return _0x160758[_0xa311c9(0x185)]();}static async[_0xf1c517(0x156)](){const _0x13b494=_0xf1c517;let _0x1d52e7=this['findSimulator']();!_0x1d52e7[0x0]&&(_0x1d52e7=[this[_0x13b494(0x157)]()]);const _0x9d4d04=history_1[_0x13b494(0x188)][_0x13b494(0x194)]();for(var _0x51488d=0x0;_0x51488d<_0x1d52e7[_0x13b494(0x186)];_0x51488d++){if(this[_0x13b494(0x144)](_0x1d52e7[_0x51488d][_0x13b494(0x187)])){const _0x260f04=this[_0x13b494(0x1b2)](_0x9d4d04,_0x1d52e7[_0x51488d][_0x13b494(0x187)],!![],![]);history_1[_0x13b494(0x188)][_0x13b494(0x1a4)](_0x260f04),history_1[_0x13b494(0x188)][_0x13b494(0x1b6)]();return;}else utils_1[_0x13b494(0x1a3)][_0x13b494(0x169)]('build\x20failed\x20on\x20'+_0x1d52e7[_0x51488d][_0x13b494(0x187)]+_0x13b494(0x153));}utils_1[_0x13b494(0x1a3)][_0x13b494(0x169)](_0x13b494(0x14d));}static async[_0xf1c517(0x16a)](){const _0x2b5e0d=_0xf1c517,_0x299a4a=history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x154)](),_0x1b03a4=history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x194)](),_0x3456ec=this['launchWithSimulator'](_0x1b03a4,_0x299a4a);history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x1a4)](_0x3456ec),history_1['default'][_0x2b5e0d(0x1b6)]();}static[_0xf1c517(0x1b2)](_0xb67382,_0x3512b5='',_0x556fe2=![],_0x12224f=!![]){const _0x41b0d2=_0xf1c517;let _0x104607,_0x1a11c0=![];return _0x12224f?_0x104607=this[_0x41b0d2(0x15a)](_0x3512b5)[0x0]:_0x104607=this['searchSimulator'](_0x3512b5),(!_0x104607||_0x104607[_0x41b0d2(0x187)]==='')&&(_0x104607=this[_0x41b0d2(0x157)](),_0x1a11c0=!![]),console[_0x41b0d2(0x162)](_0x41b0d2(0x1a9)+_0x104607[_0x41b0d2(0x187)]),this[_0x41b0d2(0x18f)](_0x104607),(_0x556fe2||_0x1a11c0)&&(console[_0x41b0d2(0x162)](_0x41b0d2(0x175)),this[_0x41b0d2(0x15f)](resource_1[_0x41b0d2(0x178)],_0x104607[_0x41b0d2(0x187)],_0xb67382[_0x41b0d2(0x1ad)]),console['log'](_0x41b0d2(0x181))),console[_0x41b0d2(0x162)]('launch\x20app'),this[_0x41b0d2(0x183)](_0x104607[_0x41b0d2(0x187)],_0xb67382['id']),_0x104607['deviceId'];}static async[_0xf1c517(0x1b5)](){const _0x33401f=_0xf1c517;let _0x43ec5c=this[_0x33401f(0x15a)]()[0x0];console[_0x33401f(0x162)](_0x33401f(0x193)+_0x43ec5c[_0x33401f(0x187)]);if(_0x43ec5c[_0x33401f(0x1ca)]!==_0x33401f(0x1c6)){let _0x3aa323=new XcrunCMD()[_0x33401f(0x166)]();_0x3aa323[_0x33401f(0x148)](_0x43ec5c[_0x33401f(0x187)]),(0x0,child_process_1['execSync'])(_0x3aa323[_0x33401f(0x145)]);}else console[_0x33401f(0x162)](_0x33401f(0x1a5));}static[_0xf1c517(0x18f)](_0x32adfe){const _0x19210=_0xf1c517;if(_0x32adfe[_0x19210(0x1ca)]===_0x19210(0x1c6)){let _0x269bbc=new XcrunCMD()[_0x19210(0x166)]();_0x269bbc[_0x19210(0x1aa)](_0x32adfe[_0x19210(0x187)]),(0x0,child_process_1[_0x19210(0x14e)])(_0x269bbc[_0x19210(0x145)]),(0x0,child_process_1[_0x19210(0x14e)])(_0x19210(0x19b));}(0x0,child_process_1[_0x19210(0x14e)])(_0x19210(0x196)+_0x32adfe['deviceId']);}static['buildTestApp'](_0x9d1286){const _0x51f320=_0xf1c517,_0xe49ee4=resource_1[_0x51f320(0x160)]+_0x51f320(0x19a);!fs[_0x51f320(0x17d)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x51f320(0x150)](resource_1[_0x51f320(0x170)],{'recursive':!![]});!fs[_0x51f320(0x17d)](resource_1['PROJECT_TEST_DIRECTORY'])&&fs[_0x51f320(0x150)](resource_1[_0x51f320(0x178)],{'recursive':!![]});(0x0,file_1['clearDir'])(resource_1[_0x51f320(0x178)]);const _0x234c57=new xcodebuild_1[(_0x51f320(0x19d))]()[_0x51f320(0x1c0)](_0xe49ee4)[_0x51f320(0x145)]+(_0x51f320(0x155)+_0x9d1286+_0x51f320(0x1b3)+resource_1['PROJECT_TEST_DIRECTORY']);console[_0x51f320(0x162)](_0x51f320(0x17c)+_0x9d1286+_0x51f320(0x1ab));try{const _0x5ad480=(0x0,child_process_1[_0x51f320(0x14e)])(_0x234c57);if(_0x5ad480['toString']()['includes'](_0x51f320(0x168)))return![];}catch(_0x4fc10e){}return console[_0x51f320(0x162)](_0x51f320(0x18c)),!![];}static[_0xf1c517(0x15f)](_0xe8043c,_0x46614a,_0x42d219){const _0x33179a=_0xf1c517,_0x26783c=(0x0,path_1[_0x33179a(0x17b)])(_0xe8043c,_0x33179a(0x17f)+_0x42d219+_0x33179a(0x1a7));let _0x1b644a=new XcrunCMD()[_0x33179a(0x166)]();_0x1b644a[_0x33179a(0x14a)](_0x46614a,_0x26783c),(0x0,child_process_1[_0x33179a(0x14e)])(_0x1b644a[_0x33179a(0x145)]);}static['launchApp'](_0x19c0af,_0x3ec0be){const _0x4774d4=_0xf1c517;try{(0x0,child_process_1[_0x4774d4(0x14e)])(new XcrunCMD()[_0x4774d4(0x166)]()[_0x4774d4(0x1cb)](_0x19c0af,_0x3ec0be)[_0x4774d4(0x145)]);}catch(_0x55d8b9){}(0x0,child_process_1[_0x4774d4(0x14e)])(new XcrunCMD()[_0x4774d4(0x166)]()[_0x4774d4(0x189)](_0x19c0af,_0x3ec0be)[_0x4774d4(0x145)]);}static[_0xf1c517(0x18b)](_0x172394){const _0x11be7b=_0xf1c517;let _0x2982f8=_0x172394['split']('\x0a');const _0x77cef=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/;let _0x433108=[];for(let _0x426ae4=0x0;_0x426ae4<_0x2982f8[_0x11be7b(0x186)];_0x426ae4++){if(_0x2982f8[_0x426ae4][_0x11be7b(0x177)](_0x11be7b(0x17a))){const _0x489d68=_0x2982f8[_0x426ae4][_0x11be7b(0x1a8)](_0x2982f8[_0x426ae4][_0x11be7b(0x16d)](_0x11be7b(0x190))+0x3,_0x2982f8[_0x426ae4][_0x11be7b(0x16d)](_0x11be7b(0x182)));_0x77cef[_0x11be7b(0x179)](_0x489d68)&&(_0x433108['push'](_0x489d68),console[_0x11be7b(0x162)](_0x11be7b(0x1a6)+_0x2982f8[_0x426ae4]+')'));}}return _0x433108;}static[_0xf1c517(0x1a2)](_0x3104ca){const _0x31a8d0=_0xf1c517;let _0xb1d50e=_0x3104ca[_0x31a8d0(0x16c)]('\x0a');for(let _0x4b06a6=0x0;_0x4b06a6<_0xb1d50e[_0x31a8d0(0x186)];_0x4b06a6++){if(_0xb1d50e[_0x4b06a6][_0x31a8d0(0x177)](_0x31a8d0(0x19c)))return _0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)](_0x31a8d0(0x19c),'')['trim'](),_0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)]('(',''),_0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)](')',''),_0xb1d50e[_0x4b06a6];}throw new Error(_0x31a8d0(0x1c4));}static['parseSupportRuntimes'](_0x5bb450){const _0x34b5d0=_0xf1c517;let _0x119094=_0x5bb450[_0x34b5d0(0x16c)]('\x0a');for(let _0x4e79d2=0x0;_0x4e79d2<_0x119094[_0x34b5d0(0x186)];_0x4e79d2++){if(_0x119094[_0x4e79d2][_0x34b5d0(0x177)](_0x34b5d0(0x18e)))return _0x119094[_0x4e79d2][_0x34b5d0(0x1a8)](_0x119094[_0x4e79d2]['indexOf'](_0x34b5d0(0x15d)))[_0x34b5d0(0x17e)]();}throw new Error(_0x34b5d0(0x1bd));}static[_0xf1c517(0x195)](_0x487406){const _0x3d4022=_0xf1c517;let _0x18cda3=_0x487406[_0x3d4022(0x16c)]('\x0a'),_0x44a587=[],_0x1c6eae=-0x1;for(let _0x10417b=0x0;_0x10417b<_0x18cda3[_0x3d4022(0x186)];_0x10417b++){if(_0x18cda3[_0x10417b][_0x3d4022(0x177)](_0x3d4022(0x180)))_0x1c6eae=_0x10417b;else{if(_0x1c6eae>0x0){if(_0x18cda3[_0x10417b][_0x3d4022(0x177)](_0x3d4022(0x159)))break;_0x18cda3[_0x10417b]['length']>0x0&&_0x44a587[_0x3d4022(0x18a)](this[_0x3d4022(0x15c)](_0x18cda3[_0x10417b]));}}}return _0x44a587;}static['parseDeviceInfo'](_0x2f1d78){const _0x5c23b7=_0xf1c517,_0x40ff26=_0x2f1d78[_0x5c23b7(0x16c)]('('),_0x2da8aa={'name':_0x40ff26[0x0]['trim'](),'deviceId':_0x40ff26[0x1]['split'](')')[0x0]['trim'](),'state':_0x40ff26[0x2][_0x5c23b7(0x16c)](')')[0x0]['trim']()};return _0x2da8aa;}static[_0xf1c517(0x15a)](_0x23cd3c){const _0x2fb24f=_0xf1c517;let _0x5c17fd=[_0x23cd3c!==null&&_0x23cd3c!==void 0x0?_0x23cd3c:''];const _0x56bb91=(0x0,child_process_1[_0x2fb24f(0x14e)])(_0x2fb24f(0x151)+resource_1[_0x2fb24f(0x160)]+_0x2fb24f(0x1c8)),_0x54cb70=this['parseDestinationDevices'](_0x56bb91[_0x2fb24f(0x185)]());_0x5c17fd=[..._0x5c17fd,..._0x54cb70];let _0x24dbba=this['listSimulator']();return _0x24dbba['sort']((_0x9c0a45,_0x54d16c)=>{const _0xfcf420=_0x2fb24f,_0x1a3432=_0x5c17fd['indexOf'](_0x9c0a45[_0xfcf420(0x187)]),_0x4f6829=_0x5c17fd[_0xfcf420(0x16d)](_0x54d16c[_0xfcf420(0x187)]);if(_0x1a3432!==-0x1&&_0x4f6829!==-0x1)return _0x1a3432-_0x4f6829;else{if(_0x1a3432!==-0x1)return-0x1;else{if(_0x4f6829!==-0x1)return 0x1;}}return 0x0;}),console[_0x2fb24f(0x162)](_0x2fb24f(0x146)),console[_0x2fb24f(0x162)](_0x24dbba),_0x24dbba;}static['searchSimulator'](_0x1eed75){const _0x3f78e2=_0xf1c517,_0x4d917a=new XcrunCMD()[_0x3f78e2(0x166)]()[_0x3f78e2(0x1bc)]('Apple\x20Vision\x20Pro')['line']+('\x20|\x20grep\x20'+_0x1eed75);console['log'](_0x4d917a);let _0x579921=(0x0,child_process_1['execSync'])(_0x4d917a);return console[_0x3f78e2(0x162)](_0x579921['toString']()),this[_0x3f78e2(0x15c)](_0x579921[_0x3f78e2(0x185)]());}static['createSimulator'](){const _0x340206=_0xf1c517;utils_1[_0x340206(0x1a3)][_0x340206(0x191)](_0x340206(0x1b0)),utils_1[_0x340206(0x1a3)]['warn'](_0x340206(0x172));let _0x444bb8=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x340206(0x166)]()['listDeviceTypes']()[_0x340206(0x145)]);const _0x3a599b=this[_0x340206(0x1a2)](_0x444bb8['toString']());_0x444bb8=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x340206(0x166)]()[_0x340206(0x1cc)]()[_0x340206(0x145)]);const _0x351dec=this[_0x340206(0x1b8)](_0x444bb8[_0x340206(0x185)]());utils_1[_0x340206(0x1a3)][_0x340206(0x165)](_0x340206(0x19f)+_0x3a599b+_0x340206(0x1c3)+_0x351dec+_0x340206(0x173)),_0x444bb8=(0x0,child_process_1[_0x340206(0x14e)])(new XcrunCMD()[_0x340206(0x166)]()[_0x340206(0x164)](_0x3a599b,_0x351dec)[_0x340206(0x145)]);const _0x221837=_0x444bb8[_0x340206(0x185)]()[_0x340206(0x17e)]();return console['log'](_0x340206(0x1c1)+_0x221837),{'name':'WebSpatial\x20Simulator','deviceId':_0x221837,'state':'Shutdown'};}static[_0xf1c517(0x1af)](){const _0x3f38ff=_0xf1c517;let _0x3540bb=(0x0,child_process_1[_0x3f38ff(0x14e)])(new XcrunCMD()[_0x3f38ff(0x166)]()[_0x3f38ff(0x1bc)](_0x3f38ff(0x19c))['line']);return this[_0x3f38ff(0x195)](_0x3540bb[_0x3f38ff(0x185)]());}}exports['default']=Xcrun;class XcrunCMD{constructor(){const _0x169df3=_0xf1c517;this[_0x169df3(0x145)]=_0x169df3(0x158);}[_0xf1c517(0x14c)](){const _0x29ebcb=_0xf1c517;return this[_0x29ebcb(0x145)]+='\x20altool',this;}[_0xf1c517(0x166)](){const _0x3be64a=_0xf1c517;return this[_0x3be64a(0x145)]+=_0x3be64a(0x1d1),this;}[_0xf1c517(0x1a1)](){const _0x3dd623=_0xf1c517;return this[_0x3dd623(0x145)]+=_0x3dd623(0x18d),this;}[_0xf1c517(0x1bc)](_0x10eef8){const _0x1eb56c=_0xf1c517;return this[_0x1eb56c(0x145)]+='\x20list\x20devices\x20\x22'+_0x10eef8+'\x22',this;}[_0xf1c517(0x1ba)](){return this['line']+='\x20list\x20devicetypes',this;}[_0xf1c517(0x1cc)](){const _0x15f3e3=_0xf1c517;return this[_0x15f3e3(0x145)]+=_0x15f3e3(0x174),this;}[_0xf1c517(0x1cf)](_0x519a56){const _0x186071=_0xf1c517;return this['line']+=_0x186071(0x1b1)+_0x519a56,this;}['uploadApp'](_0x4f7451){const _0x3c7512=_0xf1c517;return this[_0x3c7512(0x145)]+=_0x3c7512(0x1a0)+_0x4f7451,this;}['uploadPackage'](_0x2a9cb){const _0x128198=_0xf1c517;return this[_0x128198(0x145)]+='\x20--upload-package\x20'+_0x2a9cb,this;}[_0xf1c517(0x184)](_0x214381,_0x83a9f8){const _0x82c84a=_0xf1c517;return this[_0x82c84a(0x145)]+='\x20-u\x20'+_0x214381+_0x82c84a(0x199)+_0x83a9f8,this;}[_0xf1c517(0x161)](_0x1d5243,_0x457f73){const _0x4e6a2b=_0xf1c517;return this[_0x4e6a2b(0x145)]+=_0x4e6a2b(0x1b9)+_0x1d5243+_0x4e6a2b(0x1ce)+_0x457f73,this;}[_0xf1c517(0x152)](_0x420d1e){const _0x1dda06=_0xf1c517;return this[_0x1dda06(0x145)]+=_0x1dda06(0x197)+_0x420d1e,this;}[_0xf1c517(0x176)](_0x88dfc2){const _0x1a9dc7=_0xf1c517;return this[_0x1a9dc7(0x145)]+='\x20-t\x20'+_0x88dfc2,this;}[_0xf1c517(0x15e)](_0x35b3e7){const _0x1dc932=_0xf1c517;return this['line']+=_0x1dc932(0x1cd)+_0x35b3e7,this;}[_0xf1c517(0x1b7)](){const _0x4fcd47=_0xf1c517;return this['line']+=_0x4fcd47(0x1c9),this;}['create'](_0x2453b6,_0x155f69){const _0x1b5d5a=_0xf1c517;return this['line']+='\x20create\x20\x22WebSpatialSimulator\x22\x20\x22'+_0x2453b6+_0x1b5d5a(0x163)+_0x155f69+'\x22',this;}[_0xf1c517(0x148)](_0x5329e7){const _0xaa1361=_0xf1c517;return this[_0xaa1361(0x145)]+='\x20shutdown\x20\x22'+_0x5329e7+'\x22',this;}['boot'](_0x33e5ba){const _0x1aea0c=_0xf1c517;return this[_0x1aea0c(0x145)]+=_0x1aea0c(0x147)+_0x33e5ba+'\x22',this;}[_0xf1c517(0x14a)](_0xe30f1e,_0x5b91ca){const _0x5d2fb5=_0xf1c517;return this[_0x5d2fb5(0x145)]+='\x20install\x20\x22'+_0xe30f1e+_0x5d2fb5(0x163)+_0x5b91ca+'\x22',this;}['launch'](_0x595049,_0x51ed4b){const _0x4b9a1e=_0xf1c517;return this['line']+=_0x4b9a1e(0x16f)+_0x595049+_0x4b9a1e(0x163)+_0x51ed4b+'\x22',this;}[_0xf1c517(0x1cb)](_0x100995,_0x437d0a){const _0x1c23d7=_0xf1c517;return this[_0x1c23d7(0x145)]+='\x20terminate\x20\x22'+_0x100995+_0x1c23d7(0x163)+_0x437d0a+'\x22',this;}}
|
|
1
|
+
'use strict';const _0x1a59a9=_0x475b;(function(_0x428841,_0x16c823){const _0x331514=_0x475b,_0x463ad6=_0x428841();while(!![]){try{const _0x5e0e04=-parseInt(_0x331514(0x148))/0x1*(parseInt(_0x331514(0x151))/0x2)+-parseInt(_0x331514(0x102))/0x3*(parseInt(_0x331514(0xf8))/0x4)+parseInt(_0x331514(0x136))/0x5+-parseInt(_0x331514(0xfa))/0x6+-parseInt(_0x331514(0x154))/0x7+parseInt(_0x331514(0x122))/0x8*(parseInt(_0x331514(0xe8))/0x9)+-parseInt(_0x331514(0x140))/0xa*(-parseInt(_0x331514(0x143))/0xb);if(_0x5e0e04===_0x16c823)break;else _0x463ad6['push'](_0x463ad6['shift']());}catch(_0x175a9f){_0x463ad6['push'](_0x463ad6['shift']());}}}(_0xac63,0x202a8));function _0x475b(_0x68935f,_0x3300d5){const _0xac6344=_0xac63();return _0x475b=function(_0x475b84,_0x5c23c0){_0x475b84=_0x475b84-0xe8;let _0x160a38=_0xac6344[_0x475b84];return _0x160a38;},_0x475b(_0x68935f,_0x3300d5);}Object[_0x1a59a9(0x108)](exports,_0x1a59a9(0x114),{'value':!![]});function _0xac63(){const _0x44b1b3=['recordSimulator','\x20terminate\x20\x22','No\x20Apple\x20Vision\x20Pro\x20simulator\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','deviceId','\x20-t\x20','includes','push','use\x20simulator:\x20','--\x20visionOS','create\x20visionOS\x20simulator:\x20','installing\x20app','mkdirSync','visionos','launch','use\x20','path','install\x20success','886525sSeAUV','write','XcodebuildCMD','-------------------\x20build\x20end\x20-------------------','listSimulator','createSimulator','validate','runWithSimulator','toString','WebSpatial\x20Simulator','3809590EwyDDW','findSimulator','parseDeviceInfo','11NAALpd','\x20--bundle-version\x20','list','platform','PROJECT_BUILD_DIRECTORY','74710FDtCgb','buildTestApp','\x22\x20\x22','execSync','info','listDeviceTypes','uploadPackage','no\x20simulator\x20available','installApp','2VLiYET','searchSimulator','\x20--validate-app\x20-f\x20','1459542EvEJlv','Apple\x20Vision\x20Pro','PROJECT_TEST_DIRECTORY','launchWithSimulator','sleep\x2010','**\x20BUILD\x20FAILED\x20**','parseSupportRuntimes','\x20&&\x20xcodebuild\x20-showdestinations\x20-scheme\x20web-spatial','parseListDevices','CliLog','PROJECT_DIRECTORY','.app','shutdownSimulator','\x20altool','existsSync','\x20--upload-package\x20','install','----\x20build\x20start\x20on\x20','length','getAppInfoRecord','parseDestinationDevices','listDevices','platform:visionOS\x20Simulator','9CFxVCz','replace','warn','log','split','../utils/history','default',',\x20try\x20next\x20device','\x20--verbose','simctl','try\x20create\x20a\x20visionOS\x20simulator','error','\x20--upload-app\x20-f\x20','\x20--apiIssuer\x20','line','listRuntimes','13188LffWaF','verbose','747612VIDtYh','create','\x20--apiKey\x20','altool','parseSupportDevices','uploadApp','state','build\x20failed\x20on\x20','183billsY','\x20list','find\x20simulators:','find\x20destination\x20device:\x20','Build/Products/Debug-xrsimulator/','../resource','defineProperty','terminate','com','\x20|\x20grep\x20','\x20-u\x20','../resource/file','xcrun','sort','\x20launch\x20\x22','test','trim','boot','__esModule','authAccount','launchApp','authApi','indexOf','clearDir','\x20-p\x20','\x20list\x20runtimes','/web-spatial.xcodeproj','slice','\x20boot\x20\x22','launchSimulator','open\x20-a\x20Simulator\x20--args\x20-CurrentDeviceUDID\x20','launch\x20app','1459384vmMCRf','project','No\x20visionOS\x20rumtime\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator'];_0xac63=function(){return _0x44b1b3;};return _0xac63();}const child_process_1=require('child_process'),resource_1=require(_0x1a59a9(0x107)),path_1=require(_0x1a59a9(0x134)),fs=require('fs'),xcodebuild_1=require('./xcodebuild'),file_1=require(_0x1a59a9(0x10d)),utils_1=require('../utils/utils'),history_1=require(_0x1a59a9(0xed));class Xcrun{static async[_0x1a59a9(0x13c)](_0x4157b4,_0x2e7b3c,_0x1059ff,_0x2f0511){const _0x281fb4=_0x1a59a9,_0x445ae0=new XcrunCMD()[_0x281fb4(0xfd)]();_0x445ae0['validate'](_0x4157b4);_0x2f0511?_0x445ae0[_0x281fb4(0x115)](_0x2e7b3c,_0x1059ff):_0x445ae0[_0x281fb4(0x117)](_0x2e7b3c,_0x1059ff);_0x445ae0[_0x281fb4(0x146)](_0x281fb4(0x131));const _0x26b273=(0x0,child_process_1[_0x281fb4(0x14b)])(_0x445ae0['line']);return _0x26b273[_0x281fb4(0x13e)]();}static async[_0x1a59a9(0x14e)](_0x5c9e7d,_0x4778b2,_0x195c14,_0x3a05ce,_0x44b735){const _0x4b9fc5=_0x1a59a9,_0x4e1fa9=new XcrunCMD()[_0x4b9fc5(0xfd)]();_0x4e1fa9['uploadPackage'](_0x5c9e7d);_0x44b735?_0x4e1fa9[_0x4b9fc5(0x115)](_0x4778b2,_0x195c14):_0x4e1fa9[_0x4b9fc5(0x117)](_0x4778b2,_0x195c14);_0x4e1fa9['platform']('visionos'),_0x4e1fa9['appleId'](_0x3a05ce);const _0xafdd82=(0x0,child_process_1[_0x4b9fc5(0x14b)])(_0x4e1fa9[_0x4b9fc5(0xf6)]);return _0xafdd82[_0x4b9fc5(0x13e)]();}static async['uploadApp'](_0xc9d230,_0x5695a8,_0xb569be,_0x1dbcbe){const _0x400c13=_0x1a59a9,_0x10db66=new XcrunCMD()['altool']();_0x10db66['uploadApp'](_0xc9d230);_0x1dbcbe?_0x10db66[_0x400c13(0x115)](_0x5695a8,_0xb569be):_0x10db66['authApi'](_0x5695a8,_0xb569be);_0x10db66[_0x400c13(0x146)](_0x400c13(0x131));const _0x362aa=(0x0,child_process_1[_0x400c13(0x14b)])(_0x10db66[_0x400c13(0xf6)]);return _0x362aa[_0x400c13(0x13e)]();}static async[_0x1a59a9(0x13d)](){const _0x40705e=_0x1a59a9;let _0x5a8b20=this['findSimulator']();!_0x5a8b20[0x0]&&(_0x5a8b20=[this[_0x40705e(0x13b)]()]);const _0x533416=history_1[_0x40705e(0xee)][_0x40705e(0x167)]();for(var _0x5771e1=0x0;_0x5771e1<_0x5a8b20[_0x40705e(0x166)];_0x5771e1++){if(this[_0x40705e(0x149)](_0x5a8b20[_0x5771e1][_0x40705e(0x128)])){const _0x4f0997=this[_0x40705e(0x157)](_0x533416,_0x5a8b20[_0x5771e1][_0x40705e(0x128)],!![],![]);history_1[_0x40705e(0xee)][_0x40705e(0x125)](_0x4f0997),history_1[_0x40705e(0xee)][_0x40705e(0x137)]();return;}else utils_1['CliLog']['error'](_0x40705e(0x101)+_0x5a8b20[_0x5771e1][_0x40705e(0x128)]+_0x40705e(0xef));}utils_1[_0x40705e(0x15d)][_0x40705e(0xf3)](_0x40705e(0x14f));}static async['runWithHistory'](){const _0x18651e=_0x1a59a9,_0x449a2c=history_1['default']['getSimulatorHistory'](),_0x395234=history_1[_0x18651e(0xee)][_0x18651e(0x167)](),_0x54458b=this[_0x18651e(0x157)](_0x395234,_0x449a2c);history_1['default'][_0x18651e(0x125)](_0x54458b),history_1[_0x18651e(0xee)]['write']();}static[_0x1a59a9(0x157)](_0x42557a,_0x7efe9e='',_0x5b358e=![],_0x2d34cf=!![]){const _0x2f4d55=_0x1a59a9;let _0x5b539f,_0x3f7d03=![];return _0x2d34cf?_0x5b539f=this['findSimulator'](_0x7efe9e)[0x0]:_0x5b539f=this[_0x2f4d55(0x152)](_0x7efe9e),(!_0x5b539f||_0x5b539f[_0x2f4d55(0x128)]==='')&&(_0x5b539f=this[_0x2f4d55(0x13b)](),_0x3f7d03=!![]),console[_0x2f4d55(0xeb)](_0x2f4d55(0x12c)+_0x5b539f[_0x2f4d55(0x128)]),this[_0x2f4d55(0x11f)](_0x5b539f),(_0x5b358e||_0x3f7d03)&&(console[_0x2f4d55(0xeb)](_0x2f4d55(0x12f)),this[_0x2f4d55(0x150)](resource_1[_0x2f4d55(0x156)],_0x5b539f[_0x2f4d55(0x128)],_0x42557a['name']),console[_0x2f4d55(0xeb)](_0x2f4d55(0x135))),console['log'](_0x2f4d55(0x121)),this[_0x2f4d55(0x116)](_0x5b539f[_0x2f4d55(0x128)],_0x42557a['id']),_0x5b539f['deviceId'];}static async[_0x1a59a9(0x160)](){const _0x5365a4=_0x1a59a9;let _0x23ff07=this[_0x5365a4(0x141)]()[0x0];console[_0x5365a4(0xeb)]('find\x20simulator:\x20'+_0x23ff07[_0x5365a4(0x128)]);if(_0x23ff07[_0x5365a4(0x100)]!=='Shutdown'){let _0xa7004d=new XcrunCMD()[_0x5365a4(0xf1)]();_0xa7004d['shutdown'](_0x23ff07['deviceId']),(0x0,child_process_1[_0x5365a4(0x14b)])(_0xa7004d['line']);}else console['log']('simulator\x20is\x20already\x20shutdown');}static[_0x1a59a9(0x11f)](_0x1e1917){const _0x48ef9f=_0x1a59a9;if(_0x1e1917['state']==='Shutdown'){let _0x904df1=new XcrunCMD()[_0x48ef9f(0xf1)]();_0x904df1['boot'](_0x1e1917[_0x48ef9f(0x128)]),(0x0,child_process_1[_0x48ef9f(0x14b)])(_0x904df1[_0x48ef9f(0xf6)]),(0x0,child_process_1[_0x48ef9f(0x14b)])(_0x48ef9f(0x158));}(0x0,child_process_1[_0x48ef9f(0x14b)])(_0x48ef9f(0x120)+_0x1e1917[_0x48ef9f(0x128)]);}static[_0x1a59a9(0x149)](_0x1322f0){const _0x26a8d5=_0x1a59a9,_0x35a0e3=resource_1[_0x26a8d5(0x15e)]+_0x26a8d5(0x11c);!fs[_0x26a8d5(0x162)](resource_1[_0x26a8d5(0x147)])&&fs[_0x26a8d5(0x130)](resource_1[_0x26a8d5(0x147)],{'recursive':!![]});!fs[_0x26a8d5(0x162)](resource_1['PROJECT_TEST_DIRECTORY'])&&fs[_0x26a8d5(0x130)](resource_1[_0x26a8d5(0x156)],{'recursive':!![]});(0x0,file_1[_0x26a8d5(0x119)])(resource_1[_0x26a8d5(0x156)]);const _0x42f6d6=new xcodebuild_1[(_0x26a8d5(0x138))]()[_0x26a8d5(0x123)](_0x35a0e3)[_0x26a8d5(0xf6)]+('\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id='+_0x1322f0+'\x27\x20-derivedDataPath\x20'+resource_1[_0x26a8d5(0x156)]);console[_0x26a8d5(0xeb)](_0x26a8d5(0x165)+_0x1322f0+'\x20----');try{const _0x2b1d68=(0x0,child_process_1[_0x26a8d5(0x14b)])(_0x42f6d6);if(_0x2b1d68[_0x26a8d5(0x13e)]()[_0x26a8d5(0x12a)](_0x26a8d5(0x159)))return![];}catch(_0x4ad266){}return console[_0x26a8d5(0xeb)](_0x26a8d5(0x139)),!![];}static['installApp'](_0x4ea6a2,_0x2666bd,_0x37fe18){const _0x58d3d4=_0x1a59a9,_0x36c939=(0x0,path_1['join'])(_0x4ea6a2,_0x58d3d4(0x106)+_0x37fe18+_0x58d3d4(0x15f));let _0x1f22ba=new XcrunCMD()[_0x58d3d4(0xf1)]();_0x1f22ba[_0x58d3d4(0x164)](_0x2666bd,_0x36c939),(0x0,child_process_1[_0x58d3d4(0x14b)])(_0x1f22ba[_0x58d3d4(0xf6)]);}static[_0x1a59a9(0x116)](_0x5b51be,_0x3d10a0){const _0x2e720a=_0x1a59a9;try{(0x0,child_process_1[_0x2e720a(0x14b)])(new XcrunCMD()['simctl']()[_0x2e720a(0x109)](_0x5b51be,_0x3d10a0)[_0x2e720a(0xf6)]);}catch(_0xaf28f6){}(0x0,child_process_1[_0x2e720a(0x14b)])(new XcrunCMD()[_0x2e720a(0xf1)]()[_0x2e720a(0x132)](_0x5b51be,_0x3d10a0)[_0x2e720a(0xf6)]);}static[_0x1a59a9(0x168)](_0x13995c){const _0x450e2f=_0x1a59a9;let _0x427048=_0x13995c[_0x450e2f(0xec)]('\x0a');const _0x295f19=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/;let _0x58f505=[];for(let _0x5cc51b=0x0;_0x5cc51b<_0x427048[_0x450e2f(0x166)];_0x5cc51b++){if(_0x427048[_0x5cc51b][_0x450e2f(0x12a)](_0x450e2f(0x16a))){const _0x36ebf0=_0x427048[_0x5cc51b][_0x450e2f(0x11d)](_0x427048[_0x5cc51b][_0x450e2f(0x118)]('id:')+0x3,_0x427048[_0x5cc51b]['indexOf'](',\x20name'));_0x295f19[_0x450e2f(0x111)](_0x36ebf0)&&(_0x58f505[_0x450e2f(0x12b)](_0x36ebf0),console[_0x450e2f(0xeb)](_0x450e2f(0x105)+_0x427048[_0x5cc51b]+')'));}}return _0x58f505;}static['parseSupportDevices'](_0x32c1a2){const _0x415d6b=_0x1a59a9;let _0x413913=_0x32c1a2[_0x415d6b(0xec)]('\x0a');for(let _0x4f4053=0x0;_0x4f4053<_0x413913[_0x415d6b(0x166)];_0x4f4053++){if(_0x413913[_0x4f4053][_0x415d6b(0x12a)](_0x415d6b(0x155)))return _0x413913[_0x4f4053]=_0x413913[_0x4f4053][_0x415d6b(0xe9)](_0x415d6b(0x155),'')[_0x415d6b(0x112)](),_0x413913[_0x4f4053]=_0x413913[_0x4f4053][_0x415d6b(0xe9)]('(',''),_0x413913[_0x4f4053]=_0x413913[_0x4f4053][_0x415d6b(0xe9)](')',''),_0x413913[_0x4f4053];}throw new Error(_0x415d6b(0x127));}static['parseSupportRuntimes'](_0x2af42d){const _0x2166b8=_0x1a59a9;let _0x287c11=_0x2af42d[_0x2166b8(0xec)]('\x0a');for(let _0x1243c0=0x0;_0x1243c0<_0x287c11['length'];_0x1243c0++){if(_0x287c11[_0x1243c0][_0x2166b8(0x12a)]('visionOS'))return _0x287c11[_0x1243c0]['slice'](_0x287c11[_0x1243c0][_0x2166b8(0x118)](_0x2166b8(0x10a)))[_0x2166b8(0x112)]();}throw new Error(_0x2166b8(0x124));}static[_0x1a59a9(0x15c)](_0x5bd7af){const _0x1c2aeb=_0x1a59a9;let _0x3d6415=_0x5bd7af[_0x1c2aeb(0xec)]('\x0a'),_0x261ab8=[],_0x394455=-0x1;for(let _0x316566=0x0;_0x316566<_0x3d6415['length'];_0x316566++){if(_0x3d6415[_0x316566][_0x1c2aeb(0x12a)](_0x1c2aeb(0x12d)))_0x394455=_0x316566;else{if(_0x394455>0x0){if(_0x3d6415[_0x316566][_0x1c2aeb(0x12a)]('--\x20'))break;_0x3d6415[_0x316566]['length']>0x0&&_0x261ab8[_0x1c2aeb(0x12b)](this[_0x1c2aeb(0x142)](_0x3d6415[_0x316566]));}}}return _0x261ab8;}static[_0x1a59a9(0x142)](_0x402286){const _0x2a5e5b=_0x1a59a9,_0xdb9881=_0x402286['split']('('),_0x384b38={'name':_0xdb9881[0x0][_0x2a5e5b(0x112)](),'deviceId':_0xdb9881[0x1][_0x2a5e5b(0xec)](')')[0x0]['trim'](),'state':_0xdb9881[0x2][_0x2a5e5b(0xec)](')')[0x0]['trim']()};return _0x384b38;}static[_0x1a59a9(0x141)](_0x31a241){const _0x58033b=_0x1a59a9;let _0x570699=[_0x31a241!==null&&_0x31a241!==void 0x0?_0x31a241:''];const _0x1c36a5=(0x0,child_process_1[_0x58033b(0x14b)])('cd\x20'+resource_1[_0x58033b(0x15e)]+_0x58033b(0x15b)),_0x1245b2=this[_0x58033b(0x168)](_0x1c36a5[_0x58033b(0x13e)]());_0x570699=[..._0x570699,..._0x1245b2];let _0x57a9e1=this[_0x58033b(0x13a)]();return _0x57a9e1[_0x58033b(0x10f)]((_0x2e111d,_0x3a5bd3)=>{const _0x3d4273=_0x58033b,_0x33254c=_0x570699[_0x3d4273(0x118)](_0x2e111d[_0x3d4273(0x128)]),_0x112fdc=_0x570699[_0x3d4273(0x118)](_0x3a5bd3[_0x3d4273(0x128)]);if(_0x33254c!==-0x1&&_0x112fdc!==-0x1)return _0x33254c-_0x112fdc;else{if(_0x33254c!==-0x1)return-0x1;else{if(_0x112fdc!==-0x1)return 0x1;}}return 0x0;}),console[_0x58033b(0xeb)](_0x58033b(0x104)),console[_0x58033b(0xeb)](_0x57a9e1),_0x57a9e1;}static[_0x1a59a9(0x152)](_0x27c918){const _0xb9c7c4=_0x1a59a9,_0x2af508=new XcrunCMD()[_0xb9c7c4(0xf1)]()['listDevices'](_0xb9c7c4(0x155))[_0xb9c7c4(0xf6)]+(_0xb9c7c4(0x10b)+_0x27c918);console[_0xb9c7c4(0xeb)](_0x2af508);let _0xfdd02d=(0x0,child_process_1[_0xb9c7c4(0x14b)])(_0x2af508);return console[_0xb9c7c4(0xeb)](_0xfdd02d[_0xb9c7c4(0x13e)]()),this[_0xb9c7c4(0x142)](_0xfdd02d[_0xb9c7c4(0x13e)]());}static[_0x1a59a9(0x13b)](){const _0x41f2c9=_0x1a59a9;utils_1['CliLog'][_0x41f2c9(0xea)]('no\x20visionOS\x20simulator\x20found'),utils_1[_0x41f2c9(0x15d)][_0x41f2c9(0xea)](_0x41f2c9(0xf2));let _0x3e114c=(0x0,child_process_1[_0x41f2c9(0x14b)])(new XcrunCMD()[_0x41f2c9(0xf1)]()[_0x41f2c9(0x14d)]()[_0x41f2c9(0xf6)]);const _0x22dedc=this[_0x41f2c9(0xfe)](_0x3e114c['toString']());_0x3e114c=(0x0,child_process_1[_0x41f2c9(0x14b)])(new XcrunCMD()[_0x41f2c9(0xf1)]()[_0x41f2c9(0xf7)]()[_0x41f2c9(0xf6)]);const _0x1ffacc=this[_0x41f2c9(0x15a)](_0x3e114c['toString']());utils_1[_0x41f2c9(0x15d)][_0x41f2c9(0x14c)](_0x41f2c9(0x133)+_0x22dedc+'\x20and\x20'+_0x1ffacc+'\x20to\x20create\x20visionOS\x20simulator'),_0x3e114c=(0x0,child_process_1[_0x41f2c9(0x14b)])(new XcrunCMD()[_0x41f2c9(0xf1)]()[_0x41f2c9(0xfb)](_0x22dedc,_0x1ffacc)[_0x41f2c9(0xf6)]);const _0x4c1dc8=_0x3e114c[_0x41f2c9(0x13e)]()['trim']();return console[_0x41f2c9(0xeb)](_0x41f2c9(0x12e)+_0x4c1dc8),{'name':_0x41f2c9(0x13f),'deviceId':_0x4c1dc8,'state':'Shutdown'};}static['listSimulator'](){const _0x3af54a=_0x1a59a9;let _0xc8557b=(0x0,child_process_1[_0x3af54a(0x14b)])(new XcrunCMD()[_0x3af54a(0xf1)]()[_0x3af54a(0x169)]('Apple\x20Vision\x20Pro')[_0x3af54a(0xf6)]);return this[_0x3af54a(0x15c)](_0xc8557b[_0x3af54a(0x13e)]());}}exports[_0x1a59a9(0xee)]=Xcrun;class XcrunCMD{constructor(){const _0x38e8ed=_0x1a59a9;this[_0x38e8ed(0xf6)]=_0x38e8ed(0x10e);}[_0x1a59a9(0xfd)](){const _0x8402ec=_0x1a59a9;return this[_0x8402ec(0xf6)]+=_0x8402ec(0x161),this;}['simctl'](){return this['line']+='\x20simctl',this;}[_0x1a59a9(0x145)](){const _0x15c3c9=_0x1a59a9;return this[_0x15c3c9(0xf6)]+=_0x15c3c9(0x103),this;}[_0x1a59a9(0x169)](_0xdfb8d5){const _0x2f1719=_0x1a59a9;return this[_0x2f1719(0xf6)]+='\x20list\x20devices\x20\x22'+_0xdfb8d5+'\x22',this;}[_0x1a59a9(0x14d)](){return this['line']+='\x20list\x20devicetypes',this;}[_0x1a59a9(0xf7)](){const _0x1a6e6a=_0x1a59a9;return this['line']+=_0x1a6e6a(0x11b),this;}[_0x1a59a9(0x13c)](_0x6fc7fe){const _0x58bb2f=_0x1a59a9;return this['line']+=_0x58bb2f(0x153)+_0x6fc7fe,this;}[_0x1a59a9(0xff)](_0x3e8cd9){const _0x5bdac9=_0x1a59a9;return this[_0x5bdac9(0xf6)]+=_0x5bdac9(0xf4)+_0x3e8cd9,this;}[_0x1a59a9(0x14e)](_0x53bfaf){const _0x3abae3=_0x1a59a9;return this[_0x3abae3(0xf6)]+=_0x3abae3(0x163)+_0x53bfaf,this;}[_0x1a59a9(0x115)](_0x4f2ddf,_0x5629cf){const _0x59a01a=_0x1a59a9;return this[_0x59a01a(0xf6)]+=_0x59a01a(0x10c)+_0x4f2ddf+_0x59a01a(0x11a)+_0x5629cf,this;}[_0x1a59a9(0x117)](_0x38409f,_0x99510e){const _0x9c6d32=_0x1a59a9;return this[_0x9c6d32(0xf6)]+=_0x9c6d32(0xfc)+_0x38409f+_0x9c6d32(0xf5)+_0x99510e,this;}['appleId'](_0x51a97b){const _0x2fae97=_0x1a59a9;return this[_0x2fae97(0xf6)]+='\x20--apple-id\x20'+_0x51a97b,this;}[_0x1a59a9(0x146)](_0x396461){const _0x1f75d3=_0x1a59a9;return this[_0x1f75d3(0xf6)]+=_0x1f75d3(0x129)+_0x396461,this;}['version'](_0x12ffde){const _0x727e63=_0x1a59a9;return this[_0x727e63(0xf6)]+=_0x727e63(0x144)+_0x12ffde,this;}[_0x1a59a9(0xf9)](){const _0x29f79f=_0x1a59a9;return this[_0x29f79f(0xf6)]+=_0x29f79f(0xf0),this;}[_0x1a59a9(0xfb)](_0x52cb3a,_0x2b3895){const _0x5c3f48=_0x1a59a9;return this[_0x5c3f48(0xf6)]+='\x20create\x20\x22WebSpatialSimulator\x22\x20\x22'+_0x52cb3a+_0x5c3f48(0x14a)+_0x2b3895+'\x22',this;}['shutdown'](_0x39fac4){return this['line']+='\x20shutdown\x20\x22'+_0x39fac4+'\x22',this;}[_0x1a59a9(0x113)](_0xdb4479){const _0x3740cd=_0x1a59a9;return this[_0x3740cd(0xf6)]+=_0x3740cd(0x11e)+_0xdb4479+'\x22',this;}[_0x1a59a9(0x164)](_0x5373c3,_0x2ba63f){const _0x289677=_0x1a59a9;return this[_0x289677(0xf6)]+='\x20install\x20\x22'+_0x5373c3+_0x289677(0x14a)+_0x2ba63f+'\x22',this;}[_0x1a59a9(0x132)](_0xafac8d,_0x140cb0){const _0x2909e6=_0x1a59a9;return this[_0x2909e6(0xf6)]+=_0x2909e6(0x110)+_0xafac8d+_0x2909e6(0x14a)+_0x140cb0+'\x22',this;}['terminate'](_0x3d1fd6,_0x56a0bf){const _0x5bff4d=_0x1a59a9;return this['line']+=_0x5bff4d(0x126)+_0x3d1fd6+'\x22\x20\x22'+_0x56a0bf+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"sharp": "^0.33.5",
|
|
40
40
|
"valid-url": "^1.0.9",
|
|
41
41
|
"xcode": "^3.0.1",
|
|
42
|
-
"@webspatial/platform-visionos": "^0.1.
|
|
42
|
+
"@webspatial/platform-visionos": "^0.1.16"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@rollup/plugin-terser": "^0.4.3",
|