@webspatial/builder 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.d.ts +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.d.ts +1 -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 +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2207c7=_0x44f6;(function(_0x178151,_0x2d230e){const _0x514774=_0x44f6,_0x296732=_0x178151();while(!![]){try{const _0x27b26c=-parseInt(_0x514774(0x7b))/0x1*(-parseInt(_0x514774(0x66))/0x2)+-parseInt(_0x514774(0x74))/0x3+-parseInt(_0x514774(0x7d))/0x4+parseInt(_0x514774(0x6d))/0x5*(parseInt(_0x514774(0x7c))/0x6)+-parseInt(_0x514774(0x6a))/0x7+parseInt(_0x514774(0x6c))/0x8+-parseInt(_0x514774(0x67))/0x9*(-parseInt(_0x514774(0x70))/0xa);if(_0x27b26c===_0x2d230e)break;else _0x296732['push'](_0x296732['shift']());}catch(_0x2d2842){_0x296732['push'](_0x296732['shift']());}}}(_0x5bbb,0xb158c));Object['defineProperty'](exports,_0x2207c7(0x78),{'value':!![]});function _0x44f6(_0x1ab9ef,_0x23e8c8){const _0x5bbb34=_0x5bbb();return _0x44f6=function(_0x44f644,_0x470ef6){_0x44f644=_0x44f644-0x66;let _0x21fbc2=_0x5bbb34[_0x44f644];return _0x21fbc2;},_0x44f6(_0x1ab9ef,_0x23e8c8);}const Cli_1=require(_0x2207c7(0x68)),CustomError_1=require(_0x2207c7(0x72));module[_0x2207c7(0x73)]=async()=>{const _0x383cc3=_0x2207c7,_0x24385e=new Cli_1['Cli'](),_0x4c92ca=Cli_1[_0x383cc3(0x69)][_0x383cc3(0x75)],_0xa85b50=process[_0x383cc3(0x71)][_0x383cc3(0x6b)](0x2);let _0x206586;try{_0x206586=await _0x24385e['run'](_0xa85b50);}catch(_0x24d938){if(_0x24d938 instanceof CustomError_1[_0x383cc3(0x76)]){const _0x12e574=_0x24d938['customMessage'];Array['isArray'](_0x12e574)?_0x12e574[_0x383cc3(0x6f)](_0x16e542=>{const _0xeff8bd=_0x383cc3;_0x4c92ca['error'](_0x16e542[_0xeff8bd(0x77)]+':\x20'+_0x16e542[_0xeff8bd(0x7a)]);}):_0x4c92ca[_0x383cc3(0x6e)](_0x12e574[_0x383cc3(0x77)]+':\x20'+_0x12e574['message']);}else _0x4c92ca['error'](_0x24d938[_0x383cc3(0x7a)]);_0x206586=![];}!_0x206586?process[_0x383cc3(0x79)](0x1):process[_0x383cc3(0x79)](0x0);};function _0x5bbb(){const _0x1c81b9=['220384mOFHPZ','292707vBtTbY','./lib/Cli','Cli','4145463KGjvHP','slice','3998136oQzHVA','33095dyXXnd','error','forEach','80SKrKiw','argv','./lib/utils/CustomError','exports','2990784uJKFyl','log','CustomError','code','__esModule','exit','message','13ZRXtEU','408bSquED','1307960kDXLZD'];_0x5bbb=function(){return _0x1c81b9;};return _0x5bbb();}
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xcf9028=_0x1d10;(function(_0x976438,_0x33a051){const _0x5ac6b9=_0x1d10,_0x4f012c=_0x976438();while(!![]){try{const _0x202b72=-parseInt(_0x5ac6b9(0x144))/0x1*(parseInt(_0x5ac6b9(0x12c))/0x2)+parseInt(_0x5ac6b9(0x120))/0x3+-parseInt(_0x5ac6b9(0x13f))/0x4*(parseInt(_0x5ac6b9(0x142))/0x5)+parseInt(_0x5ac6b9(0x123))/0x6*(parseInt(_0x5ac6b9(0x125))/0x7)+parseInt(_0x5ac6b9(0x138))/0x8+-parseInt(_0x5ac6b9(0x146))/0x9*(-parseInt(_0x5ac6b9(0x130))/0xa)+-parseInt(_0x5ac6b9(0x12a))/0xb;if(_0x202b72===_0x33a051)break;else _0x4f012c['push'](_0x4f012c['shift']());}catch(_0x42d5e6){_0x4f012c['push'](_0x4f012c['shift']());}}}(_0x43ad,0x19c9c));function _0x1d10(_0x336a7b,_0x3a1ef9){const _0x43ad02=_0x43ad();return _0x1d10=function(_0x1d1055,_0x53c215){_0x1d1055=_0x1d1055-0x11f;let _0x5360b2=_0x43ad02[_0x1d1055];return _0x5360b2;},_0x1d10(_0x336a7b,_0x3a1ef9);}Object[_0xcf9028(0x131)](exports,_0xcf9028(0x13e),{'value':!![]}),exports[_0xcf9028(0x13a)]=void 0x0;const minimist=require(_0xcf9028(0x126)),semver_1=require(_0xcf9028(0x121)),Log_1=require('../lib/utils/Log'),FetchUtils_1_1=require('./utils/FetchUtils-1'),help_1=require(_0xcf9028(0x124)),build_1=require(_0xcf9028(0x133)),version_1=require('./cmds/version'),fetch_1=require(_0xcf9028(0x141));class Cli{async[_0xcf9028(0x135)](_0x2b05bb){const _0x39e4e2=_0xcf9028;if((0x0,semver_1[_0x39e4e2(0x127)])(process[_0x39e4e2(0x12f)][_0x39e4e2(0x139)])<0xe)throw new Error(_0x39e4e2(0x134)+process[_0x39e4e2(0x12f)][_0x39e4e2(0x139)]+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');FetchUtils_1_1[_0x39e4e2(0x143)][_0x39e4e2(0x12b)](fetch_1['fetch']),FetchUtils_1_1[_0x39e4e2(0x143)][_0x39e4e2(0x12d)](fetch_1[_0x39e4e2(0x128)]),FetchUtils_1_1[_0x39e4e2(0x143)][_0x39e4e2(0x145)](fetch_1[_0x39e4e2(0x140)]);const _0x153f9c=minimist(_0x2b05bb);let _0x211ccd=undefined;if(_0x153f9c['_'][_0x39e4e2(0x136)]===0x0){if(_0x153f9c[_0x39e4e2(0x13b)])_0x211ccd=_0x39e4e2(0x13b);else _0x153f9c[_0x39e4e2(0x129)]&&(_0x211ccd=_0x39e4e2(0x129));}else _0x211ccd=_0x153f9c['_'][0x0];!_0x211ccd&&(_0x211ccd=_0x39e4e2(0x129));switch(_0x211ccd){case _0x39e4e2(0x129):case'h':return await(0x0,help_1[_0x39e4e2(0x129)])(_0x153f9c);case _0x39e4e2(0x132):return await(0x0,build_1[_0x39e4e2(0x137)])(_0x153f9c);case _0x39e4e2(0x122):return await(0x0,build_1[_0x39e4e2(0x12e)])(_0x153f9c);case'run':return await(0x0,build_1['run'])(_0x153f9c);case'version':{return await(0x0,version_1['version'])();}default:throw new Error('\x22'+_0x211ccd+_0x39e4e2(0x147));}}}exports[_0xcf9028(0x13a)]=Cli,Cli[_0xcf9028(0x13c)]=new Log_1[(_0xcf9028(0x13d))](_0xcf9028(0x11f));function _0x43ad(){const _0x55c755=['help','2607979NDyCpj','setFetch','1930AmwtwK','setDownloadFile','store','versions','2730tvQXgr','defineProperty','build','./cmds/build','Current\x20Node.js\x20version\x20is\x20','run','length','start','1158528pFnfmL','node','Cli','version','log','ConsoleLog','__esModule','51464VlRwIO','decompressResponseBuffer','./utils/fetch','55WeTwmp','fetchUtils','47NaqxtC','setDecompressResponseBuffer','5886uxrlFW','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','webspatial-builder','287325PBdCSl','semver','publish','662790OsGgeg','./cmds/help','7Hzksus','minimist','major','downloadFile'];_0x43ad=function(){return _0x55c755;};return _0x43ad();}
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x27b78d=_0x44f6;(function(_0x4896a0,_0x35bedc){const _0x1bcd1c=_0x44f6,_0x362df9=_0x4896a0();while(!![]){try{const _0x92a43=parseInt(_0x1bcd1c(0x1dd))/0x1*(parseInt(_0x1bcd1c(0x1b6))/0x2)+parseInt(_0x1bcd1c(0x1c8))/0x3+parseInt(_0x1bcd1c(0x1bc))/0x4*(parseInt(_0x1bcd1c(0x1b9))/0x5)+parseInt(_0x1bcd1c(0x1c7))/0x6+-parseInt(_0x1bcd1c(0x1c9))/0x7+parseInt(_0x1bcd1c(0x1cf))/0x8*(-parseInt(_0x1bcd1c(0x1c3))/0x9)+-parseInt(_0x1bcd1c(0x1c2))/0xa*(parseInt(_0x1bcd1c(0x1d4))/0xb);if(_0x92a43===_0x35bedc)break;else _0x362df9['push'](_0x362df9['shift']());}catch(_0x347524){_0x362df9['push'](_0x362df9['shift']());}}}(_0x23ce,0x3abdd));function _0x44f6(_0x396464,_0x16b102){const _0x23cec8=_0x23ce();return _0x44f6=function(_0x44f696,_0x575c9e){_0x44f696=_0x44f696-0x1b4;let _0x48acf1=_0x23cec8[_0x44f696];return _0x48acf1;},_0x44f6(_0x396464,_0x16b102);}function _0x23ce(){const _0x9dd8bc=['name','172397EaGYFA','run','fromNet','./check','../resource','length','2jelppp','PWAGenerator','move\x20web\x20project:\x20ok','55hJreBF','log','generate\x20icon:\x20ok','36524aCyLSo','SpatialWebTest','runWithSimulator','com.SpatialWeb.test','defineProperty','ResourceManager','1690xMzIrE','553365eXjJNI','generateIcon','checkBuildParams','json','2501466AlIoJp','429897UHEtio','1995875VfOqiL','moveProjectFrom','start','generator','upload','store','24rRtLLx','version','../pwa','checkPlatformPath','project','7997oZTAsp','XcodeManager','buildType','-------------------\x20build\x20start\x20-------------------','../xcode','parseProject','teamId','platform'];_0x23ce=function(){return _0x9dd8bc;};return _0x23ce();}Object[_0x27b78d(0x1c0)](exports,'__esModule',{'value':!![]}),exports[_0x27b78d(0x1cb)]=start,exports[_0x27b78d(0x1ce)]=store,exports[_0x27b78d(0x1de)]=run;const pwa_1=require(_0x27b78d(0x1d1)),resource_1=require(_0x27b78d(0x1b4)),xcode_1=require(_0x27b78d(0x1d8)),check_1=require(_0x27b78d(0x1e0));async function start(_0x201aa2,_0x426577=![]){const _0x106960=_0x27b78d;var _0x15eeb1,_0x2e72ac;(0x0,check_1[_0x106960(0x1c5)])(_0x201aa2,_0x426577),resource_1[_0x106960(0x1c1)]['checkPlatformPath'](_0x201aa2[_0x106960(0x1db)]),console[_0x106960(0x1ba)](_0x106960(0x1d7));let _0x203113=await pwa_1[_0x106960(0x1b7)][_0x106960(0x1cc)](_0x201aa2,_0x426577);!_0x203113[_0x106960(0x1df)]&&(await resource_1['ResourceManager'][_0x106960(0x1ca)]((_0x15eeb1=_0x201aa2[_0x106960(0x1d3)])!==null&&_0x15eeb1!==void 0x0?_0x15eeb1:'dist'),console[_0x106960(0x1ba)](_0x106960(0x1b8)));let _0x2529be;return((_0x2e72ac=_0x203113[_0x106960(0x1c6)]['icons'])===null||_0x2e72ac===void 0x0?void 0x0:_0x2e72ac[_0x106960(0x1b5)])&&_0x426577&&(_0x2529be=await resource_1['ResourceManager'][_0x106960(0x1c4)](_0x203113)),console['log'](_0x106960(0x1bb)),await xcode_1[_0x106960(0x1d5)][_0x106960(0x1d9)]({'icon':_0x2529be,'manifestInfo':_0x203113,'teamId':_0x201aa2[_0x106960(0x1da)],'version':_0x201aa2[_0x106960(0x1d0)],'buildType':_0x201aa2[_0x106960(0x1d6)],'export':_0x201aa2['export']},_0x426577),console[_0x106960(0x1ba)]('-------------------\x20build\x20end\x20-------------------'),_0x203113;}async function store(_0x112ca1){const _0x53bee4=_0x27b78d;resource_1['ResourceManager'][_0x53bee4(0x1d2)](_0x112ca1[_0x53bee4(0x1db)]),(0x0,check_1['checkStoreParams'])(_0x112ca1);let _0xbaa008={'name':_0x53bee4(0x1bd)};_0x112ca1[_0x53bee4(0x1d6)]='app-store-connect';if(_0x112ca1['name'])_0xbaa008['name']=_0x112ca1[_0x53bee4(0x1dc)];else{const _0x2c2701=await start(_0x112ca1);if(!_0x2c2701)return![];_0xbaa008[_0x53bee4(0x1dc)]=_0x2c2701[_0x53bee4(0x1c6)][_0x53bee4(0x1dc)];}return await xcode_1[_0x53bee4(0x1d5)][_0x53bee4(0x1cd)](_0x112ca1,_0xbaa008),!![];}async function run(_0x2b13d8){const _0x4ced72=_0x27b78d;let _0x21f40a={'name':_0x4ced72(0x1bd),'id':_0x4ced72(0x1bf)};const _0x4aa4c7=await start(_0x2b13d8,!![]);if(!_0x4aa4c7)return![];return _0x21f40a[_0x4ced72(0x1dc)]=_0x4aa4c7[_0x4ced72(0x1c6)][_0x4ced72(0x1dc)],_0x21f40a['id']=_0x4aa4c7[_0x4ced72(0x1c6)]['id'],await xcode_1[_0x4ced72(0x1d5)][_0x4ced72(0x1be)](_0x21f40a),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4919a8=_0xe89a;(function(_0x39aaab,_0x109f01){const _0x635a15=_0xe89a,_0x1bae04=_0x39aaab();while(!![]){try{const _0xd8ec7f=-parseInt(_0x635a15(0x18a))/0x1*(parseInt(_0x635a15(0x180))/0x2)+-parseInt(_0x635a15(0x182))/0x3+-parseInt(_0x635a15(0x181))/0x4+parseInt(_0x635a15(0x18f))/0x5+-parseInt(_0x635a15(0x17b))/0x6*(parseInt(_0x635a15(0x188))/0x7)+-parseInt(_0x635a15(0x18e))/0x8+parseInt(_0x635a15(0x184))/0x9;if(_0xd8ec7f===_0x109f01)break;else _0x1bae04['push'](_0x1bae04['shift']());}catch(_0x191c52){_0x1bae04['push'](_0x1bae04['shift']());}}}(_0x37b9,0x60973));Object[_0x4919a8(0x17c)](exports,_0x4919a8(0x187),{'value':!![]}),exports[_0x4919a8(0x18d)]=checkBuildParams,exports[_0x4919a8(0x17a)]=checkStoreParams;const validate_1=require(_0x4919a8(0x18b));function _0xe89a(_0x4146b5,_0x32c489){const _0x37b95b=_0x37b9();return _0xe89a=function(_0xe89af3,_0x5d3f9c){_0xe89af3=_0xe89af3-0x17a;let _0x215f27=_0x37b95b[_0xe89af3];return _0x215f27;},_0xe89a(_0x4146b5,_0x32c489);}function checkBuildParams(_0x506f28,_0x3a85f2=![]){const _0xd59219=_0x4919a8;if(_0x506f28[_0xd59219(0x183)]&&_0x506f28[_0xd59219(0x190)])throw new Error(_0xd59219(0x18c));if(!_0x506f28['teamId']&&!_0x3a85f2)throw new Error(_0xd59219(0x192));if(_0x506f28['base']){if((0x0,validate_1['validateURL'])(_0x506f28['base']))try{const _0x1f070e=new URL(_0x506f28['base']);if(_0x1f070e[_0xd59219(0x17e)]||_0x1f070e[_0xd59219(0x191)])throw new Error(_0xd59219(0x185));}catch(_0x5ef931){throw new Error(_0xd59219(0x185));}else{const _0x122fe0=/(\?.*|\.\w+|#.*)$/,_0x2f2224=_0x506f28[_0xd59219(0x189)][_0xd59219(0x186)]('/')[_0xd59219(0x17d)]()||'';if(_0x122fe0[_0xd59219(0x17f)](_0x2f2224))throw new Error('The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.');}}}function _0x37b9(){const _0x7f37eb=['The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','split','__esModule','3472147hqhdTM','base','36SiiUHZ','../pwa/validate','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','checkBuildParams','3930328lDIMNX','3319135bpmDBn','manifest-url','hash','--teamId\x20is\x20required','version\x20is\x20required','version','checkStoreParams','6nhYUHi','defineProperty','pop','search','test','27586BIpnNZ','1112984JRUqAA','1281159IcJPHG','manifest','17288703fxsPQK'];_0x37b9=function(){return _0x7f37eb;};return _0x37b9();}function checkStoreParams(_0x3c8758){const _0x496b31=_0x4919a8;if(!(_0x3c8758['u']&&_0x3c8758['p']))throw new Error('--u\x20and\x20--p\x20is\x20required');if(!_0x3c8758[_0x496b31(0x194)])throw new Error(_0x496b31(0x193));}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x49cd1b=_0x5797;(function(_0x2a059a,_0x40c957){const _0x2ceec2=_0x5797,_0x567351=_0x2a059a();while(!![]){try{const _0x1cc4aa=parseInt(_0x2ceec2(0xfc))/0x1*(-parseInt(_0x2ceec2(0x115))/0x2)+-parseInt(_0x2ceec2(0x117))/0x3+-parseInt(_0x2ceec2(0x10f))/0x4*(parseInt(_0x2ceec2(0x100))/0x5)+-parseInt(_0x2ceec2(0xfa))/0x6+parseInt(_0x2ceec2(0x10d))/0x7+parseInt(_0x2ceec2(0x110))/0x8*(parseInt(_0x2ceec2(0x10e))/0x9)+-parseInt(_0x2ceec2(0xf9))/0xa*(-parseInt(_0x2ceec2(0x103))/0xb);if(_0x1cc4aa===_0x40c957)break;else _0x567351['push'](_0x567351['shift']());}catch(_0x413152){_0x567351['push'](_0x567351['shift']());}}}(_0x488c,0x3507c));function _0x5797(_0x22a3da,_0x63baff){const _0x488c0d=_0x488c();return _0x5797=function(_0x5797b4,_0x78b4cf){_0x5797b4=_0x5797b4-0xf9;let _0x4ff958=_0x488c0d[_0x5797b4];return _0x4ff958;},_0x5797(_0x22a3da,_0x63baff);}function _0x488c(){const _0x203f20=['3212824lubWBq','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','__esModule','join','ConsoleLog','162064dpjGnR','main','929391pRZlsz','4906540XYfppv','1548636WbtJbM','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','2QxTxbp','webspatial\x20[command]\x20<options>','defineProperty','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','10gtetQT','get','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>','11OFCpTq','help','dev','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','publish','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','Usage:','476112VuyNOa','9HaecMg','26188PSlaGl'];_0x488c=function(){return _0x203f20;};return _0x488c();}Object[_0x49cd1b(0xfe)](exports,_0x49cd1b(0x112),{'value':!![]}),exports[_0x49cd1b(0x104)]=help;const Log_1=require('../utils/Log'),HELP_MESSAGES=new Map([['main',[_0x49cd1b(0xfd),'','','help\x20................\x20shows\x20this\x20menu',_0x49cd1b(0x109)+_0x49cd1b(0x10b),_0x49cd1b(0x108),'publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect'][_0x49cd1b(0x113)]('\x0a')],['build',[_0x49cd1b(0x10c),'','',_0x49cd1b(0x106),'','',_0x49cd1b(0x107)]['join']('\x0a')],[_0x49cd1b(0x105),[_0x49cd1b(0x10c),'','',_0x49cd1b(0xfb),'','',_0x49cd1b(0x111)][_0x49cd1b(0x113)]('\x0a')],[_0x49cd1b(0x10a),['Usage:','','',_0x49cd1b(0x102),'','','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','','',_0x49cd1b(0xff)][_0x49cd1b(0x113)]('\x0a')]]);async function help(_0x472a70,_0x236b3d=new Log_1[(_0x49cd1b(0x114))]('help')){const _0x32ac70=_0x49cd1b,_0x5c5d09=_0x472a70['_'][0x1],_0x3b1ad7=HELP_MESSAGES[_0x32ac70(0x101)](_0x5c5d09)||HELP_MESSAGES['get'](_0x32ac70(0x116));return _0x236b3d['info'](_0x3b1ad7),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3615(_0x5aaf46,_0x31d45a){const _0x252cab=_0x252c();return _0x3615=function(_0x36154f,_0x4a1ff8){_0x36154f=_0x36154f-0x169;let _0x25b81a=_0x252cab[_0x36154f];return _0x25b81a;},_0x3615(_0x5aaf46,_0x31d45a);}const _0x269c24=_0x3615;function _0x252c(){const _0x4450ff=['promises','__esModule','parse','ConsoleLog','637157mgqJks','22157163AUsXYz','version','readFile','6423130DbiiWL','13869zqrYFJ','466NjReTw','defineProperty','toString','105cMyygm','../../../package.json','4375992PvKikh','info','1644952ExPTJZ','path','88254bWEInS'];_0x252c=function(){return _0x4450ff;};return _0x252c();}(function(_0x53da03,_0x116df5){const _0x7cfb15=_0x3615,_0x1a6b31=_0x53da03();while(!![]){try{const _0x5210a1=-parseInt(_0x7cfb15(0x173))/0x1+parseInt(_0x7cfb15(0x179))/0x2*(parseInt(_0x7cfb15(0x178))/0x3)+-parseInt(_0x7cfb15(0x16c))/0x4+parseInt(_0x7cfb15(0x17c))/0x5*(-parseInt(_0x7cfb15(0x16e))/0x6)+-parseInt(_0x7cfb15(0x177))/0x7+-parseInt(_0x7cfb15(0x16a))/0x8+parseInt(_0x7cfb15(0x174))/0x9;if(_0x5210a1===_0x116df5)break;else _0x1a6b31['push'](_0x1a6b31['shift']());}catch(_0x5ace56){_0x1a6b31['push'](_0x1a6b31['shift']());}}}(_0x252c,0xaf189));Object[_0x269c24(0x17a)](exports,_0x269c24(0x170),{'value':!![]}),exports[_0x269c24(0x175)]=version;const fs=require('fs'),path=require(_0x269c24(0x16d)),Log_1=require('../utils/Log');async function version(_0x2866e6=new Log_1[(_0x269c24(0x172))](_0x269c24(0x175))){const _0x1dd420=_0x269c24,_0x15879c=path['join'](__dirname,_0x1dd420(0x169)),_0x66d309=await(await fs[_0x1dd420(0x16f)][_0x1dd420(0x176)](_0x15879c))[_0x1dd420(0x17b)](),_0x596183=JSON[_0x1dd420(0x171)](_0x66d309);return _0x2866e6[_0x1dd420(0x16b)](_0x596183[_0x1dd420(0x175)]),!![];}
|
package/dist/lib/pwa/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function configId(manifestJson: Record<string, any>, bundleId: string): void;
|
|
2
|
-
export declare function configStartUrl(manifestJson: Record<string, any>, base: string):
|
|
2
|
+
export declare function configStartUrl(manifestJson: Record<string, any>, base: string): any;
|
|
3
3
|
export declare function configScope(manifestJson: Record<string, any>): void;
|
|
4
4
|
export declare function configDisplay(manifestJson: Record<string, any>): void;
|
|
5
5
|
export declare function configMainScene(manifestJson: Record<string, any>): void;
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0xa1cf(_0x2adc2d,_0x35ac9d){const _0x59828c=_0x5982();return _0xa1cf=function(_0xa1cf9,_0x5917ad){_0xa1cf9=_0xa1cf9-0x12c;let _0x45b539=_0x59828c[_0xa1cf9];return _0x45b539;},_0xa1cf(_0x2adc2d,_0x35ac9d);}const _0x412840=_0xa1cf;(function(_0x149f7f,_0x5c4068){const _0x3220d4=_0xa1cf,_0xb96aa6=_0x149f7f();while(!![]){try{const _0x1f892f=-parseInt(_0x3220d4(0x162))/0x1*(-parseInt(_0x3220d4(0x134))/0x2)+parseInt(_0x3220d4(0x138))/0x3*(parseInt(_0x3220d4(0x151))/0x4)+parseInt(_0x3220d4(0x152))/0x5+parseInt(_0x3220d4(0x12c))/0x6*(-parseInt(_0x3220d4(0x141))/0x7)+parseInt(_0x3220d4(0x15f))/0x8*(-parseInt(_0x3220d4(0x136))/0x9)+-parseInt(_0x3220d4(0x13b))/0xa*(-parseInt(_0x3220d4(0x166))/0xb)+parseInt(_0x3220d4(0x168))/0xc*(-parseInt(_0x3220d4(0x161))/0xd);if(_0x1f892f===_0x5c4068)break;else _0xb96aa6['push'](_0xb96aa6['shift']());}catch(_0x55886e){_0xb96aa6['push'](_0xb96aa6['shift']());}}}(_0x5982,0x735b1));Object[_0x412840(0x15e)](exports,'__esModule',{'value':!![]}),exports[_0x412840(0x164)]=void 0x0,exports['configId']=configId,exports[_0x412840(0x12e)]=configStartUrl,exports['configScope']=configScope,exports['configDisplay']=configDisplay,exports[_0x412840(0x177)]=configMainScene,exports[_0x412840(0x15d)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require(_0x412840(0x130)),path_1=require(_0x412840(0x176));function configId(_0x1aa060,_0x1b9310){const _0x99ccd1=_0x412840;if(_0x1b9310)_0x1aa060['id']=_0x1b9310;else{const _0x5b1136=new URL(_0x1aa060['id']);let _0x3b29cd=_0x5b1136[_0x99ccd1(0x12d)][_0x99ccd1(0x133)]('.')[_0x99ccd1(0x15b)]();_0x1aa060['id']=_0x3b29cd[_0x99ccd1(0x174)]('.');}}function configStartUrl(_0x381c95,_0x31b639){const _0x34743e=_0x412840,_0x32bd10=(0x0,validate_1[_0x34743e(0x15a)])(_0x381c95[_0x34743e(0x143)]),_0x1a2609=(0x0,validate_1['validateURL'])(_0x31b639);let _0x312d2b=_0x381c95[_0x34743e(0x143)];if(!_0x32bd10&&!_0x1a2609){const _0x3b1d69=(0x0,path_1[_0x34743e(0x13c)])(_0x34743e(0x159)),_0x5a97a8=(0x0,path_1['resolve'])(_0x3b1d69,_0x31b639,_0x312d2b),_0x3fa22f=(0x0,path_1[_0x34743e(0x13d)])(_0x5a97a8),_0x1f5635=(0x0,path_1[_0x34743e(0x174)])(_0x3b1d69,_0x3fa22f);_0x312d2b=(0x0,path_1['relative'])(process['cwd'](),_0x1f5635)[_0x34743e(0x170)](/^(\.\.\/)+/,'./')[_0x34743e(0x170)](/\/$/,'');}else{if(_0x32bd10&&!_0x1a2609){const _0x4967d9=new URL(_0x312d2b),_0x3dd68c=_0x4967d9[_0x34743e(0x14c)]+_0x4967d9[_0x34743e(0x178)]+_0x4967d9[_0x34743e(0x16b)];let _0x414689=new URL(_0x31b639,_0x4967d9['origin']);_0x312d2b=new URL(_0x3dd68c,_0x414689)[_0x34743e(0x132)];}else{if(!_0x32bd10&&_0x1a2609){if(_0x312d2b[_0x34743e(0x175)]('/')){const _0x2b0f9a=new URL(_0x31b639);_0x312d2b=_0x2b0f9a[_0x34743e(0x14f)]+(0x0,path_1['join'])(_0x2b0f9a['pathname'],_0x312d2b);}else _0x312d2b=new URL(_0x312d2b,_0x31b639)['href'];}else{if(_0x32bd10&&_0x1a2609){const _0x35cc37=new URL(_0x312d2b),_0x47faac=new URL(_0x31b639),_0xf086a9=_0x35cc37[_0x34743e(0x14c)]+_0x35cc37['search']+_0x35cc37[_0x34743e(0x16b)];_0x312d2b=new URL(_0xf086a9,_0x47faac[_0x34743e(0x14f)]+_0x47faac[_0x34743e(0x14c)])[_0x34743e(0x132)];}}}}return _0x312d2b;}function configScope(_0x48d0b9){const _0xee0f4b=_0x412840;var _0x363158;let _0x529c58=(_0x363158=_0x48d0b9[_0xee0f4b(0x144)])!==null&&_0x363158!==void 0x0?_0x363158:'';const _0x165f5c=(0x0,validate_1['validateURL'])(_0x48d0b9[_0xee0f4b(0x143)]),_0x22134a=(0x0,validate_1['validateURL'])(_0x529c58);if(_0x165f5c&&_0x22134a){const _0x57d1bd=new URL(_0x529c58),_0x1c148e=new URL(_0x48d0b9[_0xee0f4b(0x143)]);(_0x57d1bd[_0xee0f4b(0x12d)]!==_0x1c148e['host']||_0x48d0b9[_0xee0f4b(0x143)][_0xee0f4b(0x14b)](_0x529c58)!==0x0)&&(_0x529c58=(0x0,utils_1[_0xee0f4b(0x158)])(_0x48d0b9[_0xee0f4b(0x143)]));}else{if(_0x165f5c&&!_0x22134a)_0x529c58=new URL(_0x529c58,_0x48d0b9[_0xee0f4b(0x143)])[_0xee0f4b(0x132)];else{if(!_0x165f5c&&_0x22134a){const _0x1daa09=_0x48d0b9[_0xee0f4b(0x143)][_0xee0f4b(0x170)](/\/[^\/]+$/,'');_0x529c58=(0x0,path_1[_0xee0f4b(0x13d)])(_0x1daa09+'/');}else _0x529c58=(0x0,path_1['join'])((0x0,utils_1['parseRouter'])(_0x48d0b9['start_url']),_0x529c58);}}_0x48d0b9[_0xee0f4b(0x144)]=_0x529c58;}function configDisplay(_0x50c9f3){const _0x296722=_0x412840;let _0x3ae28a=_0x50c9f3[_0x296722(0x172)];_0x3ae28a!==_0x296722(0x169)&&_0x3ae28a!==_0x296722(0x153)&&(_0x3ae28a=_0x296722(0x153));if(_0x50c9f3[_0x296722(0x171)]&&_0x50c9f3[_0x296722(0x171)]['length']>0x0){const _0x19c207=_0x50c9f3['display_override']['indexOf'](_0x296722(0x169)),_0x1aee79=_0x50c9f3['display_override'][_0x296722(0x14b)]('standalone');if(_0x19c207>=0x0&&_0x1aee79>=0x0)_0x3ae28a=_0x1aee79>_0x19c207?_0x296722(0x153):'minimal-ui';else{if(_0x19c207>=0x0)_0x3ae28a='minimal-ui';else _0x1aee79>=0x0&&(_0x3ae28a=_0x296722(0x153));}}_0x50c9f3[_0x296722(0x172)]=_0x3ae28a;}function configMainScene(_0x4ef7b3){const _0xbc7e4a=_0x412840;var _0x4493f7,_0x434b03;const _0x46f5b5=['automatic',_0xbc7e4a(0x156),_0xbc7e4a(0x135)];let _0x55bbf6={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0x4ef7b3['xr_main_scene']){if(typeof _0x4ef7b3[_0xbc7e4a(0x131)]===_0xbc7e4a(0x13e))_0x55bbf6['defaultSize']['width']=Number((_0x4493f7=_0x4ef7b3['xr_main_scene'][_0xbc7e4a(0x155)])===null||_0x4493f7===void 0x0?void 0x0:_0x4493f7[_0xbc7e4a(0x13a)])>0x0?_0x4ef7b3[_0xbc7e4a(0x131)][_0xbc7e4a(0x155)]['width']:0x500,_0x55bbf6[_0xbc7e4a(0x148)][_0xbc7e4a(0x163)]=Number((_0x434b03=_0x4ef7b3[_0xbc7e4a(0x131)][_0xbc7e4a(0x155)])===null||_0x434b03===void 0x0?void 0x0:_0x434b03[_0xbc7e4a(0x163)])>0x0?_0x4ef7b3[_0xbc7e4a(0x131)][_0xbc7e4a(0x155)][_0xbc7e4a(0x163)]:0x500,_0x55bbf6[_0xbc7e4a(0x16a)]=_0x46f5b5['includes'](_0x4ef7b3[_0xbc7e4a(0x131)]['resizability'])?_0x4ef7b3[_0xbc7e4a(0x131)][_0xbc7e4a(0x16a)]:_0xbc7e4a(0x139),_0x4ef7b3[_0xbc7e4a(0x16f)]=_0x55bbf6;else typeof _0x4ef7b3[_0xbc7e4a(0x131)]===_0xbc7e4a(0x15c)&&(_0x4ef7b3[_0xbc7e4a(0x16f)]=_0xbc7e4a(0x147));}}function _0x5982(){const _0x55563d=['host','configStartUrl','sftp','./validate','xr_main_scene','href','split','14PZeFXB','contentSize','27NdxDSY','splice','13854kBgqQD','automatic','width','30znsZKY','resolve','normalize','object','web+','ircs','35pDfagZ','matrix','start_url','scope','length','wtai','dynamic','defaultSize','url','ssh','indexOf','pathname','mailto','tel','origin','protocol','292yaDhPx','2876060sMXhSz','standalone','xmpp','default_size','contentMinSize','urn','parseRouter','./static-web','validateURL','reverse','string','configDeeplink','defineProperty','1285448AUSoOg','nntp','3378583mklkGT','58839IWbipX','height','safelist','smsto','1791229krGnPH','protocol_handlers','12vRwqVZ','minimal-ui','resizability','hash','includes','sms','sip','mainScene','replace','display_override','display','irc','join','startsWith','path','configMainScene','search','717942MeTaqD'];_0x5982=function(){return _0x55563d;};return _0x5982();}function configDeeplink(_0x40455e){const _0x6237fe=_0x412840;if(_0x40455e[_0x6237fe(0x167)]&&_0x40455e[_0x6237fe(0x167)][_0x6237fe(0x145)]>0x0)for(var _0x4a75c8=0x0;_0x4a75c8<_0x40455e[_0x6237fe(0x167)][_0x6237fe(0x145)];_0x4a75c8++){const _0x12c12a=_0x40455e[_0x6237fe(0x167)][_0x4a75c8];if(_0x12c12a[_0x6237fe(0x150)]&&(exports[_0x6237fe(0x164)][_0x6237fe(0x16c)](_0x12c12a[_0x6237fe(0x150)])||_0x12c12a[_0x6237fe(0x150)][_0x6237fe(0x14b)](_0x6237fe(0x13f))===0x0)){if(!((0x0,validate_1[_0x6237fe(0x15a)])(_0x12c12a['url'])&&_0x12c12a[_0x6237fe(0x149)][_0x6237fe(0x14b)](_0x40455e[_0x6237fe(0x144)])<0x0))continue;}_0x40455e['protocol_handlers'][_0x6237fe(0x137)](_0x4a75c8,0x1),_0x4a75c8--;}}exports[_0x412840(0x164)]=['bitcoin','ftp','ftps','geo','im',_0x412840(0x173),_0x412840(0x140),'magnet',_0x412840(0x14d),_0x412840(0x142),'mms','news',_0x412840(0x160),'openpgp4fpr',_0x412840(0x12f),_0x412840(0x16e),_0x412840(0x16d),_0x412840(0x165),_0x412840(0x14a),_0x412840(0x14e),_0x412840(0x157),'webcal',_0x412840(0x146),_0x412840(0x154)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x56b88a=_0x5402;function _0x2bc7(){const _0x296af1=['WebSpatialTest','start_url','1890795JEGahi','checkId','Cli','configScope','__esModule','70351IIYRRC','manifest-url','useDefaultManifestJson','config','16jKpyLZ','2030310ikQpDC','./config','cwd','join','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found','PWAGenerator','../resource/load','existsSync','138242frTLxp','manifest','1797318NHBzHV','defineProperty','defaultManifestJson','35420PcHQNJ','7nXljsR','validate','check\x20manifest.json:\x20ok','1145DQRisu','json','checkIcons','loadJsonFromNet','minimal-ui','loadJsonFromDisk','public/manifest.webmanifest','888WwJFAY','6goGutS','bundle-id','1001vWWZwn','path','configDisplay','1588LeFuDP','log','base','configDeeplink','warn'];_0x2bc7=function(){return _0x296af1;};return _0x2bc7();}(function(_0x27fcb6,_0xb7909c){const _0x210c1f=_0x5402,_0x247e0f=_0x27fcb6();while(!![]){try{const _0x141d42=-parseInt(_0x210c1f(0x15c))/0x1*(-parseInt(_0x210c1f(0x17a))/0x2)+parseInt(_0x210c1f(0x157))/0x3+-parseInt(_0x210c1f(0x17f))/0x4*(parseInt(_0x210c1f(0x172))/0x5)+parseInt(_0x210c1f(0x161))/0x6*(parseInt(_0x210c1f(0x16f))/0x7)+parseInt(_0x210c1f(0x160))/0x8*(parseInt(_0x210c1f(0x16b))/0x9)+parseInt(_0x210c1f(0x16e))/0xa*(-parseInt(_0x210c1f(0x17c))/0xb)+parseInt(_0x210c1f(0x179))/0xc*(-parseInt(_0x210c1f(0x169))/0xd);if(_0x141d42===_0xb7909c)break;else _0x247e0f['push'](_0x247e0f['shift']());}catch(_0x195fab){_0x247e0f['push'](_0x247e0f['shift']());}}}(_0x2bc7,0x5c84c));Object[_0x56b88a(0x16c)](exports,_0x56b88a(0x15b),{'value':!![]}),exports[_0x56b88a(0x166)]=void 0x0;const path_1=require(_0x56b88a(0x17d)),config_1=require(_0x56b88a(0x162)),load_1=require(_0x56b88a(0x167)),validate_1=require('./validate'),fs=require('fs'),Cli_1=require('../Cli');function _0x5402(_0x458a54,_0x1a21ce){const _0x2bc7e4=_0x2bc7();return _0x5402=function(_0x5402a7,_0x36a74a){_0x5402a7=_0x5402a7-0x154;let _0x36d8a9=_0x2bc7e4[_0x5402a7];return _0x36d8a9;},_0x5402(_0x458a54,_0x1a21ce);}class PWAGenerator{static async['generator'](_0x3bd265,_0x5ae3e6=![]){const _0x19f684=_0x56b88a;let _0x1c155c=await this[_0x19f684(0x170)](_0x3bd265,_0x5ae3e6);return console[_0x19f684(0x180)](_0x19f684(0x171)),await this[_0x19f684(0x15f)](_0x1c155c,_0x3bd265,_0x5ae3e6),console['log']('reset\x20manifest.json:\x20ok'),_0x1c155c;}static async[_0x56b88a(0x170)](_0x9c24a3,_0x1ea3c4=![]){const _0x1d3d83=_0x56b88a;var _0x1ea7f4,_0x298edb;let _0x481576={},_0x16000b='',_0x1b7bea=![],_0x5cafa5=![];if(_0x9c24a3['manifest-url'])_0x16000b=_0x9c24a3[_0x1d3d83(0x15d)],_0x1b7bea=!![],_0x481576=await(0x0,load_1[_0x1d3d83(0x175)])(_0x9c24a3[_0x1d3d83(0x15d)]);else{_0x9c24a3[_0x1d3d83(0x16a)]?_0x16000b=(0x0,path_1[_0x1d3d83(0x164)])(process[_0x1d3d83(0x163)](),_0x9c24a3[_0x1d3d83(0x16a)]):(_0x16000b=(0x0,path_1['join'])(process[_0x1d3d83(0x163)](),'public/manifest.json'),!fs[_0x1d3d83(0x168)](_0x16000b)&&(_0x16000b=(0x0,path_1[_0x1d3d83(0x164)])(process[_0x1d3d83(0x163)](),_0x1d3d83(0x178))));if(!fs[_0x1d3d83(0x168)](_0x16000b)){if(_0x1ea3c4)_0x5cafa5=!![],Cli_1[_0x1d3d83(0x159)][_0x1d3d83(0x180)][_0x1d3d83(0x154)]('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode');else throw new Error(_0x1d3d83(0x165));}_0x481576=_0x5cafa5?this['defaultManifestJson']:await(0x0,load_1[_0x1d3d83(0x177)])(_0x16000b),this[_0x1d3d83(0x15e)]=_0x5cafa5;}(0x0,validate_1['checkManifestJson'])(_0x481576,_0x1ea3c4);let _0x4e44c1=(0x0,config_1['configStartUrl'])(_0x481576,(_0x1ea7f4=_0x9c24a3[_0x1d3d83(0x181)])!==null&&_0x1ea7f4!==void 0x0?_0x1ea7f4:'');var _0x791a63=(0x0,validate_1['checkStartUrl'])(_0x4e44c1,_0x16000b,_0x1b7bea,_0x1ea3c4);_0x481576[_0x1d3d83(0x156)]=_0x4e44c1;if(!_0x1ea3c4)(0x0,validate_1[_0x1d3d83(0x158)])(_0x481576,(_0x298edb=_0x9c24a3['bundle-id'])!==null&&_0x298edb!==void 0x0?_0x298edb:'');return await(0x0,validate_1[_0x1d3d83(0x174)])(_0x481576,_0x16000b,_0x1ea3c4),{'json':_0x481576,'url':_0x16000b,'fromNet':_0x791a63};}static[_0x56b88a(0x15f)](_0x26d622,_0x496d41,_0x1c2db9){const _0x437dd4=_0x56b88a;var _0xd51fa8;if(!_0x1c2db9)(0x0,config_1['configId'])(_0x26d622[_0x437dd4(0x173)],(_0xd51fa8=_0x496d41[_0x437dd4(0x17b)])!==null&&_0xd51fa8!==void 0x0?_0xd51fa8:'');(0x0,config_1[_0x437dd4(0x15a)])(_0x26d622[_0x437dd4(0x173)]),(0x0,config_1[_0x437dd4(0x17e)])(_0x26d622[_0x437dd4(0x173)]),(0x0,config_1[_0x437dd4(0x182)])(_0x26d622[_0x437dd4(0x173)]),(0x0,config_1['configMainScene'])(_0x26d622[_0x437dd4(0x173)]);}}exports['PWAGenerator']=PWAGenerator,PWAGenerator['DisplayModes']=['standalone',_0x56b88a(0x176)],PWAGenerator[_0x56b88a(0x16d)]={'name':_0x56b88a(0x155),'display':'minimal-ui','start_url':'/','scope':'/'},PWAGenerator[_0x56b88a(0x15e)]=![];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function checkManifestJson(manifestJson: Record<string, any>, isDev?: boolean): void;
|
|
2
|
-
export declare function checkStartUrl(
|
|
2
|
+
export declare function checkStartUrl(startUrl: string, manifestUrl: string, isNet: boolean, isDev?: boolean): boolean;
|
|
3
3
|
export declare function checkIcons(manifest: Record<string, any>, manifestUrl: string, isDev?: boolean): Promise<void>;
|
|
4
4
|
export declare function checkId(manifest: Record<string, any>, bundleId: string): void;
|
|
5
5
|
export declare function validateURL(url: string): boolean;
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2d84(_0x37dacd,_0x1e06a1){const _0x1ca44a=_0x1ca4();return _0x2d84=function(_0x2d8452,_0x20fcef){_0x2d8452=_0x2d8452-0xc5;let _0x30ba1f=_0x1ca44a[_0x2d8452];return _0x30ba1f;},_0x2d84(_0x37dacd,_0x1e06a1);}const _0x482218=_0x2d84;(function(_0x497752,_0xebd279){const _0x5d10cb=_0x2d84,_0x381e95=_0x497752();while(!![]){try{const _0x387b2d=parseInt(_0x5d10cb(0xde))/0x1+parseInt(_0x5d10cb(0xc8))/0x2+parseInt(_0x5d10cb(0xdd))/0x3+parseInt(_0x5d10cb(0xf3))/0x4+parseInt(_0x5d10cb(0xf0))/0x5+parseInt(_0x5d10cb(0xd0))/0x6+-parseInt(_0x5d10cb(0xc9))/0x7;if(_0x387b2d===_0xebd279)break;else _0x381e95['push'](_0x381e95['shift']());}catch(_0x5c0d65){_0x381e95['push'](_0x381e95['shift']());}}}(_0x1ca4,0xd3e44));Object[_0x482218(0xcc)](exports,'__esModule',{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x482218(0xca)]=checkStartUrl,exports[_0x482218(0xdf)]=checkIcons,exports['checkId']=checkId,exports[_0x482218(0xe1)]=validateURL;const path_1=require(_0x482218(0xdc)),CustomError_1=require(_0x482218(0xd7)),utils_1=require('../utils/utils'),imageHelper_1=require(_0x482218(0xd3)),load_1=require('../resource/load'),Cli_1=require('../Cli');function checkManifestJson(_0x2ed198,_0x3ad087=![]){const _0x3fd9dd=_0x482218;var _0x59c78f;const _0x38a98e=[];!_0x2ed198[_0x3fd9dd(0xd8)]&&!_0x2ed198[_0x3fd9dd(0xee)]&&!_0x3ad087&&_0x38a98e['push']({'code':0xbbe,'message':_0x3fd9dd(0xce),'message_staring_params':{}});!((_0x59c78f=_0x2ed198[_0x3fd9dd(0xd4)])===null||_0x59c78f===void 0x0?void 0x0:_0x59c78f[_0x3fd9dd(0xe7)])&&!_0x3ad087&&_0x38a98e[_0x3fd9dd(0xcb)]({'code':0xbbf,'message':_0x3fd9dd(0xf5),'message_staring_params':{}});!_0x2ed198['start_url']&&_0x38a98e[_0x3fd9dd(0xcb)]({'code':0xbc0,'message':_0x3fd9dd(0xe0),'message_staring_params':{}});if(_0x38a98e['length'])throw new CustomError_1[(_0x3fd9dd(0xda))](_0x38a98e);}function checkStartUrl(_0xcc626c,_0x4b8bee,_0x4dd836,_0x440e1c=![]){const _0x1dff0f=_0x482218;var _0x1bda5e=![];if(_0x440e1c)return _0xcc626c[_0x1dff0f(0xc7)](_0x1dff0f(0xd5))||_0xcc626c[_0x1dff0f(0xc7)](_0x1dff0f(0xd9));if(_0x4dd836){if(_0xcc626c['startsWith'](_0x1dff0f(0xd5))){const _0x303e85=new URL(_0xcc626c),_0x5ed2c7=new URL(_0x4b8bee);if(_0x303e85[_0x1dff0f(0xec)]!==_0x5ed2c7[_0x1dff0f(0xec)])throw new CustomError_1[(_0x1dff0f(0xda))]({'code':0xfa0,'message':'In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','message_staring_params':{}});}else{if(_0xcc626c[_0x1dff0f(0xc7)](_0x1dff0f(0xd9)))throw new CustomError_1[(_0x1dff0f(0xda))]({'code':0xfa0,'message':_0x1dff0f(0xe8),'message_staring_params':{}});}}else{if(_0xcc626c[_0x1dff0f(0xc7)](_0x1dff0f(0xd5))||_0xcc626c[_0x1dff0f(0xc7)](_0x1dff0f(0xd9)))throw new CustomError_1['CustomError']({'code':0xfa0,'message':'Local\x20manifest\x20cannot\x20package\x20network\x20project','message_staring_params':{}});}return _0x1bda5e;}async function checkIcons(_0xd2991c,_0x536e23,_0x1c418a=![]){const _0x29c1e3=_0x482218;var _0x3dbd90,_0x51520a;if(!((_0x3dbd90=_0xd2991c[_0x29c1e3(0xd4)])===null||_0x3dbd90===void 0x0?void 0x0:_0x3dbd90[_0x29c1e3(0xe7)])&&_0x1c418a){Cli_1[_0x29c1e3(0xef)][_0x29c1e3(0xcd)][_0x29c1e3(0xf2)](_0x29c1e3(0xc5));return;}const _0x4600c3=(0x0,utils_1[_0x29c1e3(0xf4)])(_0x536e23);let _0x45d73b,_0x75c070,_0x5c739e,_0x3280c8=0x0;for(var _0x2a52ce=0x0;_0x2a52ce<_0xd2991c['icons'][_0x29c1e3(0xe7)];_0x2a52ce++){const _0x4f418b=_0xd2991c[_0x29c1e3(0xd4)][_0x2a52ce];let _0x1a4d00=((_0x51520a=_0x4f418b[_0x29c1e3(0xeb)])===null||_0x51520a===void 0x0?void 0x0:_0x51520a[_0x29c1e3(0xe4)](_0x29c1e3(0xe2)))>=0x0;if(!_0x1a4d00)continue;let _0x4d2016=![],_0x499ba3=_0x4f418b[_0x29c1e3(0xcf)],_0x5699d5,_0x49c27f=0x0;!validateURL(_0x499ba3)&&(_0x499ba3=(0x0,path_1[_0x29c1e3(0xd2)])(_0x4600c3,_0x499ba3));if(_0x4f418b[_0x29c1e3(0xf6)]){const _0x4d8ec7=_0x4f418b[_0x29c1e3(0xf6)]['split']('\x20');_0x4d8ec7[_0x29c1e3(0xd1)](_0x103c87=>{let _0x619dd5=_0x103c87['split']('x');Number(_0x619dd5[0x0])>=0x400&&Number(_0x619dd5[0x1])>=0x400&&(_0x4d2016=!![],Number(_0x619dd5[0x0])>_0x49c27f&&(_0x49c27f=Number(_0x619dd5[0x0])));});}else _0x5699d5=!_0x499ba3['startsWith']('http')?await(0x0,load_1[_0x29c1e3(0xed)])(_0x499ba3):await(0x0,load_1['loadImageFromNet'])(_0x499ba3),_0x5699d5[_0x29c1e3(0xe3)]()>=0x400&&_0x5699d5[_0x29c1e3(0xe9)]()>=0x400&&(_0x4d2016=!![],_0x5699d5['getWidth']()>_0x49c27f&&(_0x49c27f=_0x5699d5['getWidth']()));_0x4d2016&&_0x1a4d00&&(_0x49c27f>_0x3280c8&&(_0x3280c8=_0x49c27f,_0x45d73b=_0x5699d5,_0x75c070=_0x499ba3,_0x5c739e=_0x4f418b[_0x29c1e3(0xeb)]));}if(_0x3280c8===0x0){if(_0x1c418a){Cli_1[_0x29c1e3(0xef)][_0x29c1e3(0xcd)]['warn']('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable');return;}throw new CustomError_1[(_0x29c1e3(0xda))]({'code':0xfa0,'message':_0x29c1e3(0xea),'message_staring_params':{}});}else _0x75c070&&(_0x45d73b=!_0x75c070[_0x29c1e3(0xc7)](_0x29c1e3(0xe5))?await(0x0,load_1['loadImageFromDisk'])(_0x75c070):await(0x0,load_1['loadImageFromNet'])(_0x75c070));if(_0x45d73b&&!imageHelper_1[_0x29c1e3(0xf1)][_0x29c1e3(0xd6)](_0x45d73b)){if(_0x1c418a){Cli_1['Cli'][_0x29c1e3(0xcd)][_0x29c1e3(0xf2)](_0x29c1e3(0xea));return;}throw new CustomError_1[(_0x29c1e3(0xda))]({'code':0xfa0,'message':_0x29c1e3(0xdb),'message_staring_params':{}});}_0xd2991c[_0x29c1e3(0xd4)]=[{'src':_0x75c070,'sizes':_0x3280c8+'x'+_0x3280c8,'purpose':_0x5c739e}];}function checkId(_0x5dcb90,_0x33c0ae){const _0x344acf=_0x482218;!_0x5dcb90['id']&&(_0x5dcb90['id']=_0x5dcb90[_0x344acf(0xc6)]);if(!validateURL(_0x5dcb90['id'])&&!_0x33c0ae)throw new CustomError_1[(_0x344acf(0xda))]({'code':0xfa0,'message':_0x344acf(0xe6),'message_staring_params':{}});}function _0x1ca4(){const _0x2ec327=['In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','getHeight','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','purpose','host','loadImageFromDisk','short_name','Cli','7892965XxeBXw','ImageHelper','warn','5616652OLoMrT','parseRouter','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','sizes','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','start_url','startsWith','931918KNPzLx','35980686GGJjRp','checkStartUrl','push','defineProperty','log','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','src','4750140ksADSR','forEach','join','../resource/imageHelper','icons','https://','isFullyOpaque','../utils/CustomError','name','http://','CustomError','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','path','118740WcvtlO','1728021Sarkii','checkIcons','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','validateURL','maskable','getWidth','indexOf','http','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','length'];_0x1ca4=function(){return _0x2ec327;};return _0x1ca4();}function validateURL(_0x5eac6c){try{return new URL(_0x5eac6c),!![];}catch(_0x150eea){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x270420=_0x15b5;function _0x127c(){const _0x45ead3=['defineProperty','writeFileSync','172668PnNbvd','2646630FIuCGK','55shuCzi','2002090TaJdIG','clearDir','7JXeVkV','isDirectory','readFileSync','statSync','readdirSync','mkdirSync','40QVdiZu','unlinkSync','53165PjSrdo','2SitRXQ','1691127OakKVR','isFile','existsSync','943911eSmkda','118062UrBqHy'];_0x127c=function(){return _0x45ead3;};return _0x127c();}(function(_0x2b423e,_0xafdb06){const _0x3d2c14=_0x15b5,_0x2136de=_0x2b423e();while(!![]){try{const _0x5a1805=-parseInt(_0x3d2c14(0x78))/0x1+parseInt(_0x3d2c14(0x79))/0x2*(parseInt(_0x3d2c14(0x7a))/0x3)+-parseInt(_0x3d2c14(0x6b))/0x4+-parseInt(_0x3d2c14(0x6c))/0x5+-parseInt(_0x3d2c14(0x7e))/0x6*(parseInt(_0x3d2c14(0x70))/0x7)+parseInt(_0x3d2c14(0x76))/0x8*(-parseInt(_0x3d2c14(0x7d))/0x9)+parseInt(_0x3d2c14(0x6e))/0xa*(parseInt(_0x3d2c14(0x6d))/0xb);if(_0x5a1805===_0xafdb06)break;else _0x2136de['push'](_0x2136de['shift']());}catch(_0x1133e0){_0x2136de['push'](_0x2136de['shift']());}}}(_0x127c,0x60710));function _0x15b5(_0x7eade7,_0x53bb9f){const _0x127cb0=_0x127c();return _0x15b5=function(_0x15b5f6,_0x8d7aba){_0x15b5f6=_0x15b5f6-0x69;let _0x436e65=_0x127cb0[_0x15b5f6];return _0x436e65;},_0x15b5(_0x7eade7,_0x53bb9f);}Object[_0x270420(0x69)](exports,'__esModule',{'value':!![]}),exports['copyDir']=copyDir,exports[_0x270420(0x6f)]=clearDir;const fs=require('fs');function copyDir(_0x164eb1,_0x44fcc5){const _0x400be3=_0x270420,_0x5b873c=fs[_0x400be3(0x74)](_0x164eb1);_0x5b873c['forEach'](_0x4dcdcc=>{const _0x5da211=_0x400be3,_0x1797ff=_0x164eb1+'/'+_0x4dcdcc,_0x4d24f2=_0x44fcc5+'/'+_0x4dcdcc,_0x28a93f=fs['statSync'](_0x1797ff);if(_0x28a93f[_0x5da211(0x7b)]())try{fs[_0x5da211(0x6a)](_0x4d24f2,fs[_0x5da211(0x72)](_0x1797ff));}catch(_0x26044a){console['log'](_0x26044a);}else _0x28a93f[_0x5da211(0x71)]()&&(!fs[_0x5da211(0x7c)](_0x4d24f2)&&fs[_0x5da211(0x75)](_0x4d24f2,{'recursive':!![]}),copyDir(_0x1797ff,_0x4d24f2));});}function clearDir(_0x46734c){const _0x1656d7=_0x270420,_0x2c90a3=fs[_0x1656d7(0x74)](_0x46734c);_0x2c90a3['forEach'](_0x15993d=>{const _0x12300b=_0x1656d7,_0x58cc4c=_0x46734c+'/'+_0x15993d,_0x4ed892=fs[_0x12300b(0x73)](_0x58cc4c);if(_0x4ed892[_0x12300b(0x7b)]())try{fs[_0x12300b(0x77)](_0x58cc4c);}catch(_0x4747d9){console['log'](_0x4747d9);}else _0x4ed892[_0x12300b(0x71)]()&&clearDir(_0x58cc4c);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3070cb=_0x59ae;function _0x59ae(_0x505c15,_0x429e9e){const _0x56b30a=_0x56b3();return _0x59ae=function(_0x59aeba,_0x49924e){_0x59aeba=_0x59aeba-0xf1;let _0x229673=_0x56b30a[_0x59aeba];return _0x229673;},_0x59ae(_0x505c15,_0x429e9e);}function _0x56b3(){const _0x7e01b3=['bitmap','svg2img','15zkPOMG','4664765pziomz','__esModule','Resvg','getHeight','data','ImageHelper','588703FJLLpP','4911405clHKDb','247094jYlkXZ','2530842eYKfLj','2553292GlNuMT','png','getWidth','964968ndnALs','toBuffer','createImg','isFullyOpaque','sharp'];_0x56b3=function(){return _0x7e01b3;};return _0x56b3();}(function(_0x424f03,_0x120f31){const _0x1adecb=_0x59ae,_0x16758b=_0x424f03();while(!![]){try{const _0x514c86=-parseInt(_0x1adecb(0xfe))/0x1+-parseInt(_0x1adecb(0x100))/0x2*(-parseInt(_0x1adecb(0xf7))/0x3)+parseInt(_0x1adecb(0x102))/0x4+parseInt(_0x1adecb(0xff))/0x5+-parseInt(_0x1adecb(0x101))/0x6+-parseInt(_0x1adecb(0xf8))/0x7+parseInt(_0x1adecb(0x105))/0x8;if(_0x514c86===_0x120f31)break;else _0x16758b['push'](_0x16758b['shift']());}catch(_0x142dc4){_0x16758b['push'](_0x16758b['shift']());}}}(_0x56b3,0xa6847));Object['defineProperty'](exports,_0x3070cb(0xf9),{'value':!![]}),exports[_0x3070cb(0xfd)]=void 0x0;const Jimp=require('jimp'),sharp=require(_0x3070cb(0xf4)),resvg_js_1=require('@resvg/resvg-js');class ImageHelper{static[_0x3070cb(0xf2)](_0x44c96a){return new Jimp(_0x44c96a,_0x44c96a,0x0);}static async['webp2PngBuffer'](_0x1facf5){const _0x1d96f4=_0x3070cb;return await sharp(_0x1facf5)['toFormat'](_0x1d96f4(0x103))[_0x1d96f4(0xf1)]();}static async[_0x3070cb(0xf6)](_0x5e349a){const _0x5ca108=_0x3070cb,_0x272ece={'fitTo':{'mode':'width','value':0x400}},_0x4bc0b3=new resvg_js_1[(_0x5ca108(0xfa))](_0x5e349a,_0x272ece),_0x2935bf=_0x4bc0b3['render'](),_0x12f5b1=_0x2935bf['asPng']();return _0x12f5b1;}static[_0x3070cb(0xf3)](_0x444cf4){const _0x13f279=_0x3070cb,_0x20bb51=_0x444cf4[_0x13f279(0x104)]()*_0x444cf4[_0x13f279(0xfb)]();for(var _0x2074c1=0x0;_0x2074c1<_0x20bb51;_0x2074c1++){const _0x1025ea=_0x2074c1*0x4+0x3;if(_0x444cf4[_0x13f279(0xf5)][_0x13f279(0xfc)][_0x1025ea]<0xff)return![];}return!![];}}exports['ImageHelper']=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5b30af=_0xe563;function _0xe563(_0x152211,_0x34c615){const _0x5b7416=_0x5b74();return _0xe563=function(_0xe563f0,_0x18ce6d){_0xe563f0=_0xe563f0-0x1d5;let _0x199482=_0x5b7416[_0xe563f0];return _0x199482;},_0xe563(_0x152211,_0x34c615);}(function(_0x447644,_0xec45bb){const _0xa5750e=_0xe563,_0x247fe3=_0x447644();while(!![]){try{const _0xa07821=-parseInt(_0xa5750e(0x1ee))/0x1*(parseInt(_0xa5750e(0x204))/0x2)+-parseInt(_0xa5750e(0x205))/0x3+parseInt(_0xa5750e(0x1eb))/0x4*(-parseInt(_0xa5750e(0x1de))/0x5)+parseInt(_0xa5750e(0x1f4))/0x6+parseInt(_0xa5750e(0x1d8))/0x7+parseInt(_0xa5750e(0x1d5))/0x8*(-parseInt(_0xa5750e(0x1ea))/0x9)+parseInt(_0xa5750e(0x1f6))/0xa;if(_0xa07821===_0xec45bb)break;else _0x247fe3['push'](_0x247fe3['shift']());}catch(_0x179f8a){_0x247fe3['push'](_0x247fe3['shift']());}}}(_0x5b74,0x2ad05));Object[_0x5b30af(0x1dc)](exports,_0x5b30af(0x1ed),{'value':!![]}),exports[_0x5b30af(0x1e4)]=exports[_0x5b30af(0x1e9)]=exports['BACK_APPICON_DIRECTORY']=exports[_0x5b30af(0x1e1)]=exports[_0x5b30af(0x203)]=exports[_0x5b30af(0x1d7)]=exports['PROJECT_BUILD_DIRECTORY']=exports['PROJECT_DIRECTORY']=void 0x0;const fs=require('fs'),path_1=require(_0x5b30af(0x201)),file_1=require('./file'),load_1=require(_0x5b30af(0x1f3)),child_process_1=require(_0x5b30af(0x1e7));exports['PROJECT_DIRECTORY']='',exports[_0x5b30af(0x1e2)]='',exports[_0x5b30af(0x1d7)]='',exports['WEB_PROJECT_DIRECTORY']='web-spatial/static-web',exports[_0x5b30af(0x1e1)]=_0x5b30af(0x206),exports[_0x5b30af(0x1d9)]=exports[_0x5b30af(0x1e1)]+_0x5b30af(0x1f5),exports[_0x5b30af(0x1e9)]=exports[_0x5b30af(0x1e1)]+'/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset';const supportPlatform=['visionos'];function _0x5b74(){const _0x29c74e=['./load','2041506UOKAPZ','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','3386390twdwMG','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','loadImageFromDisk','icons','cwd','http','loadImageFromNet','existsSync','cd\x20','resize','PROJECT_DIRECTORY','path','src','WEB_PROJECT_DIRECTORY','335682DXKlnI','706266ocFVTi','web-spatial/Assets.xcassets','43952CxVnWK','./export','PROJECT_EXPORT_DIRECTORY','245154cukjIH','BACK_APPICON_DIRECTORY','execSync',',\x20now\x20WebSpatial\x20only\x20support\x20','defineProperty','node_modules/@webspatial/platform-','214595oNBFXu','./build','includes','ASSET_DIRECTORY','PROJECT_BUILD_DIRECTORY','join','ResourceManager','checkPlatformPath','../../../','child_process','copyDir','MIDDLE_APPICON_DIRECTORY','81SHEljV','8OboRWY','log','__esModule','1NUOxLm','mkdirSync','generateIcon','clearDir','moveProjectFrom'];_0x5b74=function(){return _0x29c74e;};return _0x5b74();}class ResourceManager{static async[_0x5b30af(0x1f2)](_0xb84e29){const _0x2f529c=_0x5b30af,_0x2e8136=(0x0,path_1[_0x2f529c(0x1e3)])(process[_0x2f529c(0x1fa)](),_0xb84e29),_0x1a0fcc=(0x0,path_1['join'])(exports[_0x2f529c(0x200)],exports[_0x2f529c(0x203)]);!fs['existsSync'](_0x1a0fcc)?fs[_0x2f529c(0x1ef)](_0x1a0fcc,{'recursive':!![]}):(0x0,file_1[_0x2f529c(0x1f1)])(_0x1a0fcc);try{(0x0,file_1[_0x2f529c(0x1e8)])(_0x2e8136,_0x1a0fcc);}catch(_0x4a7849){console[_0x2f529c(0x1ec)](_0x4a7849);}}static async[_0x5b30af(0x1f0)](_0x56c0c9){const _0x1c83d0=_0x5b30af,_0x233c37=_0x56c0c9['json'],_0x555742=_0x233c37[_0x1c83d0(0x1f9)][0x0][_0x1c83d0(0x202)],_0x303346=!_0x555742['startsWith'](_0x1c83d0(0x1fb))?await(0x0,load_1[_0x1c83d0(0x1f8)])(_0x555742):await(0x0,load_1[_0x1c83d0(0x1fc)])(_0x555742);return _0x303346[_0x1c83d0(0x1ff)](0x400,0x400),_0x303346;}static[_0x5b30af(0x1e5)](_0x46c3e2){const _0x3ecb36=_0x5b30af,_0x1ddeca=_0x46c3e2!==null&&_0x46c3e2!==void 0x0?_0x46c3e2:supportPlatform[0x0];if(!supportPlatform[_0x3ecb36(0x1e0)](_0x1ddeca))throw new Error('not\x20support\x20platform\x20'+_0x1ddeca+_0x3ecb36(0x1db)+supportPlatform[_0x3ecb36(0x1e3)](','));let _0xdba899=(0x0,path_1['join'])(process[_0x3ecb36(0x1fa)](),_0x3ecb36(0x1dd)+_0x1ddeca);!fs[_0x3ecb36(0x1fd)](_0xdba899)&&(_0xdba899=(0x0,path_1[_0x3ecb36(0x1e3)])(__dirname,'../../../node_modules/@webspatial/platform-'+_0x1ddeca));const _0x16fd1e=fs[_0x3ecb36(0x1fd)](_0xdba899);!_0x16fd1e&&(0x0,child_process_1[_0x3ecb36(0x1da)])(_0x3ecb36(0x1fe)+(0x0,path_1[_0x3ecb36(0x1e3)])(__dirname,_0x3ecb36(0x1e6))+_0x3ecb36(0x1f7)+_0x1ddeca),exports[_0x3ecb36(0x200)]=_0xdba899,exports[_0x3ecb36(0x1e2)]=(0x0,path_1[_0x3ecb36(0x1e3)])(exports[_0x3ecb36(0x200)],_0x3ecb36(0x1df)),exports[_0x3ecb36(0x1d7)]=(0x0,path_1[_0x3ecb36(0x1e3)])(exports['PROJECT_DIRECTORY'],_0x3ecb36(0x1d6));}}exports[_0x5b30af(0x1e4)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3c35c2=_0x44a2;(function(_0x3ed56d,_0x4ac1f1){const _0x582181=_0x44a2,_0x42143c=_0x3ed56d();while(!![]){try{const _0x437070=-parseInt(_0x582181(0x1b1))/0x1*(parseInt(_0x582181(0x19a))/0x2)+parseInt(_0x582181(0x1a4))/0x3+-parseInt(_0x582181(0x19f))/0x4+-parseInt(_0x582181(0x1ab))/0x5*(parseInt(_0x582181(0x1aa))/0x6)+-parseInt(_0x582181(0x1b0))/0x7*(parseInt(_0x582181(0x191))/0x8)+parseInt(_0x582181(0x1a1))/0x9+parseInt(_0x582181(0x1b3))/0xa*(parseInt(_0x582181(0x1a0))/0xb);if(_0x437070===_0x4ac1f1)break;else _0x42143c['push'](_0x42143c['shift']());}catch(_0x3cbde8){_0x42143c['push'](_0x42143c['shift']());}}}(_0x10da,0xed71b));Object['defineProperty'](exports,_0x3c35c2(0x181),{'value':!![]}),exports[_0x3c35c2(0x1a2)]=loadJsonFromNet,exports[_0x3c35c2(0x182)]=loadJsonFromDisk,exports[_0x3c35c2(0x199)]=loadImageFromNet,exports['loadImageFromDisk']=loadImageFromDisk,exports[_0x3c35c2(0x1a6)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x3c35c2(0x185)),CustomError_1=require(_0x3c35c2(0x1a7)),Jimp=require(_0x3c35c2(0x183)),imageHelper_1=require(_0x3c35c2(0x18b));async function loadJsonFromNet(_0xcb6b62){const _0x4c5fb4=_0x3c35c2,_0x4dcecc=await FetchUtils_1_1[_0x4c5fb4(0x19c)]['fetch'](_0xcb6b62,{'encoding':_0x4c5fb4(0x190)});if(_0x4dcecc[_0x4c5fb4(0x1a5)]!==0xc8)throw new CustomError_1[(_0x4c5fb4(0x187))]({'code':0xbbc,'message':'Failed\x20to\x20download\x20Web\x20Manifest\x20'+_0xcb6b62+'.'+(_0x4c5fb4(0x197)+_0x4dcecc['status']+_0x4c5fb4(0x188)),'message_staring_params':{'web_manifest_url':_0xcb6b62,'status':_0x4dcecc['status']}});try{let _0x74a1d;return _0x4dcecc[_0x4c5fb4(0x194)]?_0x74a1d=await _0x4dcecc[_0x4c5fb4(0x194)]():[_0x4c5fb4(0x192),'deflate','br']['includes'](_0x4dcecc[_0x4c5fb4(0x18c)][_0x4c5fb4(0x1af)])?_0x74a1d=FetchUtils_1_1['fetchUtils'][_0x4c5fb4(0x1ad)](Buffer[_0x4c5fb4(0x19b)](_0x4dcecc[_0x4c5fb4(0x1a8)],_0x4c5fb4(0x190)),_0x4dcecc[_0x4c5fb4(0x18c)]['content-encoding'])[_0x4c5fb4(0x19e)]():_0x74a1d=Buffer[_0x4c5fb4(0x19b)](_0x4dcecc[_0x4c5fb4(0x1a8)],_0x4c5fb4(0x190))['toString'](),JSON['parse'](_0x74a1d['trim']());}catch(_0x5c53cc){throw new CustomError_1[(_0x4c5fb4(0x187))]({'code':0xbbd,'message':_0x4c5fb4(0x1a3),'message_staring_params':{}});}}function _0x44a2(_0xa96a58,_0x544552){const _0x10da21=_0x10da();return _0x44a2=function(_0x44a2b3,_0x2a720f){_0x44a2b3=_0x44a2b3-0x181;let _0x2c8d58=_0x10da21[_0x44a2b3];return _0x2c8d58;},_0x44a2(_0xa96a58,_0x544552);}async function loadJsonFromDisk(_0x1f4dcf){const _0x34866c=_0x3c35c2,_0x4a6190=await loadFileString(_0x1f4dcf[_0x34866c(0x19e)]());return JSON[_0x34866c(0x189)](_0x4a6190);}async function loadImageFromNet(_0x3289fe){const _0x53f446=_0x3c35c2,_0x12d010=await FetchUtils_1_1[_0x53f446(0x19c)][_0x53f446(0x193)](_0x3289fe,{'encoding':_0x53f446(0x190)});if(_0x12d010[_0x53f446(0x1a5)]!==0xc8)throw new CustomError_1[(_0x53f446(0x187))]({'code':0x7d2,'message':_0x53f446(0x195)+_0x12d010[_0x53f446(0x1a5)],'message_staring_params':{'icon_url':_0x3289fe,'status':_0x12d010[_0x53f446(0x1a5)]}});const _0x2601ca=_0x12d010[_0x53f446(0x18c)][_0x53f446(0x18e)]?_0x12d010['headers'][_0x53f446(0x18e)](_0x53f446(0x1b2)):_0x12d010[_0x53f446(0x18c)]['content-type'];if(!(_0x2601ca===null||_0x2601ca===void 0x0?void 0x0:_0x2601ca[_0x53f446(0x198)](_0x53f446(0x1ac))))throw new CustomError_1[(_0x53f446(0x187))]({'code':0x7d3,'message':_0x53f446(0x184)+('\x20Responded\x20with\x20Content-Type\x20\x22'+_0x2601ca+'\x22'),'message_staring_params':{'icon_url':_0x3289fe,'contentType':_0x2601ca}});let _0x1be08e;_0x12d010['arrayBuffer']?_0x1be08e=await _0x12d010['arrayBuffer']():[_0x53f446(0x192),_0x53f446(0x186),'br'][_0x53f446(0x19d)](_0x12d010['headers'][_0x53f446(0x1af)])?_0x1be08e=FetchUtils_1_1[_0x53f446(0x19c)][_0x53f446(0x1ad)](Buffer[_0x53f446(0x19b)](_0x12d010[_0x53f446(0x1a8)],_0x53f446(0x190)),_0x12d010[_0x53f446(0x18c)][_0x53f446(0x1af)]):_0x1be08e=Buffer[_0x53f446(0x19b)](_0x12d010['data'],'binary');if(_0x2601ca[_0x53f446(0x198)]('image/svg')){const _0x19a0aa=new TextDecoder();try{_0x1be08e=await imageHelper_1['ImageHelper'][_0x53f446(0x18d)](_0x19a0aa['decode'](_0x1be08e));}catch(_0x52ef9e){throw new CustomError_1[(_0x53f446(0x187))]({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x3289fe+':\x20'+_0x52ef9e,'message_staring_params':{'icon_url':_0x3289fe,'error':_0x52ef9e}});}}return _0x2601ca[_0x53f446(0x198)](_0x53f446(0x18a))&&(_0x1be08e=await imageHelper_1[_0x53f446(0x196)][_0x53f446(0x1ae)](_0x1be08e)),await Jimp[_0x53f446(0x1a9)](Buffer[_0x53f446(0x19b)](_0x1be08e));}async function loadImageFromDisk(_0x318ae4){const _0x2f7a0b=_0x3c35c2;return await Jimp[_0x2f7a0b(0x1a9)](_0x318ae4);}function _0x10da(){const _0x5f26ad=['./imageHelper','headers','svg2img','get','promises','binary','261992GihOrU','gzip','fetch','text','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','ImageHelper','The\x20response\x20status\x20is\x20','startsWith','loadImageFromNet','2842bbENju','from','fetchUtils','includes','toString','5246400NJCuWW','22349173icTYeB','9184428avpyxg','loadJsonFromNet','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','2503116TGeUcs','status','loadFileString','../utils/CustomError','data','read','12IysWzk','1025960BwKUaM','image/','decompressResponseBuffer','webp2PngBuffer','content-encoding','133bkVLBk','401gflORm','content-type','10xqYAED','__esModule','loadJsonFromDisk','jimp','Received\x20icon\x20with\x20invalid\x20Content-Type.','../utils/FetchUtils-1','deflate','CustomError',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','parse','image/webp'];_0x10da=function(){return _0x5f26ad;};return _0x10da();}async function loadFileString(_0x13cba0){const _0x50c1e3=_0x3c35c2;let _0x4d9742=await fs[_0x50c1e3(0x18f)]['readFile'](_0x13cba0['toString']());return _0x4d9742[_0x50c1e3(0x19e)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x12df89=_0x168c;(function(_0x351ce4,_0x52f8dd){var _0x4a9c8c=_0x168c,_0x5aacf6=_0x351ce4();while(!![]){try{var _0x4f53a2=-parseInt(_0x4a9c8c(0xf8))/0x1+-parseInt(_0x4a9c8c(0xf5))/0x2*(parseInt(_0x4a9c8c(0xfa))/0x3)+parseInt(_0x4a9c8c(0xf2))/0x4*(parseInt(_0x4a9c8c(0xf3))/0x5)+parseInt(_0x4a9c8c(0xfd))/0x6*(parseInt(_0x4a9c8c(0xf7))/0x7)+-parseInt(_0x4a9c8c(0xfe))/0x8+parseInt(_0x4a9c8c(0xf6))/0x9+-parseInt(_0x4a9c8c(0xf4))/0xa*(-parseInt(_0x4a9c8c(0xf0))/0xb);if(_0x4f53a2===_0x52f8dd)break;else _0x5aacf6['push'](_0x5aacf6['shift']());}catch(_0x3cf7b5){_0x5aacf6['push'](_0x5aacf6['shift']());}}}(_0x8aeb,0xb5870));Object['defineProperty'](exports,_0x12df89(0xfc),{'value':!![]}),exports['CustomError']=void 0x0;function _0x8aeb(){var _0x5ebe1e=['info','CustomError','1420969nYbVEP','customMessage','304XPEjGK','14855cSRlZh','30KyWmuK','228efstSZ','11632239rVJNjo','7DEHDpB','95016uYJHqK','type','31911zjeBHf','stringify','__esModule','4796286xkDsTA','5232120abzwww'];_0x8aeb=function(){return _0x5ebe1e;};return _0x8aeb();}class CustomError extends Error{constructor(_0x4ed511,_0x3c3229){var _0x221fdc=_0x12df89;super(JSON[_0x221fdc(0xfb)](_0x4ed511)),this[_0x221fdc(0xf1)]=_0x4ed511,this[_0x221fdc(0xf9)]=_0x3c3229||_0x221fdc(0xff);}}function _0x168c(_0x52f378,_0x40eb35){var _0x8aeb3=_0x8aeb();return _0x168c=function(_0x168c94,_0x50cae1){_0x168c94=_0x168c94-0xef;var _0x241b49=_0x8aeb3[_0x168c94];return _0x241b49;},_0x168c(_0x52f378,_0x40eb35);}exports[_0x12df89(0xef)]=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1ec070=_0x5de0;(function(_0x491036,_0x4c0576){const _0x5163cc=_0x5de0,_0x16e122=_0x491036();while(!![]){try{const _0x1bc91e=-parseInt(_0x5163cc(0xa6))/0x1*(-parseInt(_0x5163cc(0xb0))/0x2)+-parseInt(_0x5163cc(0x9d))/0x3*(parseInt(_0x5163cc(0xad))/0x4)+-parseInt(_0x5163cc(0xa3))/0x5+-parseInt(_0x5163cc(0xa1))/0x6+parseInt(_0x5163cc(0xb1))/0x7*(parseInt(_0x5163cc(0x9f))/0x8)+parseInt(_0x5163cc(0xa8))/0x9*(parseInt(_0x5163cc(0xab))/0xa)+parseInt(_0x5163cc(0x9e))/0xb*(parseInt(_0x5163cc(0xac))/0xc);if(_0x1bc91e===_0x4c0576)break;else _0x16e122['push'](_0x16e122['shift']());}catch(_0x4e92cc){_0x16e122['push'](_0x16e122['shift']());}}}(_0x1344,0xd470c));function _0x5de0(_0x5071a3,_0x455358){const _0x1344a0=_0x1344();return _0x5de0=function(_0x5de086,_0x62c1df){_0x5de086=_0x5de086-0x9d;let _0x47cf2d=_0x1344a0[_0x5de086];return _0x47cf2d;},_0x5de0(_0x5071a3,_0x455358);}Object[_0x1ec070(0xb2)](exports,'__esModule',{'value':!![]}),exports[_0x1ec070(0xa4)]=void 0x0;function _0x1344(){const _0xc0937a=['decompressResponseBuffer','606996NMzVnd','setDecompressResponseBuffer','8551863Crwxyh','setFetch','setFetchEngine','10ezibjq','14167092HpbiYb','6675352CRlVJD','fetch','setDownloadFile','2ZMYYfF','120127PcLJIH','defineProperty','3BqlzGa','11EWXkAO','184rCOovK','downloadFile','1753674XgsOeh','fetchEngine','1506120JwznVF','fetchUtils'];_0x1344=function(){return _0xc0937a;};return _0x1344();}class FetchUtils{constructor(){const _0x1c45df=_0x1ec070;this[_0x1c45df(0xa2)]=null,this[_0x1c45df(0xae)]=null,this[_0x1c45df(0xa0)]=null,this[_0x1c45df(0xa5)]=null;}[_0x1ec070(0xaa)](_0x460bc3){const _0x312e3e=_0x1ec070;this[_0x312e3e(0xa2)]=_0x460bc3;}[_0x1ec070(0xa9)](_0x444341){const _0x7931a8=_0x1ec070;this[_0x7931a8(0xae)]=_0x444341;}[_0x1ec070(0xaf)](_0x4387b1){const _0x45b225=_0x1ec070;this[_0x45b225(0xa0)]=_0x4387b1;}[_0x1ec070(0xa7)](_0x102ce2){const _0x552991=_0x1ec070;this[_0x552991(0xa5)]=_0x102ce2;}}const fetchUtils=new FetchUtils();exports[_0x1ec070(0xa4)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x4412c9=_0x2dbe;(function(_0x213ba8,_0xf3cb26){var _0xb24b94=_0x2dbe,_0x3f3401=_0x213ba8();while(!![]){try{var _0x241c59=-parseInt(_0xb24b94(0x16a))/0x1+-parseInt(_0xb24b94(0x173))/0x2*(-parseInt(_0xb24b94(0x178))/0x3)+parseInt(_0xb24b94(0x15e))/0x4+parseInt(_0xb24b94(0x167))/0x5*(-parseInt(_0xb24b94(0x17a))/0x6)+-parseInt(_0xb24b94(0x16e))/0x7+parseInt(_0xb24b94(0x15d))/0x8+-parseInt(_0xb24b94(0x16f))/0x9*(parseInt(_0xb24b94(0x165))/0xa);if(_0x241c59===_0xf3cb26)break;else _0x3f3401['push'](_0x3f3401['shift']());}catch(_0x317d8e){_0x3f3401['push'](_0x3f3401['shift']());}}}(_0xfc00,0xe38e1));Object[_0x4412c9(0x174)](exports,_0x4412c9(0x17b),{'value':!![]}),exports['ConsoleLog']=void 0x0;function _0x2dbe(_0x53502b,_0x192622){var _0xfc00ec=_0xfc00();return _0x2dbe=function(_0x2dbe11,_0x103e5d){_0x2dbe11=_0x2dbe11-0x15d;var _0x1e31e9=_0xfc00ec[_0x2dbe11];return _0x1e31e9;},_0x2dbe(_0x53502b,_0x192622);}class ConsoleLog{constructor(_0x19729d='',_0x213f61=![],_0x2dd09b=console){var _0xfcf9b5=_0x4412c9;this[_0xfcf9b5(0x172)]=_0x19729d,this[_0xfcf9b5(0x171)]=_0x213f61,this[_0xfcf9b5(0x17c)]=this[_0xfcf9b5(0x168)](_0x19729d),this[_0xfcf9b5(0x175)]=_0x2dd09b;}[_0x4412c9(0x162)](_0x131348,..._0x1d1052){var _0x432b4b=_0x4412c9;if(!this[_0x432b4b(0x171)])return;this[_0x432b4b(0x179)](this[_0x432b4b(0x175)]['log'],this['dim'](_0x131348),..._0x1d1052);}[_0x4412c9(0x161)](_0xe75dd5,..._0x7dd9f6){var _0x33ba2c=_0x4412c9;this[_0x33ba2c(0x179)](this[_0x33ba2c(0x175)][_0x33ba2c(0x179)],_0xe75dd5,..._0x7dd9f6);}['warn'](_0x1a4574,..._0x5ec241){var _0x240999=_0x4412c9;this[_0x240999(0x179)](this[_0x240999(0x175)]['warn'],this[_0x240999(0x16b)](_0x240999(0x170)+_0x1a4574),..._0x5ec241);}[_0x4412c9(0x16d)](_0x2c5f52,..._0x3f5afd){var _0x2e3fcb=_0x4412c9;this[_0x2e3fcb(0x175)]['error']('\x0a'),this['log'](this[_0x2e3fcb(0x175)]['error'],this[_0x2e3fcb(0x177)](_0x2e3fcb(0x16c)+_0x2c5f52),..._0x3f5afd),this[_0x2e3fcb(0x175)][_0x2e3fcb(0x16d)]('\x0a');}['setVerbose'](_0x2bb242){var _0x6af49=_0x4412c9;this[_0x6af49(0x171)]=_0x2bb242;}[_0x4412c9(0x169)](_0x28ac71){var _0xfab209=_0x4412c9;return this[_0xfab209(0x172)]&&(_0x28ac71=this[_0xfab209(0x172)]+'\x20'+_0x28ac71),new ConsoleLog(_0x28ac71,this['verbose'],this['output']);}[_0x4412c9(0x179)](_0x3d7081,_0x221071,..._0x3cf45a){var _0x222ded=_0x4412c9;this[_0x222ded(0x17c)]&&(_0x221071=this[_0x222ded(0x17c)]+'\x20'+_0x221071),_0x3cf45a?_0x3d7081(...[_0x221071][_0x222ded(0x160)](_0x3cf45a)):_0x3d7081(_0x221071);}[_0x4412c9(0x168)](_0x580584){var _0x120077=_0x4412c9;return _0x120077(0x176)+_0x580584+'\x1b[0m';}['dim'](_0x40a17a){var _0x53f6e5=_0x4412c9;return _0x53f6e5(0x15f)+_0x40a17a+'\x1b[0m';}['yellow'](_0x12d150){var _0x33cb58=_0x4412c9;return _0x33cb58(0x164)+_0x12d150+_0x33cb58(0x166);}[_0x4412c9(0x177)](_0xef8e93){var _0x5a9da9=_0x4412c9;return _0x5a9da9(0x163)+_0xef8e93+_0x5a9da9(0x166);}}exports['ConsoleLog']=ConsoleLog;function _0xfc00(){var _0x5b8862=['510ZKayCq','defineProperty','output','\x1b[7m','red','20154Fyiwca','log','6jPIJkp','__esModule','prefix','6113840otJNPF','4782896fClleA','\x1b[36m','concat','info','debug','\x1b[31m','\x1b[33m','6481410dgDScR','\x1b[0m','6237430EnLYMg','inverse','newLog','670760XCEiFR','yellow','ERROR\x20','error','1222144ZZGkPB','9ioCrpa','WARNING\x20','verbose','tag'];_0xfc00=function(){return _0x5b8862;};return _0xfc00();}
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5f26de=_0x17ab;(function(_0x75ad73,_0x4af976){const _0x24362e=_0x17ab,_0x695689=_0x75ad73();while(!![]){try{const _0xe35cb9=parseInt(_0x24362e(0x139))/0x1*(-parseInt(_0x24362e(0x142))/0x2)+parseInt(_0x24362e(0x145))/0x3*(-parseInt(_0x24362e(0x150))/0x4)+parseInt(_0x24362e(0x13c))/0x5+parseInt(_0x24362e(0x157))/0x6*(parseInt(_0x24362e(0x148))/0x7)+parseInt(_0x24362e(0x14c))/0x8+parseInt(_0x24362e(0x141))/0x9+-parseInt(_0x24362e(0x153))/0xa*(parseInt(_0x24362e(0x149))/0xb);if(_0xe35cb9===_0x4af976)break;else _0x695689['push'](_0x695689['shift']());}catch(_0x2cc64e){_0x695689['push'](_0x695689['shift']());}}}(_0x5b14,0x9e132));function _0x17ab(_0x5af6c2,_0x5c6d32){const _0x5b140a=_0x5b14();return _0x17ab=function(_0x17ab8a,_0x21e768){_0x17ab8a=_0x17ab8a-0x139;let _0x3fee54=_0x5b140a[_0x17ab8a];return _0x3fee54;},_0x17ab(_0x5af6c2,_0x5c6d32);}Object[_0x5f26de(0x14e)](exports,'__esModule',{'value':!![]}),exports[_0x5f26de(0x158)]=fetch,exports['downloadFile']=downloadFile,exports[_0x5f26de(0x147)]=decompressResponseBuffer;const fetch_h2_1=require(_0x5f26de(0x13b)),fs=require('fs'),zlib=require(_0x5f26de(0x140)),userAgent='Mozilla/5.0\x20(X11;\x20Linux\x20x86_64;\x20PICO\x204\x20OS5.5.0\x20like\x20Quest)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20PicoBrowser/3.3.24\x20Chrome/105.0.5195.68\x20VR\x20Safari/537.36\x20\x20OculusBrowser/7.0',fetchh2Ctx=(0x0,fetch_h2_1['context'])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x5f26de(0x158)];async function fetch(_0x70ff54,_0xe954b2){const _0xb5c9d9=_0x5f26de;return await fetchh2(_0x70ff54,_0xe954b2?{'redirect':_0xb5c9d9(0x14a),..._0xe954b2}:{'redirect':_0xb5c9d9(0x14a)});}async function downloadFile(_0x48cbaa,_0x6aea87,_0x2f8389){const _0x28f728=_0x5f26de;let _0xc09db9,_0x497df2;_0xc09db9=await fetchh2(_0x48cbaa,{'redirect':_0x28f728(0x14a)}),_0x497df2=await _0xc09db9[_0x28f728(0x156)]();const _0x46ec28=_0xc09db9[_0x28f728(0x152)][_0x28f728(0x14f)](_0x28f728(0x155)),_0x12b9d1=_0x46ec28?parseInt(_0x46ec28):-0x1,_0x40c89f=fs[_0x28f728(0x154)](_0x6aea87);let _0x250fbd=0x0;await new Promise((_0x2dd00d,_0x556633)=>{const _0x5dc79d=_0x28f728;_0x497df2[_0x5dc79d(0x13a)](_0x40c89f),_0x2f8389&&_0x497df2['on'](_0x5dc79d(0x143),_0x4dcab9=>{const _0x282082=_0x5dc79d;_0x250fbd=_0x250fbd+_0x4dcab9[_0x282082(0x146)],_0x2f8389(_0x250fbd,_0x12b9d1);}),_0x497df2['on'](_0x5dc79d(0x14b),_0x1d1daa=>{_0x556633(_0x1d1daa);}),_0x40c89f['on'](_0x5dc79d(0x13f),()=>{_0x2dd00d();});});}function _0x5b14(){const _0x30444d=['316aIqSws','unzipSync','headers','74440sjFyXG','createWriteStream','Content-Length','readable','12mBenAj','fetch','207730jfgltZ','pipe','fetch-h2','2859320vaoocB','brotliDecompressSync','test','finish','zlib','4280787ZyeRzd','8OjJtWu','data','Z_SYNC_FLUSH','5094WpRVXE','length','decompressResponseBuffer','4440919USoxHm','2739PuhSoK','follow','error','9198008pZuEBj','constants','defineProperty','get'];_0x5b14=function(){return _0x30444d;};return _0x5b14();}function decompressResponseBuffer(_0x58de84,_0x3053df){const _0x4e82fa=_0x5f26de;let _0x5cc22c=_0x58de84;if(/\bgzip\b/['test'](_0x3053df)||/\bdeflate\b/[_0x4e82fa(0x13e)](_0x3053df))_0x5cc22c=zlib[_0x4e82fa(0x151)](_0x58de84,{'flush':zlib[_0x4e82fa(0x14d)][_0x4e82fa(0x144)],'finishFlush':zlib[_0x4e82fa(0x14d)][_0x4e82fa(0x144)]});else/\bbr\b/[_0x4e82fa(0x13e)](_0x3053df)&&(_0x5cc22c=zlib[_0x4e82fa(0x13d)](_0x58de84));return _0x5cc22c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1309(_0x49d09c,_0x329d6c){const _0x78ab27=_0x78ab();return _0x1309=function(_0x1309a7,_0x2e73d4){_0x1309a7=_0x1309a7-0x1bb;let _0x208567=_0x78ab27[_0x1309a7];return _0x208567;},_0x1309(_0x49d09c,_0x329d6c);}const _0xb5bf32=_0x1309;(function(_0x4b09ca,_0x196bb8){const _0x83d9f0=_0x1309,_0x5203f5=_0x4b09ca();while(!![]){try{const _0x5164da=parseInt(_0x83d9f0(0x1f8))/0x1*(parseInt(_0x83d9f0(0x1db))/0x2)+parseInt(_0x83d9f0(0x1dd))/0x3+parseInt(_0x83d9f0(0x1e3))/0x4+-parseInt(_0x83d9f0(0x1f9))/0x5+-parseInt(_0x83d9f0(0x1be))/0x6+parseInt(_0x83d9f0(0x1fe))/0x7+-parseInt(_0x83d9f0(0x1f2))/0x8*(-parseInt(_0x83d9f0(0x1c1))/0x9);if(_0x5164da===_0x196bb8)break;else _0x5203f5['push'](_0x5203f5['shift']());}catch(_0x261a1b){_0x5203f5['push'](_0x5203f5['shift']());}}}(_0x78ab,0xed5ba));Object[_0xb5bf32(0x1bc)](exports,_0xb5bf32(0x1d1),{'value':!![]}),exports['messages']=void 0x0;const colors_1=require(_0xb5bf32(0x1e2));function _0x78ab(){const _0x4b952a=['Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','colors','633428LGUkDw','yellow','underline','Country\x20(2\x20letter\x20code):','Password\x20for\x20the\x20Key\x20Store:','--url','https://play.google.com/console/about/families/','\x20Check\x20out\x20the\x20Play\x20for','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','Missing\x20required\x20parameter\x20','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','redirected\x20to\x20','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','6631528GQVdUA','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','Do\x20you\x20want\x20to\x20create\x20one\x20now?','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)','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','Invalid\x20integer\x20provided:\x20','1419DkKYki','8581865nBRwTJ','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)','WARNING:\x20','Minimum\x20length\x20is\x20','\x20can\x20not\x20be\x20accessible.','2790347vLCqZu','Decompressing\x20the\x20JDK\x2011\x20Binaries...','defineProperty','\x20URL\x20','7948320NMIeUh','\x20but\x20input\x20is\x20','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','18mZzZhT','Downloading\x20Android\x20SDK\x20to\x20','\x0aSigning\x20key\x20creation','Maximum\x20length\x20is\x20','Organization\x20(eg:\x20Company\x20Name):','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','cyan','Downloading\x20the\x20Android\x20SDK...','\x20and\x20alias\x20','URL\x20','messages','bold','\x20or\x20','Decompressing\x20the\x20JDK\x2011\x20Sources...','(5/5)','__esModule','\x0aProject\x20generated\x20successfully.','--manifest','\x0aSigning\x20key\x20information\x20','Downloading\x20JDK\x2011\x20to\x20','\x0aBuilding\x20the\x20Android\x20App...','Path\x20to\x20your\x20existing\x20JDK\x2011:','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Downloading\x20the\x20JDK\x2011\x20Sources...','--manifest-url','2056bwNLGy','Password\x20for\x20the\x20Key:','1019157EDQqFp','license\x20agreement.','Invalid\x20URL:\x20','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20'];_0x78ab=function(){return _0x4b952a;};return _0x78ab();}exports[_0xb5bf32(0x1cc)]={'promptInstallJdk':_0xb5bf32(0x1f5),'promptJdkPath':_0xb5bf32(0x1d7),'messageDownloadJdk':_0xb5bf32(0x1d5),'messageDownloadJdkSrc':_0xb5bf32(0x1d9),'messageDecompressJdkSrc':_0xb5bf32(0x1cf),'messageDownloadJdkBin':'Downloading\x20the\x20JDK\x2011\x20Binaries...','messageDecompressJdkBin':_0xb5bf32(0x1bb),'promptInstallSdk':_0xb5bf32(0x1fa),'promptSdkPath':'Path\x20to\x20your\x20existing\x20Android\x20SDK:','messageDownloadSdk':_0xb5bf32(0x1c2),'errorSdkTerms':_0xb5bf32(0x1d8),'promptSdkTerms':_0xb5bf32(0x1ee)+(0x0,colors_1['underline'])('https://developer.android.com/studio/terms.html')+'?','messageDownloadAndroidSdk':_0xb5bf32(0x1c9),'messageDecompressAndroidSdk':'Decompressing\x20the\x20Android\x20SDK...','messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+_0xb5bf32(0x1de),'messageGeneratingAndroidProject':'Generating\x20Android\x20Project.','messageCheckSuccess':(_0x7e8380,_0x180690)=>{const _0x4f328b=_0xb5bf32;return _0x4f328b(0x1bd)+(0x0,colors_1[_0x4f328b(0x1c8)])(_0x7e8380)+'\x20'+(_0x180690?_0x4f328b(0x1ef)+(0x0,colors_1[_0x4f328b(0x1c8)])(_0x180690):'')+_0x4f328b(0x1c0);},'errorMissingManifestParameter':_0xb5bf32(0x1ec)+((0x0,colors_1[_0xb5bf32(0x1c8)])(_0xb5bf32(0x1da))+_0xb5bf32(0x1ce)+(0x0,colors_1[_0xb5bf32(0x1c8)])(_0xb5bf32(0x1d3))),'messageInitializingWebManifest':_0x4acbdc=>{const _0x21a31e=_0xb5bf32;return'Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x21a31e(0x1c8)])(_0x4acbdc);},'messageInitializingLocalManifest':_0x4a5ad2=>{const _0x10fc65=_0xb5bf32;return _0x10fc65(0x1f1)+(0x0,colors_1['cyan'])(_0x4a5ad2);},'messageInvalidIcon':_0x772645=>{const _0x45749d=_0xb5bf32;return'Invalid\x20icon\x20path:\x20'+(0x0,colors_1[_0x45749d(0x1c8)])(_0x772645);},'errorStartUrlNotReachable':_0x255e9f=>_0xb5bf32(0x1cb)+_0x255e9f+_0xb5bf32(0x1fd)+_0xb5bf32(0x1f6),'warnFamilyPolicy':(0x0,colors_1[_0xb5bf32(0x1cd)])((0x0,colors_1[_0xb5bf32(0x1e4)])(_0xb5bf32(0x1fb)))+'Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible'+_0xb5bf32(0x1c7)+_0xb5bf32(0x1ea)+_0xb5bf32(0x1eb)+(0x0,colors_1[_0xb5bf32(0x1c8)])(_0xb5bf32(0x1e9)),'promptIconUrl':'Icon\x20URL:','errorInvalidUrl':_0x7ede44=>{const _0x5e55cb=_0xb5bf32;return _0x5e55cb(0x1df)+_0x7ede44;},'errorUrlMustBeImage':_0x37c6b8=>{const _0x16d343=_0xb5bf32;return _0x16d343(0x1f0)+_0x37c6b8+'.';},'promptVersionCode':_0xb5bf32(0x1ed),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0xb5bf32(0x1e5)])(_0xb5bf32(0x1d4)+(0x0,colors_1['green'])(_0xb5bf32(0x1d0))),'messageProjectGeneratedSuccess':_0xb5bf32(0x1d2),'messageSigningKeyCreation':(0x0,colors_1['underline'])(_0xb5bf32(0x1c3)),'messageSigningKeyNotFound':_0x127862=>{const _0x12b5aa=_0xb5bf32;return _0x12b5aa(0x1f3)+_0x127862+'\x22.\x0a';},'promptCreateKey':_0xb5bf32(0x1f4),'promptKeyFullName':_0xb5bf32(0x1c6),'promptKeyOrganizationalUnit':_0xb5bf32(0x1e1),'promptKeyOrganization':_0xb5bf32(0x1c5),'promptKeyCountry':_0xb5bf32(0x1e6),'promptKeystorePassword':_0xb5bf32(0x1e7),'promptKeyPassword':_0xb5bf32(0x1dc),'messageBuildingApp':_0xb5bf32(0x1d6),'messageEnterPasswords':(_0x36cb63,_0x798b5b)=>{const _0xbf162b=_0xb5bf32;return _0xbf162b(0x1e0)+(0x0,colors_1[_0xbf162b(0x1c8)])(_0x36cb63)+_0xbf162b(0x1ca)+(0x0,colors_1[_0xbf162b(0x1c8)])(_0x798b5b)+'.\x0a';},'errorMinLength':(_0x5c2231,_0x6000a2)=>{const _0xfd7ecd=_0xb5bf32;return _0xfd7ecd(0x1fc)+_0x5c2231+'\x20but\x20input\x20is\x20'+_0x6000a2+'.';},'errorMaxLength':(_0xd9845f,_0xdbceb0)=>{const _0x209aef=_0xb5bf32;return _0x209aef(0x1c4)+_0xd9845f+_0x209aef(0x1bf)+_0xdbceb0+'.';},'errorInvalidInteger':_0x6da06d=>{const _0x31eded=_0xb5bf32;return _0x31eded(0x1f7)+_0x6da06d;},'messageApkSuccess':_0x251fc1=>{return'\x09-\x20Generated\x20Android\x20APK\x20at\x20'+(0x0,colors_1['cyan'])(_0x251fc1);},'missingUrlToCheck':_0xb5bf32(0x1ec)+(''+(0x0,colors_1['cyan'])(_0xb5bf32(0x1e8)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x515eb3=_0x2439;(function(_0xf52ab2,_0x4b011a){const _0x171d83=_0x2439,_0x362ecd=_0xf52ab2();while(!![]){try{const _0x54f53e=-parseInt(_0x171d83(0x74))/0x1+-parseInt(_0x171d83(0x75))/0x2*(parseInt(_0x171d83(0x82))/0x3)+-parseInt(_0x171d83(0x78))/0x4+parseInt(_0x171d83(0x80))/0x5*(parseInt(_0x171d83(0x7a))/0x6)+-parseInt(_0x171d83(0x77))/0x7+-parseInt(_0x171d83(0x83))/0x8*(parseInt(_0x171d83(0x81))/0x9)+-parseInt(_0x171d83(0x85))/0xa*(-parseInt(_0x171d83(0x79))/0xb);if(_0x54f53e===_0x4b011a)break;else _0x362ecd['push'](_0x362ecd['shift']());}catch(_0xd757ae){_0x362ecd['push'](_0x362ecd['shift']());}}}(_0x147f,0x7c5e1));function _0x2439(_0x876993,_0x113189){const _0x147f40=_0x147f();return _0x2439=function(_0x243984,_0x82b3e6){_0x243984=_0x243984-0x74;let _0xbf1614=_0x147f40[_0x243984];return _0xbf1614;},_0x2439(_0x876993,_0x113189);}Object[_0x515eb3(0x76)](exports,'__esModule',{'value':!![]}),exports[_0x515eb3(0x7e)]=parseRouter;function parseRouter(_0x1d0706){const _0xb2afcd=_0x515eb3;let _0x406232=_0x1d0706[_0xb2afcd(0x7c)]('/');_0x406232[_0xb2afcd(0x7b)]();let _0x4ad743=_0x406232[_0xb2afcd(0x7d)]();while(_0x4ad743[_0xb2afcd(0x7f)](',')>=0x0){_0x4ad743=_0x4ad743[_0xb2afcd(0x84)](',','/');}return _0x4ad743;}function _0x147f(){const _0x1f5049=['926346VSzbJd','pop','split','join','parseRouter','indexOf','5dmRmBd','180CtyXpT','3017082ToKrGS','354224Rmtfne','replace','754440IDzkSS','633842FYHzhf','2bKKbul','defineProperty','3745028xTjVRW','2333656KFdDdk','583cobVEo'];_0x147f=function(){return _0x1f5049;};return _0x147f();}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5cdedf=_0x4be8;(function(_0x7ae069,_0x25a0a6){const _0x480584=_0x4be8,_0x4bf640=_0x7ae069();while(!![]){try{const _0x1477ce=parseInt(_0x480584(0xed))/0x1+parseInt(_0x480584(0xdd))/0x2+-parseInt(_0x480584(0xde))/0x3*(-parseInt(_0x480584(0xe1))/0x4)+parseInt(_0x480584(0xe3))/0x5+parseInt(_0x480584(0xe4))/0x6*(-parseInt(_0x480584(0xf1))/0x7)+parseInt(_0x480584(0xe7))/0x8*(-parseInt(_0x480584(0xf6))/0x9)+-parseInt(_0x480584(0xf5))/0xa;if(_0x1477ce===_0x25a0a6)break;else _0x4bf640['push'](_0x4bf640['shift']());}catch(_0x4ab0c2){_0x4bf640['push'](_0x4bf640['shift']());}}}(_0x182f,0xc2afe));Object[_0x5cdedf(0xf2)](exports,'__esModule',{'value':!![]}),exports[_0x5cdedf(0xdc)]=void 0x0;const fs=require('fs'),resource_1=require('../resource'),xcodeproject_1=require(_0x5cdedf(0xe9)),xcodebuild_1=require(_0x5cdedf(0xf0)),xcrun_1=require(_0x5cdedf(0xda)),path_1=require(_0x5cdedf(0xdb));class XcodeManager{static async[_0x5cdedf(0xf4)](_0x9bae79,_0x4e9f65=![]){const _0x356016=_0x5cdedf,_0x40cbaf=resource_1[_0x356016(0xe8)]+_0x356016(0xec);await xcodeproject_1[_0x356016(0xdf)][_0x356016(0xee)](_0x40cbaf,_0x9bae79),console[_0x356016(0xe0)](_0x356016(0xef));!fs[_0x356016(0xeb)](resource_1[_0x356016(0xd8)])&&fs['mkdirSync'](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]});if(!_0x4e9f65)await xcodebuild_1[_0x356016(0xdf)]['archive'](_0x9bae79[_0x356016(0xe6)]);}static async[_0x5cdedf(0xd9)](_0x345b69,_0x5dab32){const _0x15d158=_0x5cdedf;if(_0x345b69['u']&&_0x345b69['p'])xcrun_1['default'][_0x15d158(0xf3)]((0x0,path_1[_0x15d158(0xe2)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x5dab32[_0x15d158(0xea)]+_0x15d158(0xf7)),_0x345b69['u'],_0x345b69['p'],!![]);else _0x345b69['k']&&_0x345b69['i']&&xcrun_1[_0x15d158(0xdf)][_0x15d158(0xf3)]((0x0,path_1[_0x15d158(0xe2)])(resource_1[_0x15d158(0xd8)],_0x5dab32['name']+_0x15d158(0xf7)),_0x345b69['k'],_0x345b69['i'],![]);}static async[_0x5cdedf(0xe5)](_0x4c47cd){const _0x54a72c=_0x5cdedf;await xcrun_1[_0x54a72c(0xdf)][_0x54a72c(0xe5)](_0x4c47cd);}}function _0x4be8(_0x1ef258,_0x58f57a){const _0x182f6b=_0x182f();return _0x4be8=function(_0x4be8f0,_0x1b6898){_0x4be8f0=_0x4be8f0-0xd8;let _0x376393=_0x182f6b[_0x4be8f0];return _0x376393;},_0x4be8(_0x1ef258,_0x58f57a);}function _0x182f(){const _0x307ef4=['join','6031905XKxHyf','294654UWkZzy','runWithSimulator','export','68104sBkvzG','PROJECT_DIRECTORY','./xcodeproject','name','existsSync','/web-spatial.xcodeproj/project.pbxproj','144732KJloVR','modify','write\x20project.pbxproj:\x20ok','./xcodebuild','119MuKgNI','defineProperty','uploadApp','parseProject','17906470WHaQLa','945akIBEG','.ipa','PROJECT_EXPORT_DIRECTORY','upload','./xcrun','path','XcodeManager','2753980qLbHEH','150RXavrW','default','log','127096RLcdPl'];_0x182f=function(){return _0x307ef4;};return _0x182f();}exports['XcodeManager']=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x33df(){var _0x366a8f=['5FixUJO','24732UMafRW','3672YRhaae','84333SBnVxh','9303270ReSPMW','\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','389319TFuBRi','2381482BhOWLd','726020cGdVFf','222yNayIE','manifestSwiftTemplate','310478hlwTzI','defineProperty'];_0x33df=function(){return _0x366a8f;};return _0x33df();}function _0x3afd(_0x4461db,_0x41daf2){var _0x33df86=_0x33df();return _0x3afd=function(_0x3afd32,_0x401019){_0x3afd32=_0x3afd32-0xbe;var _0x2713d6=_0x33df86[_0x3afd32];return _0x2713d6;},_0x3afd(_0x4461db,_0x41daf2);}var _0x1a2878=_0x3afd;(function(_0x5269cc,_0x257fcb){var _0x56de91=_0x3afd,_0xf9fbbf=_0x5269cc();while(!![]){try{var _0x5de14f=parseInt(_0x56de91(0xca))/0x1+parseInt(_0x56de91(0xbe))/0x2+parseInt(_0x56de91(0xc7))/0x3+parseInt(_0x56de91(0xbf))/0x4*(-parseInt(_0x56de91(0xc4))/0x5)+-parseInt(_0x56de91(0xc0))/0x6*(-parseInt(_0x56de91(0xc2))/0x7)+parseInt(_0x56de91(0xc6))/0x8*(-parseInt(_0x56de91(0xc5))/0x9)+-parseInt(_0x56de91(0xc8))/0xa;if(_0x5de14f===_0x257fcb)break;else _0xf9fbbf['push'](_0xf9fbbf['shift']());}catch(_0x27d9a5){_0xf9fbbf['push'](_0xf9fbbf['shift']());}}}(_0x33df,0xd5e49));Object[_0x1a2878(0xc3)](exports,'__esModule',{'value':!![]}),exports[_0x1a2878(0xc1)]=void 0x0,exports[_0x1a2878(0xc1)]=_0x1a2878(0xc9);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x492e73=_0x222d;(function(_0x1ca230,_0x305d7f){const _0x471e3d=_0x222d,_0x461101=_0x1ca230();while(!![]){try{const _0x11e36b=parseInt(_0x471e3d(0xa3))/0x1*(parseInt(_0x471e3d(0xcf))/0x2)+parseInt(_0x471e3d(0xc4))/0x3+-parseInt(_0x471e3d(0xb1))/0x4+-parseInt(_0x471e3d(0xd2))/0x5*(parseInt(_0x471e3d(0xae))/0x6)+parseInt(_0x471e3d(0xa7))/0x7+parseInt(_0x471e3d(0xaf))/0x8+-parseInt(_0x471e3d(0xc0))/0x9;if(_0x11e36b===_0x305d7f)break;else _0x461101['push'](_0x461101['shift']());}catch(_0x3a6229){_0x461101['push'](_0x461101['shift']());}}}(_0x121f,0x40c26));function _0x222d(_0x356885,_0x39ed01){const _0x121fcb=_0x121f();return _0x222d=function(_0x222dc8,_0x15088f){_0x222dc8=_0x222dc8-0x9c;let _0x3b7d50=_0x121fcb[_0x222dc8];return _0x3b7d50;},_0x222d(_0x356885,_0x39ed01);}Object[_0x492e73(0xbc)](exports,_0x492e73(0xc2),{'value':!![]}),exports[_0x492e73(0xa4)]=void 0x0;const fs=require('fs'),path_1=require(_0x492e73(0xbb)),resource_1=require(_0x492e73(0xa6)),semver_1=require(_0x492e73(0x9d)),file_1=require(_0x492e73(0xd1)),{execSync,exec}=require('child_process');class Xcodebuild{static async[_0x492e73(0xd3)](){const _0x22ddc3=_0x492e73;try{await new Promise((_0x42a2a6,_0x448c35)=>{const _0x1337b4=_0x222d,_0x40dad9=resource_1['PROJECT_DIRECTORY']+_0x1337b4(0x9e),_0xe527ca=execSync(new XcodebuildCMD()['project'](_0x40dad9)[_0x1337b4(0xd4)]()['line']);console[_0x1337b4(0xac)](_0xe527ca[_0x1337b4(0xaa)]()),_0x42a2a6(_0xe527ca);});}catch(_0x52646a){console[_0x22ddc3(0xac)](_0x52646a);}}static async[_0x492e73(0xd4)](){const _0x2386f2=_0x492e73;try{await new Promise((_0x2a2170,_0x4463a1)=>{const _0x1da972=_0x222d,_0x5b546d=resource_1['PROJECT_DIRECTORY']+_0x1da972(0x9e),_0x1beef8=execSync(new XcodebuildCMD()[_0x1da972(0xd3)](_0x5b546d)['list']()[_0x1da972(0xb2)]);console[_0x1da972(0xac)](_0x1beef8[_0x1da972(0xaa)]()),_0x2a2170(_0x1beef8);});}catch(_0x265770){console[_0x2386f2(0xac)](_0x265770);}}static async[_0x492e73(0xca)](_0x4308b6){const _0x4af49c=_0x492e73;try{return console['log'](_0x4af49c(0xcd)),!fs['existsSync'](resource_1[_0x4af49c(0xbd)])&&fs[_0x4af49c(0xb7)](resource_1[_0x4af49c(0xbd)],{'recursive':!![]}),await new Promise((_0x10845e,_0x31a8af)=>{const _0x1094ad=_0x4af49c,_0x260e14=resource_1[_0x1094ad(0xa5)]+_0x1094ad(0x9e),_0x2bb7f6=execSync(new XcodebuildCMD()['project'](_0x260e14)[_0x1094ad(0xcb)](_0x1094ad(0x9c))[_0x1094ad(0xca)]((0x0,path_1['join'])(resource_1[_0x1094ad(0xb0)],_0x1094ad(0xa2)))[_0x1094ad(0xbf)]()[_0x1094ad(0xb2)]);let _0x2de66a=_0x2bb7f6[_0x1094ad(0xaa)]();if(_0x2de66a[_0x1094ad(0xd0)](_0x1094ad(0xcc))>0x0){console[_0x1094ad(0xac)](_0x1094ad(0xb9)),console[_0x1094ad(0xac)](_0x1094ad(0xb3));const _0x172c2b=execSync(new XcodebuildCMD()['output']((0x0,path_1['join'])(resource_1[_0x1094ad(0xb0)],_0x1094ad(0xc3)),resource_1[_0x1094ad(0xbd)],(0x0,path_1[_0x1094ad(0xa1)])(resource_1[_0x1094ad(0xb0)],_0x1094ad(0xce)))[_0x1094ad(0xb4)]()[_0x1094ad(0xb2)]);_0x2de66a=_0x172c2b[_0x1094ad(0xaa)]();if(_0x2de66a[_0x1094ad(0xd0)](_0x1094ad(0xba))>0x0){if(_0x4308b6){const _0x294b7d=(0x0,path_1[_0x1094ad(0xa1)])(process[_0x1094ad(0xb5)](),_0x4308b6);!fs['existsSync'](_0x294b7d)&&fs[_0x1094ad(0xb7)](_0x294b7d,{'recursive':!![]}),(0x0,file_1[_0x1094ad(0xc9)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x294b7d);}console[_0x1094ad(0xac)](_0x1094ad(0x9f)),_0x10845e(!![]);}(0x0,semver_1['clean'])(resource_1[_0x1094ad(0xb0)]);}_0x10845e(![]);});}catch(_0xf8468c){console[_0x4af49c(0xac)](_0xf8468c);}}}function _0x121f(){const _0x4cae64=['path','defineProperty','PROJECT_EXPORT_DIRECTORY','destination','clean','4292658dhKUAX','\x20archive','__esModule','pack.xcarchive','481254eFOdFE','default','xcodebuild','\x20-list','\x20-allowProvisioningUpdates','copyDir','archive','scheme','ARCHIVE\x20SUCCEEDED','start\x20archive','ExportOptions.plist','58WhvOfp','indexOf','../resource/file','735235BjYkJt','project','list','web-spatial','semver','/web-spatial.xcodeproj','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','\x20-archivePath\x20','join','./pack','3209dgPGQE','XcodebuildCMD','PROJECT_DIRECTORY','../resource','3621527aoEkST','\x20-project\x20','\x20-exportOptionsPlist\x20','toString','\x20-destination\x20\x27','log','\x20-exportArchive\x20-archivePath\x20','12nKeNVm','3044768mrClQj','PROJECT_BUILD_DIRECTORY','460504fHkgll','line','start\x20export','allowProvisioningUpdates','cwd','\x20clean','mkdirSync','\x20-exportPath\x20','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','EXPORT\x20SUCCEEDED'];_0x121f=function(){return _0x4cae64;};return _0x121f();}exports[_0x492e73(0xc5)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x456db8=_0x492e73;this[_0x456db8(0xb2)]=_0x456db8(0xc6);}['project'](_0x7b410){const _0x2d2feb=_0x492e73;return this[_0x2d2feb(0xb2)]+=_0x2d2feb(0xa8)+_0x7b410,this;}[_0x492e73(0xd4)](){const _0x22b5db=_0x492e73;return this['line']+=_0x22b5db(0xc7),this;}[_0x492e73(0xcb)](_0x895e6c){const _0x168454=_0x492e73;return this[_0x168454(0xb2)]+='\x20-scheme\x20'+_0x895e6c,this;}[_0x492e73(0xca)](_0x45a85e){const _0x5ab6ec=_0x492e73;return this[_0x5ab6ec(0xb2)]+=_0x5ab6ec(0xa0)+_0x45a85e+_0x5ab6ec(0xc1),this;}['allowProvisioningUpdates'](){const _0x482b42=_0x492e73;return this['line']+=_0x482b42(0xc8),this;}[_0x492e73(0xbe)](_0x5952a4){const _0x3819fb=_0x492e73;return this[_0x3819fb(0xb2)]+=_0x3819fb(0xab)+_0x5952a4+'\x27',this;}['output'](_0x57df62,_0x2912b1,_0x1889db){const _0x312874=_0x492e73;return this[_0x312874(0xb2)]+=_0x312874(0xad)+_0x57df62+_0x312874(0xb8)+_0x2912b1+_0x312874(0xa9)+_0x1889db,this;}['clean'](){const _0x4c0f83=_0x492e73;return this[_0x4c0f83(0xb2)]+=_0x4c0f83(0xb6),this;}}exports[_0x492e73(0xa4)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2382c8=_0x1bae;(function(_0x4bdc96,_0x5bc67a){const _0x310803=_0x1bae,_0x125635=_0x4bdc96();while(!![]){try{const _0x2a5597=parseInt(_0x310803(0x19e))/0x1*(-parseInt(_0x310803(0x198))/0x2)+-parseInt(_0x310803(0x189))/0x3*(parseInt(_0x310803(0x199))/0x4)+parseInt(_0x310803(0x168))/0x5*(parseInt(_0x310803(0x195))/0x6)+parseInt(_0x310803(0x176))/0x7+parseInt(_0x310803(0x1ae))/0x8*(-parseInt(_0x310803(0x18c))/0x9)+-parseInt(_0x310803(0x161))/0xa+-parseInt(_0x310803(0x17e))/0xb*(-parseInt(_0x310803(0x18f))/0xc);if(_0x2a5597===_0x5bc67a)break;else _0x125635['push'](_0x125635['shift']());}catch(_0xfee8e){_0x125635['push'](_0x125635['shift']());}}}(_0x160a,0xf1538));Object[_0x2382c8(0x162)](exports,_0x2382c8(0x1ad),{'value':!![]});function _0x160a(){const _0xb18939=['protocol_handlers','fixProjectFunction','project','Contents.json','pbxXCBuildConfigurationSection','START_URL','updateDeeplink','objects','scope','1.0','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','replace','updateVersion','.minimal','description','filename','./web-spatial/Info.plist','name','minimal-ui','BUILDTYPE','MIDDLE_APPICON_DIRECTORY','parseSync','PROJECT_BUILD_DIRECTORY','buildType','hash','bindManifestInfo','pbxTargetByName','11363270AuzZme','defineProperty','includes','PROJECT_DIRECTORY','buildSettings','teamId','<?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>','1312795OTLXeN','buildConfigurationList','PBXGroup','Description','SceneResizability','mainScene','json','images','SceneWidth','<?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','join','protocol','writeAsync','value','2954931VbAWbU','enterprise','bindIcon','app-store-connect','push','writeFileSync','.standalone','updateTeamId','11HfGhBE','version','createImg','width','updateBuildProperty','length','true','height','SCOPE','<string>','updateExportOptions','9sgfYdF','stringify','resizability','2460249KSHHpi','pbxXCConfigurationList','icon','24786936YBHNzB','loadJsonFromDisk','AppName','./web-spatial/libs/webView/manifest.swift','PWAProtocol(protocolValue:\x20\x22','../resource','12TjAiCq','path','url','2LITpjS','443708crSTkW','CURRENT_PROJECT_VERSION','icon.','\x22),','modifySwift','281888ApuXAt','display','\x22,\x20url:\x20\x22','SceneHeight','USE_MAIN_SCENE','YOURTEAMID','BACK_APPICON_DIRECTORY','modify','ExportOptions.plist','test','writeSync','1280','\x22automatic\x22','./manifestSwiftTemplate','AppID','__esModule','8oSsQyv','</string>','utf-8','manifestSwiftTemplate','icon.png'];_0x160a=function(){return _0xb18939;};return _0x160a();}const fs=require('fs'),resource_1=require(_0x2382c8(0x194)),path_1=require(_0x2382c8(0x196)),load_1=require('../resource/load'),imageHelper_1=require('../resource/imageHelper'),manifestSwiftTemplate_1=require(_0x2382c8(0x1ab)),xcode=require('xcode'),exportOptionsXML=_0x2382c8(0x167),infoPlistXML=_0x2382c8(0x171);let useExportOptionsXML='';function _0x1bae(_0x389f9a,_0x25891a){const _0x160a06=_0x160a();return _0x1bae=function(_0x1baece,_0x25efa6){_0x1baece=_0x1baece-0x160;let _0x530744=_0x160a06[_0x1baece];return _0x530744;},_0x1bae(_0x389f9a,_0x25891a);}class XcodeProject{static async[_0x2382c8(0x1a5)](_0x4d5f7a,_0x1c0d83){const _0x1b1f3f=_0x2382c8;let _0x28c057=xcode['project'](_0x4d5f7a);this[_0x1b1f3f(0x1b4)](_0x28c057),_0x28c057[_0x1b1f3f(0x1c8)]();let _0x46ddcc=_0x1c0d83[_0x1b1f3f(0x1ca)];const _0x4f44a3=['release-testing',_0x1b1f3f(0x179),'debugging',_0x1b1f3f(0x177)];useExportOptionsXML=exportOptionsXML[_0x1b1f3f(0x1be)](_0x1b1f3f(0x1c6),_0x4f44a3[_0x1b1f3f(0x163)](_0x46ddcc)?_0x46ddcc:'release-testing');_0x1c0d83['teamId']&&this[_0x1b1f3f(0x17d)](_0x28c057,_0x1c0d83[_0x1b1f3f(0x166)]);this[_0x1b1f3f(0x188)](),await this[_0x1b1f3f(0x178)](_0x1c0d83[_0x1b1f3f(0x18e)]),this[_0x1b1f3f(0x1cc)](_0x28c057,_0x1c0d83['manifestInfo'][_0x1b1f3f(0x16e)]);_0x1c0d83[_0x1b1f3f(0x17f)]?this[_0x1b1f3f(0x1bf)](_0x28c057,_0x1c0d83[_0x1b1f3f(0x17f)]):this[_0x1b1f3f(0x1bf)](_0x28c057,_0x1b1f3f(0x1bc));try{fs[_0x1b1f3f(0x17b)](_0x4d5f7a,_0x28c057[_0x1b1f3f(0x1a8)]());}catch(_0x913cbe){console['log'](_0x913cbe);}}static[_0x2382c8(0x1b4)](_0x4a83d4){const _0x9bec9a=_0x2382c8;_0x4a83d4['pbxGroupByName']=function(_0x2f3048){const _0x50eee3=_0x1bae;var _0x2a5456=this[_0x50eee3(0x1cb)][_0x50eee3(0x1b5)][_0x50eee3(0x1ba)][_0x50eee3(0x16a)],_0x202184,_0x2338eb;for(_0x202184 in _0x2a5456){if(!/_comment$/[_0x50eee3(0x1a7)](_0x202184))continue;if(_0x2a5456[_0x202184]==_0x2f3048)return _0x2338eb=_0x202184['split'](/_comment$/)[0x0],_0x2a5456[_0x2338eb];}return![];},_0x4a83d4[_0x9bec9a(0x182)]=function(_0x40187d,_0x31d63e,_0x38ce0a,_0x44f1f6){const _0x404a0c=_0x9bec9a;let _0x1d2e3c=[];const _0x18310d=/_comment$/;if(_0x44f1f6){const _0x2fda57=this[_0x404a0c(0x160)](_0x44f1f6),_0x5b69ae=_0x2fda57&&_0x2fda57[_0x404a0c(0x169)],_0x637f35=this[_0x404a0c(0x18d)]();for(const _0x539f3c in _0x637f35){if(!_0x18310d['test'](_0x539f3c)&&_0x5b69ae===_0x539f3c){const _0x4650cb=_0x637f35[_0x539f3c]['buildConfigurations'];for(const _0x152c6c of _0x4650cb){_0x1d2e3c[_0x404a0c(0x17a)](_0x152c6c[_0x404a0c(0x175)]);}break;}}}var _0x36ebbc=this[_0x404a0c(0x1b7)]();for(var _0x4a4afc in _0x36ebbc){if(!_0x18310d[_0x404a0c(0x1a7)](_0x4a4afc)){if(_0x44f1f6&&!_0x1d2e3c['includes'](_0x4a4afc))continue;var _0x4a29b5=_0x36ebbc[_0x4a4afc];(_0x38ce0a&&_0x4a29b5[_0x404a0c(0x1c4)]===_0x38ce0a||!_0x38ce0a)&&_0x4a29b5[_0x404a0c(0x165)][_0x40187d]&&(_0x4a29b5['buildSettings'][_0x40187d]=_0x31d63e);}}};}static async['bindIcon'](_0x501177){const _0x415aaf=_0x2382c8;if(_0x501177){const _0x5d2449=(0x0,path_1['join'])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x415aaf(0x1a4)]),_0x2c3564=(0x0,path_1['join'])(_0x5d2449,_0x415aaf(0x1b6)),_0x5278a6=_0x415aaf(0x19b)+_0x501177['getMIME']()[_0x415aaf(0x1be)]('image/',''),_0x348b73=(0x0,path_1[_0x415aaf(0x172)])(_0x5d2449,_0x5278a6);let _0x12041f=await(0x0,load_1[_0x415aaf(0x190)])(_0x2c3564);_0x12041f['images'][0x0][_0x415aaf(0x1c2)]=_0x5278a6,await _0x501177[_0x415aaf(0x174)](_0x348b73),await fs[_0x415aaf(0x17b)](_0x2c3564,JSON[_0x415aaf(0x18a)](_0x12041f));const _0x4e5cca=(0x0,path_1[_0x415aaf(0x172)])(resource_1[_0x415aaf(0x164)],resource_1[_0x415aaf(0x1c7)]),_0x74bdea=(0x0,path_1[_0x415aaf(0x172)])(_0x4e5cca,_0x415aaf(0x1b6)),_0x478314=_0x415aaf(0x1b2),_0x576efa=(0x0,path_1[_0x415aaf(0x172)])(_0x4e5cca,_0x478314);let _0x5d548b=await(0x0,load_1[_0x415aaf(0x190)])(_0x74bdea),_0x3c55b1=imageHelper_1['ImageHelper'][_0x415aaf(0x180)](0x200);_0x5d548b[_0x415aaf(0x16f)][0x0]['filename']=_0x478314,await _0x3c55b1['writeAsync'](_0x576efa),await fs['writeFileSync'](_0x74bdea,JSON['stringify'](_0x5d548b));}}static[_0x2382c8(0x17d)](_0x3a6ee7,_0xfd5752){const _0x492123=_0x2382c8;_0x3a6ee7[_0x492123(0x182)]('DEVELOPMENT_TEAM',_0xfd5752),useExportOptionsXML=useExportOptionsXML[_0x492123(0x1be)](_0x492123(0x1a3),_0xfd5752);}static[_0x2382c8(0x188)](){const _0x2569c4=_0x2382c8;!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs['mkdirSync'](resource_1[_0x2569c4(0x1c9)],{'recursive':!![]}),fs[_0x2569c4(0x17b)]((0x0,path_1[_0x2569c4(0x172)])(resource_1[_0x2569c4(0x1c9)],_0x2569c4(0x1a6)),useExportOptionsXML);}static[_0x2382c8(0x1cc)](_0x1ab100,_0x15357d){const _0x4f87d2=_0x2382c8;var _0x410175;_0x1ab100['updateProductName'](_0x15357d['name']),_0x1ab100[_0x4f87d2(0x182)]('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x15357d['id']+'\x22'),this[_0x4f87d2(0x1b9)]((_0x410175=_0x15357d['protocol_handlers'])!==null&&_0x410175!==void 0x0?_0x410175:[]),this[_0x4f87d2(0x19d)](_0x15357d);}static[_0x2382c8(0x1bf)](_0x573355,_0x15f306){const _0x4989b1=_0x2382c8;_0x573355[_0x4989b1(0x182)](_0x4989b1(0x19a),_0x15f306);}static[_0x2382c8(0x1b9)](_0x19b53d){const _0x4ab738=_0x2382c8;let _0x3c33de=(0x0,path_1['join'])(resource_1['PROJECT_DIRECTORY'],_0x4ab738(0x1c3)),_0x29e67d='';for(let _0x114cda=0x0;_0x114cda<_0x19b53d['length'];_0x114cda++){_0x29e67d+=_0x4ab738(0x187)+_0x19b53d[_0x114cda][_0x4ab738(0x173)]+_0x4ab738(0x1af);}const _0x5c7783=infoPlistXML[_0x4ab738(0x1be)]('DEEPLINK',_0x29e67d);fs[_0x4ab738(0x17b)](_0x3c33de,_0x5c7783);}static[_0x2382c8(0x19d)](_0x327900){const _0x1f1ca9=_0x2382c8,_0x49c737=(0x0,path_1[_0x1f1ca9(0x172)])(resource_1['PROJECT_DIRECTORY'],_0x1f1ca9(0x192));let _0x32cf61=manifestSwiftTemplate_1[_0x1f1ca9(0x1b1)];_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x1b8),_0x327900['start_url']),_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x186),_0x327900[_0x1f1ca9(0x1bb)]),_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x191),_0x327900[_0x1f1ca9(0x1c4)]),_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x16b),_0x327900[_0x1f1ca9(0x1c1)]),_0x32cf61=_0x32cf61['replace'](_0x1f1ca9(0x1ac),_0x327900['id']),_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x1c0),_0x327900[_0x1f1ca9(0x19f)]==_0x1f1ca9(0x1c5)?_0x1f1ca9(0x1c0):_0x1f1ca9(0x17c));if(_0x327900['protocol_handlers']){let _0x13632b='';for(let _0x505946=0x0;_0x505946<_0x327900[_0x1f1ca9(0x1b3)][_0x1f1ca9(0x183)];_0x505946++){_0x13632b+=_0x1f1ca9(0x193)+_0x327900[_0x1f1ca9(0x1b3)][_0x505946][_0x1f1ca9(0x173)]+_0x1f1ca9(0x1a0)+_0x327900['protocol_handlers'][_0x505946][_0x1f1ca9(0x197)]+_0x1f1ca9(0x19c);}_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x1bd),_0x13632b);}typeof _0x327900[_0x1f1ca9(0x16d)]==='object'?(_0x32cf61=_0x32cf61['replace'](_0x1f1ca9(0x170),_0x327900['mainScene']['defaultSize'][_0x1f1ca9(0x181)]),_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x1a1),_0x327900[_0x1f1ca9(0x16d)]['defaultSize'][_0x1f1ca9(0x185)]),_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x16c),'\x22'+_0x327900[_0x1f1ca9(0x16d)][_0x1f1ca9(0x18b)]+'\x22'),_0x32cf61=_0x32cf61['replace'](_0x1f1ca9(0x1a2),_0x1f1ca9(0x184))):(_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)](_0x1f1ca9(0x170),_0x1f1ca9(0x1a9)),_0x32cf61=_0x32cf61['replace']('SceneHeight',_0x1f1ca9(0x1a9)),_0x32cf61=_0x32cf61['replace'](_0x1f1ca9(0x16c),_0x1f1ca9(0x1aa)),_0x32cf61=_0x32cf61[_0x1f1ca9(0x1be)]('USE_MAIN_SCENE','false')),fs['writeFileSync'](_0x49c737,_0x32cf61,_0x1f1ca9(0x1b0));}}exports['default']=XcodeProject;
|
|
1
|
+
'use strict';const _0x2759ed=_0x4153;function _0x4153(_0x3d8c00,_0x1f7bb5){const _0x3ce456=_0x3ce4();return _0x4153=function(_0x415308,_0x3bec08){_0x415308=_0x415308-0x12c;let _0x1bd016=_0x3ce456[_0x415308];return _0x1bd016;},_0x4153(_0x3d8c00,_0x1f7bb5);}(function(_0x539bba,_0x2a836e){const _0x3d0527=_0x4153,_0x57c586=_0x539bba();while(!![]){try{const _0x303343=parseInt(_0x3d0527(0x186))/0x1*(-parseInt(_0x3d0527(0x12c))/0x2)+parseInt(_0x3d0527(0x182))/0x3+parseInt(_0x3d0527(0x12d))/0x4+-parseInt(_0x3d0527(0x145))/0x5+parseInt(_0x3d0527(0x135))/0x6*(-parseInt(_0x3d0527(0x15a))/0x7)+parseInt(_0x3d0527(0x18c))/0x8*(-parseInt(_0x3d0527(0x141))/0x9)+parseInt(_0x3d0527(0x150))/0xa;if(_0x303343===_0x2a836e)break;else _0x57c586['push'](_0x57c586['shift']());}catch(_0x329326){_0x57c586['push'](_0x57c586['shift']());}}}(_0x3ce4,0x689a3));Object[_0x2759ed(0x16b)](exports,_0x2759ed(0x170),{'value':!![]});const fs=require('fs'),resource_1=require(_0x2759ed(0x15e)),path_1=require('path'),load_1=require('../resource/load'),imageHelper_1=require(_0x2759ed(0x157)),manifestSwiftTemplate_1=require(_0x2759ed(0x138)),xcode=require(_0x2759ed(0x179)),exportOptionsXML=_0x2759ed(0x152),infoPlistXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a';let useExportOptionsXML='';class XcodeProject{static async[_0x2759ed(0x131)](_0x472a40,_0x35ec9a){const _0x53e1e3=_0x2759ed;let _0xddb470=xcode[_0x53e1e3(0x177)](_0x472a40);this[_0x53e1e3(0x171)](_0xddb470),_0xddb470['parseSync']();let _0x314065=_0x35ec9a[_0x53e1e3(0x154)];const _0x3f9964=[_0x53e1e3(0x192),'app-store-connect',_0x53e1e3(0x18a),'enterprise'];useExportOptionsXML=exportOptionsXML[_0x53e1e3(0x15b)](_0x53e1e3(0x163),_0x3f9964[_0x53e1e3(0x13e)](_0x314065)?_0x314065:_0x53e1e3(0x192));_0x35ec9a[_0x53e1e3(0x13d)]&&this[_0x53e1e3(0x185)](_0xddb470,_0x35ec9a[_0x53e1e3(0x13d)]);this[_0x53e1e3(0x17a)]();if(_0x35ec9a[_0x53e1e3(0x15d)])await this['bindIcon'](_0x35ec9a[_0x53e1e3(0x15d)]);this[_0x53e1e3(0x17d)](_0xddb470,_0x35ec9a['manifestInfo']['json']);_0x35ec9a[_0x53e1e3(0x13c)]?this['updateVersion'](_0xddb470,_0x35ec9a[_0x53e1e3(0x13c)]):this[_0x53e1e3(0x151)](_0xddb470,_0x53e1e3(0x136));try{fs['writeFileSync'](_0x472a40,_0xddb470[_0x53e1e3(0x18d)]());}catch(_0x58ad27){console[_0x53e1e3(0x158)](_0x58ad27);}}static[_0x2759ed(0x171)](_0x199136){const _0x1fa63b=_0x2759ed;_0x199136['pbxGroupByName']=function(_0x4456a8){const _0x517ed1=_0x4153;var _0x1918f4=this['hash'][_0x517ed1(0x177)][_0x517ed1(0x183)][_0x517ed1(0x178)],_0x36bcdd,_0x1d8290;for(_0x36bcdd in _0x1918f4){if(!/_comment$/[_0x517ed1(0x188)](_0x36bcdd))continue;if(_0x1918f4[_0x36bcdd]==_0x4456a8)return _0x1d8290=_0x36bcdd['split'](/_comment$/)[0x0],_0x1918f4[_0x1d8290];}return![];},_0x199136[_0x1fa63b(0x134)]=function(_0x24d641,_0x38c89e,_0x9629d4,_0x2ad0d5){const _0x25a4ca=_0x1fa63b;let _0x53fad0=[];const _0x32671f=/_comment$/;if(_0x2ad0d5){const _0x462ada=this[_0x25a4ca(0x173)](_0x2ad0d5),_0x368e18=_0x462ada&&_0x462ada['buildConfigurationList'],_0x581269=this[_0x25a4ca(0x137)]();for(const _0x5788cc in _0x581269){if(!_0x32671f[_0x25a4ca(0x188)](_0x5788cc)&&_0x368e18===_0x5788cc){const _0x35116f=_0x581269[_0x5788cc][_0x25a4ca(0x16a)];for(const _0x1d5953 of _0x35116f){_0x53fad0[_0x25a4ca(0x166)](_0x1d5953[_0x25a4ca(0x14a)]);}break;}}}var _0x4751bf=this[_0x25a4ca(0x14b)]();for(var _0x43e39e in _0x4751bf){if(!_0x32671f[_0x25a4ca(0x188)](_0x43e39e)){if(_0x2ad0d5&&!_0x53fad0[_0x25a4ca(0x13e)](_0x43e39e))continue;var _0x2e17ba=_0x4751bf[_0x43e39e];(_0x9629d4&&_0x2e17ba['name']===_0x9629d4||!_0x9629d4)&&_0x2e17ba[_0x25a4ca(0x139)][_0x24d641]&&(_0x2e17ba['buildSettings'][_0x24d641]=_0x38c89e);}}};}static async[_0x2759ed(0x168)](_0x2f3ed0){const _0x47f831=_0x2759ed;if(_0x2f3ed0){const _0x46ce79=(0x0,path_1[_0x47f831(0x130)])(resource_1[_0x47f831(0x132)],resource_1[_0x47f831(0x14f)]),_0x5de031=(0x0,path_1[_0x47f831(0x130)])(_0x46ce79,_0x47f831(0x16c)),_0x303475=_0x47f831(0x14c)+_0x2f3ed0[_0x47f831(0x12e)]()[_0x47f831(0x15b)](_0x47f831(0x18b),''),_0x1b4fde=(0x0,path_1['join'])(_0x46ce79,_0x303475);let _0xd55455=await(0x0,load_1[_0x47f831(0x16d)])(_0x5de031);_0xd55455[_0x47f831(0x180)][0x0][_0x47f831(0x16f)]=_0x303475,await _0x2f3ed0['writeAsync'](_0x1b4fde),await fs[_0x47f831(0x189)](_0x5de031,JSON[_0x47f831(0x153)](_0xd55455));const _0x483a07=(0x0,path_1[_0x47f831(0x130)])(resource_1[_0x47f831(0x132)],resource_1[_0x47f831(0x172)]),_0x4e3461=(0x0,path_1['join'])(_0x483a07,_0x47f831(0x16c)),_0x20c9ea='icon.png',_0xd47bb6=(0x0,path_1[_0x47f831(0x130)])(_0x483a07,_0x20c9ea);let _0x50ea96=await(0x0,load_1[_0x47f831(0x16d)])(_0x4e3461),_0x3914ce=imageHelper_1[_0x47f831(0x160)]['createImg'](0x200);_0x50ea96[_0x47f831(0x180)][0x0][_0x47f831(0x16f)]=_0x20c9ea,await _0x3914ce[_0x47f831(0x149)](_0xd47bb6),await fs[_0x47f831(0x189)](_0x4e3461,JSON[_0x47f831(0x153)](_0x50ea96));}}static[_0x2759ed(0x185)](_0x8569b4,_0x2abaf3){const _0x281672=_0x2759ed;_0x8569b4['updateBuildProperty'](_0x281672(0x159),_0x2abaf3),useExportOptionsXML=useExportOptionsXML[_0x281672(0x15b)](_0x281672(0x190),_0x2abaf3);}static[_0x2759ed(0x17a)](){const _0x16a8e8=_0x2759ed;!fs[_0x16a8e8(0x174)](resource_1[_0x16a8e8(0x161)])&&fs['mkdirSync'](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x16a8e8(0x189)]((0x0,path_1[_0x16a8e8(0x130)])(resource_1[_0x16a8e8(0x161)],_0x16a8e8(0x140)),useExportOptionsXML);}static['bindManifestInfo'](_0x4e22ed,_0x10e89d){const _0x2814c8=_0x2759ed;var _0x3e3a71;_0x4e22ed[_0x2814c8(0x18e)](_0x10e89d[_0x2814c8(0x142)]),_0x4e22ed['updateBuildProperty']('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x10e89d['id']+'\x22'),this[_0x2814c8(0x148)]((_0x3e3a71=_0x10e89d[_0x2814c8(0x176)])!==null&&_0x3e3a71!==void 0x0?_0x3e3a71:[]),this[_0x2814c8(0x156)](_0x10e89d);}static[_0x2759ed(0x151)](_0x5377df,_0x252f78){const _0x57f98f=_0x2759ed;_0x5377df[_0x57f98f(0x134)](_0x57f98f(0x146),_0x252f78);}static[_0x2759ed(0x148)](_0x49b205){const _0x2c8645=_0x2759ed;let _0x509b79=(0x0,path_1[_0x2c8645(0x130)])(resource_1[_0x2c8645(0x132)],_0x2c8645(0x184)),_0x3e1b7a='';for(let _0x4c4884=0x0;_0x4c4884<_0x49b205[_0x2c8645(0x13a)];_0x4c4884++){_0x3e1b7a+=_0x2c8645(0x193)+_0x49b205[_0x4c4884]['protocol']+'</string>';}const _0x14988f=infoPlistXML[_0x2c8645(0x15b)](_0x2c8645(0x175),_0x3e1b7a);fs['writeFileSync'](_0x509b79,_0x14988f);}static[_0x2759ed(0x156)](_0x125a03){const _0x5587d8=_0x2759ed,_0x2cfccf=(0x0,path_1['join'])(resource_1[_0x5587d8(0x132)],_0x5587d8(0x164));let _0xa173e1=manifestSwiftTemplate_1[_0x5587d8(0x191)];_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x17b),_0x125a03['start_url']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x18f),_0x125a03[_0x5587d8(0x144)]),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)]('AppName',_0x125a03['name']),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x147),_0x125a03['description']),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x133),_0x125a03['id']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)]('.minimal',_0x125a03[_0x5587d8(0x14d)]==_0x5587d8(0x165)?'.minimal':'.standalone');if(_0x125a03[_0x5587d8(0x176)]){let _0x4704dd='';for(let _0x5dee9e=0x0;_0x5dee9e<_0x125a03[_0x5587d8(0x176)]['length'];_0x5dee9e++){_0x4704dd+=_0x5587d8(0x143)+_0x125a03['protocol_handlers'][_0x5dee9e][_0x5587d8(0x162)]+_0x5587d8(0x17c)+_0x125a03[_0x5587d8(0x176)][_0x5dee9e][_0x5587d8(0x155)]+_0x5587d8(0x167);}_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x13f),_0x4704dd);}typeof _0x125a03[_0x5587d8(0x14e)]===_0x5587d8(0x187)?(_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x169),_0x125a03[_0x5587d8(0x14e)][_0x5587d8(0x13b)]['width']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x17f),_0x125a03['mainScene'][_0x5587d8(0x13b)][_0x5587d8(0x181)]),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x16e),'\x22'+_0x125a03[_0x5587d8(0x14e)]['resizability']+'\x22'),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x194),'true')):(_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x169),'1280'),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x17f),_0x5587d8(0x15c)),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x16e),_0x5587d8(0x12f)),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x194),_0x5587d8(0x17e))),fs[_0x5587d8(0x189)](_0x2cfccf,_0xa173e1,'utf-8');}}function _0x3ce4(){const _0x37d725=['SCOPE','YOURTEAMID','manifestSwiftTemplate','release-testing','<string>','USE_MAIN_SCENE','12986aNySoU','3346172YiyFYu','getMIME','\x22automatic\x22','join','modify','PROJECT_DIRECTORY','AppID','updateBuildProperty','102Kpqhfo','1.0','pbxXCConfigurationList','./manifestSwiftTemplate','buildSettings','length','defaultSize','version','teamId','includes','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','ExportOptions.plist','4311VhVKcn','name','PWAProtocol(protocolValue:\x20\x22','scope','4140285UEkRuk','CURRENT_PROJECT_VERSION','Description','updateDeeplink','writeAsync','value','pbxXCBuildConfigurationSection','icon.','display','mainScene','BACK_APPICON_DIRECTORY','12902940cFLTrg','updateVersion','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>','stringify','buildType','url','modifySwift','../resource/imageHelper','log','DEVELOPMENT_TEAM','276437OSqTqe','replace','1280','icon','../resource','default','ImageHelper','PROJECT_BUILD_DIRECTORY','protocol','BUILDTYPE','./web-spatial/libs/webView/manifest.swift','minimal-ui','push','\x22),','bindIcon','SceneWidth','buildConfigurations','defineProperty','Contents.json','loadJsonFromDisk','SceneResizability','filename','__esModule','fixProjectFunction','MIDDLE_APPICON_DIRECTORY','pbxTargetByName','existsSync','DEEPLINK','protocol_handlers','project','PBXGroup','xcode','updateExportOptions','START_URL','\x22,\x20url:\x20\x22','bindManifestInfo','false','SceneHeight','images','height','1198164YYUGCX','objects','./web-spatial/Info.plist','updateTeamId','67mJYRHb','object','test','writeFileSync','debugging','image/','2728qMvwRE','writeSync','updateProductName'];_0x3ce4=function(){return _0x37d725;};return _0x3ce4();}exports[_0x2759ed(0x15f)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x181809=_0x5c47;(function(_0x508985,_0x117e0d){const _0x5036d5=_0x5c47,_0x5aa153=_0x508985();while(!![]){try{const _0x3556d1=parseInt(_0x5036d5(0x19f))/0x1+-parseInt(_0x5036d5(0x186))/0x2+-parseInt(_0x5036d5(0x1ab))/0x3+parseInt(_0x5036d5(0x15f))/0x4+parseInt(_0x5036d5(0x181))/0x5+-parseInt(_0x5036d5(0x160))/0x6+-parseInt(_0x5036d5(0x182))/0x7*(parseInt(_0x5036d5(0x18d))/0x8);if(_0x3556d1===_0x117e0d)break;else _0x5aa153['push'](_0x5aa153['shift']());}catch(_0x4f7ff5){_0x5aa153['push'](_0x5aa153['shift']());}}}(_0x9ad8,0xe72de));function _0x5c47(_0x5045b0,_0x4c68f2){const _0x9ad889=_0x9ad8();return _0x5c47=function(_0x5c4731,_0x4b4bd4){_0x5c4731=_0x5c4731-0x15f;let _0x52c4d6=_0x9ad889[_0x5c4731];return _0x52c4d6;},_0x5c47(_0x5045b0,_0x4c68f2);}Object[_0x181809(0x19d)](exports,_0x181809(0x1a8),{'value':!![]});const child_process_1=require(_0x181809(0x1a7)),resource_1=require('../resource'),path_1=require(_0x181809(0x177)),fs=require('fs'),xcodebuild_1=require(_0x181809(0x19c));class Xcrun{static async[_0x181809(0x16c)](_0x4e0dda,_0x181c04,_0x14b6f3,_0x16ab3e){const _0x4adba3=_0x181809,_0x2c158a=new XcrunCMD()[_0x4adba3(0x18f)]();_0x2c158a[_0x4adba3(0x16c)](_0x4e0dda);_0x16ab3e?_0x2c158a[_0x4adba3(0x199)](_0x181c04,_0x14b6f3):_0x2c158a[_0x4adba3(0x16e)](_0x181c04,_0x14b6f3);_0x2c158a['platform'](_0x4adba3(0x183));const _0x4f2a31=(0x0,child_process_1['execSync'])(_0x2c158a[_0x4adba3(0x192)]);return _0x4f2a31[_0x4adba3(0x1a5)]();}static async[_0x181809(0x179)](_0x27ae7c,_0x48b371,_0xae7376,_0x41c093,_0xfb9165){const _0x1c9522=_0x181809,_0x4d1a93=new XcrunCMD()[_0x1c9522(0x18f)]();_0x4d1a93[_0x1c9522(0x179)](_0x27ae7c);_0xfb9165?_0x4d1a93['authAccount'](_0x48b371,_0xae7376):_0x4d1a93[_0x1c9522(0x16e)](_0x48b371,_0xae7376);_0x4d1a93['platform']('visionos'),_0x4d1a93[_0x1c9522(0x16a)](_0x41c093);const _0x15910d=(0x0,child_process_1[_0x1c9522(0x17a)])(_0x4d1a93[_0x1c9522(0x192)]);return _0x15910d['toString']();}static async['uploadApp'](_0x5d9a7d,_0x49d93e,_0x56424d,_0x583a96){const _0x492d07=_0x181809,_0x36d8df=new XcrunCMD()['altool']();_0x36d8df['uploadApp'](_0x5d9a7d);_0x583a96?_0x36d8df[_0x492d07(0x199)](_0x49d93e,_0x56424d):_0x36d8df['authApi'](_0x49d93e,_0x56424d);_0x36d8df[_0x492d07(0x187)]('visionos');const _0x3534ff=(0x0,child_process_1['execSync'])(_0x36d8df[_0x492d07(0x192)]);return _0x3534ff[_0x492d07(0x1a5)]();}static async[_0x181809(0x170)](_0x200a41){const _0x4e000c=_0x181809;let _0x4b2157=new XcrunCMD()[_0x4e000c(0x18e)]();_0x4b2157[_0x4e000c(0x171)]('Apple\x20Vision\x20Pro');const _0x5a3595=(0x0,child_process_1['execSync'])(_0x4b2157[_0x4e000c(0x192)]),_0xc161ae=this[_0x4e000c(0x189)](_0x5a3595[_0x4e000c(0x1a5)]());if(_0xc161ae[_0x4e000c(0x1a0)]===0x0)throw new Error('no\x20visionOS\x20simulator\x20found');let _0x44b588=_0xc161ae[0x0];for(let _0x51b22b=0x0;_0x51b22b<_0xc161ae[_0x4e000c(0x1a0)];_0x51b22b++){if(_0xc161ae[_0x51b22b]['state']==='Booted'){_0x44b588=_0xc161ae[_0x51b22b];break;}}console[_0x4e000c(0x176)](_0x4e000c(0x167)+_0x44b588[_0x4e000c(0x17c)]);const _0x1c8920=resource_1[_0x4e000c(0x17b)]+_0x4e000c(0x17f),_0x1f8a19=resource_1[_0x4e000c(0x164)]+'/test';!fs[_0x4e000c(0x1a9)](resource_1[_0x4e000c(0x164)])&&fs[_0x4e000c(0x17d)](resource_1[_0x4e000c(0x164)],{'recursive':!![]});!fs['existsSync'](_0x1f8a19)&&fs[_0x4e000c(0x17d)](_0x1f8a19,{'recursive':!![]});const _0xa89d9f=new xcodebuild_1['XcodebuildCMD']()[_0x4e000c(0x188)](_0x1c8920)[_0x4e000c(0x192)]+(_0x4e000c(0x195)+_0x44b588[_0x4e000c(0x17c)]+_0x4e000c(0x1b0)+_0x1f8a19);console[_0x4e000c(0x176)](_0x4e000c(0x191)),(0x0,child_process_1[_0x4e000c(0x17a)])(_0xa89d9f),console[_0x4e000c(0x176)](_0x4e000c(0x180));_0x44b588[_0x4e000c(0x19b)]===_0x4e000c(0x1a3)&&(_0x4b2157=new XcrunCMD()[_0x4e000c(0x18e)](),_0x4b2157[_0x4e000c(0x19a)](_0x44b588[_0x4e000c(0x17c)]),(0x0,child_process_1[_0x4e000c(0x17a)])(_0x4b2157[_0x4e000c(0x192)]));(0x0,child_process_1['execSync'])(_0x4e000c(0x16b)),console[_0x4e000c(0x176)](_0x4e000c(0x18a));const _0x3c3397=(0x0,path_1[_0x4e000c(0x175)])(_0x1f8a19,_0x4e000c(0x161)+_0x200a41[_0x4e000c(0x198)]+_0x4e000c(0x18c));_0x4b2157=new XcrunCMD()['simctl'](),_0x4b2157[_0x4e000c(0x1a1)](_0x44b588['deviceId'],_0x3c3397),(0x0,child_process_1[_0x4e000c(0x17a)])(_0x4b2157[_0x4e000c(0x192)]),console['log'](_0x4e000c(0x173)),console[_0x4e000c(0x176)](_0x4e000c(0x1ad)),_0x4b2157=new XcrunCMD()[_0x4e000c(0x18e)](),_0x4b2157[_0x4e000c(0x19e)](_0x44b588[_0x4e000c(0x17c)],_0x200a41['id']),(0x0,child_process_1['execSync'])(_0x4b2157['line']);}static[_0x181809(0x189)](_0x5429e7){const _0x34d732=_0x181809;let _0x1408f2=_0x5429e7['split']('\x0a'),_0x9272bf=[],_0x4c9fc7=-0x1;for(let _0x261740=0x0;_0x261740<_0x1408f2[_0x34d732(0x1a0)];_0x261740++){if(_0x1408f2[_0x261740]['includes'](_0x34d732(0x172)))_0x4c9fc7=_0x261740;else{if(_0x4c9fc7>0x0){if(_0x1408f2[_0x261740][_0x34d732(0x1ae)](_0x34d732(0x185)))break;if(_0x1408f2[_0x261740][_0x34d732(0x1a0)]>0x0){const _0x42ac6c=_0x1408f2[_0x261740]['split']('('),_0x2856e4={'name':_0x42ac6c[0x0][_0x34d732(0x1a2)](),'deviceId':_0x42ac6c[0x1][_0x34d732(0x178)](')')[0x0][_0x34d732(0x1a2)](),'state':_0x42ac6c[0x2][_0x34d732(0x178)](')')[0x0][_0x34d732(0x1a2)]()};_0x9272bf[_0x34d732(0x1af)](_0x2856e4);}}}}return _0x9272bf;}}exports[_0x181809(0x16d)]=Xcrun;class XcrunCMD{constructor(){const _0x151dac=_0x181809;this[_0x151dac(0x192)]=_0x151dac(0x16f);}['altool'](){const _0xeee909=_0x181809;return this[_0xeee909(0x192)]+='\x20altool',this;}['simctl'](){const _0x5b0bdd=_0x181809;return this[_0x5b0bdd(0x192)]+=_0x5b0bdd(0x1a6),this;}['list'](){return this['line']+='\x20list',this;}[_0x181809(0x171)](_0xcf8968){const _0x2d1d83=_0x181809;return this[_0x2d1d83(0x192)]+=_0x2d1d83(0x162)+_0xcf8968+'\x22',this;}['validate'](_0x481ebf){const _0x5d779d=_0x181809;return this[_0x5d779d(0x192)]+=_0x5d779d(0x174)+_0x481ebf,this;}[_0x181809(0x163)](_0x264f1f){const _0x423db4=_0x181809;return this[_0x423db4(0x192)]+=_0x423db4(0x197)+_0x264f1f,this;}[_0x181809(0x179)](_0x3c6997){const _0x51d092=_0x181809;return this[_0x51d092(0x192)]+='\x20--upload-package\x20'+_0x3c6997,this;}[_0x181809(0x199)](_0x1f0a50,_0x1912ca){const _0x23ed9b=_0x181809;return this[_0x23ed9b(0x192)]+=_0x23ed9b(0x1aa)+_0x1f0a50+_0x23ed9b(0x196)+_0x1912ca,this;}[_0x181809(0x16e)](_0x55298a,_0x3c8615){const _0x8db631=_0x181809;return this[_0x8db631(0x192)]+=_0x8db631(0x190)+_0x55298a+_0x8db631(0x1a4)+_0x3c8615,this;}[_0x181809(0x16a)](_0x49c84a){const _0x58550f=_0x181809;return this[_0x58550f(0x192)]+=_0x58550f(0x18b)+_0x49c84a,this;}[_0x181809(0x187)](_0x12f422){const _0x190490=_0x181809;return this[_0x190490(0x192)]+=_0x190490(0x17e)+_0x12f422,this;}[_0x181809(0x165)](_0x57885a){const _0x271e67=_0x181809;return this[_0x271e67(0x192)]+=_0x271e67(0x168)+_0x57885a,this;}[_0x181809(0x184)](){const _0x20bfc2=_0x181809;return this[_0x20bfc2(0x192)]+=_0x20bfc2(0x169),this;}[_0x181809(0x1ac)](){const _0xd84302=_0x181809;return this[_0xd84302(0x192)]+=_0xd84302(0x166),this;}['boot'](_0x258c20){const _0x19c387=_0x181809;return this[_0x19c387(0x192)]+=_0x19c387(0x194)+_0x258c20+'\x22',this;}[_0x181809(0x1a1)](_0xa4890c,_0x7f0170){const _0x3e9f28=_0x181809;return this[_0x3e9f28(0x192)]+='\x20install\x20\x22'+_0xa4890c+'\x22\x20\x22'+_0x7f0170+'\x22',this;}[_0x181809(0x19e)](_0xfdd5e6,_0x42c756){const _0x3f59f8=_0x181809;return this[_0x3f59f8(0x192)]+=_0x3f59f8(0x193)+_0xfdd5e6+'\x22\x20\x22'+_0x42c756+'\x22',this;}}function _0x9ad8(){const _0x580738=['\x20-p\x20','\x20--upload-app\x20-f\x20','name','authAccount','boot','state','./xcodebuild','defineProperty','launch','1196303aVngqt','length','install','trim','Shutdown','\x20--apiIssuer\x20','toString','\x20simctl','child_process','__esModule','existsSync','\x20-u\x20','1906614AzCUHa','shutdown','launch\x20app','includes','push','\x27\x20-derivedDataPath\x20','5900476RnPapD','1812702lejasM','Build/Products/Debug-xrsimulator/','\x20list\x20devices\x20\x22','uploadApp','PROJECT_BUILD_DIRECTORY','version','\x20shutdown\x20booted','find\x20simulator:\x20','\x20--bundle-version\x20','\x20--verbose','appleId','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','validate','default','authApi','xcrun','runWithSimulator','listDevices','--\x20visionOS','install\x20success','\x20--validate-app\x20-f\x20','join','log','path','split','uploadPackage','execSync','PROJECT_DIRECTORY','deviceId','mkdirSync','\x20-t\x20','/web-spatial.xcodeproj','build\x20success','8377140aeJGpA','7sKdYVy','visionos','verbose','--\x20','3067564ZwQuiJ','platform','project','parseListDevices','installing\x20app','\x20--apple-id\x20','.app','7428024MnVaCo','simctl','altool','\x20--apiKey\x20','start\x20building','line','\x20launch\x20\x22','\x20boot\x20\x22','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id='];_0x9ad8=function(){return _0x580738;};return _0x9ad8();}
|