@webspatial/builder 0.0.13 → 0.0.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/README.md +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.d.ts +2 -2
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.d.ts +2 -1
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.d.ts +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/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Build and run local WebSpatial project on Apple Vision Pro simulator.
|
|
|
17
17
|
`webspatial-builder run --manifest=public/manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos`
|
|
18
18
|
|
|
19
19
|
- Default parameters
|
|
20
|
-
- --manifest=public/manifest.json
|
|
20
|
+
- --manifest=public/manifest.json or --manifest=manifest.webmanifest
|
|
21
21
|
- --project=dist
|
|
22
22
|
- --platform=visionos
|
|
23
23
|
- Necessary parameters
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1129(){const _0x59da65=['exports','forEach','cli','4436KxHykd','./lib/utils/CustomError','argv','./lib/Cli','1561070PuLoiC','__esModule','7353018ncAdIK','error','182wbsIhv','message','1499492ViwhVH','code','slice','isArray','2249325SIsnQE','run','Cli','customMessage','3275TKyOYx','122346WRXUut','defineProperty','./lib/utils/Log','228024hlzanO','exit','ConsoleLog'];_0x1129=function(){return _0x59da65;};return _0x1129();}const _0x43ea7f=_0x1e5c;(function(_0xf99138,_0x3a807a){const _0x4605e1=_0x1e5c,_0x501152=_0xf99138();while(!![]){try{const _0x332708=parseInt(_0x4605e1(0x9a))/0x1+-parseInt(_0x4605e1(0xa0))/0x2+-parseInt(_0x4605e1(0xa4))/0x3+-parseInt(_0x4605e1(0x96))/0x4*(-parseInt(_0x4605e1(0xa8))/0x5)+parseInt(_0x4605e1(0xa9))/0x6+-parseInt(_0x4605e1(0x9e))/0x7*(parseInt(_0x4605e1(0xac))/0x8)+parseInt(_0x4605e1(0x9c))/0x9;if(_0x332708===_0x3a807a)break;else _0x501152['push'](_0x501152['shift']());}catch(_0x15ba14){_0x501152['push'](_0x501152['shift']());}}}(_0x1129,0xd7e23));Object[_0x43ea7f(0xaa)](exports,_0x43ea7f(0x9b),{'value':!![]});function _0x1e5c(_0x3fba9a,_0x519f5f){const _0x1129bc=_0x1129();return _0x1e5c=function(_0x1e5c1d,_0x5814e2){_0x1e5c1d=_0x1e5c1d-0x93;let _0x41c6a3=_0x1129bc[_0x1e5c1d];return _0x41c6a3;},_0x1e5c(_0x3fba9a,_0x519f5f);}const Cli_1=require(_0x43ea7f(0x99)),Log_1=require(_0x43ea7f(0xab)),CustomError_1=require(_0x43ea7f(0x97));module[_0x43ea7f(0x93)]=async()=>{const _0x18b6c9=_0x43ea7f,_0x1a1ba6=new Cli_1[(_0x18b6c9(0xa6))](),_0x40754b=new Log_1[(_0x18b6c9(0xae))](_0x18b6c9(0x95)),_0x4f4f0b=process[_0x18b6c9(0x98)][_0x18b6c9(0xa2)](0x2);let _0x17450a;try{_0x17450a=await _0x1a1ba6[_0x18b6c9(0xa5)](_0x4f4f0b);}catch(_0x5ce73e){if(_0x5ce73e instanceof CustomError_1['CustomError']){const _0x55063a=_0x5ce73e[_0x18b6c9(0xa7)];Array[_0x18b6c9(0xa3)](_0x55063a)?_0x55063a[_0x18b6c9(0x94)](_0x33b160=>{const _0x5317ac=_0x18b6c9;_0x40754b[_0x5317ac(0x9d)](_0x33b160['code']+':\x20'+_0x33b160['message']);}):_0x40754b['error'](_0x55063a[_0x18b6c9(0xa1)]+':\x20'+_0x55063a[_0x18b6c9(0x9f)]);}else _0x40754b['error'](_0x5ce73e['message']);_0x17450a=![];}!_0x17450a?process[_0x18b6c9(0xad)](0x1):process[_0x18b6c9(0xad)](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0xb9fb(){const _0x568790=['34653gYCgnR','versions','major','./cmds/build','run','downloadFile','help','103392ZgVLaF','7LRgAvt','Current\x20Node.js\x20version\x20is\x20','decompressResponseBuffer','defineProperty','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','fetch','build','1238406lstJyF','762712CuDDOK','semver','fetchUtils','./cmds/version','node','Cli','4236480Hkmkte','publish','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','__esModule','minimist','5OWpEyF','4PFzAxe','./utils/FetchUtils-1','26504zimTTB','1468845QCmtiZ','setDecompressResponseBuffer','store','setFetch','version'];_0xb9fb=function(){return _0x568790;};return _0xb9fb();}const _0x594903=_0x401d;(function(_0x7dd01d,_0x378646){const _0x3af7cc=_0x401d,_0x40adbd=_0x7dd01d();while(!![]){try{const _0x22d0ef=-parseInt(_0x3af7cc(0x1be))/0x1+parseInt(_0x3af7cc(0x1af))/0x2*(parseInt(_0x3af7cc(0x1b7))/0x3)+parseInt(_0x3af7cc(0x1a3))/0x4*(-parseInt(_0x3af7cc(0x1ae))/0x5)+-parseInt(_0x3af7cc(0x1a2))/0x6+parseInt(_0x3af7cc(0x1bf))/0x7*(-parseInt(_0x3af7cc(0x1b1))/0x8)+parseInt(_0x3af7cc(0x1b2))/0x9+parseInt(_0x3af7cc(0x1a9))/0xa;if(_0x22d0ef===_0x378646)break;else _0x40adbd['push'](_0x40adbd['shift']());}catch(_0x5cb778){_0x40adbd['push'](_0x40adbd['shift']());}}}(_0xb9fb,0x19ebb));Object[_0x594903(0x1c2)](exports,_0x594903(0x1ac),{'value':!![]}),exports[_0x594903(0x1a8)]=void 0x0;function _0x401d(_0x4c6bc5,_0x3ab096){const _0xb9fb7b=_0xb9fb();return _0x401d=function(_0x401d95,_0x49f3c5){_0x401d95=_0x401d95-0x19f;let _0x3c1a6e=_0xb9fb7b[_0x401d95];return _0x3c1a6e;},_0x401d(_0x4c6bc5,_0x3ab096);}const minimist=require(_0x594903(0x1ad)),semver_1=require(_0x594903(0x1a4)),FetchUtils_1_1=require(_0x594903(0x1b0)),help_1=require('./cmds/help'),build_1=require(_0x594903(0x1ba)),version_1=require(_0x594903(0x1a6)),fetch_1=require('./utils/fetch');class Cli{async[_0x594903(0x1bb)](_0x49da3c){const _0x561108=_0x594903;if((0x0,semver_1[_0x561108(0x1b9)])(process[_0x561108(0x1b8)][_0x561108(0x1a7)])<0xe)throw new Error(_0x561108(0x1c0)+process[_0x561108(0x1b8)][_0x561108(0x1a7)]+'.'+_0x561108(0x1ab));FetchUtils_1_1[_0x561108(0x1a5)][_0x561108(0x1b5)](fetch_1[_0x561108(0x1a0)]),FetchUtils_1_1[_0x561108(0x1a5)]['setDownloadFile'](fetch_1[_0x561108(0x1bc)]),FetchUtils_1_1[_0x561108(0x1a5)][_0x561108(0x1b3)](fetch_1[_0x561108(0x1c1)]);const _0x11b2ff=minimist(_0x49da3c);let _0x5a6540=undefined;if(_0x11b2ff['_']['length']===0x0){if(_0x11b2ff[_0x561108(0x1b6)])_0x5a6540=_0x561108(0x1b6);else _0x11b2ff[_0x561108(0x1bd)]&&(_0x5a6540='help');}else _0x5a6540=_0x11b2ff['_'][0x0];!_0x5a6540&&(_0x5a6540=_0x561108(0x1bd));switch(_0x5a6540){case _0x561108(0x1bd):case'h':return await(0x0,help_1[_0x561108(0x1bd)])(_0x11b2ff);case _0x561108(0x1a1):return await(0x0,build_1['start'])(_0x11b2ff);case _0x561108(0x1aa):return await(0x0,build_1[_0x561108(0x1b4)])(_0x11b2ff);case'run':return await(0x0,build_1['run'])(_0x11b2ff);case _0x561108(0x1b6):{return await(0x0,version_1[_0x561108(0x1b6)])();}default:throw new Error('\x22'+_0x5a6540+_0x561108(0x19f));}}}exports['Cli']=Cli;
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1fb4(){const _0x38fd7b=['../xcode','3003469iRMvXd','checkPlatformPath','243dzCjuF','defineProperty','parseProject','905522gewIKh','upload','project','generator','move\x20web\x20project:\x20ok','run','name','export','platform','../resource','10kwBZvF','-------------------\x20build\x20end\x20-------------------','SpatialWebTest','PWAGenerator','checkStoreParams','XcodeManager','fromNet','app-store-connect','buildType','start','json','log','68CuuXsX','1884130lcKskh','168616GQEXCK','runWithSimulator','../pwa','ResourceManager','125VwCtkH','dist','56607pphFXr','teamId','82038TJlAXC','998899RnamAC','store'];_0x1fb4=function(){return _0x38fd7b;};return _0x1fb4();}const _0x1247a0=_0x3f9c;(function(_0x4e2780,_0x9c8b48){const _0x58b933=_0x3f9c,_0x383cb5=_0x4e2780();while(!![]){try{const _0x1ebc2=-parseInt(_0x58b933(0x1dc))/0x1+parseInt(_0x58b933(0x1ca))/0x2+-parseInt(_0x58b933(0x1d1))/0x3*(parseInt(_0x58b933(0x1c9))/0x4)+-parseInt(_0x58b933(0x1cf))/0x5*(-parseInt(_0x58b933(0x1d3))/0x6)+parseInt(_0x58b933(0x1d7))/0x7+parseInt(_0x58b933(0x1cb))/0x8*(parseInt(_0x58b933(0x1d9))/0x9)+parseInt(_0x58b933(0x1e6))/0xa*(-parseInt(_0x58b933(0x1d4))/0xb);if(_0x1ebc2===_0x9c8b48)break;else _0x383cb5['push'](_0x383cb5['shift']());}catch(_0x26e22d){_0x383cb5['push'](_0x383cb5['shift']());}}}(_0x1fb4,0xeb944));function _0x3f9c(_0x1318db,_0x40dc52){const _0x1fb4a7=_0x1fb4();return _0x3f9c=function(_0x3f9c51,_0x238294){_0x3f9c51=_0x3f9c51-0x1c2;let _0x334445=_0x1fb4a7[_0x3f9c51];return _0x334445;},_0x3f9c(_0x1318db,_0x40dc52);}Object[_0x1247a0(0x1da)](exports,'__esModule',{'value':!![]}),exports[_0x1247a0(0x1c6)]=start,exports[_0x1247a0(0x1d5)]=store,exports[_0x1247a0(0x1e1)]=run;const pwa_1=require(_0x1247a0(0x1cd)),resource_1=require(_0x1247a0(0x1e5)),xcode_1=require(_0x1247a0(0x1d6)),check_1=require('./check');async function start(_0x5aeea5,_0x52f2ec=![]){const _0x8dbd3d=_0x1247a0;var _0x300ed3;(0x0,check_1['checkBuildParams'])(_0x5aeea5,_0x52f2ec),resource_1[_0x8dbd3d(0x1ce)][_0x8dbd3d(0x1d8)](_0x5aeea5[_0x8dbd3d(0x1e4)]),console[_0x8dbd3d(0x1c8)]('-------------------\x20build\x20start\x20-------------------');let _0x31126e=await pwa_1[_0x8dbd3d(0x1e9)][_0x8dbd3d(0x1df)](_0x5aeea5,_0x52f2ec);!_0x31126e[_0x8dbd3d(0x1c3)]&&(await resource_1['ResourceManager']['moveProjectFrom']((_0x300ed3=_0x5aeea5[_0x8dbd3d(0x1de)])!==null&&_0x300ed3!==void 0x0?_0x300ed3:_0x8dbd3d(0x1d0)),console[_0x8dbd3d(0x1c8)](_0x8dbd3d(0x1e0)));const _0x3fd9d4=await resource_1['ResourceManager']['generateIcon'](_0x31126e);return console[_0x8dbd3d(0x1c8)]('generate\x20icon:\x20ok'),await xcode_1[_0x8dbd3d(0x1c2)][_0x8dbd3d(0x1db)]({'icon':_0x3fd9d4,'manifestInfo':_0x31126e,'teamId':_0x5aeea5[_0x8dbd3d(0x1d2)],'version':_0x5aeea5['version'],'buildType':_0x5aeea5[_0x8dbd3d(0x1c5)],'export':_0x5aeea5[_0x8dbd3d(0x1e3)]},_0x52f2ec),console[_0x8dbd3d(0x1c8)](_0x8dbd3d(0x1e7)),_0x31126e;}async function store(_0x1e6c9a){const _0x17827b=_0x1247a0;resource_1[_0x17827b(0x1ce)]['checkPlatformPath'](_0x1e6c9a[_0x17827b(0x1e4)]),(0x0,check_1[_0x17827b(0x1ea)])(_0x1e6c9a);let _0x14caa7={'name':_0x17827b(0x1e8)};_0x1e6c9a[_0x17827b(0x1c5)]=_0x17827b(0x1c4);if(_0x1e6c9a[_0x17827b(0x1e2)])_0x14caa7[_0x17827b(0x1e2)]=_0x1e6c9a[_0x17827b(0x1e2)];else{const _0x471501=await start(_0x1e6c9a);if(!_0x471501)return![];_0x14caa7[_0x17827b(0x1e2)]=_0x471501[_0x17827b(0x1c7)][_0x17827b(0x1e2)];}return await xcode_1[_0x17827b(0x1c2)][_0x17827b(0x1dd)](_0x1e6c9a,_0x14caa7),!![];}async function run(_0x17d53e){const _0x5eb5b5=_0x1247a0;let _0x5b95a2={'name':_0x5eb5b5(0x1e8),'id':'com.SpatialWeb.test'};const _0x3f6046=await start(_0x17d53e,!![]);if(!_0x3f6046)return![];return _0x5b95a2[_0x5eb5b5(0x1e2)]=_0x3f6046[_0x5eb5b5(0x1c7)][_0x5eb5b5(0x1e2)],_0x5b95a2['id']=_0x3f6046['json']['id'],await xcode_1['XcodeManager'][_0x5eb5b5(0x1cc)](_0x5b95a2),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1be1c4=_0x55f5;(function(_0x440758,_0x4bc2){const _0x504f85=_0x55f5,_0x127279=_0x440758();while(!![]){try{const _0x4c1853=-parseInt(_0x504f85(0xa6))/0x1*(-parseInt(_0x504f85(0xaa))/0x2)+parseInt(_0x504f85(0xa3))/0x3*(-parseInt(_0x504f85(0xb5))/0x4)+parseInt(_0x504f85(0xb2))/0x5*(-parseInt(_0x504f85(0xae))/0x6)+parseInt(_0x504f85(0xa1))/0x7+-parseInt(_0x504f85(0xb1))/0x8+-parseInt(_0x504f85(0xb3))/0x9*(-parseInt(_0x504f85(0xb8))/0xa)+parseInt(_0x504f85(0xb0))/0xb;if(_0x4c1853===_0x4bc2)break;else _0x127279['push'](_0x127279['shift']());}catch(_0x43e47a){_0x127279['push'](_0x127279['shift']());}}}(_0x433f,0xb1fb6));Object['defineProperty'](exports,_0x1be1c4(0xaf),{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x1be1c4(0xb4)]=checkStoreParams;function _0x55f5(_0x32552e,_0x10f741){const _0x433f7d=_0x433f();return _0x55f5=function(_0x55f52a,_0x18ba9f){_0x55f52a=_0x55f52a-0x9e;let _0x272d5f=_0x433f7d[_0x55f52a];return _0x272d5f;},_0x55f5(_0x32552e,_0x10f741);}const validate_1=require(_0x1be1c4(0xa2));function _0x433f(){const _0x12f30f=['split','42940CvQpzD','--teamId\x20is\x20required','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','validateURL','search','2492350KoHeAI','../pwa/validate','25422yliOWr','version\x20is\x20required','hash','5989rtrvLa','test','pop','base','142kjaBsS','teamId','version','manifest','6coKtfn','__esModule','24807475NiPVrH','1825720FrUuXl','7050805KqSUpC','54kDDhYN','checkStoreParams','328WcClIZ','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.'];_0x433f=function(){return _0x12f30f;};return _0x433f();}function checkBuildParams(_0x3c9426,_0x1e51e3=![]){const _0x39227a=_0x1be1c4;if(_0x3c9426[_0x39227a(0xad)]&&_0x3c9426['manifest-url'])throw new Error(_0x39227a(0x9e));if(!_0x3c9426[_0x39227a(0xab)]&&!_0x1e51e3)throw new Error(_0x39227a(0xb9));if(_0x3c9426[_0x39227a(0xa9)]){if((0x0,validate_1[_0x39227a(0x9f)])(_0x3c9426['base']))try{const _0x11731e=new URL(_0x3c9426['base']);if(_0x11731e[_0x39227a(0xa0)]||_0x11731e[_0x39227a(0xa5)])throw new Error(_0x39227a(0xb6));}catch(_0x1889ea){throw new Error(_0x39227a(0xb6));}else{const _0x2e9739=/(\?.*|\.\w+|#.*)$/,_0x38e973=_0x3c9426[_0x39227a(0xa9)][_0x39227a(0xb7)]('/')[_0x39227a(0xa8)]()||'';if(_0x2e9739[_0x39227a(0xa7)](_0x38e973))throw new Error('The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.');}}}function checkStoreParams(_0x53908a){const _0x143c00=_0x1be1c4;if(!(_0x53908a['u']&&_0x53908a['p']))throw new Error('--u\x20and\x20--p\x20is\x20required');if(!_0x53908a[_0x143c00(0xac)])throw new Error(_0x143c00(0xa4));}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1f480e=_0x4243;function _0x4243(_0x24e5ca,_0x359551){const _0x3aa5c3=_0x3aa5();return _0x4243=function(_0x4243dc,_0x3c530c){_0x4243dc=_0x4243dc-0xdb;let _0x11738e=_0x3aa5c3[_0x4243dc];return _0x11738e;},_0x4243(_0x24e5ca,_0x359551);}(function(_0x25c04d,_0x4290a5){const _0x1abbf5=_0x4243,_0x342c45=_0x25c04d();while(!![]){try{const _0x32fb93=-parseInt(_0x1abbf5(0xe0))/0x1+-parseInt(_0x1abbf5(0xf7))/0x2*(-parseInt(_0x1abbf5(0xeb))/0x3)+parseInt(_0x1abbf5(0xf1))/0x4*(-parseInt(_0x1abbf5(0xf6))/0x5)+parseInt(_0x1abbf5(0xf0))/0x6*(-parseInt(_0x1abbf5(0xde))/0x7)+parseInt(_0x1abbf5(0xdb))/0x8*(parseInt(_0x1abbf5(0xf5))/0x9)+parseInt(_0x1abbf5(0xdf))/0xa+-parseInt(_0x1abbf5(0xf2))/0xb;if(_0x32fb93===_0x4290a5)break;else _0x342c45['push'](_0x342c45['shift']());}catch(_0x490db6){_0x342c45['push'](_0x342c45['shift']());}}}(_0x3aa5,0x898e2));Object['defineProperty'](exports,_0x1f480e(0xe3),{'value':!![]}),exports[_0x1f480e(0xe4)]=help;const Log_1=require(_0x1f480e(0xf9)),HELP_MESSAGES=new Map([[_0x1f480e(0xef),[_0x1f480e(0xf3),'','',_0x1f480e(0xe9),_0x1f480e(0xe7)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project',_0x1f480e(0xf4),'publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect']['join']('\x0a')],[_0x1f480e(0xdc),[_0x1f480e(0xdd),'','',_0x1f480e(0xee),'','',_0x1f480e(0xe8)][_0x1f480e(0xe5)]('\x0a')],[_0x1f480e(0xea),['Usage:','','',_0x1f480e(0xe2),'','','webspatial\x20dev\x20--manifest-url=<net-manifest-url>']['join']('\x0a')],['publish',[_0x1f480e(0xdd),'','',_0x1f480e(0xe1),'','','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','','',_0x1f480e(0xf8)]['join']('\x0a')]]);async function help(_0x6e991f,_0x716acb=new Log_1[(_0x1f480e(0xec))](_0x1f480e(0xe4))){const _0x13ed69=_0x1f480e,_0x1d5446=_0x6e991f['_'][0x1],_0x2fe98c=HELP_MESSAGES[_0x13ed69(0xe6)](_0x1d5446)||HELP_MESSAGES['get']('main');return _0x716acb[_0x13ed69(0xed)](_0x2fe98c),!![];}function _0x3aa5(){const _0x489be6=['9787990MMSZuA','511936PIjIZb','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>','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','__esModule','help','join','get','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','help\x20................\x20shows\x20this\x20menu','dev','6jtuvox','ConsoleLog','info','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','main','1957902CdcDlL','112EfPhUp','7685084YQlali','webspatial\x20[command]\x20<options>','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','751743cbNHTv','17065hIYhxI','1050034rXivRF','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','../utils/Log','16smElAq','build','Usage:','7DxdXYh'];_0x3aa5=function(){return _0x489be6;};return _0x3aa5();}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x359d(){const _0xb3778d=['info','1583100BGBqGZ','path','363229qihVan','25608EsrLlf','375184XLhRUe','49RwfUJx','ConsoleLog','57946NAOKIw','8206590XRAFHD','readFile','1652095XmQTIX','6hjfPoj','version','promises','join','__esModule','105nCKMcx','../utils/Log'];_0x359d=function(){return _0xb3778d;};return _0x359d();}function _0x467f(_0x4b5da1,_0x346ff9){const _0x359da9=_0x359d();return _0x467f=function(_0x467f7d,_0x7cb239){_0x467f7d=_0x467f7d-0x150;let _0x4eb536=_0x359da9[_0x467f7d];return _0x4eb536;},_0x467f(_0x4b5da1,_0x346ff9);}const _0x457f80=_0x467f;(function(_0x2b410d,_0x77875c){const _0xe1bc6=_0x467f,_0x7ccb76=_0x2b410d();while(!![]){try{const _0x4543d8=-parseInt(_0xe1bc6(0x15a))/0x1+parseInt(_0xe1bc6(0x15f))/0x2+-parseInt(_0xe1bc6(0x155))/0x3*(-parseInt(_0xe1bc6(0x15b))/0x4)+-parseInt(_0xe1bc6(0x162))/0x5*(parseInt(_0xe1bc6(0x150))/0x6)+-parseInt(_0xe1bc6(0x15d))/0x7*(parseInt(_0xe1bc6(0x15c))/0x8)+parseInt(_0xe1bc6(0x158))/0x9+parseInt(_0xe1bc6(0x160))/0xa;if(_0x4543d8===_0x77875c)break;else _0x7ccb76['push'](_0x7ccb76['shift']());}catch(_0x5e5f53){_0x7ccb76['push'](_0x7ccb76['shift']());}}}(_0x359d,0x37954));Object['defineProperty'](exports,_0x457f80(0x154),{'value':!![]}),exports[_0x457f80(0x151)]=version;const fs=require('fs'),path=require(_0x457f80(0x159)),Log_1=require(_0x457f80(0x156));async function version(_0x1af0fc=new Log_1[(_0x457f80(0x15e))](_0x457f80(0x151))){const _0x56413d=_0x457f80,_0x39eca1=path[_0x56413d(0x153)](__dirname,'../../../package.json'),_0x457f09=await(await fs[_0x56413d(0x152)][_0x56413d(0x161)](_0x39eca1))['toString'](),_0x4e43e1=JSON['parse'](_0x457f09);return _0x1af0fc[_0x56413d(0x157)](_0x4e43e1['version']),!![];}
|
package/dist/lib/pwa/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare function configId(manifestJson: Record<string, any
|
|
1
|
+
export declare function configId(manifestJson: Record<string, any>, bundleId: string): void;
|
|
2
2
|
export declare function configStartUrl(manifestJson: Record<string, any>, base: string): void;
|
|
3
|
-
export declare function configScope(manifestJson: Record<string, any
|
|
3
|
+
export declare function configScope(manifestJson: Record<string, any>): void;
|
|
4
4
|
export declare function configDisplay(manifestJson: Record<string, any>): void;
|
|
5
5
|
export declare function configMainScene(manifestJson: Record<string, any>): void;
|
|
6
6
|
export declare function configDeeplink(manifestJson: Record<string, any>): void;
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x31fcd1=_0x7940;(function(_0xbee3d8,_0x198eab){const _0xd7454d=_0x7940,_0x86e9fe=_0xbee3d8();while(!![]){try{const _0x38f055=-parseInt(_0xd7454d(0xee))/0x1*(parseInt(_0xd7454d(0xdb))/0x2)+parseInt(_0xd7454d(0xdc))/0x3*(parseInt(_0xd7454d(0xfd))/0x4)+parseInt(_0xd7454d(0xfa))/0x5*(-parseInt(_0xd7454d(0xbd))/0x6)+parseInt(_0xd7454d(0xe2))/0x7+-parseInt(_0xd7454d(0xec))/0x8*(-parseInt(_0xd7454d(0xf8))/0x9)+parseInt(_0xd7454d(0xc8))/0xa*(parseInt(_0xd7454d(0xe8))/0xb)+-parseInt(_0xd7454d(0xfe))/0xc;if(_0x38f055===_0x198eab)break;else _0x86e9fe['push'](_0x86e9fe['shift']());}catch(_0x5acfb4){_0x86e9fe['push'](_0x86e9fe['shift']());}}}(_0x4278,0x4ce8c));Object['defineProperty'](exports,_0x31fcd1(0xc6),{'value':!![]}),exports[_0x31fcd1(0xd1)]=void 0x0,exports[_0x31fcd1(0xbe)]=configId,exports[_0x31fcd1(0xd7)]=configStartUrl,exports[_0x31fcd1(0xb6)]=configScope,exports[_0x31fcd1(0xd9)]=configDisplay,exports[_0x31fcd1(0xae)]=configMainScene,exports[_0x31fcd1(0xd6)]=configDeeplink;const utils_1=require(_0x31fcd1(0xc3)),validate_1=require(_0x31fcd1(0xe9)),path_1=require(_0x31fcd1(0xde));function configId(_0x3139b0,_0x3064c5){const _0x3511f3=_0x31fcd1;if(_0x3064c5)_0x3139b0['id']=_0x3064c5;else{const _0x3882cc=new URL(_0x3139b0['id']);let _0x415b01=_0x3882cc[_0x3511f3(0xb5)][_0x3511f3(0xb0)]('.')['reverse']();_0x3139b0['id']=_0x415b01['join']('.');}}function configStartUrl(_0x3c3278,_0x5c9576){const _0x35fbbe=_0x31fcd1,_0x2d3cf7=(0x0,validate_1[_0x35fbbe(0xf1)])(_0x3c3278[_0x35fbbe(0xb7)]),_0x2f9f9c=(0x0,validate_1[_0x35fbbe(0xf1)])(_0x5c9576);let _0x3b6cb0=_0x3c3278[_0x35fbbe(0xb7)];if(!_0x2d3cf7&&!_0x2f9f9c){const _0x1cdbaf=(0x0,path_1['resolve'])(_0x35fbbe(0xe7)),_0x4d0534=(0x0,path_1[_0x35fbbe(0xd3)])(_0x1cdbaf,_0x5c9576,_0x3b6cb0),_0x2dd885=(0x0,path_1[_0x35fbbe(0xb8)])(_0x4d0534),_0x275e5d=(0x0,path_1[_0x35fbbe(0xdd)])(_0x1cdbaf,_0x2dd885);_0x3b6cb0=(0x0,path_1['relative'])(process['cwd'](),_0x275e5d)['replace'](/^(\.\.\/)+/,'./')[_0x35fbbe(0xb9)](/\/$/,'');}else{if(_0x2d3cf7&&!_0x2f9f9c){const _0x582e01=new URL(_0x3b6cb0),_0x54f45c=_0x582e01[_0x35fbbe(0xb4)]+_0x582e01[_0x35fbbe(0xc4)]+_0x582e01['hash'];let _0x183cbe=new URL(_0x5c9576,_0x582e01[_0x35fbbe(0xda)]);_0x3b6cb0=new URL(_0x54f45c,_0x183cbe)['href'];}else{if(!_0x2d3cf7&&_0x2f9f9c)_0x3b6cb0=new URL(_0x3b6cb0,_0x5c9576)[_0x35fbbe(0xb2)];else{if(_0x2d3cf7&&_0x2f9f9c){const _0x1695da=new URL(_0x3b6cb0),_0x1667b1=new URL(_0x5c9576),_0x3ccb27=_0x1695da[_0x35fbbe(0xb4)]+_0x1695da[_0x35fbbe(0xc4)]+_0x1695da[_0x35fbbe(0xeb)];_0x3b6cb0=new URL(_0x3ccb27,_0x1667b1['origin']+_0x1667b1['pathname'])['href'];}}}}_0x3c3278[_0x35fbbe(0xb7)]=_0x3b6cb0;}function _0x7940(_0x8b8827,_0x1b6750){const _0x42780d=_0x4278();return _0x7940=function(_0x7940ea,_0x102582){_0x7940ea=_0x7940ea-0xad;let _0x313ba9=_0x42780d[_0x7940ea];return _0x313ba9;},_0x7940(_0x8b8827,_0x1b6750);}function configScope(_0x28e7bf){const _0x3f68c4=_0x31fcd1;var _0x705b3a,_0x308d0d;let _0x2c3912='';const _0x501659=(0x0,validate_1[_0x3f68c4(0xf1)])(_0x28e7bf['start_url']),_0x42f8f9=(0x0,validate_1[_0x3f68c4(0xf1)])(_0x28e7bf[_0x3f68c4(0xc9)]);if(_0x501659&&_0x42f8f9){const _0x23cae2=new URL((_0x705b3a=_0x28e7bf[_0x3f68c4(0xc9)])!==null&&_0x705b3a!==void 0x0?_0x705b3a:''),_0x319fd9=new URL(_0x28e7bf[_0x3f68c4(0xb7)]);(_0x23cae2[_0x3f68c4(0xb5)]!==_0x319fd9[_0x3f68c4(0xb5)]||_0x28e7bf[_0x3f68c4(0xb7)][_0x3f68c4(0xf6)](_0x2c3912)!==0x0)&&(_0x2c3912=(0x0,utils_1[_0x3f68c4(0xb1)])(_0x28e7bf[_0x3f68c4(0xb7)]));}else{if(_0x501659&&!_0x42f8f9)_0x2c3912=new URL(_0x28e7bf['scope'],_0x28e7bf[_0x3f68c4(0xb7)])['href'];else{if(!_0x501659&&_0x42f8f9){const _0x5b0369=_0x28e7bf[_0x3f68c4(0xb7)][_0x3f68c4(0xb9)](/\/[^\/]+$/,'');_0x2c3912=(0x0,path_1[_0x3f68c4(0xb8)])(_0x5b0369+'/');}else _0x2c3912=(0x0,path_1[_0x3f68c4(0xdd)])((0x0,utils_1[_0x3f68c4(0xb1)])(_0x28e7bf[_0x3f68c4(0xb7)]),(_0x308d0d=_0x28e7bf['scope'])!==null&&_0x308d0d!==void 0x0?_0x308d0d:'');}}_0x28e7bf[_0x3f68c4(0xc9)]=_0x2c3912;}function _0x4278(){const _0x2c3c24=['hash','248LqvjXX','automatic','2JDOItC','openpgp4fpr','includes','validateURL','display_override','default_size','urn','ircs','indexOf','dynamic','107928uBJZkk','wtai','12365DqwRCm','resizability','mainScene','24356shxbOo','4420500ZrcIET','geo','configMainScene','ftps','split','parseRouter','href','width','pathname','host','configScope','start_url','normalize','replace','sip','minimal-ui','webcal','1398UAewXT','configId','xmpp','sftp','matrix','length','../utils/utils','search','mms','__esModule','smsto','580HgvRYc','scope','xr_main_scene','display','sms','url','bitcoin','protocol_handlers','ftp','safelist','contentMinSize','resolve','protocol','defaultSize','configDeeplink','configStartUrl','contentSize','configDisplay','origin','284834grGotv','249eRNuWd','join','path','standalone','string','news','3008929IFWQLR','splice','web+','ssh','irc','./static-web','45034ZYmUVu','./validate','height'];_0x4278=function(){return _0x2c3c24;};return _0x4278();}function configDisplay(_0x7cb9c0){const _0xe5e6af=_0x31fcd1;let _0x1fef62=_0x7cb9c0[_0xe5e6af(0xcb)];_0x1fef62!==_0xe5e6af(0xbb)&&_0x1fef62!==_0xe5e6af(0xdf)&&(_0x1fef62=_0xe5e6af(0xdf));if(_0x7cb9c0['display_override']&&_0x7cb9c0['display_override']['length']>0x0){const _0xbc7bed=_0x7cb9c0[_0xe5e6af(0xf2)][_0xe5e6af(0xf6)](_0xe5e6af(0xbb)),_0x7f57dc=_0x7cb9c0[_0xe5e6af(0xf2)]['indexOf'](_0xe5e6af(0xdf));if(_0xbc7bed>=0x0&&_0x7f57dc>=0x0)_0x1fef62=_0x7f57dc>_0xbc7bed?_0xe5e6af(0xdf):_0xe5e6af(0xbb);else{if(_0xbc7bed>=0x0)_0x1fef62='minimal-ui';else _0x7f57dc>=0x0&&(_0x1fef62='standalone');}}}function configMainScene(_0x443e7e){const _0x37fbc4=_0x31fcd1;var _0x6d5c8b,_0x16290d;const _0x30505c=['automatic',_0x37fbc4(0xd2),_0x37fbc4(0xd8)];let _0x4a5d45={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0x443e7e['xr_main_scene']){if(typeof _0x443e7e['xr_main_scene']==='object')_0x4a5d45[_0x37fbc4(0xd5)][_0x37fbc4(0xb3)]=Number((_0x6d5c8b=_0x443e7e['xr_main_scene']['default_size'])===null||_0x6d5c8b===void 0x0?void 0x0:_0x6d5c8b[_0x37fbc4(0xb3)])>0x0?_0x443e7e[_0x37fbc4(0xca)][_0x37fbc4(0xf3)][_0x37fbc4(0xb3)]:0x500,_0x4a5d45[_0x37fbc4(0xd5)][_0x37fbc4(0xea)]=Number((_0x16290d=_0x443e7e[_0x37fbc4(0xca)][_0x37fbc4(0xf3)])===null||_0x16290d===void 0x0?void 0x0:_0x16290d[_0x37fbc4(0xea)])>0x0?_0x443e7e[_0x37fbc4(0xca)][_0x37fbc4(0xf3)][_0x37fbc4(0xea)]:0x500,_0x4a5d45[_0x37fbc4(0xfb)]=_0x30505c[_0x37fbc4(0xf0)](_0x443e7e[_0x37fbc4(0xca)][_0x37fbc4(0xfb)])?_0x443e7e[_0x37fbc4(0xca)][_0x37fbc4(0xfb)]:_0x37fbc4(0xed),_0x443e7e[_0x37fbc4(0xfc)]=_0x4a5d45;else typeof _0x443e7e[_0x37fbc4(0xca)]===_0x37fbc4(0xe0)&&(_0x443e7e[_0x37fbc4(0xfc)]=_0x37fbc4(0xf7));}}function configDeeplink(_0x11cb75){const _0x4964a5=_0x31fcd1;if(_0x11cb75['protocol_handlers']&&_0x11cb75[_0x4964a5(0xcf)][_0x4964a5(0xc2)]>0x0)for(var _0x29373f=0x0;_0x29373f<_0x11cb75['protocol_handlers']['length'];_0x29373f++){const _0x3d6ac8=_0x11cb75[_0x4964a5(0xcf)][_0x29373f];if(_0x3d6ac8[_0x4964a5(0xd4)]&&(exports[_0x4964a5(0xd1)][_0x4964a5(0xf0)](_0x3d6ac8['protocol'])||_0x3d6ac8[_0x4964a5(0xd4)][_0x4964a5(0xf6)](_0x4964a5(0xe4))===0x0)){if(!((0x0,validate_1[_0x4964a5(0xf1)])(_0x3d6ac8[_0x4964a5(0xcd)])&&_0x3d6ac8['url'][_0x4964a5(0xf6)](_0x11cb75[_0x4964a5(0xc9)])<0x0))continue;}_0x11cb75[_0x4964a5(0xcf)][_0x4964a5(0xe3)](_0x29373f,0x1),_0x29373f--;}}exports[_0x31fcd1(0xd1)]=[_0x31fcd1(0xce),_0x31fcd1(0xd0),_0x31fcd1(0xaf),_0x31fcd1(0xad),'im',_0x31fcd1(0xe6),_0x31fcd1(0xf5),'magnet','mailto',_0x31fcd1(0xc1),_0x31fcd1(0xc5),_0x31fcd1(0xe1),'nntp',_0x31fcd1(0xef),_0x31fcd1(0xc0),_0x31fcd1(0xba),_0x31fcd1(0xcc),_0x31fcd1(0xc7),_0x31fcd1(0xe5),'tel',_0x31fcd1(0xf4),_0x31fcd1(0xbc),_0x31fcd1(0xf9),_0x31fcd1(0xbf)];
|
package/dist/lib/pwa/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface InitArgs {
|
|
|
3
3
|
manifest?: string;
|
|
4
4
|
project?: string;
|
|
5
5
|
base: string;
|
|
6
|
+
'bundle-id'?: string;
|
|
6
7
|
}
|
|
7
8
|
export interface ManifestInfo {
|
|
8
9
|
json: Record<string, any>;
|
|
@@ -13,5 +14,5 @@ export declare class PWAGenerator {
|
|
|
13
14
|
static DisplayModes: string[];
|
|
14
15
|
static generator(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
|
|
15
16
|
static validate(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
|
|
16
|
-
static config(manifestInfo: ManifestInfo,
|
|
17
|
+
static config(manifestInfo: ManifestInfo, args: InitArgs, isDev: boolean): void;
|
|
17
18
|
}
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x52a2d1=_0x151f;function _0x151f(_0x5c0b14,_0xda3d80){const _0x1ec2e2=_0x1ec2();return _0x151f=function(_0x151fd0,_0x119ff3){_0x151fd0=_0x151fd0-0x8f;let _0x382bd8=_0x1ec2e2[_0x151fd0];return _0x382bd8;},_0x151f(_0x5c0b14,_0xda3d80);}(function(_0x430ef3,_0x3b5fe4){const _0x477f20=_0x151f,_0x58ab8b=_0x430ef3();while(!![]){try{const _0x4e6bcc=parseInt(_0x477f20(0x93))/0x1*(parseInt(_0x477f20(0xb7))/0x2)+-parseInt(_0x477f20(0xa6))/0x3*(parseInt(_0x477f20(0xa8))/0x4)+-parseInt(_0x477f20(0x97))/0x5*(-parseInt(_0x477f20(0xb5))/0x6)+parseInt(_0x477f20(0xa4))/0x7*(-parseInt(_0x477f20(0xa0))/0x8)+parseInt(_0x477f20(0x94))/0x9*(parseInt(_0x477f20(0xb0))/0xa)+-parseInt(_0x477f20(0xb4))/0xb*(parseInt(_0x477f20(0xbc))/0xc)+parseInt(_0x477f20(0xb9))/0xd*(parseInt(_0x477f20(0xbd))/0xe);if(_0x4e6bcc===_0x3b5fe4)break;else _0x58ab8b['push'](_0x58ab8b['shift']());}catch(_0x5df256){_0x58ab8b['push'](_0x58ab8b['shift']());}}}(_0x1ec2,0x89a64));Object[_0x52a2d1(0xae)](exports,_0x52a2d1(0xac),{'value':!![]}),exports['PWAGenerator']=void 0x0;const path_1=require(_0x52a2d1(0xa1)),config_1=require(_0x52a2d1(0x9d)),load_1=require('../resource/load'),validate_1=require(_0x52a2d1(0xa2)),fs=require('fs');class PWAGenerator{static async[_0x52a2d1(0xaf)](_0x191062,_0x43f9d6=![]){const _0x363481=_0x52a2d1;let _0x4845fa=await this[_0x363481(0xb3)](_0x191062,_0x43f9d6);return console['log']('check\x20manifest.json:\x20ok'),await this[_0x363481(0x9c)](_0x4845fa,_0x191062,_0x43f9d6),console[_0x363481(0xba)](_0x363481(0xb6)),_0x4845fa;}static async['validate'](_0x1ae7ee,_0x43bb83=![]){const _0x1f8c14=_0x52a2d1;var _0x55cc10;let _0x5096b8={},_0x591c0c='',_0x309c35=![];if(_0x1ae7ee[_0x1f8c14(0xb8)])_0x591c0c=_0x1ae7ee['manifest-url'],_0x309c35=!![],_0x5096b8=await(0x0,load_1[_0x1f8c14(0xaa)])(_0x1ae7ee['manifest-url']);else{_0x1ae7ee[_0x1f8c14(0xa9)]?_0x591c0c=(0x0,path_1[_0x1f8c14(0x9b)])(process[_0x1f8c14(0x8f)](),_0x1ae7ee['manifest']):(_0x591c0c=(0x0,path_1[_0x1f8c14(0x9b)])(process[_0x1f8c14(0x8f)](),_0x1f8c14(0x92)),!fs[_0x1f8c14(0xb1)](_0x591c0c)&&(_0x591c0c=(0x0,path_1['join'])(process[_0x1f8c14(0x8f)](),_0x1f8c14(0xa7))));if(!fs[_0x1f8c14(0xb1)](_0x591c0c))throw new Error(_0x1f8c14(0xbe));_0x5096b8=await(0x0,load_1[_0x1f8c14(0x9e)])(_0x591c0c);}(0x0,validate_1[_0x1f8c14(0x9a)])(_0x5096b8);var _0x19605e=(0x0,validate_1[_0x1f8c14(0x95)])(_0x5096b8,_0x591c0c,_0x309c35,_0x43bb83);if(!_0x43bb83)(0x0,validate_1[_0x1f8c14(0x9f)])(_0x5096b8,(_0x55cc10=_0x1ae7ee['bundle-id'])!==null&&_0x55cc10!==void 0x0?_0x55cc10:'');return await(0x0,validate_1[_0x1f8c14(0x91)])(_0x5096b8,_0x591c0c),{'json':_0x5096b8,'url':_0x591c0c,'fromNet':_0x19605e};}static['config'](_0x7351be,_0x442a01,_0x45ddf0){const _0x2aa3c1=_0x52a2d1;var _0x407b13,_0x23a9f7;(0x0,config_1[_0x2aa3c1(0xab)])(_0x7351be[_0x2aa3c1(0x90)],(_0x407b13=_0x442a01[_0x2aa3c1(0xa3)])!==null&&_0x407b13!==void 0x0?_0x407b13:'');if(!_0x45ddf0)(0x0,config_1[_0x2aa3c1(0x99)])(_0x7351be['json'],(_0x23a9f7=_0x442a01['bundle-id'])!==null&&_0x23a9f7!==void 0x0?_0x23a9f7:'');(0x0,config_1[_0x2aa3c1(0x96)])(_0x7351be[_0x2aa3c1(0x90)]),(0x0,config_1[_0x2aa3c1(0xa5)])(_0x7351be[_0x2aa3c1(0x90)]),(0x0,config_1[_0x2aa3c1(0x98)])(_0x7351be[_0x2aa3c1(0x90)]),(0x0,config_1[_0x2aa3c1(0xbb)])(_0x7351be[_0x2aa3c1(0x90)]);}}exports['PWAGenerator']=PWAGenerator,PWAGenerator[_0x52a2d1(0xad)]=['standalone',_0x52a2d1(0xb2)];function _0x1ec2(){const _0x3bac2d=['3101487xEptpk','public/manifest.webmanifest','4zUNoIO','manifest','loadJsonFromNet','configStartUrl','__esModule','DisplayModes','defineProperty','generator','5890MzuYrP','existsSync','minimal-ui','validate','539IEMkFK','6aPDFGP','reset\x20manifest.json:\x20ok','1041540RvWgjJ','manifest-url','21554RECjLk','log','configMainScene','19884MdFrPf','4886iiuMZS','manifest\x20not\x20found','cwd','json','checkIcons','public/manifest.json','1kzsxuG','10737lTpkjX','checkStartUrl','configScope','919785xPkiMj','configDeeplink','configId','checkManifestJson','join','config','./config','loadJsonFromDisk','checkId','48jBcYSs','path','./validate','base','358414hQofUn','configDisplay'];_0x1ec2=function(){return _0x3bac2d;};return _0x1ec2();}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function checkManifestJson(manifestJson: Record<string, any>): void;
|
|
2
2
|
export declare function checkStartUrl(manifest: Record<string, any>, manifestUrl: string, isNet: boolean, isDev?: boolean): boolean;
|
|
3
3
|
export declare function checkIcons(manifest: Record<string, any>, manifestUrl: string): Promise<void>;
|
|
4
|
-
export declare function checkId(manifest: Record<string, any
|
|
4
|
+
export declare function checkId(manifest: Record<string, any>, bundleId: string): void;
|
|
5
5
|
export declare function validateURL(url: string): boolean;
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x5302(){const _0x4957b5=['short_name','host','../utils/CustomError','16594txGfLL','split','81836wcrmRv','756tWDMGC','display','getWidth','PWAGenerator','http','../resource/load','7WCaJip','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value','name','start_url','icons','includes','39XMkOmI','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','src','indexOf','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','loadImageFromDisk','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','push','path','http://','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','103IhqtQO','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','https://','join','purpose','\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20','../resource/imageHelper','startsWith','CustomError','parseRouter','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','11wwQEab','maskable','sizes','DisplayModes','1779970fRAUaZ','loadImageFromNet','__esModule','3596270DHbgMI','checkId','104nOlOiO','checkManifestJson','ImageHelper','6015102pupHAq','../utils/utils','688779joGucf','length','190411BPiSSx','Local\x20manifest\x20cannot\x20package\x20network\x20project','checkStartUrl'];_0x5302=function(){return _0x4957b5;};return _0x5302();}const _0x5d2d84=_0x4d79;(function(_0x58679e,_0x50fd5a){const _0x2ed7e9=_0x4d79,_0x1db5dd=_0x58679e();while(!![]){try{const _0x2af969=parseInt(_0x2ed7e9(0x1b6))/0x1*(-parseInt(_0x2ed7e9(0x19c))/0x2)+parseInt(_0x2ed7e9(0x1ab))/0x3*(-parseInt(_0x2ed7e9(0x19e))/0x4)+parseInt(_0x2ed7e9(0x18a))/0x5+-parseInt(_0x2ed7e9(0x192))/0x6*(parseInt(_0x2ed7e9(0x1a5))/0x7)+-parseInt(_0x2ed7e9(0x18f))/0x8*(-parseInt(_0x2ed7e9(0x194))/0x9)+parseInt(_0x2ed7e9(0x18d))/0xa*(parseInt(_0x2ed7e9(0x1c1))/0xb)+-parseInt(_0x2ed7e9(0x19f))/0xc*(-parseInt(_0x2ed7e9(0x196))/0xd);if(_0x2af969===_0x50fd5a)break;else _0x1db5dd['push'](_0x1db5dd['shift']());}catch(_0xb9cdc3){_0x1db5dd['push'](_0x1db5dd['shift']());}}}(_0x5302,0x7c902));Object['defineProperty'](exports,_0x5d2d84(0x18c),{'value':!![]}),exports[_0x5d2d84(0x190)]=checkManifestJson,exports[_0x5d2d84(0x198)]=checkStartUrl,exports['checkIcons']=checkIcons,exports[_0x5d2d84(0x18e)]=checkId,exports['validateURL']=validateURL;const path_1=require(_0x5d2d84(0x1b3)),_1=require('.'),CustomError_1=require(_0x5d2d84(0x19b)),utils_1=require(_0x5d2d84(0x193)),imageHelper_1=require(_0x5d2d84(0x1bc)),load_1=require(_0x5d2d84(0x1a4));function checkManifestJson(_0x5c7403){const _0x3f9eb6=_0x5d2d84;var _0x2b94ff;const _0x27a691=[];!_0x5c7403[_0x3f9eb6(0x1a7)]&&!_0x5c7403[_0x3f9eb6(0x199)]&&_0x27a691[_0x3f9eb6(0x1b2)]({'code':0xbbe,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x2b94ff=_0x5c7403['icons'])===null||_0x2b94ff===void 0x0?void 0x0:_0x2b94ff[_0x3f9eb6(0x195)])&&_0x27a691[_0x3f9eb6(0x1b2)]({'code':0xbbf,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x5c7403[_0x3f9eb6(0x1a8)]&&_0x27a691[_0x3f9eb6(0x1b2)]({'code':0xbc0,'message':_0x3f9eb6(0x1b1),'message_staring_params':{}});!_1[_0x3f9eb6(0x1a2)][_0x3f9eb6(0x189)][_0x3f9eb6(0x1aa)](_0x5c7403[_0x3f9eb6(0x1a0)])&&_0x27a691[_0x3f9eb6(0x1b2)]({'code':0xbc1,'message':_0x3f9eb6(0x1a6)+(_0x3f9eb6(0x1bb)+_0x5c7403[_0x3f9eb6(0x1a0)]+')'),'message_staring_params':{'display':_0x5c7403[_0x3f9eb6(0x1a0)]}});if(_0x27a691[_0x3f9eb6(0x195)])throw new CustomError_1[(_0x3f9eb6(0x1be))](_0x27a691);}function checkStartUrl(_0x5c5790,_0x5a2f54,_0x2b296f,_0x30676d=![]){const _0x106ebd=_0x5d2d84;var _0x3c13a5=![];if(_0x30676d)return _0x3c13a5=_0x5c5790[_0x106ebd(0x1a8)][_0x106ebd(0x1ae)](_0x106ebd(0x1b8))===0x0||_0x5c5790[_0x106ebd(0x1a8)][_0x106ebd(0x1ae)](_0x106ebd(0x1b4))===0x0,_0x3c13a5;if(_0x2b296f){if(_0x5c5790[_0x106ebd(0x1a8)][_0x106ebd(0x1ae)]('https://')==0x0){const _0x3f1d3c=new URL(_0x5c5790[_0x106ebd(0x1a8)]),_0x122f20=new URL(_0x5a2f54);if(_0x3f1d3c['host']!==_0x122f20[_0x106ebd(0x19a)])throw new CustomError_1[(_0x106ebd(0x1be))]({'code':0xfa0,'message':_0x106ebd(0x1b5),'message_staring_params':{}});}else{if(_0x5c5790[_0x106ebd(0x1a8)][_0x106ebd(0x1ae)](_0x106ebd(0x1b4))==0x0)throw new CustomError_1[(_0x106ebd(0x1be))]({'code':0xfa0,'message':_0x106ebd(0x1af),'message_staring_params':{}});}}else{if(_0x5c5790[_0x106ebd(0x1a8)]['indexOf']('https://')==0x0||_0x5c5790[_0x106ebd(0x1a8)][_0x106ebd(0x1ae)](_0x106ebd(0x1b4))==0x0)throw new CustomError_1[(_0x106ebd(0x1be))]({'code':0xfa0,'message':_0x106ebd(0x197),'message_staring_params':{}});}return _0x3c13a5;}function _0x4d79(_0x3809f1,_0x1940de){const _0x530209=_0x5302();return _0x4d79=function(_0x4d7997,_0x5100f6){_0x4d7997=_0x4d7997-0x188;let _0x3cd22d=_0x530209[_0x4d7997];return _0x3cd22d;},_0x4d79(_0x3809f1,_0x1940de);}async function checkIcons(_0x184cf3,_0x833f46){const _0x1fdfd4=_0x5d2d84;var _0x12a5b1;const _0x1e2b89=(0x0,utils_1[_0x1fdfd4(0x1bf)])(_0x833f46);let _0x3eb32e,_0x588201,_0x50bbe5,_0x776901=0x0;for(var _0x1cd6a9=0x0;_0x1cd6a9<_0x184cf3[_0x1fdfd4(0x1a9)]['length'];_0x1cd6a9++){const _0x186f07=_0x184cf3['icons'][_0x1cd6a9];let _0x27a60f=((_0x12a5b1=_0x186f07[_0x1fdfd4(0x1ba)])===null||_0x12a5b1===void 0x0?void 0x0:_0x12a5b1[_0x1fdfd4(0x1ae)](_0x1fdfd4(0x1c2)))>=0x0;if(!_0x27a60f)continue;let _0x204947=![],_0x5a7869=_0x186f07[_0x1fdfd4(0x1ad)],_0x5bb9aa,_0x53d5ec=0x0;!validateURL(_0x5a7869)&&(_0x5a7869=(0x0,path_1[_0x1fdfd4(0x1b9)])(_0x1e2b89,_0x5a7869));if(_0x186f07[_0x1fdfd4(0x188)]){const _0x2e2c2e=_0x186f07[_0x1fdfd4(0x188)][_0x1fdfd4(0x19d)]('\x20');_0x2e2c2e['forEach'](_0x38268b=>{let _0x13b4f0=_0x38268b['split']('x');Number(_0x13b4f0[0x0])>=0x400&&Number(_0x13b4f0[0x1])>=0x400&&(_0x204947=!![],Number(_0x13b4f0[0x0])>_0x53d5ec&&(_0x53d5ec=Number(_0x13b4f0[0x0])));});}else _0x5bb9aa=!_0x5a7869[_0x1fdfd4(0x1bd)](_0x1fdfd4(0x1a3))?await(0x0,load_1[_0x1fdfd4(0x1b0)])(_0x5a7869):await(0x0,load_1[_0x1fdfd4(0x18b)])(_0x5a7869),_0x5bb9aa[_0x1fdfd4(0x1a1)]()>=0x400&&_0x5bb9aa['getHeight']()>=0x400&&(_0x204947=!![],_0x5bb9aa['getWidth']()>_0x53d5ec&&(_0x53d5ec=_0x5bb9aa['getWidth']()));_0x204947&&_0x27a60f&&(_0x53d5ec>_0x776901&&(_0x776901=_0x53d5ec,_0x3eb32e=_0x5bb9aa,_0x588201=_0x5a7869,_0x50bbe5=_0x186f07[_0x1fdfd4(0x1ba)]));}if(_0x776901===0x0)throw new CustomError_1[(_0x1fdfd4(0x1be))]({'code':0xfa0,'message':_0x1fdfd4(0x1b7),'message_staring_params':{}});else _0x588201&&(_0x3eb32e=!_0x588201['startsWith']('http')?await(0x0,load_1['loadImageFromDisk'])(_0x588201):await(0x0,load_1[_0x1fdfd4(0x18b)])(_0x588201));if(_0x3eb32e&&!imageHelper_1[_0x1fdfd4(0x191)]['isFullyOpaque'](_0x3eb32e))throw new CustomError_1[(_0x1fdfd4(0x1be))]({'code':0xfa0,'message':_0x1fdfd4(0x1c0),'message_staring_params':{}});_0x184cf3[_0x1fdfd4(0x1a9)]=[{'src':_0x588201,'sizes':_0x776901+'x'+_0x776901,'purpose':_0x50bbe5}];}function checkId(_0x3a0fff,_0x127158){const _0x438ccc=_0x5d2d84;!_0x3a0fff['id']&&(_0x3a0fff['id']=_0x3a0fff[_0x438ccc(0x1a8)]);if(!validateURL(_0x3a0fff['id'])&&!_0x127158)throw new CustomError_1[(_0x438ccc(0x1be))]({'code':0xfa0,'message':_0x438ccc(0x1ac),'message_staring_params':{}});}function validateURL(_0x352289){try{return new URL(_0x352289),!![];}catch(_0x179b89){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x33c66b=_0x4b11;(function(_0x4e9963,_0x2cb9fa){const _0x33866c=_0x4b11,_0xe81483=_0x4e9963();while(!![]){try{const _0x2d7280=-parseInt(_0x33866c(0xf9))/0x1*(-parseInt(_0x33866c(0x101))/0x2)+-parseInt(_0x33866c(0xff))/0x3+parseInt(_0x33866c(0xfe))/0x4+parseInt(_0x33866c(0xfc))/0x5*(parseInt(_0x33866c(0xf8))/0x6)+-parseInt(_0x33866c(0xf4))/0x7+parseInt(_0x33866c(0xf6))/0x8*(-parseInt(_0x33866c(0x105))/0x9)+parseInt(_0x33866c(0x109))/0xa;if(_0x2d7280===_0x2cb9fa)break;else _0xe81483['push'](_0xe81483['shift']());}catch(_0xda925e){_0xe81483['push'](_0xe81483['shift']());}}}(_0x3138,0x45ef3));Object[_0x33c66b(0x102)](exports,_0x33c66b(0x106),{'value':!![]}),exports[_0x33c66b(0x103)]=copyDir,exports['clearDir']=clearDir;function _0x3138(){const _0x4bc722=['defineProperty','copyDir','readdirSync','11466vYPwlE','__esModule','writeFileSync','readFileSync','5047150TjDJaf','forEach','3643941ELeUWw','log','2184caTAon','isDirectory','12408GlvSvp','1qICfVC','unlinkSync','statSync','1010eYCIXy','existsSync','146868bVQRar','659127gefaeU','isFile','830714hrRQcN'];_0x3138=function(){return _0x4bc722;};return _0x3138();}function _0x4b11(_0x52b083,_0x53c091){const _0x313838=_0x3138();return _0x4b11=function(_0x4b112e,_0x4bd8e1){_0x4b112e=_0x4b112e-0xf3;let _0xc93eb5=_0x313838[_0x4b112e];return _0xc93eb5;},_0x4b11(_0x52b083,_0x53c091);}const fs=require('fs');function copyDir(_0x443616,_0x487b04){const _0x1e2817=_0x33c66b,_0xa8f298=fs[_0x1e2817(0x104)](_0x443616);_0xa8f298['forEach'](_0x33268d=>{const _0x814c81=_0x1e2817,_0x441a73=_0x443616+'/'+_0x33268d,_0x3b8311=_0x487b04+'/'+_0x33268d,_0x809297=fs['statSync'](_0x441a73);if(_0x809297[_0x814c81(0x100)]())try{fs[_0x814c81(0x107)](_0x3b8311,fs[_0x814c81(0x108)](_0x441a73));}catch(_0xf7a6f7){console[_0x814c81(0xf5)](_0xf7a6f7);}else _0x809297[_0x814c81(0xf7)]()&&(!fs[_0x814c81(0xfd)](_0x3b8311)&&fs['mkdirSync'](_0x3b8311,{'recursive':!![]}),copyDir(_0x441a73,_0x3b8311));});}function clearDir(_0x5ec9a9){const _0x1c0e4b=_0x33c66b,_0x1a4cf9=fs[_0x1c0e4b(0x104)](_0x5ec9a9);_0x1a4cf9[_0x1c0e4b(0xf3)](_0x49d9f5=>{const _0x3fff70=_0x1c0e4b,_0x1f72e8=_0x5ec9a9+'/'+_0x49d9f5,_0x44594c=fs[_0x3fff70(0xfb)](_0x1f72e8);if(_0x44594c[_0x3fff70(0x100)]())try{fs[_0x3fff70(0xfa)](_0x1f72e8);}catch(_0x144c4e){console['log'](_0x144c4e);}else _0x44594c[_0x3fff70(0xf7)]()&&clearDir(_0x1f72e8);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3b2a(_0x18d1a3,_0x130c25){const _0x13cf8d=_0x13cf();return _0x3b2a=function(_0x3b2a98,_0x424e2f){_0x3b2a98=_0x3b2a98-0x1c2;let _0x23b744=_0x13cf8d[_0x3b2a98];return _0x23b744;},_0x3b2a(_0x18d1a3,_0x130c25);}function _0x13cf(){const _0x33fb27=['__esModule','createImg','webp2PngBuffer','5648778BTcpJo','Resvg','5805696DOnqDX','24qbNpul','png','525133HjBudl','asPng','defineProperty','5388fSGrzE','jimp','1269092axhqru','1347NLyJxh','4886545gjzmfw','toBuffer','render','toFormat','bitmap','5317557UfdTmY','sharp','svg2img','ImageHelper'];_0x13cf=function(){return _0x33fb27;};return _0x13cf();}const _0x3672e4=_0x3b2a;(function(_0x45d340,_0x3973ed){const _0x43a442=_0x3b2a,_0x252588=_0x45d340();while(!![]){try{const _0x2254b0=-parseInt(_0x43a442(0x1d1))/0x1+parseInt(_0x43a442(0x1d6))/0x2+parseInt(_0x43a442(0x1d7))/0x3*(-parseInt(_0x43a442(0x1d4))/0x4)+parseInt(_0x43a442(0x1d8))/0x5+-parseInt(_0x43a442(0x1ce))/0x6+-parseInt(_0x43a442(0x1c5))/0x7+-parseInt(_0x43a442(0x1cf))/0x8*(-parseInt(_0x43a442(0x1cc))/0x9);if(_0x2254b0===_0x3973ed)break;else _0x252588['push'](_0x252588['shift']());}catch(_0x2ad4dc){_0x252588['push'](_0x252588['shift']());}}}(_0x13cf,0x9ba8a));Object[_0x3672e4(0x1d3)](exports,_0x3672e4(0x1c9),{'value':!![]}),exports[_0x3672e4(0x1c8)]=void 0x0;const Jimp=require(_0x3672e4(0x1d5)),sharp=require(_0x3672e4(0x1c6)),resvg_js_1=require('@resvg/resvg-js');class ImageHelper{static[_0x3672e4(0x1ca)](_0x5296fa){return new Jimp(_0x5296fa,_0x5296fa,0x0);}static async[_0x3672e4(0x1cb)](_0x2e7d27){const _0x5b236b=_0x3672e4;return await sharp(_0x2e7d27)[_0x5b236b(0x1c3)](_0x5b236b(0x1d0))[_0x5b236b(0x1d9)]();}static async[_0x3672e4(0x1c7)](_0x208bf2){const _0x4651d9=_0x3672e4,_0xc2fea4={'fitTo':{'mode':'width','value':0x400}},_0x565280=new resvg_js_1[(_0x4651d9(0x1cd))](_0x208bf2,_0xc2fea4),_0x5c9305=_0x565280[_0x4651d9(0x1c2)](),_0x3f4627=_0x5c9305[_0x4651d9(0x1d2)]();return _0x3f4627;}static['isFullyOpaque'](_0x108e4e){const _0x4dff7d=_0x3672e4,_0x38eacc=_0x108e4e['getWidth']()*_0x108e4e['getHeight']();for(var _0x4eda01=0x0;_0x4eda01<_0x38eacc;_0x4eda01++){const _0x126fca=_0x4eda01*0x4+0x3;if(_0x108e4e[_0x4dff7d(0x1c4)]['data'][_0x126fca]<0xff)return![];}return!![];}}exports[_0x3672e4(0x1c8)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2020b0=_0xf3b5;function _0xf3b5(_0x3a7e26,_0x66b702){const _0x1842e6=_0x1842();return _0xf3b5=function(_0xf3b52d,_0x3746d9){_0xf3b52d=_0xf3b52d-0x160;let _0x1ad210=_0x1842e6[_0xf3b52d];return _0x1ad210;},_0xf3b5(_0x3a7e26,_0x66b702);}(function(_0x26b097,_0x2932ed){const _0x418fd7=_0xf3b5,_0x184df3=_0x26b097();while(!![]){try{const _0x243c1d=parseInt(_0x418fd7(0x165))/0x1*(-parseInt(_0x418fd7(0x181))/0x2)+parseInt(_0x418fd7(0x173))/0x3*(-parseInt(_0x418fd7(0x16c))/0x4)+-parseInt(_0x418fd7(0x18b))/0x5+-parseInt(_0x418fd7(0x160))/0x6*(-parseInt(_0x418fd7(0x163))/0x7)+parseInt(_0x418fd7(0x188))/0x8+-parseInt(_0x418fd7(0x16a))/0x9+parseInt(_0x418fd7(0x18e))/0xa;if(_0x243c1d===_0x2932ed)break;else _0x184df3['push'](_0x184df3['shift']());}catch(_0x48be01){_0x184df3['push'](_0x184df3['shift']());}}}(_0x1842,0x57ac9));function _0x1842(){const _0x2dd90c=['160985JwEXlZ','json','icons','1699710qVfqFs','http','30486zoTGbn','MIDDLE_APPICON_DIRECTORY','checkPlatformPath','567xvpqLx','./file','25sEsiHg','PROJECT_EXPORT_DIRECTORY','node_modules/@webspatial/platform-','join','path','2024064HqWGIe','ResourceManager','138772zCETHR','PROJECT_DIRECTORY','copyDir','cwd','child_process','moveProjectFrom','ASSET_DIRECTORY','18jisIax','../../../node_modules/@webspatial/platform-','web-spatial/Assets.xcassets','includes','__esModule','existsSync','mkdirSync','visionos','cd\x20','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','log','../../../','PROJECT_BUILD_DIRECTORY','WEB_PROJECT_DIRECTORY','10946vcYEMJ','BACK_APPICON_DIRECTORY','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','defineProperty','src','loadImageFromNet','resize','3037256AWcqNj','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','web-spatial/static-web'];_0x1842=function(){return _0x2dd90c;};return _0x1842();}Object[_0x2020b0(0x184)](exports,_0x2020b0(0x177),{'value':!![]}),exports[_0x2020b0(0x16b)]=exports[_0x2020b0(0x161)]=exports[_0x2020b0(0x182)]=exports[_0x2020b0(0x172)]=exports[_0x2020b0(0x180)]=exports[_0x2020b0(0x166)]=exports[_0x2020b0(0x17f)]=exports['PROJECT_DIRECTORY']=void 0x0;const fs=require('fs'),path_1=require(_0x2020b0(0x169)),file_1=require(_0x2020b0(0x164)),load_1=require('./load'),child_process_1=require(_0x2020b0(0x170));exports[_0x2020b0(0x16d)]='',exports[_0x2020b0(0x17f)]='',exports[_0x2020b0(0x166)]='',exports[_0x2020b0(0x180)]=_0x2020b0(0x18a),exports[_0x2020b0(0x172)]=_0x2020b0(0x175),exports[_0x2020b0(0x182)]=exports[_0x2020b0(0x172)]+_0x2020b0(0x17c),exports[_0x2020b0(0x161)]=exports[_0x2020b0(0x172)]+_0x2020b0(0x183);const supportPlatform=[_0x2020b0(0x17a)];class ResourceManager{static async[_0x2020b0(0x171)](_0x369fe7){const _0x2722fb=_0x2020b0,_0x37024b=(0x0,path_1[_0x2722fb(0x168)])(process['cwd'](),_0x369fe7),_0xf642b4=(0x0,path_1[_0x2722fb(0x168)])(exports[_0x2722fb(0x16d)],exports[_0x2722fb(0x180)]);!fs['existsSync'](_0xf642b4)?fs[_0x2722fb(0x179)](_0xf642b4,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0xf642b4);try{(0x0,file_1[_0x2722fb(0x16e)])(_0x37024b,_0xf642b4);}catch(_0x33a569){console[_0x2722fb(0x17d)](_0x33a569);}}static async['generateIcon'](_0x374eb5){const _0xbb6141=_0x2020b0,_0x4e6898=_0x374eb5[_0xbb6141(0x18c)],_0x4865f6=_0x4e6898[_0xbb6141(0x18d)][0x0][_0xbb6141(0x185)],_0x2fd146=!_0x4865f6['startsWith'](_0xbb6141(0x18f))?await(0x0,load_1['loadImageFromDisk'])(_0x4865f6):await(0x0,load_1[_0xbb6141(0x186)])(_0x4865f6);return _0x2fd146[_0xbb6141(0x187)](0x400,0x400),_0x2fd146;}static[_0x2020b0(0x162)](_0x48a889){const _0x5b9ddd=_0x2020b0,_0xb3484b=_0x48a889!==null&&_0x48a889!==void 0x0?_0x48a889:supportPlatform[0x0];if(!supportPlatform[_0x5b9ddd(0x176)](_0xb3484b))throw new Error('not\x20support\x20platform\x20'+_0xb3484b+',\x20now\x20WebSpatial\x20only\x20support\x20'+supportPlatform[_0x5b9ddd(0x168)](','));let _0x136474=(0x0,path_1[_0x5b9ddd(0x168)])(process[_0x5b9ddd(0x16f)](),_0x5b9ddd(0x167)+_0xb3484b);!fs[_0x5b9ddd(0x178)](_0x136474)&&(_0x136474=(0x0,path_1[_0x5b9ddd(0x168)])(__dirname,_0x5b9ddd(0x174)+_0xb3484b));const _0x25d729=fs[_0x5b9ddd(0x178)](_0x136474);!_0x25d729&&(0x0,child_process_1['execSync'])(_0x5b9ddd(0x17b)+(0x0,path_1[_0x5b9ddd(0x168)])(__dirname,_0x5b9ddd(0x17e))+_0x5b9ddd(0x189)+_0xb3484b),exports[_0x5b9ddd(0x16d)]=_0x136474,exports[_0x5b9ddd(0x17f)]=(0x0,path_1[_0x5b9ddd(0x168)])(exports[_0x5b9ddd(0x16d)],'./build'),exports['PROJECT_EXPORT_DIRECTORY']=(0x0,path_1['join'])(exports[_0x5b9ddd(0x16d)],'./export');}}exports[_0x2020b0(0x16b)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x443f2a=_0x5075;(function(_0x2372f8,_0x192c08){const _0x19cf38=_0x5075,_0x4a557e=_0x2372f8();while(!![]){try{const _0x27163c=-parseInt(_0x19cf38(0x11c))/0x1*(parseInt(_0x19cf38(0x120))/0x2)+parseInt(_0x19cf38(0x122))/0x3+-parseInt(_0x19cf38(0x13d))/0x4*(-parseInt(_0x19cf38(0x12c))/0x5)+parseInt(_0x19cf38(0x13c))/0x6*(parseInt(_0x19cf38(0x137))/0x7)+-parseInt(_0x19cf38(0x142))/0x8+parseInt(_0x19cf38(0x129))/0x9+-parseInt(_0x19cf38(0x13e))/0xa*(parseInt(_0x19cf38(0x13f))/0xb);if(_0x27163c===_0x192c08)break;else _0x4a557e['push'](_0x4a557e['shift']());}catch(_0x4cf49e){_0x4a557e['push'](_0x4a557e['shift']());}}}(_0x5f13,0xc8610));function _0x5075(_0x12dfc1,_0x35d55e){const _0x5f13ad=_0x5f13();return _0x5075=function(_0x507576,_0xe252){_0x507576=_0x507576-0x112;let _0x4ad20=_0x5f13ad[_0x507576];return _0x4ad20;},_0x5075(_0x12dfc1,_0x35d55e);}Object[_0x443f2a(0x11f)](exports,_0x443f2a(0x119),{'value':!![]}),exports['loadJsonFromNet']=loadJsonFromNet,exports[_0x443f2a(0x136)]=loadJsonFromDisk,exports[_0x443f2a(0x141)]=loadImageFromNet,exports[_0x443f2a(0x134)]=loadImageFromDisk,exports['loadFileString']=loadFileString;const fs=require('fs'),FetchUtils_1_1=require('../utils/FetchUtils-1'),CustomError_1=require(_0x443f2a(0x145)),Jimp=require(_0x443f2a(0x11a)),imageHelper_1=require('./imageHelper');async function loadJsonFromNet(_0x3a3212){const _0xb0bf01=_0x443f2a,_0x2d0e93=await FetchUtils_1_1[_0xb0bf01(0x146)][_0xb0bf01(0x11d)](_0x3a3212,{'encoding':_0xb0bf01(0x143)});if(_0x2d0e93[_0xb0bf01(0x12e)]!==0xc8)throw new CustomError_1[(_0xb0bf01(0x13a))]({'code':0xbbc,'message':_0xb0bf01(0x12d)+_0x3a3212+'.'+(_0xb0bf01(0x112)+_0x2d0e93['status']+_0xb0bf01(0x144)),'message_staring_params':{'web_manifest_url':_0x3a3212,'status':_0x2d0e93[_0xb0bf01(0x12e)]}});try{let _0x3ba259;return _0x2d0e93[_0xb0bf01(0x132)]?_0x3ba259=await _0x2d0e93[_0xb0bf01(0x132)]():[_0xb0bf01(0x125),'deflate','br'][_0xb0bf01(0x117)](_0x2d0e93[_0xb0bf01(0x123)][_0xb0bf01(0x116)])?_0x3ba259=FetchUtils_1_1[_0xb0bf01(0x146)][_0xb0bf01(0x115)](Buffer[_0xb0bf01(0x12f)](_0x2d0e93[_0xb0bf01(0x140)],_0xb0bf01(0x143)),_0x2d0e93[_0xb0bf01(0x123)][_0xb0bf01(0x116)])[_0xb0bf01(0x127)]():_0x3ba259=Buffer[_0xb0bf01(0x12f)](_0x2d0e93['data'],_0xb0bf01(0x143))[_0xb0bf01(0x127)](),JSON[_0xb0bf01(0x113)](_0x3ba259[_0xb0bf01(0x139)]());}catch(_0x1c9ebf){throw new CustomError_1[(_0xb0bf01(0x13a))]({'code':0xbbd,'message':_0xb0bf01(0x114),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x58e6a3){const _0x126f9c=_0x443f2a,_0x2eb1a8=await loadFileString(_0x58e6a3[_0x126f9c(0x127)]());return JSON[_0x126f9c(0x113)](_0x2eb1a8);}async function loadImageFromNet(_0x4e425d){const _0x513e58=_0x443f2a,_0x13b4ae=await FetchUtils_1_1[_0x513e58(0x146)][_0x513e58(0x11d)](_0x4e425d,{'encoding':_0x513e58(0x143)});if(_0x13b4ae[_0x513e58(0x12e)]!==0xc8)throw new CustomError_1[(_0x513e58(0x13a))]({'code':0x7d2,'message':_0x513e58(0x11b)+_0x13b4ae['status'],'message_staring_params':{'icon_url':_0x4e425d,'status':_0x13b4ae[_0x513e58(0x12e)]}});const _0x355ca8=_0x13b4ae[_0x513e58(0x123)][_0x513e58(0x11e)]?_0x13b4ae[_0x513e58(0x123)][_0x513e58(0x11e)](_0x513e58(0x12b)):_0x13b4ae[_0x513e58(0x123)][_0x513e58(0x12b)];if(!(_0x355ca8===null||_0x355ca8===void 0x0?void 0x0:_0x355ca8[_0x513e58(0x138)]('image/')))throw new CustomError_1[(_0x513e58(0x13a))]({'code':0x7d3,'message':_0x513e58(0x121)+(_0x513e58(0x118)+_0x355ca8+'\x22'),'message_staring_params':{'icon_url':_0x4e425d,'contentType':_0x355ca8}});let _0x2cee99;_0x13b4ae[_0x513e58(0x130)]?_0x2cee99=await _0x13b4ae['arrayBuffer']():['gzip','deflate','br'][_0x513e58(0x117)](_0x13b4ae[_0x513e58(0x123)][_0x513e58(0x116)])?_0x2cee99=FetchUtils_1_1[_0x513e58(0x146)][_0x513e58(0x115)](Buffer[_0x513e58(0x12f)](_0x13b4ae[_0x513e58(0x140)],'binary'),_0x13b4ae[_0x513e58(0x123)]['content-encoding']):_0x2cee99=Buffer[_0x513e58(0x12f)](_0x13b4ae[_0x513e58(0x140)],_0x513e58(0x143));if(_0x355ca8[_0x513e58(0x138)]('image/svg')){const _0x64596=new TextDecoder();try{_0x2cee99=await imageHelper_1[_0x513e58(0x12a)][_0x513e58(0x124)](_0x64596[_0x513e58(0x135)](_0x2cee99));}catch(_0x3b41bf){throw new CustomError_1['CustomError']({'code':0x7d4,'message':_0x513e58(0x133)+_0x4e425d+':\x20'+_0x3b41bf,'message_staring_params':{'icon_url':_0x4e425d,'error':_0x3b41bf}});}}return _0x355ca8['startsWith']('image/webp')&&(_0x2cee99=await imageHelper_1[_0x513e58(0x12a)][_0x513e58(0x13b)](_0x2cee99)),await Jimp[_0x513e58(0x131)](Buffer[_0x513e58(0x12f)](_0x2cee99));}async function loadImageFromDisk(_0x31bdbf){const _0x57204f=_0x443f2a;return await Jimp[_0x57204f(0x131)](_0x31bdbf);}async function loadFileString(_0x5bc143){const _0x7ea5b6=_0x443f2a;let _0x255c72=await fs[_0x7ea5b6(0x126)][_0x7ea5b6(0x128)](_0x5bc143['toString']());return _0x255c72[_0x7ea5b6(0x127)]();}function _0x5f13(){const _0x507976=['text','Problem\x20reading\x20','loadImageFromDisk','decode','loadJsonFromDisk','217upkrTU','startsWith','trim','CustomError','webp2PngBuffer','207606yBGoZq','24DGPxCX','12945110HKBaXY','11JpusxC','data','loadImageFromNet','2777760rLNNiu','binary',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','../utils/CustomError','fetchUtils','The\x20response\x20status\x20is\x20','parse','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','decompressResponseBuffer','content-encoding','includes','\x20Responded\x20with\x20Content-Type\x20\x22','__esModule','jimp','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','2qUmyvp','fetch','get','defineProperty','1079608kJfieh','Received\x20icon\x20with\x20invalid\x20Content-Type.','25656ZisoXg','headers','svg2img','gzip','promises','toString','readFile','13465458CArjjf','ImageHelper','content-type','803955XZvsfU','Failed\x20to\x20download\x20Web\x20Manifest\x20','status','from','arrayBuffer','read'];_0x5f13=function(){return _0x507976;};return _0x5f13();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x588643=_0x5cdc;(function(_0x26b0d6,_0x736dbf){var _0x46409d=_0x5cdc,_0x52f77f=_0x26b0d6();while(!![]){try{var _0x487576=-parseInt(_0x46409d(0x90))/0x1+parseInt(_0x46409d(0x92))/0x2+parseInt(_0x46409d(0x9a))/0x3+parseInt(_0x46409d(0x97))/0x4+-parseInt(_0x46409d(0x93))/0x5+parseInt(_0x46409d(0x98))/0x6+-parseInt(_0x46409d(0x9c))/0x7;if(_0x487576===_0x736dbf)break;else _0x52f77f['push'](_0x52f77f['shift']());}catch(_0x297b63){_0x52f77f['push'](_0x52f77f['shift']());}}}(_0x2033,0x7b6f7));function _0x2033(){var _0x111ff1=['customMessage','3131944AYUriu','682722bQowNj','info','1226226vbWOAv','defineProperty','1628431GKVsXi','953943vueHaI','__esModule','824478nfgQdC','127935URBUJu','CustomError','stringify'];_0x2033=function(){return _0x111ff1;};return _0x2033();}Object[_0x588643(0x9b)](exports,_0x588643(0x91),{'value':!![]}),exports['CustomError']=void 0x0;class CustomError extends Error{constructor(_0x3eff06,_0x597376){var _0x1477c7=_0x588643;super(JSON[_0x1477c7(0x95)](_0x3eff06)),this[_0x1477c7(0x96)]=_0x3eff06,this['type']=_0x597376||_0x1477c7(0x99);}}function _0x5cdc(_0x5f0151,_0x329e57){var _0x203335=_0x2033();return _0x5cdc=function(_0x5cdc25,_0x1c4414){_0x5cdc25=_0x5cdc25-0x90;var _0x5b2170=_0x203335[_0x5cdc25];return _0x5b2170;},_0x5cdc(_0x5f0151,_0x329e57);}exports[_0x588643(0x94)]=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5450(){const _0x483132=['fetchUtils','8zPEmRH','73612ggZmrS','464MxEKJZ','401060rZGWwM','4110AIXxbn','1586439tDytOG','926514gucpkz','defineProperty','__esModule','setFetchEngine','550570YZDFsq','fetch','setDecompressResponseBuffer','downloadFile','fetchEngine','setDownloadFile','decompressResponseBuffer','254219eCbyad'];_0x5450=function(){return _0x483132;};return _0x5450();}const _0x5cd223=_0x219f;(function(_0xc2d6,_0x4e2600){const _0x5f2e3a=_0x219f,_0x46d2d1=_0xc2d6();while(!![]){try{const _0x5a376f=-parseInt(_0x5f2e3a(0xe8))/0x1+parseInt(_0x5f2e3a(0xea))/0x2+-parseInt(_0x5f2e3a(0xeb))/0x3*(-parseInt(_0x5f2e3a(0xe9))/0x4)+-parseInt(_0x5f2e3a(0xde))/0x5+-parseInt(_0x5f2e3a(0xda))/0x6+parseInt(_0x5f2e3a(0xe5))/0x7*(-parseInt(_0x5f2e3a(0xe7))/0x8)+parseInt(_0x5f2e3a(0xd9))/0x9;if(_0x5a376f===_0x4e2600)break;else _0x46d2d1['push'](_0x46d2d1['shift']());}catch(_0x43ab85){_0x46d2d1['push'](_0x46d2d1['shift']());}}}(_0x5450,0x275eb));Object[_0x5cd223(0xdb)](exports,_0x5cd223(0xdc),{'value':!![]}),exports['fetchUtils']=void 0x0;class FetchUtils{constructor(){const _0x5471da=_0x5cd223;this['fetchEngine']=null,this[_0x5471da(0xdf)]=null,this[_0x5471da(0xe1)]=null,this['decompressResponseBuffer']=null;}[_0x5cd223(0xdd)](_0x470515){const _0x529f26=_0x5cd223;this[_0x529f26(0xe2)]=_0x470515;}['setFetch'](_0x10610a){const _0x14a4bc=_0x5cd223;this[_0x14a4bc(0xdf)]=_0x10610a;}[_0x5cd223(0xe3)](_0x480f0d){const _0x239c6d=_0x5cd223;this[_0x239c6d(0xe1)]=_0x480f0d;}[_0x5cd223(0xe0)](_0x334357){const _0x178c05=_0x5cd223;this[_0x178c05(0xe4)]=_0x334357;}}const fetchUtils=new FetchUtils();function _0x219f(_0x2d05c9,_0x1ddd79){const _0x545095=_0x5450();return _0x219f=function(_0x219ff4,_0x3ac673){_0x219ff4=_0x219ff4-0xd9;let _0x1bd9e6=_0x545095[_0x219ff4];return _0x1bd9e6;},_0x219f(_0x2d05c9,_0x1ddd79);}exports[_0x5cd223(0xe6)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x3eb1(_0xc08488,_0x2c29bb){var _0x817399=_0x8173();return _0x3eb1=function(_0x3eb10a,_0x181ec3){_0x3eb10a=_0x3eb10a-0x1f3;var _0x247edd=_0x817399[_0x3eb10a];return _0x247edd;},_0x3eb1(_0xc08488,_0x2c29bb);}var _0x492994=_0x3eb1;(function(_0x5c4404,_0x17f2fb){var _0x1bdd37=_0x3eb1,_0x43bac4=_0x5c4404();while(!![]){try{var _0x239fde=parseInt(_0x1bdd37(0x20f))/0x1+-parseInt(_0x1bdd37(0x1fd))/0x2*(-parseInt(_0x1bdd37(0x206))/0x3)+parseInt(_0x1bdd37(0x202))/0x4+parseInt(_0x1bdd37(0x1f7))/0x5+parseInt(_0x1bdd37(0x208))/0x6*(-parseInt(_0x1bdd37(0x1f3))/0x7)+-parseInt(_0x1bdd37(0x1ff))/0x8+-parseInt(_0x1bdd37(0x1fe))/0x9;if(_0x239fde===_0x17f2fb)break;else _0x43bac4['push'](_0x43bac4['shift']());}catch(_0x7b1ef1){_0x43bac4['push'](_0x43bac4['shift']());}}}(_0x8173,0x64340));Object[_0x492994(0x1fb)](exports,_0x492994(0x205),{'value':!![]}),exports[_0x492994(0x207)]=void 0x0;class ConsoleLog{constructor(_0x46c3e0='',_0x4daddd=![],_0x5b0287=console){var _0x10d6e3=_0x492994;this[_0x10d6e3(0x20d)]=_0x46c3e0,this['verbose']=_0x4daddd,this['prefix']=this[_0x10d6e3(0x1fc)](_0x46c3e0),this[_0x10d6e3(0x20e)]=_0x5b0287;}[_0x492994(0x204)](_0x3aee65,..._0x710311){var _0x504f00=_0x492994;if(!this[_0x504f00(0x1f8)])return;this[_0x504f00(0x1f9)](this[_0x504f00(0x20e)][_0x504f00(0x1f9)],this['dim'](_0x3aee65),..._0x710311);}[_0x492994(0x1fa)](_0xb79b2e,..._0x240bcd){var _0x715d91=_0x492994;this[_0x715d91(0x1f9)](this[_0x715d91(0x20e)][_0x715d91(0x1f9)],_0xb79b2e,..._0x240bcd);}[_0x492994(0x211)](_0x263d15,..._0x3abdcb){var _0x135efc=_0x492994;this['log'](this[_0x135efc(0x20e)][_0x135efc(0x211)],this['yellow']('WARNING\x20'+_0x263d15),..._0x3abdcb);}['error'](_0x28977b,..._0x16f52e){var _0x39ae18=_0x492994;this[_0x39ae18(0x20e)]['error']('\x0a'),this[_0x39ae18(0x1f9)](this[_0x39ae18(0x20e)][_0x39ae18(0x20b)],this[_0x39ae18(0x203)]('ERROR\x20'+_0x28977b),..._0x16f52e),this[_0x39ae18(0x20e)][_0x39ae18(0x20b)]('\x0a');}[_0x492994(0x1f4)](_0x194582){var _0x5660e0=_0x492994;this[_0x5660e0(0x1f8)]=_0x194582;}['newLog'](_0x343284){var _0x5ceb28=_0x492994;return this['tag']&&(_0x343284=this[_0x5ceb28(0x20d)]+'\x20'+_0x343284),new ConsoleLog(_0x343284,this[_0x5ceb28(0x1f8)],this[_0x5ceb28(0x20e)]);}['log'](_0x1e097a,_0x1b6725,..._0x249461){var _0x21aa53=_0x492994;this[_0x21aa53(0x201)]&&(_0x1b6725=this['prefix']+'\x20'+_0x1b6725),_0x249461?_0x1e097a(...[_0x1b6725][_0x21aa53(0x20a)](_0x249461)):_0x1e097a(_0x1b6725);}['inverse'](_0x265bd3){return'\x1b[7m'+_0x265bd3+'\x1b[0m';}[_0x492994(0x1f5)](_0x55021a){var _0xfa7667=_0x492994;return _0xfa7667(0x200)+_0x55021a+'\x1b[0m';}[_0x492994(0x20c)](_0x3e0f31){var _0x36fdf3=_0x492994;return _0x36fdf3(0x1f6)+_0x3e0f31+_0x36fdf3(0x210);}[_0x492994(0x203)](_0x2cbe36){var _0x3e97fb=_0x492994;return _0x3e97fb(0x209)+_0x2cbe36+_0x3e97fb(0x210);}}function _0x8173(){var _0x4ea170=['\x1b[31m','concat','error','yellow','tag','output','76318KdtFHv','\x1b[0m','warn','110782IhVStW','setVerbose','dim','\x1b[33m','1087480ivFplF','verbose','log','info','defineProperty','inverse','2RpzyJY','2323557VZRnNK','2650728zksInR','\x1b[36m','prefix','2861744PDCHBB','red','debug','__esModule','1918686WwyZDc','ConsoleLog','246eOyLtC'];_0x8173=function(){return _0x4ea170;};return _0x8173();}exports[_0x492994(0x207)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x13fe60=_0x3a2a;function _0x4946(){const _0x2742c3=['get','306yRoCdF','fetch-h2','data','follow','1754764gopAJM','22880LbLaKi','unzipSync','constants','fetch','187308QEovCa','Z_SYNC_FLUSH','error','90AncpQQ','80WExRqz','context','readable','test','11916rqjdxd','684QZCwOV','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','436858NfPcmn','2338476OQumpB','downloadFile','createWriteStream','Content-Length','848470DDcKtB'];_0x4946=function(){return _0x2742c3;};return _0x4946();}(function(_0x1c3e2f,_0x5176be){const _0xa90564=_0x3a2a,_0x1de951=_0x1c3e2f();while(!![]){try{const _0x58a077=parseInt(_0xa90564(0x112))/0x1+-parseInt(_0xa90564(0x10d))/0x2+parseInt(_0xa90564(0x10a))/0x3*(-parseInt(_0xa90564(0x109))/0x4)+parseInt(_0xa90564(0x105))/0x5*(-parseInt(_0xa90564(0x11d))/0x6)+-parseInt(_0xa90564(0x10e))/0x7+parseInt(_0xa90564(0x119))/0x8*(-parseInt(_0xa90564(0x114))/0x9)+parseInt(_0xa90564(0x104))/0xa*(parseInt(_0xa90564(0x118))/0xb);if(_0x58a077===_0x5176be)break;else _0x1de951['push'](_0x1de951['shift']());}catch(_0x139b3f){_0x1de951['push'](_0x1de951['shift']());}}}(_0x4946,0x6f445));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x13fe60(0x11c)]=fetch,exports[_0x13fe60(0x10f)]=downloadFile,exports['decompressResponseBuffer']=decompressResponseBuffer;const fetch_h2_1=require(_0x13fe60(0x115)),fs=require('fs'),zlib=require('zlib'),userAgent=_0x13fe60(0x10c),fetchh2Ctx=(0x0,fetch_h2_1[_0x13fe60(0x106)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx['fetch'];async function fetch(_0x2e2a78,_0x37a7d2){const _0x29dde8=_0x13fe60;return await fetchh2(_0x2e2a78,_0x37a7d2?{'redirect':_0x29dde8(0x117),..._0x37a7d2}:{'redirect':_0x29dde8(0x117)});}function _0x3a2a(_0x3d9ae3,_0x1aa08a){const _0x4946c6=_0x4946();return _0x3a2a=function(_0x3a2aaf,_0x246a9f){_0x3a2aaf=_0x3a2aaf-0x104;let _0xdd99f0=_0x4946c6[_0x3a2aaf];return _0xdd99f0;},_0x3a2a(_0x3d9ae3,_0x1aa08a);}async function downloadFile(_0x238cfd,_0x58563e,_0x123127){const _0x4d5359=_0x13fe60;let _0x5cf672,_0x598d30;_0x5cf672=await fetchh2(_0x238cfd,{'redirect':_0x4d5359(0x117)}),_0x598d30=await _0x5cf672[_0x4d5359(0x107)]();const _0x15eca9=_0x5cf672['headers'][_0x4d5359(0x113)](_0x4d5359(0x111)),_0x5859fc=_0x15eca9?parseInt(_0x15eca9):-0x1,_0x52b99a=fs[_0x4d5359(0x110)](_0x58563e);let _0x469f58=0x0;await new Promise((_0x5bc54f,_0x547d0f)=>{const _0x2172e2=_0x4d5359;_0x598d30['pipe'](_0x52b99a),_0x123127&&_0x598d30['on'](_0x2172e2(0x116),_0x3de2ca=>{const _0x1a223e=_0x2172e2;_0x469f58=_0x469f58+_0x3de2ca[_0x1a223e(0x10b)],_0x123127(_0x469f58,_0x5859fc);}),_0x598d30['on'](_0x2172e2(0x11f),_0x194586=>{_0x547d0f(_0x194586);}),_0x52b99a['on']('finish',()=>{_0x5bc54f();});});}function decompressResponseBuffer(_0x3f3723,_0x1e15a8){const _0x44f280=_0x13fe60;let _0x2f1633=_0x3f3723;if(/\bgzip\b/[_0x44f280(0x108)](_0x1e15a8)||/\bdeflate\b/[_0x44f280(0x108)](_0x1e15a8))_0x2f1633=zlib[_0x44f280(0x11a)](_0x3f3723,{'flush':zlib[_0x44f280(0x11b)][_0x44f280(0x11e)],'finishFlush':zlib['constants'][_0x44f280(0x11e)]});else/\bbr\b/['test'](_0x1e15a8)&&(_0x2f1633=zlib['brotliDecompressSync'](_0x3f3723));return _0x2f1633;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x12a532=_0xb049;function _0xb049(_0x3293be,_0x19c630){const _0x3b2922=_0x3b29();return _0xb049=function(_0xb0493e,_0x27de25){_0xb0493e=_0xb0493e-0x164;let _0xda3eb3=_0x3b2922[_0xb0493e];return _0xda3eb3;},_0xb049(_0x3293be,_0x19c630);}(function(_0x358c03,_0x1d0319){const _0x2420f4=_0xb049,_0x7b7087=_0x358c03();while(!![]){try{const _0x562554=-parseInt(_0x2420f4(0x175))/0x1*(-parseInt(_0x2420f4(0x176))/0x2)+parseInt(_0x2420f4(0x174))/0x3+-parseInt(_0x2420f4(0x196))/0x4+-parseInt(_0x2420f4(0x184))/0x5*(-parseInt(_0x2420f4(0x166))/0x6)+-parseInt(_0x2420f4(0x18f))/0x7+parseInt(_0x2420f4(0x197))/0x8*(parseInt(_0x2420f4(0x190))/0x9)+-parseInt(_0x2420f4(0x165))/0xa;if(_0x562554===_0x1d0319)break;else _0x7b7087['push'](_0x7b7087['shift']());}catch(_0x2e830a){_0x7b7087['push'](_0x7b7087['shift']());}}}(_0x3b29,0xb201b));function _0x3b29(){const _0x1d2c6a=['colors','https://play.google.com/console/about/families/','--url','cyan','Downloading\x20the\x20JDK\x2011\x20Binaries...','\x20can\x20not\x20be\x20accessible.','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','Generating\x20Android\x20Project.','Missing\x20required\x20parameter\x20','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','85YALwgI','\x0aBuilding\x20the\x20Android\x20App...','yellow','Minimum\x20length\x20is\x20','Invalid\x20URL:\x20','\x20URL\x20','redirected\x20to\x20','(5/5)','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)','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Downloading\x20the\x20Android\x20SDK...','1831172zwdCcU','9QrfstF','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','Path\x20to\x20your\x20existing\x20JDK\x2011:','Invalid\x20integer\x20provided:\x20','2285144EyjfrW','301112mqwenk','license\x20agreement.','Path\x20to\x20your\x20existing\x20Android\x20SDK:','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)','Organization\x20(eg:\x20Company\x20Name):','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','__esModule','URL\x20','\x20and\x20alias\x20','\x0aProject\x20generated\x20successfully.','Downloading\x20JDK\x2011\x20to\x20','Maximum\x20length\x20is\x20','Invalid\x20icon\x20path:\x20','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','\x0aSigning\x20key\x20information\x20','--manifest-url','green','\x09-\x20Generated\x20Android\x20APK\x20at\x20','messages','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','12066650xscQtk','494688IyFBwL','Do\x20you\x20want\x20to\x20create\x20one\x20now?','--manifest','Password\x20for\x20the\x20Key\x20Store:','\x20Check\x20out\x20the\x20Play\x20for','defineProperty','bold','\x20or\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Country\x20(2\x20letter\x20code):','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','\x0aSigning\x20key\x20creation','Decompressing\x20the\x20JDK\x2011\x20Binaries...','\x20but\x20input\x20is\x20','1400397DuMMKo','16yovSNJ','107826urvTOx','Downloading\x20the\x20JDK\x2011\x20Sources...','underline','WARNING:\x20'];_0x3b29=function(){return _0x1d2c6a;};return _0x3b29();}Object[_0x12a532(0x16b)](exports,_0x12a532(0x19d),{'value':!![]}),exports[_0x12a532(0x1a9)]=void 0x0;const colors_1=require(_0x12a532(0x17a));exports[_0x12a532(0x1a9)]={'promptInstallJdk':_0x12a532(0x19a),'promptJdkPath':_0x12a532(0x194),'messageDownloadJdk':_0x12a532(0x1a1),'messageDownloadJdkSrc':_0x12a532(0x177),'messageDecompressJdkSrc':'Decompressing\x20the\x20JDK\x2011\x20Sources...','messageDownloadJdkBin':_0x12a532(0x17e),'messageDecompressJdkBin':_0x12a532(0x172),'promptInstallSdk':_0x12a532(0x18c),'promptSdkPath':_0x12a532(0x199),'messageDownloadSdk':'Downloading\x20Android\x20SDK\x20to\x20','errorSdkTerms':_0x12a532(0x16e),'promptSdkTerms':_0x12a532(0x18d)+(0x0,colors_1['underline'])('https://developer.android.com/studio/terms.html')+'?','messageDownloadAndroidSdk':_0x12a532(0x18e),'messageDecompressAndroidSdk':'Decompressing\x20the\x20Android\x20SDK...','messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+_0x12a532(0x198),'messageGeneratingAndroidProject':_0x12a532(0x181),'messageCheckSuccess':(_0x100ed3,_0x29bbde)=>{const _0x328c33=_0x12a532;return _0x328c33(0x189)+(0x0,colors_1[_0x328c33(0x17d)])(_0x100ed3)+'\x20'+(_0x29bbde?_0x328c33(0x18a)+(0x0,colors_1[_0x328c33(0x17d)])(_0x29bbde):'')+_0x328c33(0x164);},'errorMissingManifestParameter':_0x12a532(0x182)+((0x0,colors_1[_0x12a532(0x17d)])(_0x12a532(0x1a6))+_0x12a532(0x16d)+(0x0,colors_1[_0x12a532(0x17d)])(_0x12a532(0x168))),'messageInitializingWebManifest':_0x513361=>{const _0x279f17=_0x12a532;return _0x279f17(0x170)+(0x0,colors_1[_0x279f17(0x17d)])(_0x513361);},'messageInitializingLocalManifest':_0x5f1d65=>{const _0x2c473f=_0x12a532;return _0x2c473f(0x19c)+(0x0,colors_1[_0x2c473f(0x17d)])(_0x5f1d65);},'messageInvalidIcon':_0x535675=>{const _0x4f4247=_0x12a532;return _0x4f4247(0x1a3)+(0x0,colors_1['cyan'])(_0x535675);},'errorStartUrlNotReachable':_0x321d96=>_0x12a532(0x19e)+_0x321d96+_0x12a532(0x17f)+'Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','warnFamilyPolicy':(0x0,colors_1[_0x12a532(0x16c)])((0x0,colors_1[_0x12a532(0x186)])(_0x12a532(0x179)))+_0x12a532(0x180)+'\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.'+_0x12a532(0x16a)+'\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a'+(0x0,colors_1[_0x12a532(0x17d)])(_0x12a532(0x17b)),'promptIconUrl':'Icon\x20URL:','errorInvalidUrl':_0xc1c50e=>{const _0x2fddf7=_0x12a532;return _0x2fddf7(0x188)+_0xc1c50e;},'errorUrlMustBeImage':_0x4ce425=>{const _0x303130=_0x12a532;return _0x303130(0x193)+_0x4ce425+'.';},'promptVersionCode':_0x12a532(0x192),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0x12a532(0x178)])(_0x12a532(0x1a5)+(0x0,colors_1[_0x12a532(0x1a7)])(_0x12a532(0x18b))),'messageProjectGeneratedSuccess':_0x12a532(0x1a0),'messageSigningKeyCreation':(0x0,colors_1[_0x12a532(0x178)])(_0x12a532(0x171)),'messageSigningKeyNotFound':_0x2e073d=>{const _0x4648f0=_0x12a532;return _0x4648f0(0x1a4)+_0x2e073d+'\x22.\x0a';},'promptCreateKey':_0x12a532(0x167),'promptKeyFullName':_0x12a532(0x191),'promptKeyOrganizationalUnit':'Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','promptKeyOrganization':_0x12a532(0x19b),'promptKeyCountry':_0x12a532(0x16f),'promptKeystorePassword':_0x12a532(0x169),'promptKeyPassword':'Password\x20for\x20the\x20Key:','messageBuildingApp':_0x12a532(0x185),'messageEnterPasswords':(_0x504c67,_0x1b50dc)=>{const _0x1f0103=_0x12a532;return _0x1f0103(0x183)+(0x0,colors_1[_0x1f0103(0x17d)])(_0x504c67)+_0x1f0103(0x19f)+(0x0,colors_1[_0x1f0103(0x17d)])(_0x1b50dc)+'.\x0a';},'errorMinLength':(_0xc0eb41,_0x2a9d9c)=>{const _0x488d89=_0x12a532;return _0x488d89(0x187)+_0xc0eb41+'\x20but\x20input\x20is\x20'+_0x2a9d9c+'.';},'errorMaxLength':(_0x59219c,_0x16335b)=>{const _0xe1cfed=_0x12a532;return _0xe1cfed(0x1a2)+_0x59219c+_0xe1cfed(0x173)+_0x16335b+'.';},'errorInvalidInteger':_0x3deb12=>{const _0x867c5e=_0x12a532;return _0x867c5e(0x195)+_0x3deb12;},'messageApkSuccess':_0x1626df=>{const _0x5bdda7=_0x12a532;return _0x5bdda7(0x1a8)+(0x0,colors_1[_0x5bdda7(0x17d)])(_0x1626df);},'missingUrlToCheck':'Missing\x20required\x20parameter\x20'+(''+(0x0,colors_1[_0x12a532(0x17d)])(_0x12a532(0x17c)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x455b(){const _0x46bf92=['1467646CDrhRx','replace','indexOf','2534345wuEulf','36FvuNNX','3849775bTyxBo','3504shnSrH','4093964YbUwzm','145830ytMMsc','defineProperty','split','1yiiZXT','join','158742cbMzNu','8qRWjWR','__esModule','27tDdVJr'];_0x455b=function(){return _0x46bf92;};return _0x455b();}const _0x316abd=_0x3479;(function(_0x2d659a,_0xaba417){const _0x366559=_0x3479,_0x100360=_0x2d659a();while(!![]){try{const _0x3a51f7=-parseInt(_0x366559(0x1e1))/0x1*(-parseInt(_0x366559(0x1e7))/0x2)+parseInt(_0x366559(0x1da))/0x3*(parseInt(_0x366559(0x1dc))/0x4)+-parseInt(_0x366559(0x1db))/0x5+parseInt(_0x366559(0x1e3))/0x6+parseInt(_0x366559(0x1dd))/0x7*(parseInt(_0x366559(0x1e4))/0x8)+-parseInt(_0x366559(0x1e6))/0x9*(-parseInt(_0x366559(0x1de))/0xa)+-parseInt(_0x366559(0x1ea))/0xb;if(_0x3a51f7===_0xaba417)break;else _0x100360['push'](_0x100360['shift']());}catch(_0x2256bf){_0x100360['push'](_0x100360['shift']());}}}(_0x455b,0x616c3));Object[_0x316abd(0x1df)](exports,_0x316abd(0x1e5),{'value':!![]}),exports['parseRouter']=parseRouter;function _0x3479(_0x168e2a,_0x1315f8){const _0x455b52=_0x455b();return _0x3479=function(_0x347929,_0x337fd7){_0x347929=_0x347929-0x1da;let _0x35131d=_0x455b52[_0x347929];return _0x35131d;},_0x3479(_0x168e2a,_0x1315f8);}function parseRouter(_0x5f23b8){const _0x580a1f=_0x316abd;let _0x2a4dc4=_0x5f23b8[_0x580a1f(0x1e0)]('/');_0x2a4dc4['pop']();let _0x52a880=_0x2a4dc4[_0x580a1f(0x1e2)]();while(_0x52a880[_0x580a1f(0x1e9)](',')>=0x0){_0x52a880=_0x52a880[_0x580a1f(0x1e8)](',','/');}return _0x52a880;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x505e(){const _0x533c14=['log','../resource','default','modify','160pYhFih','14VaJKXd','uploadApp','./xcodeproject','2370MEoRdT','./xcrun','PROJECT_DIRECTORY','4528744JSfWbN','155649gLCaAU','XcodeManager','PROJECT_EXPORT_DIRECTORY','parseProject','10iYguOQ','15346HPPkSl','runWithSimulator','/web-spatial.xcodeproj/project.pbxproj','join','write\x20project.pbxproj:\x20ok','mkdirSync','4389496YwBaDp','archive','name','11196DuDvln','451755fsWKpk','upload','path','2499656rYDbRR','defineProperty','existsSync','.ipa','export'];_0x505e=function(){return _0x533c14;};return _0x505e();}const _0x4ac8b3=_0xfc47;(function(_0x382be9,_0x1c7318){const _0x1d5559=_0xfc47,_0x400fbe=_0x382be9();while(!![]){try{const _0x3c32b1=-parseInt(_0x1d5559(0x160))/0x1*(-parseInt(_0x1d5559(0x153))/0x2)+-parseInt(_0x1d5559(0x15b))/0x3+-parseInt(_0x1d5559(0x166))/0x4+parseInt(_0x1d5559(0x157))/0x5*(parseInt(_0x1d5559(0x146))/0x6)+-parseInt(_0x1d5559(0x154))/0x7*(parseInt(_0x1d5559(0x14a))/0x8)+parseInt(_0x1d5559(0x147))/0x9*(-parseInt(_0x1d5559(0x15f))/0xa)+parseInt(_0x1d5559(0x15a))/0xb;if(_0x3c32b1===_0x1c7318)break;else _0x400fbe['push'](_0x400fbe['shift']());}catch(_0x338733){_0x400fbe['push'](_0x400fbe['shift']());}}}(_0x505e,0xaac6e));function _0xfc47(_0x38c81c,_0x473606){const _0x505efd=_0x505e();return _0xfc47=function(_0xfc4717,_0x23fd79){_0xfc4717=_0xfc4717-0x146;let _0x224116=_0x505efd[_0xfc4717];return _0x224116;},_0xfc47(_0x38c81c,_0x473606);}Object[_0x4ac8b3(0x14b)](exports,'__esModule',{'value':!![]}),exports[_0x4ac8b3(0x15c)]=void 0x0;const fs=require('fs'),resource_1=require(_0x4ac8b3(0x150)),xcodeproject_1=require(_0x4ac8b3(0x156)),xcodebuild_1=require('./xcodebuild'),xcrun_1=require(_0x4ac8b3(0x158)),path_1=require(_0x4ac8b3(0x149));class XcodeManager{static async[_0x4ac8b3(0x15e)](_0x47dcfb,_0x46ebb6=![]){const _0x204b5=_0x4ac8b3,_0x1750c3=resource_1[_0x204b5(0x159)]+_0x204b5(0x162);await xcodeproject_1[_0x204b5(0x151)][_0x204b5(0x152)](_0x1750c3,_0x47dcfb),console[_0x204b5(0x14f)](_0x204b5(0x164));!fs[_0x204b5(0x14c)](resource_1[_0x204b5(0x15d)])&&fs[_0x204b5(0x165)](resource_1[_0x204b5(0x15d)],{'recursive':!![]});if(!_0x46ebb6)await xcodebuild_1['default'][_0x204b5(0x167)](_0x47dcfb[_0x204b5(0x14e)]);}static async[_0x4ac8b3(0x148)](_0x15c417,_0x3ab0d1){const _0x2ac7f2=_0x4ac8b3;if(_0x15c417['u']&&_0x15c417['p'])xcrun_1[_0x2ac7f2(0x151)][_0x2ac7f2(0x155)]((0x0,path_1['join'])(resource_1[_0x2ac7f2(0x15d)],_0x3ab0d1[_0x2ac7f2(0x168)]+'.ipa'),_0x15c417['u'],_0x15c417['p'],!![]);else _0x15c417['k']&&_0x15c417['i']&&xcrun_1[_0x2ac7f2(0x151)]['uploadApp']((0x0,path_1[_0x2ac7f2(0x163)])(resource_1[_0x2ac7f2(0x15d)],_0x3ab0d1['name']+_0x2ac7f2(0x14d)),_0x15c417['k'],_0x15c417['i'],![]);}static async[_0x4ac8b3(0x161)](_0x5ab096){const _0x5d45d4=_0x4ac8b3;await xcrun_1['default'][_0x5d45d4(0x161)](_0x5ab096);}}exports[_0x4ac8b3(0x15c)]=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x163e08=_0x5ca1;(function(_0x3f8c02,_0x3345bc){var _0x2fab4d=_0x5ca1,_0x2d127c=_0x3f8c02();while(!![]){try{var _0x378f62=-parseInt(_0x2fab4d(0x1b8))/0x1+-parseInt(_0x2fab4d(0x1bc))/0x2+parseInt(_0x2fab4d(0x1b7))/0x3*(-parseInt(_0x2fab4d(0x1bb))/0x4)+-parseInt(_0x2fab4d(0x1b9))/0x5*(-parseInt(_0x2fab4d(0x1bd))/0x6)+-parseInt(_0x2fab4d(0x1ba))/0x7*(-parseInt(_0x2fab4d(0x1b5))/0x8)+-parseInt(_0x2fab4d(0x1b4))/0x9+parseInt(_0x2fab4d(0x1b3))/0xa;if(_0x378f62===_0x3345bc)break;else _0x2d127c['push'](_0x2d127c['shift']());}catch(_0x9b0436){_0x2d127c['push'](_0x2d127c['shift']());}}}(_0x4b7c,0x18fa4));function _0x4b7c(){var _0x57ae85=['__esModule','manifestSwiftTemplate','2686460xKeHYz','1595277yfYfkh','248yfkoje','\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20USE_MAIN_SCENE\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22file://\x22\x20+\x20Bundle.main.bundlePath\x20+\x20\x22/\x22\x20+\x20scope\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20scope.replacingOccurrences(of:\x20\x22\x20\x22,\x20with:\x20\x22%20\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path:String\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20root:String\x20=\x20String(url.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20params\x20=\x20String(url.split(separator:\x20\x22file://\x22\x20+\x20root).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:String\x20=\x20Bundle.main.url(forResource:\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20params\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a','1425vyFAPU','29640tjbQVZ','22510fIuRIl','1162dJlMmO','220mkxHct','165060OfeWet','192aJxgZy'];_0x4b7c=function(){return _0x57ae85;};return _0x4b7c();}function _0x5ca1(_0x59ff91,_0x10f07e){var _0x4b7c6d=_0x4b7c();return _0x5ca1=function(_0x5ca126,_0x5e55ee){_0x5ca126=_0x5ca126-0x1b2;var _0x2d2ee0=_0x4b7c6d[_0x5ca126];return _0x2d2ee0;},_0x5ca1(_0x59ff91,_0x10f07e);}Object['defineProperty'](exports,_0x163e08(0x1be),{'value':!![]}),exports[_0x163e08(0x1b2)]=void 0x0,exports[_0x163e08(0x1b2)]=_0x163e08(0x1b6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xc444c1=_0x1131;(function(_0x167d2f,_0x1c70b9){const _0x1d8b01=_0x1131,_0x340c8c=_0x167d2f();while(!![]){try{const _0x29984a=parseInt(_0x1d8b01(0x12a))/0x1*(parseInt(_0x1d8b01(0x117))/0x2)+parseInt(_0x1d8b01(0x123))/0x3+-parseInt(_0x1d8b01(0x12e))/0x4*(-parseInt(_0x1d8b01(0x10d))/0x5)+parseInt(_0x1d8b01(0x113))/0x6+-parseInt(_0x1d8b01(0x110))/0x7*(parseInt(_0x1d8b01(0x11b))/0x8)+parseInt(_0x1d8b01(0x119))/0x9*(parseInt(_0x1d8b01(0x140))/0xa)+-parseInt(_0x1d8b01(0x12b))/0xb*(parseInt(_0x1d8b01(0x135))/0xc);if(_0x29984a===_0x1c70b9)break;else _0x340c8c['push'](_0x340c8c['shift']());}catch(_0x2ce86c){_0x340c8c['push'](_0x340c8c['shift']());}}}(_0x5491,0xf3c25));function _0x5491(){const _0x348d09=['1cOVrJN','22YwSwOS','web-spatial','EXPORT\x20SUCCEEDED','4eTnmmF','semver','default','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','\x20-exportOptionsPlist\x20','child_process','PROJECT_DIRECTORY','18541716txFXYb','start\x20export','project','\x20-scheme\x20','PROJECT_BUILD_DIRECTORY','destination','./pack','join','clean','PROJECT_EXPORT_DIRECTORY','path','3691430gjhEni','list','8816650GWNLGU','XcodebuildCMD','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','4792823fsysmf','\x20clean','\x20-archivePath\x20','1203900qWheNX','\x20-list','\x20archive','\x20-exportPath\x20','1165020MXHlqN','cwd','27bTpJZn','log','8balcUF','allowProvisioningUpdates','line','toString','archive','/web-spatial.xcodeproj','xcodebuild','indexOf','3358479vluRKN','existsSync','\x20-destination\x20\x27','../resource/file','\x20-allowProvisioningUpdates','__esModule','output'];_0x5491=function(){return _0x348d09;};return _0x5491();}Object['defineProperty'](exports,_0xc444c1(0x128),{'value':!![]}),exports['XcodebuildCMD']=void 0x0;const fs=require('fs'),path_1=require(_0xc444c1(0x13f)),resource_1=require('../resource'),semver_1=require(_0xc444c1(0x12f)),file_1=require(_0xc444c1(0x126)),{execSync,exec}=require(_0xc444c1(0x133));class Xcodebuild{static async['project'](){const _0x393a31=_0xc444c1;try{await new Promise((_0x5badc5,_0x192a99)=>{const _0x64002f=_0x1131,_0xf0b82d=resource_1[_0x64002f(0x134)]+'/web-spatial.xcodeproj',_0x3cd220=execSync(new XcodebuildCMD()[_0x64002f(0x137)](_0xf0b82d)[_0x64002f(0x10c)]()[_0x64002f(0x11d)]);console[_0x64002f(0x11a)](_0x3cd220[_0x64002f(0x11e)]()),_0x5badc5(_0x3cd220);});}catch(_0x24fd08){console[_0x393a31(0x11a)](_0x24fd08);}}static async[_0xc444c1(0x10c)](){const _0x8cf07=_0xc444c1;try{await new Promise((_0x5503eb,_0xae19cd)=>{const _0xe2aaa6=_0x1131,_0x4bc0d1=resource_1[_0xe2aaa6(0x134)]+_0xe2aaa6(0x120),_0x27a2e6=execSync(new XcodebuildCMD()['project'](_0x4bc0d1)[_0xe2aaa6(0x10c)]()[_0xe2aaa6(0x11d)]);console[_0xe2aaa6(0x11a)](_0x27a2e6[_0xe2aaa6(0x11e)]()),_0x5503eb(_0x27a2e6);});}catch(_0xde9669){console[_0x8cf07(0x11a)](_0xde9669);}}static async[_0xc444c1(0x11f)](_0xd5c454){const _0x3196e5=_0xc444c1;try{return console[_0x3196e5(0x11a)]('start\x20archive'),!fs[_0x3196e5(0x124)](resource_1[_0x3196e5(0x13e)])&&fs['mkdirSync'](resource_1[_0x3196e5(0x13e)],{'recursive':!![]}),await new Promise((_0x13c005,_0xd9dffd)=>{const _0x4377c5=_0x3196e5,_0x47a15a=resource_1[_0x4377c5(0x134)]+_0x4377c5(0x120),_0x296902=execSync(new XcodebuildCMD()['project'](_0x47a15a)['scheme'](_0x4377c5(0x12c))[_0x4377c5(0x11f)]((0x0,path_1[_0x4377c5(0x13c)])(resource_1[_0x4377c5(0x139)],_0x4377c5(0x13b)))['clean']()[_0x4377c5(0x11d)]);let _0x3c1b8f=_0x296902['toString']();if(_0x3c1b8f[_0x4377c5(0x122)]('ARCHIVE\x20SUCCEEDED')>0x0){console[_0x4377c5(0x11a)](_0x4377c5(0x131)),console[_0x4377c5(0x11a)](_0x4377c5(0x136));const _0x4a9c6c=execSync(new XcodebuildCMD()[_0x4377c5(0x129)]((0x0,path_1['join'])(resource_1[_0x4377c5(0x139)],'pack.xcarchive'),resource_1[_0x4377c5(0x13e)],(0x0,path_1[_0x4377c5(0x13c)])(resource_1[_0x4377c5(0x139)],'ExportOptions.plist'))[_0x4377c5(0x11c)]()[_0x4377c5(0x11d)]);_0x3c1b8f=_0x4a9c6c[_0x4377c5(0x11e)]();if(_0x3c1b8f[_0x4377c5(0x122)](_0x4377c5(0x12d))>0x0){if(_0xd5c454){const _0x314700=(0x0,path_1[_0x4377c5(0x13c)])(process[_0x4377c5(0x118)](),_0xd5c454);!fs[_0x4377c5(0x124)](_0x314700)&&fs['mkdirSync'](_0x314700,{'recursive':!![]}),(0x0,file_1['copyDir'])(resource_1[_0x4377c5(0x13e)],_0x314700);}console[_0x4377c5(0x11a)](_0x4377c5(0x10f)),_0x13c005(!![]);}(0x0,semver_1[_0x4377c5(0x13d)])(resource_1[_0x4377c5(0x139)]);}_0x13c005(![]);});}catch(_0x3f42ce){console[_0x3196e5(0x11a)](_0x3f42ce);}}}function _0x1131(_0x1b3399,_0x3119f6){const _0x549100=_0x5491();return _0x1131=function(_0x113106,_0x9afb55){_0x113106=_0x113106-0x10c;let _0x58a1d6=_0x549100[_0x113106];return _0x58a1d6;},_0x1131(_0x1b3399,_0x3119f6);}exports[_0xc444c1(0x130)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x478215=_0xc444c1;this[_0x478215(0x11d)]=_0x478215(0x121);}[_0xc444c1(0x137)](_0x1640c0){const _0x1d5654=_0xc444c1;return this[_0x1d5654(0x11d)]+='\x20-project\x20'+_0x1640c0,this;}[_0xc444c1(0x10c)](){const _0x59afeb=_0xc444c1;return this['line']+=_0x59afeb(0x114),this;}['scheme'](_0x36811c){const _0x453afc=_0xc444c1;return this[_0x453afc(0x11d)]+=_0x453afc(0x138)+_0x36811c,this;}[_0xc444c1(0x11f)](_0x320833){const _0x356bd0=_0xc444c1;return this[_0x356bd0(0x11d)]+=_0x356bd0(0x112)+_0x320833+_0x356bd0(0x115),this;}[_0xc444c1(0x11c)](){const _0x3876dd=_0xc444c1;return this[_0x3876dd(0x11d)]+=_0x3876dd(0x127),this;}[_0xc444c1(0x13a)](_0x323efb){const _0x39fc23=_0xc444c1;return this['line']+=_0x39fc23(0x125)+_0x323efb+'\x27',this;}['output'](_0x9bfff8,_0x5b63c0,_0x375b9e){const _0x170caa=_0xc444c1;return this[_0x170caa(0x11d)]+='\x20-exportArchive\x20-archivePath\x20'+_0x9bfff8+_0x170caa(0x116)+_0x5b63c0+_0x170caa(0x132)+_0x375b9e,this;}['clean'](){const _0x2d3d43=_0xc444c1;return this[_0x2d3d43(0x11d)]+=_0x2d3d43(0x111),this;}}exports[_0xc444c1(0x10e)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x7937(_0xc75e6c,_0x566b98){const _0x51adef=_0x51ad();return _0x7937=function(_0x79370,_0x3add16){_0x79370=_0x79370-0x199;let _0x310a59=_0x51adef[_0x79370];return _0x310a59;},_0x7937(_0xc75e6c,_0x566b98);}const _0x18380c=_0x7937;(function(_0x50e1fd,_0x4928a2){const _0x59cbe8=_0x7937,_0x75f907=_0x50e1fd();while(!![]){try{const _0x59c885=parseInt(_0x59cbe8(0x1de))/0x1*(-parseInt(_0x59cbe8(0x1db))/0x2)+-parseInt(_0x59cbe8(0x1dd))/0x3*(-parseInt(_0x59cbe8(0x1ab))/0x4)+-parseInt(_0x59cbe8(0x1af))/0x5+parseInt(_0x59cbe8(0x1bf))/0x6+-parseInt(_0x59cbe8(0x1f8))/0x7*(-parseInt(_0x59cbe8(0x1b6))/0x8)+parseInt(_0x59cbe8(0x1f7))/0x9+parseInt(_0x59cbe8(0x1da))/0xa*(-parseInt(_0x59cbe8(0x1ae))/0xb);if(_0x59c885===_0x4928a2)break;else _0x75f907['push'](_0x75f907['shift']());}catch(_0x1b08bb){_0x75f907['push'](_0x75f907['shift']());}}}(_0x51ad,0x91c36));function _0x51ad(){const _0x1000ea=['buildSettings','PWAProtocol(protocolValue:\x20\x22','7951432UqrtyG','app-store-connect','MIDDLE_APPICON_DIRECTORY','path','.minimal','buildConfigurationList','version','images','\x22automatic\x22','207594QFIxGe','updateDeeplink','log','debugging','existsSync','json','bindManifestInfo','updateVersion','pbxXCBuildConfigurationSection','enterprise','defineProperty','modify','value','teamId','PBXGroup','DEVELOPMENT_TEAM','PRODUCT_BUNDLE_IDENTIFIER','split','description','protocol','Contents.json','./manifestSwiftTemplate','name','createImg','writeAsync','icon.','object','536970lOCtIv','2wcwTLf','objects','411nxMyKr','281605NGaKsd','writeSync','SceneWidth','push','url','buildType','./web-spatial/libs/webView/manifest.swift','updateExportOptions','release-testing','SceneResizability','mainScene','PROJECT_BUILD_DIRECTORY','updateProductName','\x22),','xcode','pbxGroupByName','START_URL','../resource/load','1.0','</string>','<string>','loadJsonFromDisk','updateBuildProperty','join','icon.png','3614382oGqxik','7GeaMpw','modifySwift','project','display','replace','default','../resource','pbxXCConfigurationList','USE_MAIN_SCENE','PROJECT_DIRECTORY','manifestSwiftTemplate','1280','ExportOptions.plist','length','updateTeamId','image/','SceneHeight','icon','stringify','includes','protocol_handlers','test','scope','filename','bindIcon','height','defaultSize','25008OXEdRr','writeFileSync','ImageHelper','231sVVVGh','1401810UuWYkZ','BUILDTYPE','AppName','DEEPLINK','fixProjectFunction'];_0x51ad=function(){return _0x1000ea;};return _0x51ad();}Object[_0x18380c(0x1c9)](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require(_0x18380c(0x1fe)),path_1=require(_0x18380c(0x1b9)),load_1=require(_0x18380c(0x1ef)),imageHelper_1=require('../resource/imageHelper'),manifestSwiftTemplate_1=require(_0x18380c(0x1d4)),xcode=require(_0x18380c(0x1ec)),exportOptionsXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>',infoPlistXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a';let useExportOptionsXML='';class XcodeProject{static async[_0x18380c(0x1ca)](_0x2d0d4f,_0x2739a5){const _0x523077=_0x18380c;let _0x297f62=xcode[_0x523077(0x1fa)](_0x2d0d4f);this['fixProjectFunction'](_0x297f62),_0x297f62['parseSync']();let _0x29ca41=_0x2739a5[_0x523077(0x1e3)];const _0x136ce6=['release-testing',_0x523077(0x1b7),_0x523077(0x1c2),_0x523077(0x1c8)];useExportOptionsXML=exportOptionsXML[_0x523077(0x1fc)](_0x523077(0x1b0),_0x136ce6[_0x523077(0x1a3)](_0x29ca41)?_0x29ca41:_0x523077(0x1e6));_0x2739a5[_0x523077(0x1cc)]&&this[_0x523077(0x19e)](_0x297f62,_0x2739a5['teamId']);this[_0x523077(0x1e5)](),await this[_0x523077(0x1a8)](_0x2739a5[_0x523077(0x1a1)]),this[_0x523077(0x1c5)](_0x297f62,_0x2739a5['manifestInfo'][_0x523077(0x1c4)]);_0x2739a5[_0x523077(0x1bc)]?this[_0x523077(0x1c6)](_0x297f62,_0x2739a5[_0x523077(0x1bc)]):this[_0x523077(0x1c6)](_0x297f62,_0x523077(0x1f0));try{fs[_0x523077(0x1ac)](_0x2d0d4f,_0x297f62[_0x523077(0x1df)]());}catch(_0x4e1ed3){console[_0x523077(0x1c1)](_0x4e1ed3);}}static[_0x18380c(0x1b3)](_0x5c3cda){const _0x119393=_0x18380c;_0x5c3cda[_0x119393(0x1ed)]=function(_0x453e28){const _0x5526bb=_0x119393;var _0x5586da=this['hash'][_0x5526bb(0x1fa)][_0x5526bb(0x1dc)][_0x5526bb(0x1cd)],_0x5ecd4f,_0x5e132d;for(_0x5ecd4f in _0x5586da){if(!/_comment$/[_0x5526bb(0x1a5)](_0x5ecd4f))continue;if(_0x5586da[_0x5ecd4f]==_0x453e28)return _0x5e132d=_0x5ecd4f[_0x5526bb(0x1d0)](/_comment$/)[0x0],_0x5586da[_0x5e132d];}return![];},_0x5c3cda[_0x119393(0x1f4)]=function(_0x25557a,_0x543fa9,_0x42d531,_0x1f6ceb){const _0x790ca2=_0x119393;let _0x5a042a=[];const _0x3b2c05=/_comment$/;if(_0x1f6ceb){const _0x1c2fb2=this['pbxTargetByName'](_0x1f6ceb),_0x427a54=_0x1c2fb2&&_0x1c2fb2[_0x790ca2(0x1bb)],_0x1455ed=this[_0x790ca2(0x1ff)]();for(const _0x1a63e9 in _0x1455ed){if(!_0x3b2c05[_0x790ca2(0x1a5)](_0x1a63e9)&&_0x427a54===_0x1a63e9){const _0xf19187=_0x1455ed[_0x1a63e9]['buildConfigurations'];for(const _0x467e5f of _0xf19187){_0x5a042a[_0x790ca2(0x1e1)](_0x467e5f[_0x790ca2(0x1cb)]);}break;}}}var _0x28740c=this[_0x790ca2(0x1c7)]();for(var _0x5eec23 in _0x28740c){if(!_0x3b2c05[_0x790ca2(0x1a5)](_0x5eec23)){if(_0x1f6ceb&&!_0x5a042a['includes'](_0x5eec23))continue;var _0x5726ac=_0x28740c[_0x5eec23];(_0x42d531&&_0x5726ac[_0x790ca2(0x1d5)]===_0x42d531||!_0x42d531)&&_0x5726ac['buildSettings'][_0x25557a]&&(_0x5726ac[_0x790ca2(0x1b4)][_0x25557a]=_0x543fa9);}}};}static async[_0x18380c(0x1a8)](_0x4e7c28){const _0x4c3b75=_0x18380c;if(_0x4e7c28){const _0x27b6ee=(0x0,path_1[_0x4c3b75(0x1f5)])(resource_1[_0x4c3b75(0x199)],resource_1['BACK_APPICON_DIRECTORY']),_0x536422=(0x0,path_1[_0x4c3b75(0x1f5)])(_0x27b6ee,_0x4c3b75(0x1d3)),_0x42e53d=_0x4c3b75(0x1d8)+_0x4e7c28['getMIME']()['replace'](_0x4c3b75(0x19f),''),_0x5e81b9=(0x0,path_1[_0x4c3b75(0x1f5)])(_0x27b6ee,_0x42e53d);let _0x27a1ec=await(0x0,load_1[_0x4c3b75(0x1f3)])(_0x536422);_0x27a1ec[_0x4c3b75(0x1bd)][0x0][_0x4c3b75(0x1a7)]=_0x42e53d,await _0x4e7c28[_0x4c3b75(0x1d7)](_0x5e81b9),await fs['writeFileSync'](_0x536422,JSON[_0x4c3b75(0x1a2)](_0x27a1ec));const _0x176321=(0x0,path_1[_0x4c3b75(0x1f5)])(resource_1[_0x4c3b75(0x199)],resource_1[_0x4c3b75(0x1b8)]),_0x10ee9c=(0x0,path_1[_0x4c3b75(0x1f5)])(_0x176321,_0x4c3b75(0x1d3)),_0x56db01=_0x4c3b75(0x1f6),_0x59f0c8=(0x0,path_1[_0x4c3b75(0x1f5)])(_0x176321,_0x56db01);let _0x349b13=await(0x0,load_1[_0x4c3b75(0x1f3)])(_0x10ee9c),_0x423fec=imageHelper_1[_0x4c3b75(0x1ad)][_0x4c3b75(0x1d6)](0x200);_0x349b13[_0x4c3b75(0x1bd)][0x0][_0x4c3b75(0x1a7)]=_0x56db01,await _0x423fec[_0x4c3b75(0x1d7)](_0x59f0c8),await fs[_0x4c3b75(0x1ac)](_0x10ee9c,JSON[_0x4c3b75(0x1a2)](_0x349b13));}}static['updateTeamId'](_0x3ef02f,_0x34bd54){const _0x3caa73=_0x18380c;_0x3ef02f[_0x3caa73(0x1f4)](_0x3caa73(0x1ce),_0x34bd54),useExportOptionsXML=useExportOptionsXML[_0x3caa73(0x1fc)]('YOURTEAMID',_0x34bd54);}static[_0x18380c(0x1e5)](){const _0x4886d3=_0x18380c;!fs[_0x4886d3(0x1c3)](resource_1[_0x4886d3(0x1e9)])&&fs['mkdirSync'](resource_1[_0x4886d3(0x1e9)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1['join'])(resource_1[_0x4886d3(0x1e9)],_0x4886d3(0x19c)),useExportOptionsXML);}static[_0x18380c(0x1c5)](_0x40c042,_0x199e53){const _0x100718=_0x18380c;var _0x25d445;_0x40c042[_0x100718(0x1ea)](_0x199e53[_0x100718(0x1d5)]),_0x40c042[_0x100718(0x1f4)](_0x100718(0x1cf),'\x22'+_0x199e53['id']+'\x22'),this['updateDeeplink']((_0x25d445=_0x199e53[_0x100718(0x1a4)])!==null&&_0x25d445!==void 0x0?_0x25d445:[]),this['modifySwift'](_0x199e53);}static['updateVersion'](_0x372e6b,_0x2d2cb1){_0x372e6b['updateBuildProperty']('CURRENT_PROJECT_VERSION',_0x2d2cb1);}static[_0x18380c(0x1c0)](_0x24fc14){const _0xbf89f4=_0x18380c;let _0x54d375=(0x0,path_1['join'])(resource_1[_0xbf89f4(0x199)],'./web-spatial/Info.plist'),_0x41c4e2='';for(let _0x512fcb=0x0;_0x512fcb<_0x24fc14['length'];_0x512fcb++){_0x41c4e2+=_0xbf89f4(0x1f2)+_0x24fc14[_0x512fcb][_0xbf89f4(0x1d2)]+_0xbf89f4(0x1f1);}const _0x277117=infoPlistXML[_0xbf89f4(0x1fc)](_0xbf89f4(0x1b2),_0x41c4e2);fs[_0xbf89f4(0x1ac)](_0x54d375,_0x277117);}static[_0x18380c(0x1f9)](_0x48fe33){const _0x19a0ee=_0x18380c,_0x2bee8e=(0x0,path_1['join'])(resource_1[_0x19a0ee(0x199)],_0x19a0ee(0x1e4));let _0x5507a6=manifestSwiftTemplate_1[_0x19a0ee(0x19a)];_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)](_0x19a0ee(0x1ee),_0x48fe33['start_url']),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)]('SCOPE',_0x48fe33[_0x19a0ee(0x1a6)]),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)](_0x19a0ee(0x1b1),_0x48fe33[_0x19a0ee(0x1d5)]),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)]('Description',_0x48fe33[_0x19a0ee(0x1d1)]),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)]('AppID',_0x48fe33['id']),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)]('.minimal',_0x48fe33[_0x19a0ee(0x1fb)]=='minimal-ui'?_0x19a0ee(0x1ba):'.standalone');if(_0x48fe33[_0x19a0ee(0x1a4)]){let _0x2deaa0='';for(let _0x5e4812=0x0;_0x5e4812<_0x48fe33[_0x19a0ee(0x1a4)][_0x19a0ee(0x19d)];_0x5e4812++){_0x2deaa0+=_0x19a0ee(0x1b5)+_0x48fe33[_0x19a0ee(0x1a4)][_0x5e4812][_0x19a0ee(0x1d2)]+'\x22,\x20url:\x20\x22'+_0x48fe33['protocol_handlers'][_0x5e4812][_0x19a0ee(0x1e2)]+_0x19a0ee(0x1eb);}_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x2deaa0);}typeof _0x48fe33['mainScene']===_0x19a0ee(0x1d9)?(_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)](_0x19a0ee(0x1e0),_0x48fe33[_0x19a0ee(0x1e8)][_0x19a0ee(0x1aa)]['width']),_0x5507a6=_0x5507a6['replace'](_0x19a0ee(0x1a0),_0x48fe33[_0x19a0ee(0x1e8)]['defaultSize'][_0x19a0ee(0x1a9)]),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)](_0x19a0ee(0x1e7),'\x22'+_0x48fe33[_0x19a0ee(0x1e8)]['resizability']+'\x22'),_0x5507a6=_0x5507a6['replace'](_0x19a0ee(0x200),'true')):(_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)](_0x19a0ee(0x1e0),_0x19a0ee(0x19b)),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)](_0x19a0ee(0x1a0),_0x19a0ee(0x19b)),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)]('SceneResizability',_0x19a0ee(0x1be)),_0x5507a6=_0x5507a6[_0x19a0ee(0x1fc)](_0x19a0ee(0x200),'false')),fs[_0x19a0ee(0x1ac)](_0x2bee8e,_0x5507a6,'utf-8');}}exports[_0x18380c(0x1fd)]=XcodeProject;
|
|
1
|
+
'use strict';function _0x5056(_0x25198c,_0x1d0659){const _0x17db5b=_0x17db();return _0x5056=function(_0x50563b,_0x45dd33){_0x50563b=_0x50563b-0x8c;let _0xebe0ce=_0x17db5b[_0x50563b];return _0xebe0ce;},_0x5056(_0x25198c,_0x1d0659);}const _0x1a8542=_0x5056;(function(_0x4a5b4e,_0x54308b){const _0xd86b96=_0x5056,_0x1a88ef=_0x4a5b4e();while(!![]){try{const _0x240330=parseInt(_0xd86b96(0xca))/0x1*(parseInt(_0xd86b96(0xc6))/0x2)+-parseInt(_0xd86b96(0xe5))/0x3*(parseInt(_0xd86b96(0xdb))/0x4)+parseInt(_0xd86b96(0xa3))/0x5+parseInt(_0xd86b96(0xd1))/0x6*(parseInt(_0xd86b96(0xe3))/0x7)+-parseInt(_0xd86b96(0xab))/0x8*(parseInt(_0xd86b96(0xd6))/0x9)+parseInt(_0xd86b96(0x9c))/0xa+-parseInt(_0xd86b96(0xbc))/0xb;if(_0x240330===_0x54308b)break;else _0x1a88ef['push'](_0x1a88ef['shift']());}catch(_0x2f65c3){_0x1a88ef['push'](_0x1a88ef['shift']());}}}(_0x17db,0xab697));function _0x17db(){const _0x4cb39c=['writeSync','8256190wYvAGb','stringify','1280','project','object','PROJECT_DIRECTORY','PWAProtocol(protocolValue:\x20\x22','4385945EjTPUk','replace','SceneHeight','modify','debugging','teamId','DEVELOPMENT_TEAM','push','3529768kofKfk','release-testing','test','START_URL','writeFileSync','SceneWidth','pbxXCBuildConfigurationSection','CURRENT_PROJECT_VERSION','modifySwift','log','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','join','getMIME','.minimal','SceneResizability','display','default','2223430AzirPy','resizability','protocol_handlers','\x22automatic\x22','buildType','SCOPE','false','../resource/imageHelper','createImg','loadJsonFromDisk','995198kckAeR','minimal-ui','updateTeamId','ExportOptions.plist','1BZNkCf','mkdirSync','image/','description','ImageHelper','writeAsync','objects','6qrCbUu','pbxTargetByName','includes','start_url','pbxXCConfigurationList','18nPbrtQ','PROJECT_BUILD_DIRECTORY','updateVersion','buildConfigurationList','fixProjectFunction','28ryrvCW','buildSettings','true','bindIcon','USE_MAIN_SCENE','manifestInfo','protocol','./web-spatial/libs/webView/manifest.swift','6388053CwckJG','url','568419LottFL','app-store-connect','icon','buildConfigurations','bindManifestInfo','icon.','defaultSize','DEEPLINK','./web-spatial/Info.plist','height','json','.standalone','updateExportOptions','PBXGroup','version','Contents.json','PRODUCT_BUNDLE_IDENTIFIER','<?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','name','updateDeeplink','BUILDTYPE','updateBuildProperty','1.0','<string>','mainScene','hash','value','MIDDLE_APPICON_DIRECTORY','scope','updateProductName'];_0x17db=function(){return _0x4cb39c;};return _0x17db();}Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require('../resource'),path_1=require('path'),load_1=require('../resource/load'),imageHelper_1=require(_0x1a8542(0xc3)),manifestSwiftTemplate_1=require('./manifestSwiftTemplate'),xcode=require('xcode'),exportOptionsXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>',infoPlistXML=_0x1a8542(0x8e);let useExportOptionsXML='';class XcodeProject{static async[_0x1a8542(0xa6)](_0x33dee0,_0x489f2e){const _0x5378a7=_0x1a8542;let _0x542faa=xcode[_0x5378a7(0x9f)](_0x33dee0);this[_0x5378a7(0xda)](_0x542faa),_0x542faa['parseSync']();let _0x3b5e1d=_0x489f2e[_0x5378a7(0xc0)];const _0x1630c4=[_0x5378a7(0xac),_0x5378a7(0xe6),_0x5378a7(0xa7),'enterprise'];useExportOptionsXML=exportOptionsXML[_0x5378a7(0xa4)](_0x5378a7(0x91),_0x1630c4[_0x5378a7(0xd3)](_0x3b5e1d)?_0x3b5e1d:_0x5378a7(0xac));_0x489f2e[_0x5378a7(0xa8)]&&this[_0x5378a7(0xc8)](_0x542faa,_0x489f2e['teamId']);this[_0x5378a7(0xf1)](),await this[_0x5378a7(0xde)](_0x489f2e[_0x5378a7(0xe7)]),this[_0x5378a7(0xe9)](_0x542faa,_0x489f2e[_0x5378a7(0xe0)][_0x5378a7(0xef)]);_0x489f2e['version']?this[_0x5378a7(0xd8)](_0x542faa,_0x489f2e[_0x5378a7(0xf3)]):this['updateVersion'](_0x542faa,_0x5378a7(0x93));try{fs[_0x5378a7(0xaf)](_0x33dee0,_0x542faa[_0x5378a7(0x9b)]());}catch(_0x13c80c){console[_0x5378a7(0xb4)](_0x13c80c);}}static['fixProjectFunction'](_0xb9086e){const _0x5615c6=_0x1a8542;_0xb9086e['pbxGroupByName']=function(_0xf9dbcf){const _0x21a3bf=_0x5056;var _0x3ca504=this[_0x21a3bf(0x96)]['project'][_0x21a3bf(0xd0)][_0x21a3bf(0xf2)],_0x5554b0,_0x56d5bc;for(_0x5554b0 in _0x3ca504){if(!/_comment$/[_0x21a3bf(0xad)](_0x5554b0))continue;if(_0x3ca504[_0x5554b0]==_0xf9dbcf)return _0x56d5bc=_0x5554b0['split'](/_comment$/)[0x0],_0x3ca504[_0x56d5bc];}return![];},_0xb9086e[_0x5615c6(0x92)]=function(_0x3af9b3,_0x4d8db4,_0x17a34b,_0x2a45dd){const _0x1cb0b1=_0x5615c6;let _0x1ecf7f=[];const _0x34ab48=/_comment$/;if(_0x2a45dd){const _0x39761d=this[_0x1cb0b1(0xd2)](_0x2a45dd),_0x13d008=_0x39761d&&_0x39761d[_0x1cb0b1(0xd9)],_0x4942a7=this[_0x1cb0b1(0xd5)]();for(const _0x1e694b in _0x4942a7){if(!_0x34ab48['test'](_0x1e694b)&&_0x13d008===_0x1e694b){const _0x1ac2a1=_0x4942a7[_0x1e694b][_0x1cb0b1(0xe8)];for(const _0x19fe87 of _0x1ac2a1){_0x1ecf7f[_0x1cb0b1(0xaa)](_0x19fe87[_0x1cb0b1(0x97)]);}break;}}}var _0x54b20e=this[_0x1cb0b1(0xb1)]();for(var _0x1e7c75 in _0x54b20e){if(!_0x34ab48[_0x1cb0b1(0xad)](_0x1e7c75)){if(_0x2a45dd&&!_0x1ecf7f[_0x1cb0b1(0xd3)](_0x1e7c75))continue;var _0xb92b7b=_0x54b20e[_0x1e7c75];(_0x17a34b&&_0xb92b7b[_0x1cb0b1(0x8f)]===_0x17a34b||!_0x17a34b)&&_0xb92b7b['buildSettings'][_0x3af9b3]&&(_0xb92b7b[_0x1cb0b1(0xdc)][_0x3af9b3]=_0x4d8db4);}}};}static async[_0x1a8542(0xde)](_0x9f5283){const _0x55b045=_0x1a8542;if(_0x9f5283){const _0x507714=(0x0,path_1[_0x55b045(0xb6)])(resource_1[_0x55b045(0xa1)],resource_1['BACK_APPICON_DIRECTORY']),_0x278fd8=(0x0,path_1[_0x55b045(0xb6)])(_0x507714,_0x55b045(0x8c)),_0x21ac5d=_0x55b045(0xea)+_0x9f5283[_0x55b045(0xb7)]()[_0x55b045(0xa4)](_0x55b045(0xcc),''),_0x22ca28=(0x0,path_1[_0x55b045(0xb6)])(_0x507714,_0x21ac5d);let _0x391faf=await(0x0,load_1['loadJsonFromDisk'])(_0x278fd8);_0x391faf['images'][0x0]['filename']=_0x21ac5d,await _0x9f5283[_0x55b045(0xcf)](_0x22ca28),await fs[_0x55b045(0xaf)](_0x278fd8,JSON[_0x55b045(0x9d)](_0x391faf));const _0x4fbdbc=(0x0,path_1['join'])(resource_1[_0x55b045(0xa1)],resource_1[_0x55b045(0x98)]),_0x729a6b=(0x0,path_1[_0x55b045(0xb6)])(_0x4fbdbc,_0x55b045(0x8c)),_0x157e47='icon.png',_0x44cab4=(0x0,path_1[_0x55b045(0xb6)])(_0x4fbdbc,_0x157e47);let _0x4f0522=await(0x0,load_1[_0x55b045(0xc5)])(_0x729a6b),_0x3f3b87=imageHelper_1[_0x55b045(0xce)][_0x55b045(0xc4)](0x200);_0x4f0522['images'][0x0]['filename']=_0x157e47,await _0x3f3b87[_0x55b045(0xcf)](_0x44cab4),await fs['writeFileSync'](_0x729a6b,JSON[_0x55b045(0x9d)](_0x4f0522));}}static[_0x1a8542(0xc8)](_0x1d5583,_0x29291b){const _0x8ea786=_0x1a8542;_0x1d5583[_0x8ea786(0x92)](_0x8ea786(0xa9),_0x29291b),useExportOptionsXML=useExportOptionsXML[_0x8ea786(0xa4)]('YOURTEAMID',_0x29291b);}static[_0x1a8542(0xf1)](){const _0x517326=_0x1a8542;!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x517326(0xcb)](resource_1[_0x517326(0xd7)],{'recursive':!![]}),fs[_0x517326(0xaf)]((0x0,path_1[_0x517326(0xb6)])(resource_1[_0x517326(0xd7)],_0x517326(0xc9)),useExportOptionsXML);}static['bindManifestInfo'](_0x1dbed8,_0x136152){const _0x9a6de9=_0x1a8542;var _0x45e83a;_0x1dbed8[_0x9a6de9(0x9a)](_0x136152[_0x9a6de9(0x8f)]),_0x1dbed8[_0x9a6de9(0x92)](_0x9a6de9(0x8d),'\x22'+_0x136152['id']+'\x22'),this[_0x9a6de9(0x90)]((_0x45e83a=_0x136152[_0x9a6de9(0xbe)])!==null&&_0x45e83a!==void 0x0?_0x45e83a:[]),this['modifySwift'](_0x136152);}static[_0x1a8542(0xd8)](_0xa26208,_0x16e388){const _0x4b84c6=_0x1a8542;_0xa26208[_0x4b84c6(0x92)](_0x4b84c6(0xb2),_0x16e388);}static[_0x1a8542(0x90)](_0x53e9c3){const _0x1a52d8=_0x1a8542;let _0x56d673=(0x0,path_1[_0x1a52d8(0xb6)])(resource_1[_0x1a52d8(0xa1)],_0x1a52d8(0xed)),_0x1068fc='';for(let _0x2449c9=0x0;_0x2449c9<_0x53e9c3['length'];_0x2449c9++){_0x1068fc+=_0x1a52d8(0x94)+_0x53e9c3[_0x2449c9][_0x1a52d8(0xe1)]+'</string>';}const _0x5a2bf1=infoPlistXML[_0x1a52d8(0xa4)](_0x1a52d8(0xec),_0x1068fc);fs[_0x1a52d8(0xaf)](_0x56d673,_0x5a2bf1);}static[_0x1a8542(0xb3)](_0x2a4e9a){const _0x1e0d52=_0x1a8542,_0x2ef550=(0x0,path_1[_0x1e0d52(0xb6)])(resource_1[_0x1e0d52(0xa1)],_0x1e0d52(0xe2));let _0x4b7d2b=manifestSwiftTemplate_1['manifestSwiftTemplate'];_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)](_0x1e0d52(0xae),_0x2a4e9a[_0x1e0d52(0xd4)]),_0x4b7d2b=_0x4b7d2b['replace'](_0x1e0d52(0xc1),_0x2a4e9a[_0x1e0d52(0x99)]),_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)]('AppName',_0x2a4e9a[_0x1e0d52(0x8f)]),_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)]('Description',_0x2a4e9a[_0x1e0d52(0xcd)]),_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)]('AppID',_0x2a4e9a['id']),_0x4b7d2b=_0x4b7d2b['replace']('.minimal',_0x2a4e9a[_0x1e0d52(0xba)]==_0x1e0d52(0xc7)?_0x1e0d52(0xb8):_0x1e0d52(0xf0));if(_0x2a4e9a['protocol_handlers']){let _0x5bb30a='';for(let _0x13bca1=0x0;_0x13bca1<_0x2a4e9a[_0x1e0d52(0xbe)]['length'];_0x13bca1++){_0x5bb30a+=_0x1e0d52(0xa2)+_0x2a4e9a['protocol_handlers'][_0x13bca1]['protocol']+'\x22,\x20url:\x20\x22'+_0x2a4e9a[_0x1e0d52(0xbe)][_0x13bca1][_0x1e0d52(0xe4)]+'\x22),';}_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)](_0x1e0d52(0xb5),_0x5bb30a);}typeof _0x2a4e9a['mainScene']===_0x1e0d52(0xa0)?(_0x4b7d2b=_0x4b7d2b['replace'](_0x1e0d52(0xb0),_0x2a4e9a['mainScene'][_0x1e0d52(0xeb)]['width']),_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)](_0x1e0d52(0xa5),_0x2a4e9a[_0x1e0d52(0x95)][_0x1e0d52(0xeb)][_0x1e0d52(0xee)]),_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)](_0x1e0d52(0xb9),'\x22'+_0x2a4e9a[_0x1e0d52(0x95)][_0x1e0d52(0xbd)]+'\x22'),_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)](_0x1e0d52(0xdf),_0x1e0d52(0xdd))):(_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)](_0x1e0d52(0xb0),_0x1e0d52(0x9e)),_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)](_0x1e0d52(0xa5),'1280'),_0x4b7d2b=_0x4b7d2b[_0x1e0d52(0xa4)]('SceneResizability',_0x1e0d52(0xbf)),_0x4b7d2b=_0x4b7d2b['replace'](_0x1e0d52(0xdf),_0x1e0d52(0xc2))),fs[_0x1e0d52(0xaf)](_0x2ef550,_0x4b7d2b,'utf-8');}}exports[_0x1a8542(0xbb)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x35f3e1=_0x3489;function _0x3489(_0xa0e6de,_0x3843f7){const _0x2464e7=_0x2464();return _0x3489=function(_0x3489c0,_0x2deb22){_0x3489c0=_0x3489c0-0x197;let _0xb1bd22=_0x2464e7[_0x3489c0];return _0xb1bd22;},_0x3489(_0xa0e6de,_0x3843f7);}(function(_0x267119,_0xca3988){const _0x1c59e2=_0x3489,_0x57840e=_0x267119();while(!![]){try{const _0x139aa8=parseInt(_0x1c59e2(0x1df))/0x1+parseInt(_0x1c59e2(0x1e3))/0x2*(parseInt(_0x1c59e2(0x1c4))/0x3)+parseInt(_0x1c59e2(0x1d1))/0x4+parseInt(_0x1c59e2(0x1a2))/0x5*(-parseInt(_0x1c59e2(0x1b7))/0x6)+parseInt(_0x1c59e2(0x19a))/0x7*(parseInt(_0x1c59e2(0x1b9))/0x8)+-parseInt(_0x1c59e2(0x1bc))/0x9+parseInt(_0x1c59e2(0x1d7))/0xa;if(_0x139aa8===_0xca3988)break;else _0x57840e['push'](_0x57840e['shift']());}catch(_0x3576f5){_0x57840e['push'](_0x57840e['shift']());}}}(_0x2464,0x3dd09));function _0x2464(){const _0x5ce37b=['140938hWphTU','boot','--\x20visionOS','\x20install\x20\x22','project','\x20--verbose','split','\x20list','25bkKMLs','.app','launch','validate','installing\x20app','build\x20success','\x20-t\x20','/test','\x20launch\x20\x22','altool','\x22\x20\x22','__esModule','version','PROJECT_DIRECTORY','install','deviceId','state','authAccount','existsSync','uploadApp','uploadPackage','518718JNGngz','length','152NvTsOO','../resource','Build/Products/Debug-xrsimulator/','4222089CABpXr','\x20simctl','log','--\x20','push','Apple\x20Vision\x20Pro','execSync','authApi','39fFnpbO','\x20-u\x20','\x20-p\x20','includes','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','path','parseListDevices','child_process','mkdirSync','Shutdown','\x20altool','toString','trim','196664kdtbRB','find\x20simulator:\x20','\x20boot\x20\x22','visionos','\x20--apiKey\x20','platform','1823390VskVKm','\x27\x20-derivedDataPath\x20','\x20shutdown\x20booted','default','appleId','./xcodebuild','list','no\x20visionOS\x20simulator\x20found','174019xbUQOW','\x20--apple-id\x20','line','xcrun','56386BwAuwk','XcodebuildCMD','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','\x20--apiIssuer\x20','defineProperty','PROJECT_BUILD_DIRECTORY','simctl','\x20--validate-app\x20-f\x20','runWithSimulator','listDevices'];_0x2464=function(){return _0x5ce37b;};return _0x2464();}Object[_0x35f3e1(0x1e7)](exports,_0x35f3e1(0x1ad),{'value':!![]});const child_process_1=require(_0x35f3e1(0x1cb)),resource_1=require(_0x35f3e1(0x1ba)),path_1=require(_0x35f3e1(0x1c9)),fs=require('fs'),xcodebuild_1=require(_0x35f3e1(0x1dc));class Xcrun{static async['validate'](_0x4ddc78,_0x39ee8e,_0x45ea07,_0x32d533){const _0x53c76b=_0x35f3e1,_0x2d6183=new XcrunCMD()[_0x53c76b(0x1ab)]();_0x2d6183['validate'](_0x4ddc78);_0x32d533?_0x2d6183['authAccount'](_0x39ee8e,_0x45ea07):_0x2d6183[_0x53c76b(0x1c3)](_0x39ee8e,_0x45ea07);_0x2d6183[_0x53c76b(0x1d6)](_0x53c76b(0x1d4));const _0x5deaeb=(0x0,child_process_1[_0x53c76b(0x1c2)])(_0x2d6183[_0x53c76b(0x1e1)]);return _0x5deaeb['toString']();}static async[_0x35f3e1(0x1b6)](_0x5e43c9,_0x5aed5e,_0x488b72,_0x1ff528,_0x23dae5){const _0x5d7356=_0x35f3e1,_0x542be4=new XcrunCMD()[_0x5d7356(0x1ab)]();_0x542be4[_0x5d7356(0x1b6)](_0x5e43c9);_0x23dae5?_0x542be4[_0x5d7356(0x1b3)](_0x5aed5e,_0x488b72):_0x542be4[_0x5d7356(0x1c3)](_0x5aed5e,_0x488b72);_0x542be4['platform'](_0x5d7356(0x1d4)),_0x542be4[_0x5d7356(0x1db)](_0x1ff528);const _0x63330f=(0x0,child_process_1[_0x5d7356(0x1c2)])(_0x542be4['line']);return _0x63330f[_0x5d7356(0x1cf)]();}static async['uploadApp'](_0x15a127,_0x555cc3,_0x22b15c,_0x507676){const _0x3ddba4=_0x35f3e1,_0xee4b3d=new XcrunCMD()[_0x3ddba4(0x1ab)]();_0xee4b3d['uploadApp'](_0x15a127);_0x507676?_0xee4b3d[_0x3ddba4(0x1b3)](_0x555cc3,_0x22b15c):_0xee4b3d[_0x3ddba4(0x1c3)](_0x555cc3,_0x22b15c);_0xee4b3d[_0x3ddba4(0x1d6)]('visionos');const _0x44b1d5=(0x0,child_process_1['execSync'])(_0xee4b3d[_0x3ddba4(0x1e1)]);return _0x44b1d5[_0x3ddba4(0x1cf)]();}static async[_0x35f3e1(0x198)](_0x33af97){const _0x3e9c30=_0x35f3e1;let _0x1267c5=new XcrunCMD()['simctl']();_0x1267c5['listDevices'](_0x3e9c30(0x1c1));const _0x4f5623=(0x0,child_process_1[_0x3e9c30(0x1c2)])(_0x1267c5[_0x3e9c30(0x1e1)]),_0x2ecac5=this['parseListDevices'](_0x4f5623[_0x3e9c30(0x1cf)]());if(_0x2ecac5[_0x3e9c30(0x1b8)]===0x0)throw new Error(_0x3e9c30(0x1de));let _0x3deee8=_0x2ecac5[0x0];for(let _0x528c56=0x0;_0x528c56<_0x2ecac5[_0x3e9c30(0x1b8)];_0x528c56++){if(_0x2ecac5[_0x528c56][_0x3e9c30(0x1b2)]==='Booted'){_0x3deee8=_0x2ecac5[_0x528c56];break;}}console['log'](_0x3e9c30(0x1d2)+_0x3deee8[_0x3e9c30(0x1b1)]);const _0x226d20=resource_1[_0x3e9c30(0x1af)]+'/web-spatial.xcodeproj',_0x5f56a0=resource_1[_0x3e9c30(0x1e8)]+_0x3e9c30(0x1a9);!fs[_0x3e9c30(0x1b4)](resource_1[_0x3e9c30(0x1e8)])&&fs[_0x3e9c30(0x1cc)](resource_1[_0x3e9c30(0x1e8)],{'recursive':!![]});!fs[_0x3e9c30(0x1b4)](_0x5f56a0)&&fs[_0x3e9c30(0x1cc)](_0x5f56a0,{'recursive':!![]});const _0x621c4=new xcodebuild_1[(_0x3e9c30(0x1e4))]()[_0x3e9c30(0x19e)](_0x226d20)[_0x3e9c30(0x1e1)]+(_0x3e9c30(0x1c8)+_0x3deee8[_0x3e9c30(0x1b1)]+_0x3e9c30(0x1d8)+_0x5f56a0);console[_0x3e9c30(0x1be)]('start\x20building'),(0x0,child_process_1[_0x3e9c30(0x1c2)])(_0x621c4),console[_0x3e9c30(0x1be)](_0x3e9c30(0x1a7));_0x3deee8[_0x3e9c30(0x1b2)]===_0x3e9c30(0x1cd)&&(_0x1267c5=new XcrunCMD()['simctl'](),_0x1267c5[_0x3e9c30(0x19b)](_0x3deee8[_0x3e9c30(0x1b1)]),(0x0,child_process_1[_0x3e9c30(0x1c2)])(_0x1267c5[_0x3e9c30(0x1e1)]));(0x0,child_process_1[_0x3e9c30(0x1c2)])(_0x3e9c30(0x1e5)),console[_0x3e9c30(0x1be)](_0x3e9c30(0x1a6));const _0x392980=(0x0,path_1['join'])(_0x5f56a0,_0x3e9c30(0x1bb)+_0x33af97['name']+_0x3e9c30(0x1a3));_0x1267c5=new XcrunCMD()[_0x3e9c30(0x1e9)](),_0x1267c5[_0x3e9c30(0x1b0)](_0x3deee8[_0x3e9c30(0x1b1)],_0x392980),(0x0,child_process_1['execSync'])(_0x1267c5[_0x3e9c30(0x1e1)]),console[_0x3e9c30(0x1be)]('install\x20success'),console['log']('launch\x20app'),_0x1267c5=new XcrunCMD()['simctl'](),_0x1267c5[_0x3e9c30(0x1a4)](_0x3deee8[_0x3e9c30(0x1b1)],_0x33af97['id']),(0x0,child_process_1[_0x3e9c30(0x1c2)])(_0x1267c5[_0x3e9c30(0x1e1)]);}static[_0x35f3e1(0x1ca)](_0x573066){const _0x4ce4e4=_0x35f3e1;let _0x54d428=_0x573066[_0x4ce4e4(0x1a0)]('\x0a'),_0x191940=[],_0x1497eb=-0x1;for(let _0x4d7118=0x0;_0x4d7118<_0x54d428['length'];_0x4d7118++){if(_0x54d428[_0x4d7118][_0x4ce4e4(0x1c7)](_0x4ce4e4(0x19c)))_0x1497eb=_0x4d7118;else{if(_0x1497eb>0x0){if(_0x54d428[_0x4d7118][_0x4ce4e4(0x1c7)](_0x4ce4e4(0x1bf)))break;if(_0x54d428[_0x4d7118][_0x4ce4e4(0x1b8)]>0x0){const _0x79f0e4=_0x54d428[_0x4d7118][_0x4ce4e4(0x1a0)]('('),_0x2fe96a={'name':_0x79f0e4[0x0][_0x4ce4e4(0x1d0)](),'deviceId':_0x79f0e4[0x1]['split'](')')[0x0][_0x4ce4e4(0x1d0)](),'state':_0x79f0e4[0x2][_0x4ce4e4(0x1a0)](')')[0x0][_0x4ce4e4(0x1d0)]()};_0x191940[_0x4ce4e4(0x1c0)](_0x2fe96a);}}}}return _0x191940;}}exports[_0x35f3e1(0x1da)]=Xcrun;class XcrunCMD{constructor(){const _0x3c7bd9=_0x35f3e1;this[_0x3c7bd9(0x1e1)]=_0x3c7bd9(0x1e2);}['altool'](){const _0x26adca=_0x35f3e1;return this[_0x26adca(0x1e1)]+=_0x26adca(0x1ce),this;}[_0x35f3e1(0x1e9)](){const _0xcdb8e6=_0x35f3e1;return this[_0xcdb8e6(0x1e1)]+=_0xcdb8e6(0x1bd),this;}[_0x35f3e1(0x1dd)](){const _0x1b57d4=_0x35f3e1;return this['line']+=_0x1b57d4(0x1a1),this;}[_0x35f3e1(0x199)](_0x59ba0d){return this['line']+='\x20list\x20devices\x20\x22'+_0x59ba0d+'\x22',this;}[_0x35f3e1(0x1a5)](_0x360b44){const _0x2a0274=_0x35f3e1;return this[_0x2a0274(0x1e1)]+=_0x2a0274(0x197)+_0x360b44,this;}[_0x35f3e1(0x1b5)](_0x55c35d){return this['line']+='\x20--upload-app\x20-f\x20'+_0x55c35d,this;}[_0x35f3e1(0x1b6)](_0x291616){const _0x3b96e1=_0x35f3e1;return this[_0x3b96e1(0x1e1)]+='\x20--upload-package\x20'+_0x291616,this;}['authAccount'](_0x4c86d1,_0x5838b7){const _0x51da3b=_0x35f3e1;return this[_0x51da3b(0x1e1)]+=_0x51da3b(0x1c5)+_0x4c86d1+_0x51da3b(0x1c6)+_0x5838b7,this;}[_0x35f3e1(0x1c3)](_0x464be8,_0x4b0948){const _0x3d223d=_0x35f3e1;return this['line']+=_0x3d223d(0x1d5)+_0x464be8+_0x3d223d(0x1e6)+_0x4b0948,this;}[_0x35f3e1(0x1db)](_0x5e46e2){const _0x2e59ef=_0x35f3e1;return this[_0x2e59ef(0x1e1)]+=_0x2e59ef(0x1e0)+_0x5e46e2,this;}[_0x35f3e1(0x1d6)](_0x96e3b){const _0x15428f=_0x35f3e1;return this[_0x15428f(0x1e1)]+=_0x15428f(0x1a8)+_0x96e3b,this;}[_0x35f3e1(0x1ae)](_0x500ef1){const _0x3ce42b=_0x35f3e1;return this[_0x3ce42b(0x1e1)]+='\x20--bundle-version\x20'+_0x500ef1,this;}['verbose'](){const _0x3d1117=_0x35f3e1;return this['line']+=_0x3d1117(0x19f),this;}['shutdown'](){const _0x4f47a3=_0x35f3e1;return this[_0x4f47a3(0x1e1)]+=_0x4f47a3(0x1d9),this;}[_0x35f3e1(0x19b)](_0x3d9716){const _0x1a9048=_0x35f3e1;return this[_0x1a9048(0x1e1)]+=_0x1a9048(0x1d3)+_0x3d9716+'\x22',this;}[_0x35f3e1(0x1b0)](_0x549f23,_0x360969){const _0x55c9d7=_0x35f3e1;return this[_0x55c9d7(0x1e1)]+=_0x55c9d7(0x19d)+_0x549f23+'\x22\x20\x22'+_0x360969+'\x22',this;}['launch'](_0x35b87d,_0xcc2980){const _0x3f25a3=_0x35f3e1;return this[_0x3f25a3(0x1e1)]+=_0x3f25a3(0x1aa)+_0x35b87d+_0x3f25a3(0x1ac)+_0xcc2980+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"dist/index.js",
|
|
20
20
|
"bin",
|
|
21
21
|
"template",
|
|
22
|
-
"package.json"
|
|
22
|
+
"package.json",
|
|
23
|
+
"README.md"
|
|
23
24
|
],
|
|
24
25
|
"author": "",
|
|
25
26
|
"license": "ISC",
|