@webspatial/builder 0.0.19 → 0.0.20
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.js +1 -1
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.d.ts +1 -0
- package/dist/lib/pwa/validate.js +1 -1
- package/dist/lib/resource/file.js +1 -1
- package/dist/lib/resource/imageHelper.js +1 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.d.ts +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x446705=_0x4c86;function _0x4c86(_0x4edba3,_0x3d409e){const _0x190372=_0x1903();return _0x4c86=function(_0x4c8639,_0x60bbf1){_0x4c8639=_0x4c8639-0xdc;let _0x13ab61=_0x190372[_0x4c8639];return _0x13ab61;},_0x4c86(_0x4edba3,_0x3d409e);}(function(_0x3e1cb0,_0x2beb6e){const _0x361cd3=_0x4c86,_0x355842=_0x3e1cb0();while(!![]){try{const _0x4d79b0=-parseInt(_0x361cd3(0xef))/0x1*(parseInt(_0x361cd3(0xec))/0x2)+parseInt(_0x361cd3(0xf4))/0x3+-parseInt(_0x361cd3(0xe6))/0x4*(-parseInt(_0x361cd3(0xe0))/0x5)+parseInt(_0x361cd3(0xf1))/0x6+parseInt(_0x361cd3(0xee))/0x7+parseInt(_0x361cd3(0xe3))/0x8*(-parseInt(_0x361cd3(0xde))/0x9)+-parseInt(_0x361cd3(0xea))/0xa*(parseInt(_0x361cd3(0xe1))/0xb);if(_0x4d79b0===_0x2beb6e)break;else _0x355842['push'](_0x355842['shift']());}catch(_0x1c6eeb){_0x355842['push'](_0x355842['shift']());}}}(_0x1903,0x5f4b2));Object['defineProperty'](exports,_0x446705(0xdf),{'value':!![]});const Cli_1=require('./lib/Cli'),CustomError_1=require(_0x446705(0xf5));module[_0x446705(0xf3)]=async()=>{const _0x3bfe2e=_0x446705,_0x2be1ef=new Cli_1['Cli'](),_0x27cd6a=Cli_1[_0x3bfe2e(0xdd)][_0x3bfe2e(0xe7)],_0x352548=process[_0x3bfe2e(0xe4)][_0x3bfe2e(0xe8)](0x2);let _0x3051a9;try{_0x3051a9=await _0x2be1ef[_0x3bfe2e(0xeb)](_0x352548);}catch(_0x4dcdcb){if(_0x4dcdcb instanceof CustomError_1[_0x3bfe2e(0xdc)]){const _0x55a750=_0x4dcdcb[_0x3bfe2e(0xe2)];Array[_0x3bfe2e(0xf2)](_0x55a750)?_0x55a750['forEach'](_0x4df6fa=>{const _0x2bd6d0=_0x3bfe2e;_0x27cd6a[_0x2bd6d0(0xe9)](_0x4df6fa[_0x2bd6d0(0xf0)]+':\x20'+_0x4df6fa[_0x2bd6d0(0xed)]);}):_0x27cd6a['error'](_0x55a750[_0x3bfe2e(0xf0)]+':\x20'+_0x55a750[_0x3bfe2e(0xed)]);}else _0x27cd6a[_0x3bfe2e(0xe9)](_0x4dcdcb['message']);_0x3051a9=![];}!_0x3051a9?process[_0x3bfe2e(0xe5)](0x1):process[_0x3bfe2e(0xe5)](0x0);};function _0x1903(){const _0x327b08=['2078045vxEsSE','140954xCSgFn','customMessage','8tkjsBs','argv','exit','4vwZTAl','log','slice','error','410EHzgzu','run','1398908cjKnCm','message','4297433huTikF','1vbbgND','code','2006742zOvKLy','isArray','exports','1208322sXyOPk','./lib/utils/CustomError','CustomError','Cli','1364481QAEBFF','__esModule'];_0x1903=function(){return _0x327b08;};return _0x1903();}
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x7cbe88=_0x3061;(function(_0x1490a2,_0x3446c6){const _0x1ea374=_0x3061,_0x27cec3=_0x1490a2();while(!![]){try{const _0x5d90a1=parseInt(_0x1ea374(0x1fc))/0x1*(-parseInt(_0x1ea374(0x1f8))/0x2)+-parseInt(_0x1ea374(0x1f1))/0x3+-parseInt(_0x1ea374(0x1f4))/0x4+-parseInt(_0x1ea374(0x206))/0x5*(-parseInt(_0x1ea374(0x207))/0x6)+-parseInt(_0x1ea374(0x1ef))/0x7+-parseInt(_0x1ea374(0x20a))/0x8+parseInt(_0x1ea374(0x1f0))/0x9;if(_0x5d90a1===_0x3446c6)break;else _0x27cec3['push'](_0x27cec3['shift']());}catch(_0x3e6f6f){_0x27cec3['push'](_0x27cec3['shift']());}}}(_0x5816,0x3ca8d));Object[_0x7cbe88(0x1f3)](exports,_0x7cbe88(0x1e8),{'value':!![]}),exports[_0x7cbe88(0x1f6)]=void 0x0;function _0x3061(_0x1e33ae,_0x1b1e8c){const _0x581621=_0x5816();return _0x3061=function(_0x3061d6,_0x35cd72){_0x3061d6=_0x3061d6-0x1e7;let _0x9cae40=_0x581621[_0x3061d6];return _0x9cae40;},_0x3061(_0x1e33ae,_0x1b1e8c);}const minimist=require(_0x7cbe88(0x1f2)),semver_1=require('semver'),Log_1=require(_0x7cbe88(0x200)),FetchUtils_1_1=require(_0x7cbe88(0x1fe)),help_1=require(_0x7cbe88(0x1fb)),build_1=require(_0x7cbe88(0x208)),version_1=require('./cmds/version'),fetch_1=require(_0x7cbe88(0x1e9));class Cli{async[_0x7cbe88(0x205)](_0x43ff07){const _0x5dd8a9=_0x7cbe88;if((0x0,semver_1[_0x5dd8a9(0x201)])(process['versions'][_0x5dd8a9(0x203)])<0xe)throw new Error('Current\x20Node.js\x20version\x20is\x20'+process[_0x5dd8a9(0x1f7)][_0x5dd8a9(0x203)]+'.'+_0x5dd8a9(0x1ee));FetchUtils_1_1[_0x5dd8a9(0x1f9)][_0x5dd8a9(0x1eb)](fetch_1[_0x5dd8a9(0x20b)]),FetchUtils_1_1[_0x5dd8a9(0x1f9)]['setDownloadFile'](fetch_1[_0x5dd8a9(0x202)]),FetchUtils_1_1[_0x5dd8a9(0x1f9)][_0x5dd8a9(0x204)](fetch_1[_0x5dd8a9(0x1fd)]);const _0x238082=minimist(_0x43ff07);let _0x4ce596=undefined;if(_0x238082['_']['length']===0x0){if(_0x238082[_0x5dd8a9(0x209)])_0x4ce596=_0x5dd8a9(0x209);else _0x238082[_0x5dd8a9(0x1ed)]&&(_0x4ce596='help');}else _0x4ce596=_0x238082['_'][0x0];!_0x4ce596&&(_0x4ce596=_0x5dd8a9(0x1ed));switch(_0x4ce596){case _0x5dd8a9(0x1ed):case'h':return await(0x0,help_1[_0x5dd8a9(0x1ed)])(_0x238082);case'build':return await(0x0,build_1[_0x5dd8a9(0x1ea)])(_0x238082);case _0x5dd8a9(0x1f5):return await(0x0,build_1[_0x5dd8a9(0x1ff)])(_0x238082);case _0x5dd8a9(0x205):return await(0x0,build_1[_0x5dd8a9(0x205)])(_0x238082);case _0x5dd8a9(0x209):{return await(0x0,version_1[_0x5dd8a9(0x209)])();}default:throw new Error('\x22'+_0x4ce596+_0x5dd8a9(0x1ec));}}}function _0x5816(){const _0x1bd1a7=['setDecompressResponseBuffer','run','26715RkWUgZ','162RpktSF','./cmds/build','version','3965888TPstEV','fetch','ConsoleLog','__esModule','./utils/fetch','start','setFetch','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','help','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','1066401GoIvME','11896794axUvXy','258285xVGvmP','minimist','defineProperty','1916572ZevvSm','publish','Cli','versions','2QNRcCg','fetchUtils','webspatial-builder','./cmds/help','4349BASesd','decompressResponseBuffer','./utils/FetchUtils-1','store','../lib/utils/Log','major','downloadFile','node'];_0x5816=function(){return _0x1bd1a7;};return _0x5816();}exports[_0x7cbe88(0x1f6)]=Cli,Cli['log']=new Log_1[(_0x7cbe88(0x1e7))](_0x7cbe88(0x1fa));
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3c7efe=_0x3e28;function _0x3e28(_0x46dd68,_0x2ee392){const _0x57fbe7=_0x57fb();return _0x3e28=function(_0x3e28c1,_0x1cc0f4){_0x3e28c1=_0x3e28c1-0x1c3;let _0x15c068=_0x57fbe7[_0x3e28c1];return _0x15c068;},_0x3e28(_0x46dd68,_0x2ee392);}(function(_0x1c7657,_0x2e2c78){const _0x28432c=_0x3e28,_0x322c60=_0x1c7657();while(!![]){try{const _0x368e31=parseInt(_0x28432c(0x1d0))/0x1*(parseInt(_0x28432c(0x1c8))/0x2)+-parseInt(_0x28432c(0x1e9))/0x3*(parseInt(_0x28432c(0x1cc))/0x4)+-parseInt(_0x28432c(0x1c5))/0x5+parseInt(_0x28432c(0x1e1))/0x6+parseInt(_0x28432c(0x1ce))/0x7*(-parseInt(_0x28432c(0x1dd))/0x8)+-parseInt(_0x28432c(0x1e6))/0x9+parseInt(_0x28432c(0x1df))/0xa;if(_0x368e31===_0x2e2c78)break;else _0x322c60['push'](_0x322c60['shift']());}catch(_0x5b010d){_0x322c60['push'](_0x322c60['shift']());}}}(_0x57fb,0x909ce));Object[_0x3c7efe(0x1cb)](exports,_0x3c7efe(0x1d9),{'value':!![]}),exports[_0x3c7efe(0x1cf)]=start,exports[_0x3c7efe(0x1da)]=store,exports[_0x3c7efe(0x1e5)]=run;const pwa_1=require('../pwa'),resource_1=require('../resource'),xcode_1=require(_0x3c7efe(0x1e2)),check_1=require('./check');function _0x57fb(){const _0x50e2b2=['platform','__esModule','store','name','generateIcon','725768YhXcsJ','-------------------\x20build\x20end\x20-------------------','17480820GpDESR','upload','4243020PiUeEO','../xcode','version','move\x20web\x20project:\x20ok','run','3606723sbrNeo','dist','buildType','588PaMPGe','log','checkBuildParams','project','checkStoreParams','SpatialWebTest','json','3031340rjoBCu','length','PWAGenerator','6122BDJWjJ','ResourceManager','generator','defineProperty','14372fSKpHj','XcodeManager','28EXnUbM','start','69UdMiXU','moveProjectFrom','app-store-connect','-------------------\x20build\x20start\x20-------------------','export','runWithSimulator','generate\x20icon:\x20ok','parseProject'];_0x57fb=function(){return _0x50e2b2;};return _0x57fb();}async function start(_0x2fb121,_0x402de9=![]){const _0x5279d2=_0x3c7efe;var _0x433702,_0x5bc8b8;(0x0,check_1[_0x5279d2(0x1eb)])(_0x2fb121,_0x402de9),resource_1[_0x5279d2(0x1c9)]['checkPlatformPath'](_0x2fb121[_0x5279d2(0x1d8)]),console[_0x5279d2(0x1ea)](_0x5279d2(0x1d3));let _0x20ad63=await pwa_1[_0x5279d2(0x1c7)][_0x5279d2(0x1ca)](_0x2fb121,_0x402de9);!_0x20ad63['fromNet']&&(await resource_1[_0x5279d2(0x1c9)][_0x5279d2(0x1d1)]((_0x433702=_0x2fb121[_0x5279d2(0x1ec)])!==null&&_0x433702!==void 0x0?_0x433702:_0x5279d2(0x1e7)),console[_0x5279d2(0x1ea)](_0x5279d2(0x1e4)));let _0x2b0878;return((_0x5bc8b8=_0x20ad63[_0x5279d2(0x1c4)]['icons'])===null||_0x5bc8b8===void 0x0?void 0x0:_0x5bc8b8[_0x5279d2(0x1c6)])&&_0x402de9&&(_0x2b0878=await resource_1[_0x5279d2(0x1c9)][_0x5279d2(0x1dc)](_0x20ad63)),console[_0x5279d2(0x1ea)](_0x5279d2(0x1d6)),await xcode_1['XcodeManager'][_0x5279d2(0x1d7)]({'icon':_0x2b0878,'manifestInfo':_0x20ad63,'teamId':_0x2fb121['teamId'],'version':_0x2fb121[_0x5279d2(0x1e3)],'buildType':_0x2fb121[_0x5279d2(0x1e8)],'export':_0x2fb121[_0x5279d2(0x1d4)]},_0x402de9),console[_0x5279d2(0x1ea)](_0x5279d2(0x1de)),_0x20ad63;}async function store(_0x50bbb7){const _0x36957c=_0x3c7efe;resource_1[_0x36957c(0x1c9)]['checkPlatformPath'](_0x50bbb7[_0x36957c(0x1d8)]),(0x0,check_1[_0x36957c(0x1ed)])(_0x50bbb7);let _0x3d78ba={'name':_0x36957c(0x1c3)};_0x50bbb7[_0x36957c(0x1e8)]=_0x36957c(0x1d2);if(_0x50bbb7[_0x36957c(0x1db)])_0x3d78ba['name']=_0x50bbb7[_0x36957c(0x1db)];else{const _0x4c0c17=await start(_0x50bbb7);if(!_0x4c0c17)return![];_0x3d78ba[_0x36957c(0x1db)]=_0x4c0c17[_0x36957c(0x1c4)]['name'];}return await xcode_1[_0x36957c(0x1cd)][_0x36957c(0x1e0)](_0x50bbb7,_0x3d78ba),!![];}async function run(_0x33cc40){const _0xa415f9=_0x3c7efe;let _0x420d4b={'name':_0xa415f9(0x1c3),'id':'com.SpatialWeb.test'};const _0x18774e=await start(_0x33cc40,!![]);if(!_0x18774e)return![];return _0x420d4b[_0xa415f9(0x1db)]=_0x18774e[_0xa415f9(0x1c4)][_0xa415f9(0x1db)],_0x420d4b['id']=_0x18774e[_0xa415f9(0x1c4)]['id'],await xcode_1[_0xa415f9(0x1cd)][_0xa415f9(0x1d5)](_0x420d4b),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x277702=_0x5ba8;(function(_0x348ee7,_0x8d4f6d){const _0x384939=_0x5ba8,_0x1ad72b=_0x348ee7();while(!![]){try{const _0x580c63=parseInt(_0x384939(0x194))/0x1*(-parseInt(_0x384939(0x1a8))/0x2)+parseInt(_0x384939(0x18d))/0x3+parseInt(_0x384939(0x18a))/0x4*(-parseInt(_0x384939(0x193))/0x5)+-parseInt(_0x384939(0x1a5))/0x6*(-parseInt(_0x384939(0x19a))/0x7)+-parseInt(_0x384939(0x1a1))/0x8*(-parseInt(_0x384939(0x19d))/0x9)+-parseInt(_0x384939(0x198))/0xa*(parseInt(_0x384939(0x199))/0xb)+-parseInt(_0x384939(0x1a6))/0xc*(parseInt(_0x384939(0x18e))/0xd);if(_0x580c63===_0x8d4f6d)break;else _0x1ad72b['push'](_0x1ad72b['shift']());}catch(_0x542d36){_0x1ad72b['push'](_0x1ad72b['shift']());}}}(_0x3abd,0xbc133));Object[_0x277702(0x1a7)](exports,_0x277702(0x192),{'value':!![]}),exports[_0x277702(0x18c)]=checkBuildParams,exports[_0x277702(0x1a3)]=checkStoreParams;function _0x5ba8(_0x13ed6f,_0x3854bd){const _0x3abd4d=_0x3abd();return _0x5ba8=function(_0x5ba891,_0x23187e){_0x5ba891=_0x5ba891-0x189;let _0xf3481d=_0x3abd4d[_0x5ba891];return _0xf3481d;},_0x5ba8(_0x13ed6f,_0x3854bd);}const validate_1=require(_0x277702(0x19c));function checkBuildParams(_0x2ca04e,_0x11f005=![]){const _0x1c561c=_0x277702;if(_0x2ca04e[_0x1c561c(0x197)]&&_0x2ca04e[_0x1c561c(0x196)])throw new Error(_0x1c561c(0x190));if(!_0x2ca04e[_0x1c561c(0x19f)]&&!_0x11f005)throw new Error(_0x1c561c(0x19b));if(_0x2ca04e[_0x1c561c(0x1a2)]){if((0x0,validate_1[_0x1c561c(0x18b)])(_0x2ca04e[_0x1c561c(0x1a2)]))try{const _0x1ddb50=new URL(_0x2ca04e[_0x1c561c(0x1a2)]);if(_0x1ddb50[_0x1c561c(0x191)]||_0x1ddb50['hash'])throw new Error(_0x1c561c(0x1a4));}catch(_0x552c8d){throw new Error(_0x1c561c(0x1a4));}else{const _0xe153f7=/(\?.*|\.\w+|#.*)$/,_0x417305=_0x2ca04e[_0x1c561c(0x1a2)][_0x1c561c(0x18f)]('/')[_0x1c561c(0x195)]()||'';if(_0xe153f7[_0x1c561c(0x19e)](_0x417305))throw new Error(_0x1c561c(0x1a4));}}}function _0x3abd(){const _0x2d4014=['base','checkStoreParams','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','7122YhkazR','2897556DHUAjA','defineProperty','2cuuJBu','--u\x20and\x20--p\x20is\x20required','184jGbIfp','validateURL','checkBuildParams','1112199qScoxl','13cRgCfw','split','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','search','__esModule','2075pBTtrN','199402EIpbtx','pop','manifest-url','manifest','184580KRSDNi','319umNMsv','6727YffAPY','--teamId\x20is\x20required','../pwa/validate','2287368VWAGhi','test','teamId','version','8YSlwUc'];_0x3abd=function(){return _0x2d4014;};return _0x3abd();}function checkStoreParams(_0x28e4b0){const _0x4e07f3=_0x277702;if(!(_0x28e4b0['u']&&_0x28e4b0['p']))throw new Error(_0x4e07f3(0x189));if(!_0x28e4b0[_0x4e07f3(0x1a0)])throw new Error('version\x20is\x20required');}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4f6a0e=_0xfe34;(function(_0x39718d,_0x500897){const _0x3b975f=_0xfe34,_0x3b18e0=_0x39718d();while(!![]){try{const _0x52654=parseInt(_0x3b975f(0x158))/0x1+-parseInt(_0x3b975f(0x155))/0x2+parseInt(_0x3b975f(0x15b))/0x3+-parseInt(_0x3b975f(0x160))/0x4*(-parseInt(_0x3b975f(0x154))/0x5)+-parseInt(_0x3b975f(0x15d))/0x6*(parseInt(_0x3b975f(0x159))/0x7)+-parseInt(_0x3b975f(0x157))/0x8+-parseInt(_0x3b975f(0x14d))/0x9*(-parseInt(_0x3b975f(0x153))/0xa);if(_0x52654===_0x500897)break;else _0x3b18e0['push'](_0x3b18e0['shift']());}catch(_0x131506){_0x3b18e0['push'](_0x3b18e0['shift']());}}}(_0x2950,0xd428c));function _0xfe34(_0x2fa323,_0x353a82){const _0x2950eb=_0x2950();return _0xfe34=function(_0xfe3479,_0x2d361b){_0xfe3479=_0xfe3479-0x149;let _0x4354d3=_0x2950eb[_0xfe3479];return _0x4354d3;},_0xfe34(_0x2fa323,_0x353a82);}function _0x2950(){const _0x150b4b=['Usage:','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','9HQMLRc','join','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','ConsoleLog','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','help','8928070DWWvam','618565xtEIkK','3283870zobGuK','main','2177664JaWPTL','1576249kOpTKL','3832619ZHoYzu','get','3271953IxJtFK','publish','18VnqetA','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','28PifCiA','defineProperty','help\x20................\x20shows\x20this\x20menu','__esModule','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','webspatial\x20[command]\x20<options>','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','dev'];_0x2950=function(){return _0x150b4b;};return _0x2950();}Object[_0x4f6a0e(0x161)](exports,_0x4f6a0e(0x163),{'value':!![]}),exports[_0x4f6a0e(0x152)]=help;const Log_1=require('../utils/Log'),HELP_MESSAGES=new Map([[_0x4f6a0e(0x156),[_0x4f6a0e(0x165),'','',_0x4f6a0e(0x162),_0x4f6a0e(0x14f)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project',_0x4f6a0e(0x14b),_0x4f6a0e(0x166)][_0x4f6a0e(0x14e)]('\x0a')],['build',[_0x4f6a0e(0x149),'','',_0x4f6a0e(0x15e),'','','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]'][_0x4f6a0e(0x14e)]('\x0a')],[_0x4f6a0e(0x167),['Usage:','','',_0x4f6a0e(0x151),'','',_0x4f6a0e(0x14c)][_0x4f6a0e(0x14e)]('\x0a')],[_0x4f6a0e(0x15c),[_0x4f6a0e(0x149),'','',_0x4f6a0e(0x164),'','',_0x4f6a0e(0x14a),'','',_0x4f6a0e(0x15f)]['join']('\x0a')]]);async function help(_0x1cf9fb,_0x5bc1a5=new Log_1[(_0x4f6a0e(0x150))]('help')){const _0x2047ff=_0x4f6a0e,_0x37a594=_0x1cf9fb['_'][0x1],_0xe4aad=HELP_MESSAGES[_0x2047ff(0x15a)](_0x37a594)||HELP_MESSAGES[_0x2047ff(0x15a)](_0x2047ff(0x156));return _0x5bc1a5['info'](_0xe4aad),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1eec(){const _0x2ee2ed=['3608262QzVqgL','readFile','defineProperty','__esModule','3cQwxzU','9aOYHnI','11208vxHjBY','toString','info','35JFGGMc','434EIsCpL','5269KQsOBE','parse','1439iiPgyv','version','34908GHvtZz','417516otZddo','promises','2796824FgnkAI','763240bsDcHb'];_0x1eec=function(){return _0x2ee2ed;};return _0x1eec();}const _0x4fd006=_0x31a6;(function(_0x1058c0,_0x263854){const _0x2217e9=_0x31a6,_0x2b3486=_0x1058c0();while(!![]){try{const _0x470b4c=-parseInt(_0x2217e9(0x7e))/0x1*(-parseInt(_0x2217e9(0x8f))/0x2)+-parseInt(_0x2217e9(0x89))/0x3*(parseInt(_0x2217e9(0x80))/0x4)+-parseInt(_0x2217e9(0x8e))/0x5*(-parseInt(_0x2217e9(0x81))/0x6)+-parseInt(_0x2217e9(0x85))/0x7+-parseInt(_0x2217e9(0x83))/0x8*(parseInt(_0x2217e9(0x8a))/0x9)+-parseInt(_0x2217e9(0x84))/0xa+parseInt(_0x2217e9(0x90))/0xb*(parseInt(_0x2217e9(0x8b))/0xc);if(_0x470b4c===_0x263854)break;else _0x2b3486['push'](_0x2b3486['shift']());}catch(_0xb258e7){_0x2b3486['push'](_0x2b3486['shift']());}}}(_0x1eec,0x486b7));function _0x31a6(_0x27514f,_0x2e5e00){const _0x1eec61=_0x1eec();return _0x31a6=function(_0x31a6da,_0x423bec){_0x31a6da=_0x31a6da-0x7e;let _0x47ab46=_0x1eec61[_0x31a6da];return _0x47ab46;},_0x31a6(_0x27514f,_0x2e5e00);}Object[_0x4fd006(0x87)](exports,_0x4fd006(0x88),{'value':!![]}),exports['version']=version;const fs=require('fs'),path=require('path'),Log_1=require('../utils/Log');async function version(_0x108212=new Log_1['ConsoleLog']('version')){const _0x40c14b=_0x4fd006,_0x3aa96e=path['join'](__dirname,'../../../package.json'),_0x484de9=await(await fs[_0x40c14b(0x82)][_0x40c14b(0x86)](_0x3aa96e))[_0x40c14b(0x8c)](),_0x476c88=JSON[_0x40c14b(0x91)](_0x484de9);return _0x108212[_0x40c14b(0x8d)](_0x476c88[_0x40c14b(0x7f)]),!![];}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x148e5c=_0x3413;(function(_0x1ae0aa,_0x121e48){const _0x77861a=_0x3413,_0x31de36=_0x1ae0aa();while(!![]){try{const _0x8d65f9=parseInt(_0x77861a(0xb4))/0x1+parseInt(_0x77861a(0x89))/0x2*(-parseInt(_0x77861a(0xab))/0x3)+parseInt(_0x77861a(0x67))/0x4*(parseInt(_0x77861a(0x9f))/0x5)+-parseInt(_0x77861a(0x6e))/0x6+parseInt(_0x77861a(0xb1))/0x7*(parseInt(_0x77861a(0x87))/0x8)+-parseInt(_0x77861a(0xb0))/0x9*(-parseInt(_0x77861a(0x81))/0xa)+parseInt(_0x77861a(0x97))/0xb;if(_0x8d65f9===_0x121e48)break;else _0x31de36['push'](_0x31de36['shift']());}catch(_0x523db1){_0x31de36['push'](_0x31de36['shift']());}}}(_0x32fe,0x9edc1));Object[_0x148e5c(0x85)](exports,_0x148e5c(0x9e),{'value':!![]}),exports[_0x148e5c(0xb6)]=void 0x0,exports[_0x148e5c(0xaf)]=configId,exports[_0x148e5c(0x82)]=configStartUrl,exports[_0x148e5c(0x71)]=configScope,exports[_0x148e5c(0x8b)]=configDisplay,exports[_0x148e5c(0xb2)]=configMainScene,exports[_0x148e5c(0x6a)]=configDeeplink;function _0x32fe(){const _0x5093a9=['mms','__esModule','5YOmscx','standalone','join','protocol','width','geo','mainScene','defaultSize','mailto','openpgp4fpr','resizability','urn','127758iGlSql','webcal','validateURL','default_size','configId','6714SZEEVH','63TCeaLW','configMainScene','search','381003VYjnUb','ftp','safelist','2664564ANibed','origin','normalize','configDeeplink','sip','pathname','resolve','7237170gLZZqO','relative','split','configScope','ftps','irc','web+','scope','href','ssh','news','xmpp','parseRouter','url','display_override','display','hash','host','xr_main_scene','3790eAGApE','configStartUrl','smsto','includes','defineProperty','matrix','123976GfleiB','string','54MFHGau','sms','configDisplay','reverse','minimal-ui','nntp','protocol_handlers','tel','length','contentSize','indexOf','height','start_url','wtai','16910905TssROY','./static-web','automatic','replace','splice','contentMinSize'];_0x32fe=function(){return _0x5093a9;};return _0x32fe();}const utils_1=require('../utils/utils'),validate_1=require('./validate'),path_1=require('path');function configId(_0x1ceee8,_0x4a1537){const _0x3f9a42=_0x148e5c;if(_0x4a1537)_0x1ceee8['id']=_0x4a1537;else{const _0x3bfc68=new URL(_0x1ceee8['id']);let _0x21fb80=_0x3bfc68[_0x3f9a42(0x7f)][_0x3f9a42(0x70)]('.')[_0x3f9a42(0x8c)]();_0x1ceee8['id']=_0x21fb80[_0x3f9a42(0xa1)]('.');}}function _0x3413(_0x222d45,_0x3f5684){const _0x32fe83=_0x32fe();return _0x3413=function(_0x341389,_0xf29759){_0x341389=_0x341389-0x67;let _0x312061=_0x32fe83[_0x341389];return _0x312061;},_0x3413(_0x222d45,_0x3f5684);}function configStartUrl(_0x2e14c5,_0x1c01e2){const _0x5046f9=_0x148e5c,_0x19b2a5=(0x0,validate_1[_0x5046f9(0xad)])(_0x2e14c5['start_url']),_0x1a1034=(0x0,validate_1['validateURL'])(_0x1c01e2);let _0x3d5257=_0x2e14c5[_0x5046f9(0x95)];if(!_0x19b2a5&&!_0x1a1034){const _0x3f099b=(0x0,path_1[_0x5046f9(0x6d)])(_0x5046f9(0x98)),_0x1101a5=(0x0,path_1[_0x5046f9(0x6d)])(_0x3f099b,_0x1c01e2,_0x3d5257),_0x209485=(0x0,path_1['normalize'])(_0x1101a5),_0x25d44d=(0x0,path_1['join'])(_0x3f099b,_0x209485);_0x3d5257=(0x0,path_1[_0x5046f9(0x6f)])(process['cwd'](),_0x25d44d)[_0x5046f9(0x9a)](/^(\.\.\/)+/,'./')[_0x5046f9(0x9a)](/\/$/,'');}else{if(_0x19b2a5&&!_0x1a1034){const _0x322bbf=new URL(_0x3d5257),_0x534f16=_0x322bbf['pathname']+_0x322bbf[_0x5046f9(0xb3)]+_0x322bbf[_0x5046f9(0x7e)];let _0x4c5999=new URL(_0x1c01e2,_0x322bbf[_0x5046f9(0x68)]);_0x3d5257=new URL(_0x534f16,_0x4c5999)[_0x5046f9(0x76)];}else{if(!_0x19b2a5&&_0x1a1034){if(_0x3d5257['startsWith']('/')){const _0x342f91=new URL(_0x1c01e2);_0x3d5257=_0x342f91[_0x5046f9(0x68)]+(0x0,path_1[_0x5046f9(0xa1)])(_0x342f91[_0x5046f9(0x6c)],_0x3d5257);}else _0x3d5257=new URL(_0x3d5257,_0x1c01e2)[_0x5046f9(0x76)];}else{if(_0x19b2a5&&_0x1a1034){const _0x396ea4=new URL(_0x3d5257),_0x256331=new URL(_0x1c01e2),_0x2e7c15=_0x396ea4[_0x5046f9(0x6c)]+_0x396ea4[_0x5046f9(0xb3)]+_0x396ea4['hash'];_0x3d5257=new URL(_0x2e7c15,_0x256331[_0x5046f9(0x68)]+_0x256331[_0x5046f9(0x6c)])['href'];}}}}return _0x3d5257;}function configScope(_0x9e1f14){const _0x37ef97=_0x148e5c;var _0x3edfb6;let _0xc4ec49=(_0x3edfb6=_0x9e1f14[_0x37ef97(0x75)])!==null&&_0x3edfb6!==void 0x0?_0x3edfb6:'';const _0x49890f=(0x0,validate_1[_0x37ef97(0xad)])(_0x9e1f14['start_url']),_0x57a477=(0x0,validate_1[_0x37ef97(0xad)])(_0xc4ec49);if(_0x49890f&&_0x57a477){const _0x192120=new URL(_0xc4ec49),_0x399057=new URL(_0x9e1f14[_0x37ef97(0x95)]);(_0x192120['host']!==_0x399057['host']||_0x9e1f14[_0x37ef97(0x95)]['indexOf'](_0xc4ec49)!==0x0)&&(_0xc4ec49=(0x0,utils_1['parseRouter'])(_0x9e1f14[_0x37ef97(0x95)]));}else{if(_0x49890f&&!_0x57a477)_0xc4ec49=new URL(_0xc4ec49,_0x9e1f14[_0x37ef97(0x95)])['href'];else{if(!_0x49890f&&_0x57a477){const _0x1688cc=_0x9e1f14['start_url'][_0x37ef97(0x9a)](/\/[^\/]+$/,'');_0xc4ec49=(0x0,path_1[_0x37ef97(0x69)])(_0x1688cc+'/');}else _0xc4ec49=(0x0,path_1[_0x37ef97(0xa1)])((0x0,utils_1[_0x37ef97(0x7a)])(_0x9e1f14['start_url']),_0xc4ec49);}}_0x9e1f14[_0x37ef97(0x75)]=_0xc4ec49;}function configDisplay(_0x3d5cc7){const _0x2c8979=_0x148e5c;let _0x567d0b=_0x3d5cc7[_0x2c8979(0x7d)];_0x567d0b!=='minimal-ui'&&_0x567d0b!==_0x2c8979(0xa0)&&(_0x567d0b=_0x2c8979(0xa0));if(_0x3d5cc7['display_override']&&_0x3d5cc7['display_override'][_0x2c8979(0x91)]>0x0){const _0x2aefa1=_0x3d5cc7['display_override']['indexOf'](_0x2c8979(0x8d)),_0x2e7b20=_0x3d5cc7[_0x2c8979(0x7c)][_0x2c8979(0x93)](_0x2c8979(0xa0));if(_0x2aefa1>=0x0&&_0x2e7b20>=0x0)_0x567d0b=_0x2e7b20>_0x2aefa1?_0x2c8979(0xa0):_0x2c8979(0x8d);else{if(_0x2aefa1>=0x0)_0x567d0b=_0x2c8979(0x8d);else _0x2e7b20>=0x0&&(_0x567d0b=_0x2c8979(0xa0));}}_0x3d5cc7[_0x2c8979(0x7d)]=_0x567d0b;}function configMainScene(_0x2ff3f8){const _0x458711=_0x148e5c;var _0x35b98,_0xc18f7f;const _0x519b97=[_0x458711(0x99),_0x458711(0x9c),_0x458711(0x92)];let _0x7286ef={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x458711(0x99)};if(_0x2ff3f8[_0x458711(0x80)]){if(typeof _0x2ff3f8['xr_main_scene']==='object')_0x7286ef['defaultSize'][_0x458711(0xa3)]=Number((_0x35b98=_0x2ff3f8['xr_main_scene'][_0x458711(0xae)])===null||_0x35b98===void 0x0?void 0x0:_0x35b98[_0x458711(0xa3)])>0x0?_0x2ff3f8[_0x458711(0x80)][_0x458711(0xae)]['width']:0x500,_0x7286ef[_0x458711(0xa6)]['height']=Number((_0xc18f7f=_0x2ff3f8[_0x458711(0x80)][_0x458711(0xae)])===null||_0xc18f7f===void 0x0?void 0x0:_0xc18f7f[_0x458711(0x94)])>0x0?_0x2ff3f8[_0x458711(0x80)][_0x458711(0xae)][_0x458711(0x94)]:0x500,_0x7286ef[_0x458711(0xa9)]=_0x519b97[_0x458711(0x84)](_0x2ff3f8[_0x458711(0x80)][_0x458711(0xa9)])?_0x2ff3f8[_0x458711(0x80)]['resizability']:_0x458711(0x99),_0x2ff3f8['mainScene']=_0x7286ef;else typeof _0x2ff3f8[_0x458711(0x80)]===_0x458711(0x88)&&(_0x2ff3f8[_0x458711(0xa5)]='dynamic');}}function configDeeplink(_0x213309){const _0x76cbf1=_0x148e5c;if(_0x213309['protocol_handlers']&&_0x213309[_0x76cbf1(0x8f)][_0x76cbf1(0x91)]>0x0)for(var _0x31e095=0x0;_0x31e095<_0x213309[_0x76cbf1(0x8f)][_0x76cbf1(0x91)];_0x31e095++){const _0x291d01=_0x213309['protocol_handlers'][_0x31e095];if(_0x291d01[_0x76cbf1(0xa2)]&&(exports[_0x76cbf1(0xb6)][_0x76cbf1(0x84)](_0x291d01[_0x76cbf1(0xa2)])||_0x291d01[_0x76cbf1(0xa2)][_0x76cbf1(0x93)](_0x76cbf1(0x74))===0x0)){if(!((0x0,validate_1[_0x76cbf1(0xad)])(_0x291d01['url'])&&_0x291d01[_0x76cbf1(0x7b)][_0x76cbf1(0x93)](_0x213309[_0x76cbf1(0x75)])<0x0))continue;}_0x213309[_0x76cbf1(0x8f)][_0x76cbf1(0x9b)](_0x31e095,0x1),_0x31e095--;}}exports[_0x148e5c(0xb6)]=['bitcoin',_0x148e5c(0xb5),_0x148e5c(0x72),_0x148e5c(0xa4),'im',_0x148e5c(0x73),'ircs','magnet',_0x148e5c(0xa7),_0x148e5c(0x86),_0x148e5c(0x9d),_0x148e5c(0x78),_0x148e5c(0x8e),_0x148e5c(0xa8),'sftp',_0x148e5c(0x6b),_0x148e5c(0x8a),_0x148e5c(0x83),_0x148e5c(0x77),_0x148e5c(0x90),_0x148e5c(0xaa),_0x148e5c(0xac),_0x148e5c(0x96),_0x148e5c(0x79)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x27bffd=_0x22f4;(function(_0xaec11a,_0x5d8fb3){const _0x3ab9e3=_0x22f4,_0xdfcb8d=_0xaec11a();while(!![]){try{const _0x2057b0=-parseInt(_0x3ab9e3(0x1b5))/0x1*(-parseInt(_0x3ab9e3(0x194))/0x2)+parseInt(_0x3ab9e3(0x1a6))/0x3*(parseInt(_0x3ab9e3(0x191))/0x4)+-parseInt(_0x3ab9e3(0x18f))/0x5+-parseInt(_0x3ab9e3(0x18b))/0x6*(parseInt(_0x3ab9e3(0x1a9))/0x7)+parseInt(_0x3ab9e3(0x199))/0x8*(parseInt(_0x3ab9e3(0x19b))/0x9)+-parseInt(_0x3ab9e3(0x197))/0xa+-parseInt(_0x3ab9e3(0x1a7))/0xb*(-parseInt(_0x3ab9e3(0x19e))/0xc);if(_0x2057b0===_0x5d8fb3)break;else _0xdfcb8d['push'](_0xdfcb8d['shift']());}catch(_0x5c6c4e){_0xdfcb8d['push'](_0xdfcb8d['shift']());}}}(_0x2766,0x6a7d9));Object['defineProperty'](exports,_0x27bffd(0x1a1),{'value':!![]}),exports[_0x27bffd(0x19f)]=void 0x0;const path_1=require(_0x27bffd(0x19d)),config_1=require(_0x27bffd(0x1b2)),load_1=require(_0x27bffd(0x1bb)),validate_1=require(_0x27bffd(0x19a)),fs=require('fs'),Cli_1=require(_0x27bffd(0x1a4));function _0x22f4(_0x491b43,_0x42fdd3){const _0x2766d3=_0x2766();return _0x22f4=function(_0x22f48b,_0x244730){_0x22f48b=_0x22f48b-0x188;let _0x114d4a=_0x2766d3[_0x22f48b];return _0x114d4a;},_0x22f4(_0x491b43,_0x42fdd3);}function _0x2766(){const _0x3166d9=['warn','../Cli','public/manifest.json','3vJBdwU','5098489KIVAgt','cwd','931UHLIyz','bundle-id','generator','checkStartUrl','DisplayModes','log','existsSync','WebSpatialTest','manifest-url','./config','config','configMainScene','1LINkPu','configDeeplink','join','configId','minimal-ui','manifest','../resource/load','checkManifestJson','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found','public/manifest.webmanifest','configScope','base','10662putGsm','useDefaultManifestJson','standalone','checkIcons','3314640guToXu','Cli','1707856uwSbqk','json','loadJsonFromNet','1025278WQTSOQ','loadJsonFromDisk','reset\x20manifest.json:\x20ok','1765020zrBjKb','check\x20manifest.json:\x20ok','592YpzgCz','./validate','13239HCQFGC','checkId','path','12RTpmwG','PWAGenerator','validate','__esModule','defaultManifestJson'];_0x2766=function(){return _0x3166d9;};return _0x2766();}class PWAGenerator{static async[_0x27bffd(0x1ab)](_0x5c6c68,_0x32840c=![]){const _0x1d9c1a=_0x27bffd;let _0x282da9=await this['validate'](_0x5c6c68,_0x32840c);return console['log'](_0x1d9c1a(0x198)),await this[_0x1d9c1a(0x1b3)](_0x282da9,_0x5c6c68,_0x32840c),console[_0x1d9c1a(0x1ae)](_0x1d9c1a(0x196)),_0x282da9;}static async[_0x27bffd(0x1a0)](_0x3d87f8,_0x378815=![]){const _0x5e7ff2=_0x27bffd;var _0x5adf80,_0x5411a5;let _0x1650ed={},_0xbe7d0e='',_0x15db22=![],_0x1cec60=![];if(_0x3d87f8[_0x5e7ff2(0x1b1)])_0xbe7d0e=_0x3d87f8[_0x5e7ff2(0x1b1)],_0x15db22=!![],_0x1650ed=await(0x0,load_1[_0x5e7ff2(0x193)])(_0x3d87f8[_0x5e7ff2(0x1b1)]);else{_0x3d87f8[_0x5e7ff2(0x1ba)]?_0xbe7d0e=(0x0,path_1['join'])(process[_0x5e7ff2(0x1a8)](),_0x3d87f8[_0x5e7ff2(0x1ba)]):(_0xbe7d0e=(0x0,path_1[_0x5e7ff2(0x1b7)])(process[_0x5e7ff2(0x1a8)](),_0x5e7ff2(0x1a5)),!fs[_0x5e7ff2(0x1af)](_0xbe7d0e)&&(_0xbe7d0e=(0x0,path_1[_0x5e7ff2(0x1b7)])(process['cwd'](),_0x5e7ff2(0x188))));if(!fs[_0x5e7ff2(0x1af)](_0xbe7d0e)){if(_0x378815)_0x1cec60=!![],Cli_1[_0x5e7ff2(0x190)][_0x5e7ff2(0x1ae)][_0x5e7ff2(0x1a3)](_0x5e7ff2(0x1bd));else throw new Error(_0x5e7ff2(0x1be));}_0x1650ed=_0x1cec60?this[_0x5e7ff2(0x1a2)]:await(0x0,load_1[_0x5e7ff2(0x195)])(_0xbe7d0e),this[_0x5e7ff2(0x18c)]=_0x1cec60;}(0x0,validate_1[_0x5e7ff2(0x1bc)])(_0x1650ed,_0x378815);let _0x2d44ad=(0x0,config_1['configStartUrl'])(_0x1650ed,(_0x5adf80=_0x3d87f8[_0x5e7ff2(0x18a)])!==null&&_0x5adf80!==void 0x0?_0x5adf80:'');var _0x49a05e=(0x0,validate_1[_0x5e7ff2(0x1ac)])(_0x2d44ad,_0xbe7d0e,_0x15db22,_0x378815);_0x1650ed['start_url']=_0x2d44ad;if(!_0x378815)(0x0,validate_1[_0x5e7ff2(0x19c)])(_0x1650ed,(_0x5411a5=_0x3d87f8[_0x5e7ff2(0x1aa)])!==null&&_0x5411a5!==void 0x0?_0x5411a5:'');return await(0x0,validate_1[_0x5e7ff2(0x18e)])(_0x1650ed,_0xbe7d0e,_0x378815),{'json':_0x1650ed,'url':_0xbe7d0e,'fromNet':_0x49a05e};}static[_0x27bffd(0x1b3)](_0x179ed0,_0x832e12,_0x2e0ab6){const _0x182d7b=_0x27bffd;var _0x10536d;if(!_0x2e0ab6)(0x0,config_1[_0x182d7b(0x1b8)])(_0x179ed0[_0x182d7b(0x192)],(_0x10536d=_0x832e12['bundle-id'])!==null&&_0x10536d!==void 0x0?_0x10536d:'');(0x0,config_1[_0x182d7b(0x189)])(_0x179ed0[_0x182d7b(0x192)]),(0x0,config_1['configDisplay'])(_0x179ed0[_0x182d7b(0x192)]),(0x0,config_1[_0x182d7b(0x1b6)])(_0x179ed0[_0x182d7b(0x192)]),(0x0,config_1[_0x182d7b(0x1b4)])(_0x179ed0['json']);}}exports[_0x27bffd(0x19f)]=PWAGenerator,PWAGenerator[_0x27bffd(0x1ad)]=[_0x27bffd(0x18d),_0x27bffd(0x1b9)],PWAGenerator[_0x27bffd(0x1a2)]={'name':_0x27bffd(0x1b0),'display':_0x27bffd(0x1b9),'start_url':'/','scope':'/'},PWAGenerator[_0x27bffd(0x18c)]=![];
|
|
@@ -2,4 +2,5 @@ export declare function checkManifestJson(manifestJson: Record<string, any>, isD
|
|
|
2
2
|
export declare function checkStartUrl(startUrl: string, manifestUrl: string, isNet: boolean, isDev?: boolean): boolean;
|
|
3
3
|
export declare function checkIcons(manifest: Record<string, any>, manifestUrl: string, isDev?: boolean): Promise<void>;
|
|
4
4
|
export declare function checkId(manifest: Record<string, any>, bundleId: string): void;
|
|
5
|
+
export declare function validateBundleId(bundleId: string): boolean;
|
|
5
6
|
export declare function validateURL(url: string): boolean;
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x22e5cc=_0x34a0;(function(_0x4d9775,_0x5afa4b){const _0x273270=_0x34a0,_0x48028e=_0x4d9775();while(!![]){try{const _0x471d95=-parseInt(_0x273270(0x1ec))/0x1+parseInt(_0x273270(0x1f2))/0x2+-parseInt(_0x273270(0x1eb))/0x3+-parseInt(_0x273270(0x1f0))/0x4*(-parseInt(_0x273270(0x200))/0x5)+parseInt(_0x273270(0x1dc))/0x6+-parseInt(_0x273270(0x201))/0x7+parseInt(_0x273270(0x1fc))/0x8;if(_0x471d95===_0x5afa4b)break;else _0x48028e['push'](_0x48028e['shift']());}catch(_0x5bfb18){_0x48028e['push'](_0x48028e['shift']());}}}(_0x135e,0xd945d));Object[_0x22e5cc(0x1e0)](exports,_0x22e5cc(0x1fa),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x22e5cc(0x1de)]=checkStartUrl,exports[_0x22e5cc(0x1d9)]=checkIcons,exports['checkId']=checkId,exports['validateBundleId']=validateBundleId,exports['validateURL']=validateURL;const path_1=require(_0x22e5cc(0x1d4)),CustomError_1=require('../utils/CustomError'),utils_1=require(_0x22e5cc(0x1e8)),imageHelper_1=require(_0x22e5cc(0x1e9)),load_1=require(_0x22e5cc(0x1e7)),Cli_1=require('../Cli');function checkManifestJson(_0x2b233d,_0x385817=![]){const _0x18a2a5=_0x22e5cc;var _0x3b8e0d;const _0x573692=[];!_0x2b233d[_0x18a2a5(0x1df)]&&!_0x2b233d[_0x18a2a5(0x1ef)]&&!_0x385817&&_0x573692[_0x18a2a5(0x1f5)]({'code':0xbbe,'message':_0x18a2a5(0x1f8),'message_staring_params':{}});!((_0x3b8e0d=_0x2b233d['icons'])===null||_0x3b8e0d===void 0x0?void 0x0:_0x3b8e0d[_0x18a2a5(0x1f6)])&&!_0x385817&&_0x573692[_0x18a2a5(0x1f5)]({'code':0xbbf,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x2b233d[_0x18a2a5(0x1ea)]&&_0x573692['push']({'code':0xbc0,'message':_0x18a2a5(0x206),'message_staring_params':{}});if(_0x573692[_0x18a2a5(0x1f6)])throw new CustomError_1[(_0x18a2a5(0x1e3))](_0x573692);}function checkStartUrl(_0x370bc2,_0x232f07,_0x3937ff,_0x30d942=![]){const _0x3fcf40=_0x22e5cc;var _0x16218a=![];if(_0x30d942)return _0x370bc2[_0x3fcf40(0x204)](_0x3fcf40(0x1f9))||_0x370bc2['startsWith']('http://');if(_0x3937ff){if(_0x370bc2[_0x3fcf40(0x204)](_0x3fcf40(0x1f9))){const _0x4df6a0=new URL(_0x370bc2),_0x307ec4=new URL(_0x232f07);if(_0x4df6a0['host']!==_0x307ec4['host'])throw new CustomError_1[(_0x3fcf40(0x1e3))]({'code':0xfa0,'message':_0x3fcf40(0x203),'message_staring_params':{}});}else{if(_0x370bc2[_0x3fcf40(0x204)](_0x3fcf40(0x1f1)))throw new CustomError_1['CustomError']({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','message_staring_params':{}});}}else{if(_0x370bc2['startsWith']('https://')||_0x370bc2[_0x3fcf40(0x204)](_0x3fcf40(0x1f1)))throw new CustomError_1[(_0x3fcf40(0x1e3))]({'code':0xfa0,'message':_0x3fcf40(0x1dd),'message_staring_params':{}});}return _0x16218a;}async function checkIcons(_0x489774,_0x10644d,_0x29e815=![]){const _0x2db812=_0x22e5cc;var _0x48773e,_0x54486c;if(!((_0x48773e=_0x489774[_0x2db812(0x1ff)])===null||_0x48773e===void 0x0?void 0x0:_0x48773e[_0x2db812(0x1f6)])&&_0x29e815){Cli_1[_0x2db812(0x1fd)][_0x2db812(0x1f4)]['warn'](_0x2db812(0x1d5));return;}const _0x133ec6=(0x0,utils_1[_0x2db812(0x1e2)])(_0x10644d);let _0x481fdc,_0x244336,_0x341df4,_0x1fb0e0=0x0;for(var _0x4c33df=0x0;_0x4c33df<_0x489774[_0x2db812(0x1ff)][_0x2db812(0x1f6)];_0x4c33df++){const _0x1bb2b2=_0x489774['icons'][_0x4c33df];let _0x4a0b31=((_0x54486c=_0x1bb2b2['purpose'])===null||_0x54486c===void 0x0?void 0x0:_0x54486c[_0x2db812(0x1d6)](_0x2db812(0x1e4)))>=0x0;if(!_0x4a0b31)continue;let _0x45ce43=![],_0x470e32=_0x1bb2b2['src'],_0x177851,_0x30e9c1=0x0;!validateURL(_0x470e32)&&(_0x470e32=(0x0,path_1[_0x2db812(0x1fe)])(_0x133ec6,_0x470e32));if(_0x1bb2b2[_0x2db812(0x1db)]){const _0x30c5f3=_0x1bb2b2['sizes'][_0x2db812(0x1e5)]('\x20');_0x30c5f3[_0x2db812(0x205)](_0x127612=>{const _0x4b497f=_0x2db812;let _0x2abe95=_0x127612[_0x4b497f(0x1e5)]('x');Number(_0x2abe95[0x0])>=0x400&&Number(_0x2abe95[0x1])>=0x400&&(_0x45ce43=!![],Number(_0x2abe95[0x0])>_0x30e9c1&&(_0x30e9c1=Number(_0x2abe95[0x0])));});}else _0x177851=!_0x470e32[_0x2db812(0x204)](_0x2db812(0x1da))?await(0x0,load_1['loadImageFromDisk'])(_0x470e32):await(0x0,load_1[_0x2db812(0x1f3)])(_0x470e32),_0x177851[_0x2db812(0x1e1)]()>=0x400&&_0x177851[_0x2db812(0x1f7)]()>=0x400&&(_0x45ce43=!![],_0x177851[_0x2db812(0x1e1)]()>_0x30e9c1&&(_0x30e9c1=_0x177851[_0x2db812(0x1e1)]()));_0x45ce43&&_0x4a0b31&&(_0x30e9c1>_0x1fb0e0&&(_0x1fb0e0=_0x30e9c1,_0x481fdc=_0x177851,_0x244336=_0x470e32,_0x341df4=_0x1bb2b2['purpose']));}if(_0x1fb0e0===0x0){if(_0x29e815){Cli_1['Cli'][_0x2db812(0x1f4)][_0x2db812(0x202)](_0x2db812(0x1ed));return;}throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x2db812(0x1ed),'message_staring_params':{}});}else _0x244336&&(_0x481fdc=!_0x244336[_0x2db812(0x204)](_0x2db812(0x1da))?await(0x0,load_1[_0x2db812(0x1d8)])(_0x244336):await(0x0,load_1[_0x2db812(0x1f3)])(_0x244336));if(_0x481fdc&&!imageHelper_1['ImageHelper']['isFullyOpaque'](_0x481fdc)){if(_0x29e815){Cli_1[_0x2db812(0x1fd)][_0x2db812(0x1f4)][_0x2db812(0x202)](_0x2db812(0x1ed));return;}throw new CustomError_1[(_0x2db812(0x1e3))]({'code':0xfa0,'message':_0x2db812(0x1d7),'message_staring_params':{}});}_0x489774[_0x2db812(0x1ff)]=[{'src':_0x244336,'sizes':_0x1fb0e0+'x'+_0x1fb0e0,'purpose':_0x341df4}];}function _0x135e(){const _0x37d21e=['icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','indexOf','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','loadImageFromDisk','checkIcons','http','sizes','10254528jgpvTv','Local\x20manifest\x20cannot\x20package\x20network\x20project','checkStartUrl','name','defineProperty','getWidth','parseRouter','CustomError','maskable','split','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','../resource/load','../utils/utils','../resource/imageHelper','start_url','1543005WYYEAb','159213RcqSrv','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','short_name','22948lCxDCL','http://','1536846qwRapT','loadImageFromNet','log','push','length','getHeight','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','https://','__esModule','test','1107376lThTzk','Cli','join','icons','240tMzOrl','9294684MgdbEy','warn','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','startsWith','forEach','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','path'];_0x135e=function(){return _0x37d21e;};return _0x135e();}function _0x34a0(_0x563a3d,_0x2f54cf){const _0x135ef9=_0x135e();return _0x34a0=function(_0x34a05e,_0x4b69bd){_0x34a05e=_0x34a05e-0x1d4;let _0x58a261=_0x135ef9[_0x34a05e];return _0x58a261;},_0x34a0(_0x563a3d,_0x2f54cf);}function checkId(_0x261666,_0xda0e41){const _0x1fcf43=_0x22e5cc;if(_0xda0e41){if(!validateBundleId(_0xda0e41))throw new CustomError_1[(_0x1fcf43(0x1e3))]({'code':0xfa0,'message':_0x1fcf43(0x1ee),'message_staring_params':{}});return;}!_0x261666['id']&&(_0x261666['id']=_0x261666['start_url']);if(!validateURL(_0x261666['id'])&&!_0xda0e41)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x1fcf43(0x1e6),'message_staring_params':{}});}function validateBundleId(_0x10f711){const _0x4f5cc8=_0x22e5cc,_0x22f411=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x22f411[_0x4f5cc8(0x1fb)](_0x10f711);}function validateURL(_0x342dc3){try{return new URL(_0x342dc3),!![];}catch(_0x435568){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5a247f=_0x22c2;(function(_0x309e2,_0x4d979a){const _0x48cf56=_0x22c2,_0xf2d8b7=_0x309e2();while(!![]){try{const _0x302408=-parseInt(_0x48cf56(0xe0))/0x1*(parseInt(_0x48cf56(0xde))/0x2)+-parseInt(_0x48cf56(0xce))/0x3*(parseInt(_0x48cf56(0xcb))/0x4)+-parseInt(_0x48cf56(0xe2))/0x5*(-parseInt(_0x48cf56(0xdc))/0x6)+-parseInt(_0x48cf56(0xd9))/0x7*(parseInt(_0x48cf56(0xd3))/0x8)+-parseInt(_0x48cf56(0xcc))/0x9*(parseInt(_0x48cf56(0xd4))/0xa)+-parseInt(_0x48cf56(0xdd))/0xb+-parseInt(_0x48cf56(0xca))/0xc*(-parseInt(_0x48cf56(0xda))/0xd);if(_0x302408===_0x4d979a)break;else _0xf2d8b7['push'](_0xf2d8b7['shift']());}catch(_0x4c0948){_0xf2d8b7['push'](_0xf2d8b7['shift']());}}}(_0x5e5e,0x2fe6b));function _0x5e5e(){const _0x37c7b3=['unlinkSync','5jNDxhS','statSync','1137300wDBYIO','58424ddhKam','1386819lZADqL','isFile','27iehXmF','existsSync','readdirSync','isDirectory','clearDir','10552tGGCNC','20ZPJpgy','readFileSync','__esModule','writeFileSync','forEach','812jAMvdt','143eDGefp','copyDir','653850SHPIUP','2870725qEWnXd','14526oOcxEj','log','14vwiQGf'];_0x5e5e=function(){return _0x37c7b3;};return _0x5e5e();}Object['defineProperty'](exports,_0x5a247f(0xd6),{'value':!![]}),exports[_0x5a247f(0xdb)]=copyDir,exports[_0x5a247f(0xd2)]=clearDir;const fs=require('fs');function copyDir(_0x39274f,_0xbcccfa){const _0x265fa9=_0x5a247f,_0x15baf9=fs[_0x265fa9(0xd0)](_0x39274f);_0x15baf9[_0x265fa9(0xd8)](_0x3d934d=>{const _0x3c4c02=_0x265fa9,_0x4f7ffa=_0x39274f+'/'+_0x3d934d,_0x4bda84=_0xbcccfa+'/'+_0x3d934d,_0x5adbf6=fs[_0x3c4c02(0xe3)](_0x4f7ffa);if(_0x5adbf6[_0x3c4c02(0xcd)]())try{fs[_0x3c4c02(0xd7)](_0x4bda84,fs[_0x3c4c02(0xd5)](_0x4f7ffa));}catch(_0x382df8){console[_0x3c4c02(0xdf)](_0x382df8);}else _0x5adbf6[_0x3c4c02(0xd1)]()&&(!fs[_0x3c4c02(0xcf)](_0x4bda84)&&fs['mkdirSync'](_0x4bda84,{'recursive':!![]}),copyDir(_0x4f7ffa,_0x4bda84));});}function _0x22c2(_0x134a00,_0x5b4e8f){const _0x5e5e6a=_0x5e5e();return _0x22c2=function(_0x22c2a8,_0x5a3aba){_0x22c2a8=_0x22c2a8-0xca;let _0x1b1336=_0x5e5e6a[_0x22c2a8];return _0x1b1336;},_0x22c2(_0x134a00,_0x5b4e8f);}function clearDir(_0x2608ae){const _0x213d10=_0x5a247f,_0xf519f0=fs['readdirSync'](_0x2608ae);_0xf519f0[_0x213d10(0xd8)](_0x19bc33=>{const _0xd751a5=_0x213d10,_0x5bcc30=_0x2608ae+'/'+_0x19bc33,_0x4cfb54=fs[_0xd751a5(0xe3)](_0x5bcc30);if(_0x4cfb54[_0xd751a5(0xcd)]())try{fs[_0xd751a5(0xe1)](_0x5bcc30);}catch(_0x2a8bcf){console[_0xd751a5(0xdf)](_0x2a8bcf);}else _0x4cfb54[_0xd751a5(0xd1)]()&&clearDir(_0x5bcc30);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xcedcac=_0x3255;(function(_0x390314,_0x305973){const _0xa803bf=_0x3255,_0x46e5c2=_0x390314();while(!![]){try{const _0x256972=-parseInt(_0xa803bf(0x164))/0x1+parseInt(_0xa803bf(0x162))/0x2*(parseInt(_0xa803bf(0x158))/0x3)+parseInt(_0xa803bf(0x166))/0x4+parseInt(_0xa803bf(0x16d))/0x5*(parseInt(_0xa803bf(0x15f))/0x6)+parseInt(_0xa803bf(0x16c))/0x7+parseInt(_0xa803bf(0x15a))/0x8+-parseInt(_0xa803bf(0x155))/0x9;if(_0x256972===_0x305973)break;else _0x46e5c2['push'](_0x46e5c2['shift']());}catch(_0x23ad40){_0x46e5c2['push'](_0x46e5c2['shift']());}}}(_0x5001,0xa0e96));Object[_0xcedcac(0x169)](exports,_0xcedcac(0x160),{'value':!![]}),exports[_0xcedcac(0x157)]=void 0x0;function _0x3255(_0x590fbd,_0x3d712b){const _0x500116=_0x5001();return _0x3255=function(_0x3255de,_0x41bb92){_0x3255de=_0x3255de-0x155;let _0xfcaf5f=_0x500116[_0x3255de];return _0xfcaf5f;},_0x3255(_0x590fbd,_0x3d712b);}const Jimp=require(_0xcedcac(0x167)),sharp=require('sharp'),resvg_js_1=require(_0xcedcac(0x15e));class ImageHelper{static[_0xcedcac(0x156)](_0xadb27){return new Jimp(_0xadb27,_0xadb27,0x0);}static async['webp2PngBuffer'](_0x2ee270){const _0x5e8c07=_0xcedcac;return await sharp(_0x2ee270)[_0x5e8c07(0x16e)](_0x5e8c07(0x16a))['toBuffer']();}static async[_0xcedcac(0x163)](_0x20552f){const _0x1a38e5=_0xcedcac,_0x4e7d81={'fitTo':{'mode':_0x1a38e5(0x15d),'value':0x400}},_0x3df580=new resvg_js_1[(_0x1a38e5(0x16b))](_0x20552f,_0x4e7d81),_0x3da8d4=_0x3df580[_0x1a38e5(0x165)](),_0x1afeae=_0x3da8d4[_0x1a38e5(0x159)]();return _0x1afeae;}static[_0xcedcac(0x15c)](_0x5adc1b){const _0x92da13=_0xcedcac,_0x46854e=_0x5adc1b[_0x92da13(0x15b)]()*_0x5adc1b[_0x92da13(0x16f)]();for(var _0x41d388=0x0;_0x41d388<_0x46854e;_0x41d388++){const _0x1b40f4=_0x41d388*0x4+0x3;if(_0x5adc1b[_0x92da13(0x168)][_0x92da13(0x161)][_0x1b40f4]<0xff)return![];}return!![];}}exports[_0xcedcac(0x157)]=ImageHelper;function _0x5001(){const _0x16ca0a=['6490794eorCJd','__esModule','data','175058Muihww','svg2img','566701zxpOCi','render','1163916PFadIq','jimp','bitmap','defineProperty','png','Resvg','6003963zXiQMQ','5RePSsZ','toFormat','getHeight','25482771UfVUlf','createImg','ImageHelper','30kFhuhG','asPng','7611496KEsdWh','getWidth','isFullyOpaque','width','@resvg/resvg-js'];_0x5001=function(){return _0x16ca0a;};return _0x5001();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x545e26=_0x1f91;(function(_0x11474e,_0xd4d108){const _0x156ae6=_0x1f91,_0x82e6af=_0x11474e();while(!![]){try{const _0x1e3bb1=-parseInt(_0x156ae6(0x12f))/0x1*(-parseInt(_0x156ae6(0x146))/0x2)+-parseInt(_0x156ae6(0x147))/0x3+parseInt(_0x156ae6(0x13f))/0x4+parseInt(_0x156ae6(0x13c))/0x5+parseInt(_0x156ae6(0x153))/0x6+-parseInt(_0x156ae6(0x136))/0x7*(-parseInt(_0x156ae6(0x149))/0x8)+parseInt(_0x156ae6(0x142))/0x9*(-parseInt(_0x156ae6(0x144))/0xa);if(_0x1e3bb1===_0xd4d108)break;else _0x82e6af['push'](_0x82e6af['shift']());}catch(_0x3cb46a){_0x82e6af['push'](_0x82e6af['shift']());}}}(_0x3876,0xf2b3b));function _0x3876(){const _0x333a8c=['json','node_modules/@webspatial/platform-','6418276xLTtma','not\x20support\x20platform\x20','./load','1352412duSCEW','path','90XZlkwo','./file','4GYnbfv','3417531RPijJd','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','16824oDlFFA','moveProjectFrom','__esModule','loadImageFromNet','PROJECT_DIRECTORY','mkdirSync','PROJECT_BUILD_DIRECTORY','PROJECT_EXPORT_DIRECTORY','loadImageFromDisk','includes','28968dnvZDW','./export','ASSET_DIRECTORY','join','child_process','WEB_PROJECT_DIRECTORY','existsSync','BACK_APPICON_DIRECTORY','web-spatial/Assets.xcassets','defineProperty','checkPlatformPath','copyDir','visionos','649065xDDeEH','src','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','generateIcon','clearDir','MIDDLE_APPICON_DIRECTORY',',\x20now\x20WebSpatial\x20only\x20support\x20','1792RqZBaR','../../../','icons','cwd','ResourceManager','web-spatial/static-web','199005ZcdVam'];_0x3876=function(){return _0x333a8c;};return _0x3876();}function _0x1f91(_0x525b50,_0x53d286){const _0x38769d=_0x3876();return _0x1f91=function(_0x1f9131,_0x434ac0){_0x1f9131=_0x1f9131-0x129;let _0x4080e5=_0x38769d[_0x1f9131];return _0x4080e5;},_0x1f91(_0x525b50,_0x53d286);}Object[_0x545e26(0x12b)](exports,_0x545e26(0x14b),{'value':!![]}),exports[_0x545e26(0x13a)]=exports[_0x545e26(0x134)]=exports[_0x545e26(0x129)]=exports[_0x545e26(0x155)]=exports[_0x545e26(0x158)]=exports[_0x545e26(0x150)]=exports[_0x545e26(0x14f)]=exports[_0x545e26(0x14d)]=void 0x0;const fs=require('fs'),path_1=require(_0x545e26(0x143)),file_1=require(_0x545e26(0x145)),load_1=require(_0x545e26(0x141)),child_process_1=require(_0x545e26(0x157));exports[_0x545e26(0x14d)]='',exports[_0x545e26(0x14f)]='',exports[_0x545e26(0x150)]='',exports[_0x545e26(0x158)]=_0x545e26(0x13b),exports[_0x545e26(0x155)]=_0x545e26(0x12a),exports[_0x545e26(0x129)]=exports['ASSET_DIRECTORY']+_0x545e26(0x148),exports[_0x545e26(0x134)]=exports[_0x545e26(0x155)]+'/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset';const supportPlatform=[_0x545e26(0x12e)];class ResourceManager{static async[_0x545e26(0x14a)](_0x14f3bf){const _0x17f74c=_0x545e26,_0x58307d=(0x0,path_1['join'])(process[_0x17f74c(0x139)](),_0x14f3bf),_0x221f55=(0x0,path_1[_0x17f74c(0x156)])(exports[_0x17f74c(0x14d)],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x17f74c(0x159)](_0x221f55)?fs[_0x17f74c(0x14e)](_0x221f55,{'recursive':!![]}):(0x0,file_1[_0x17f74c(0x133)])(_0x221f55);try{(0x0,file_1[_0x17f74c(0x12d)])(_0x58307d,_0x221f55);}catch(_0x309d68){console['log'](_0x309d68);}}static async[_0x545e26(0x132)](_0x46e32b){const _0x4ebf72=_0x545e26,_0x4847ff=_0x46e32b[_0x4ebf72(0x13d)],_0xde03ed=_0x4847ff[_0x4ebf72(0x138)][0x0][_0x4ebf72(0x130)],_0x5b5fe9=!_0xde03ed['startsWith']('http')?await(0x0,load_1[_0x4ebf72(0x151)])(_0xde03ed):await(0x0,load_1[_0x4ebf72(0x14c)])(_0xde03ed);return _0x5b5fe9['resize'](0x400,0x400),_0x5b5fe9;}static[_0x545e26(0x12c)](_0x26b358){const _0x49ca72=_0x545e26,_0x37b088=_0x26b358!==null&&_0x26b358!==void 0x0?_0x26b358:supportPlatform[0x0];if(!supportPlatform[_0x49ca72(0x152)](_0x37b088))throw new Error(_0x49ca72(0x140)+_0x37b088+_0x49ca72(0x135)+supportPlatform[_0x49ca72(0x156)](','));let _0x26ed50=(0x0,path_1[_0x49ca72(0x156)])(process['cwd'](),_0x49ca72(0x13e)+_0x37b088);!fs[_0x49ca72(0x159)](_0x26ed50)&&(_0x26ed50=(0x0,path_1['join'])(__dirname,'../../../node_modules/@webspatial/platform-'+_0x37b088));const _0x49ca6c=fs['existsSync'](_0x26ed50);!_0x49ca6c&&(0x0,child_process_1['execSync'])('cd\x20'+(0x0,path_1[_0x49ca72(0x156)])(__dirname,_0x49ca72(0x137))+_0x49ca72(0x131)+_0x37b088),exports[_0x49ca72(0x14d)]=_0x26ed50,exports[_0x49ca72(0x14f)]=(0x0,path_1[_0x49ca72(0x156)])(exports[_0x49ca72(0x14d)],'./build'),exports[_0x49ca72(0x150)]=(0x0,path_1[_0x49ca72(0x156)])(exports[_0x49ca72(0x14d)],_0x49ca72(0x154));}}exports[_0x545e26(0x13a)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4e3a6a=_0x1273;(function(_0x959b92,_0x1d16d){const _0x57bb2b=_0x1273,_0x5c6068=_0x959b92();while(!![]){try{const _0x489afd=-parseInt(_0x57bb2b(0x145))/0x1*(parseInt(_0x57bb2b(0x162))/0x2)+parseInt(_0x57bb2b(0x154))/0x3*(parseInt(_0x57bb2b(0x14a))/0x4)+parseInt(_0x57bb2b(0x15f))/0x5*(-parseInt(_0x57bb2b(0x15b))/0x6)+parseInt(_0x57bb2b(0x153))/0x7+-parseInt(_0x57bb2b(0x150))/0x8+-parseInt(_0x57bb2b(0x169))/0x9+parseInt(_0x57bb2b(0x16b))/0xa;if(_0x489afd===_0x1d16d)break;else _0x5c6068['push'](_0x5c6068['shift']());}catch(_0x366f23){_0x5c6068['push'](_0x5c6068['shift']());}}}(_0x1988,0xd9cd9));function _0x1273(_0x26c8b9,_0x3abb2e){const _0x1988b3=_0x1988();return _0x1273=function(_0x1273e0,_0x35cdcb){_0x1273e0=_0x1273e0-0x13e;let _0x31cf37=_0x1988b3[_0x1273e0];return _0x31cf37;},_0x1273(_0x26c8b9,_0x3abb2e);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x4e3a6a(0x15d)]=loadJsonFromNet,exports[_0x4e3a6a(0x14c)]=loadJsonFromDisk,exports[_0x4e3a6a(0x149)]=loadImageFromNet,exports['loadImageFromDisk']=loadImageFromDisk,exports[_0x4e3a6a(0x147)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x4e3a6a(0x151)),CustomError_1=require('../utils/CustomError'),Jimp=require('jimp'),imageHelper_1=require(_0x4e3a6a(0x14d));function _0x1988(){const _0x7ea739=['parse','12ovkKyP','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','loadFileString','data','loadImageFromNet','3092ItKSUI','read','loadJsonFromDisk','./imageHelper','status','gzip','2759256GuSsYT','../utils/FetchUtils-1','trim','7044842vRquKa','3729WQkmEz','deflate','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','readFile','toString','decompressResponseBuffer','image/','10248834xyffgv','Problem\x20reading\x20','loadJsonFromNet','fetchUtils','5qGyYDq','from','fetch','5438MOfVob','includes','CustomError','content-type','\x20Responded\x20with\x20Content-Type\x20\x22','Failed\x20to\x20download\x20Web\x20Manifest\x20','Received\x20icon\x20with\x20invalid\x20Content-Type.','11694285rIRUue','binary','23099150KJnrwQ','headers','The\x20response\x20status\x20is\x20','promises','content-encoding','startsWith','get',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','webp2PngBuffer','arrayBuffer'];_0x1988=function(){return _0x7ea739;};return _0x1988();}async function loadJsonFromNet(_0x517a19){const _0x12c22b=_0x4e3a6a,_0x301fff=await FetchUtils_1_1['fetchUtils'][_0x12c22b(0x161)](_0x517a19,{'encoding':_0x12c22b(0x16a)});if(_0x301fff[_0x12c22b(0x14e)]!==0xc8)throw new CustomError_1[(_0x12c22b(0x164))]({'code':0xbbc,'message':_0x12c22b(0x167)+_0x517a19+'.'+(_0x12c22b(0x16d)+_0x301fff[_0x12c22b(0x14e)]+_0x12c22b(0x141)),'message_staring_params':{'web_manifest_url':_0x517a19,'status':_0x301fff[_0x12c22b(0x14e)]}});try{let _0x372b83;return _0x301fff['text']?_0x372b83=await _0x301fff['text']():['gzip','deflate','br'][_0x12c22b(0x163)](_0x301fff[_0x12c22b(0x16c)][_0x12c22b(0x13e)])?_0x372b83=FetchUtils_1_1[_0x12c22b(0x15e)][_0x12c22b(0x159)](Buffer[_0x12c22b(0x160)](_0x301fff[_0x12c22b(0x148)],'binary'),_0x301fff[_0x12c22b(0x16c)]['content-encoding'])[_0x12c22b(0x158)]():_0x372b83=Buffer[_0x12c22b(0x160)](_0x301fff['data'],'binary')[_0x12c22b(0x158)](),JSON[_0x12c22b(0x144)](_0x372b83[_0x12c22b(0x152)]());}catch(_0x13f906){throw new CustomError_1[(_0x12c22b(0x164))]({'code':0xbbd,'message':_0x12c22b(0x156),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x5fe9a5){const _0x1ef3d9=_0x4e3a6a,_0x164762=await loadFileString(_0x5fe9a5['toString']());return JSON[_0x1ef3d9(0x144)](_0x164762);}async function loadImageFromNet(_0x337ccb){const _0x44e8b8=_0x4e3a6a,_0x5b270d=await FetchUtils_1_1['fetchUtils'][_0x44e8b8(0x161)](_0x337ccb,{'encoding':'binary'});if(_0x5b270d['status']!==0xc8)throw new CustomError_1[(_0x44e8b8(0x164))]({'code':0x7d2,'message':_0x44e8b8(0x146)+_0x5b270d[_0x44e8b8(0x14e)],'message_staring_params':{'icon_url':_0x337ccb,'status':_0x5b270d[_0x44e8b8(0x14e)]}});const _0x2469f6=_0x5b270d[_0x44e8b8(0x16c)]['get']?_0x5b270d['headers'][_0x44e8b8(0x140)](_0x44e8b8(0x165)):_0x5b270d[_0x44e8b8(0x16c)][_0x44e8b8(0x165)];if(!(_0x2469f6===null||_0x2469f6===void 0x0?void 0x0:_0x2469f6[_0x44e8b8(0x13f)](_0x44e8b8(0x15a))))throw new CustomError_1[(_0x44e8b8(0x164))]({'code':0x7d3,'message':_0x44e8b8(0x168)+(_0x44e8b8(0x166)+_0x2469f6+'\x22'),'message_staring_params':{'icon_url':_0x337ccb,'contentType':_0x2469f6}});let _0x24aaea;_0x5b270d['arrayBuffer']?_0x24aaea=await _0x5b270d[_0x44e8b8(0x143)]():[_0x44e8b8(0x14f),_0x44e8b8(0x155),'br'][_0x44e8b8(0x163)](_0x5b270d['headers'][_0x44e8b8(0x13e)])?_0x24aaea=FetchUtils_1_1[_0x44e8b8(0x15e)][_0x44e8b8(0x159)](Buffer[_0x44e8b8(0x160)](_0x5b270d[_0x44e8b8(0x148)],'binary'),_0x5b270d['headers'][_0x44e8b8(0x13e)]):_0x24aaea=Buffer[_0x44e8b8(0x160)](_0x5b270d[_0x44e8b8(0x148)],_0x44e8b8(0x16a));if(_0x2469f6[_0x44e8b8(0x13f)]('image/svg')){const _0x5dc058=new TextDecoder();try{_0x24aaea=await imageHelper_1['ImageHelper']['svg2img'](_0x5dc058['decode'](_0x24aaea));}catch(_0x48de15){throw new CustomError_1[(_0x44e8b8(0x164))]({'code':0x7d4,'message':_0x44e8b8(0x15c)+_0x337ccb+':\x20'+_0x48de15,'message_staring_params':{'icon_url':_0x337ccb,'error':_0x48de15}});}}return _0x2469f6[_0x44e8b8(0x13f)]('image/webp')&&(_0x24aaea=await imageHelper_1['ImageHelper'][_0x44e8b8(0x142)](_0x24aaea)),await Jimp[_0x44e8b8(0x14b)](Buffer[_0x44e8b8(0x160)](_0x24aaea));}async function loadImageFromDisk(_0x1df7fb){const _0x4716c0=_0x4e3a6a;return await Jimp[_0x4716c0(0x14b)](_0x1df7fb);}async function loadFileString(_0x58860c){const _0x3edd05=_0x4e3a6a;let _0x2ac2a7=await fs[_0x3edd05(0x16e)][_0x3edd05(0x157)](_0x58860c[_0x3edd05(0x158)]());return _0x2ac2a7[_0x3edd05(0x158)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2b78aa=_0x5782;(function(_0x505e97,_0x1546e6){var _0xa267fb=_0x5782,_0x46cedc=_0x505e97();while(!![]){try{var _0x243979=-parseInt(_0xa267fb(0x1be))/0x1+parseInt(_0xa267fb(0x1b2))/0x2*(-parseInt(_0xa267fb(0x1b7))/0x3)+parseInt(_0xa267fb(0x1b6))/0x4+parseInt(_0xa267fb(0x1b5))/0x5*(parseInt(_0xa267fb(0x1b3))/0x6)+parseInt(_0xa267fb(0x1ba))/0x7*(parseInt(_0xa267fb(0x1c1))/0x8)+-parseInt(_0xa267fb(0x1b4))/0x9*(parseInt(_0xa267fb(0x1c0))/0xa)+parseInt(_0xa267fb(0x1bb))/0xb;if(_0x243979===_0x1546e6)break;else _0x46cedc['push'](_0x46cedc['shift']());}catch(_0x4613bb){_0x46cedc['push'](_0x46cedc['shift']());}}}(_0x1872,0x6d76d));Object['defineProperty'](exports,_0x2b78aa(0x1bc),{'value':!![]}),exports[_0x2b78aa(0x1b1)]=void 0x0;class CustomError extends Error{constructor(_0x34b7ee,_0x250669){var _0xed99c6=_0x2b78aa;super(JSON[_0xed99c6(0x1b8)](_0x34b7ee)),this[_0xed99c6(0x1bf)]=_0x34b7ee,this[_0xed99c6(0x1b9)]=_0x250669||_0xed99c6(0x1bd);}}exports[_0x2b78aa(0x1b1)]=CustomError;function _0x5782(_0x297f5d,_0x3ca1e7){var _0x18720d=_0x1872();return _0x5782=function(_0x5782cf,_0x2c4eb6){_0x5782cf=_0x5782cf-0x1b1;var _0x7a3ad4=_0x18720d[_0x5782cf];return _0x7a3ad4;},_0x5782(_0x297f5d,_0x3ca1e7);}function _0x1872(){var _0x579559=['12229HottMQ','7127758GAIVwa','__esModule','info','846492zsJPzE','customMessage','913070BMcyXR','272Pwxdly','CustomError','4700oDpCcf','222zuPuru','18rBSTrF','103595xuGXVZ','1245368PxhJyt','393MMyFTI','stringify','type'];_0x1872=function(){return _0x579559;};return _0x1872();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x596eac=_0xf944;(function(_0x3571be,_0x45b98c){const _0x4dce62=_0xf944,_0x3e8aa0=_0x3571be();while(!![]){try{const _0x4fbb0c=-parseInt(_0x4dce62(0x137))/0x1+parseInt(_0x4dce62(0x132))/0x2+-parseInt(_0x4dce62(0x134))/0x3+-parseInt(_0x4dce62(0x12d))/0x4+-parseInt(_0x4dce62(0x139))/0x5+-parseInt(_0x4dce62(0x12b))/0x6*(parseInt(_0x4dce62(0x133))/0x7)+parseInt(_0x4dce62(0x130))/0x8;if(_0x4fbb0c===_0x45b98c)break;else _0x3e8aa0['push'](_0x3e8aa0['shift']());}catch(_0x107e0a){_0x3e8aa0['push'](_0x3e8aa0['shift']());}}}(_0x46f6,0x2acfc));function _0x46f6(){const _0x552e43=['setFetch','693202XofjwZ','7PfVZXg','121125YBWnkG','setDecompressResponseBuffer','fetch','106538GxMZzv','downloadFile','520060vwVwgp','setDownloadFile','decompressResponseBuffer','1333704RVOLRd','defineProperty','195244rmeZNw','fetchUtils','fetchEngine','2806200kAAPlA'];_0x46f6=function(){return _0x552e43;};return _0x46f6();}Object[_0x596eac(0x12c)](exports,'__esModule',{'value':!![]}),exports[_0x596eac(0x12e)]=void 0x0;class FetchUtils{constructor(){const _0x57aa81=_0x596eac;this[_0x57aa81(0x12f)]=null,this[_0x57aa81(0x136)]=null,this[_0x57aa81(0x138)]=null,this[_0x57aa81(0x12a)]=null;}['setFetchEngine'](_0x386b33){const _0x37fe6a=_0x596eac;this[_0x37fe6a(0x12f)]=_0x386b33;}[_0x596eac(0x131)](_0x133eec){const _0x861b1a=_0x596eac;this[_0x861b1a(0x136)]=_0x133eec;}[_0x596eac(0x13a)](_0x3d702a){const _0x43535a=_0x596eac;this[_0x43535a(0x138)]=_0x3d702a;}[_0x596eac(0x135)](_0x4c6cc1){const _0x402977=_0x596eac;this[_0x402977(0x12a)]=_0x4c6cc1;}}function _0xf944(_0x1053ed,_0x2f97d2){const _0x46f6bf=_0x46f6();return _0xf944=function(_0xf9444f,_0x137a87){_0xf9444f=_0xf9444f-0x12a;let _0x20f412=_0x46f6bf[_0xf9444f];return _0x20f412;},_0xf944(_0x1053ed,_0x2f97d2);}const fetchUtils=new FetchUtils();exports[_0x596eac(0x12e)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x32ddf2=_0x4172;(function(_0xd35686,_0x5f51){var _0x482312=_0x4172,_0x7a65c3=_0xd35686();while(!![]){try{var _0x11a2e1=-parseInt(_0x482312(0x17f))/0x1*(parseInt(_0x482312(0x19a))/0x2)+-parseInt(_0x482312(0x192))/0x3+-parseInt(_0x482312(0x17e))/0x4+parseInt(_0x482312(0x185))/0x5+parseInt(_0x482312(0x17d))/0x6*(-parseInt(_0x482312(0x18e))/0x7)+-parseInt(_0x482312(0x19b))/0x8+-parseInt(_0x482312(0x196))/0x9*(-parseInt(_0x482312(0x187))/0xa);if(_0x11a2e1===_0x5f51)break;else _0x7a65c3['push'](_0x7a65c3['shift']());}catch(_0x334f72){_0x7a65c3['push'](_0x7a65c3['shift']());}}}(_0x4f7e,0xe45a9));Object[_0x32ddf2(0x183)](exports,_0x32ddf2(0x184),{'value':!![]}),exports[_0x32ddf2(0x18c)]=void 0x0;class ConsoleLog{constructor(_0x3d52df='',_0x230e0d=![],_0x49d8e8=console){var _0x2ac515=_0x32ddf2;this[_0x2ac515(0x19c)]=_0x3d52df,this[_0x2ac515(0x17c)]=_0x230e0d,this[_0x2ac515(0x182)]=this[_0x2ac515(0x193)](_0x3d52df),this[_0x2ac515(0x191)]=_0x49d8e8;}[_0x32ddf2(0x197)](_0xb386e2,..._0x44b580){var _0x62f6b=_0x32ddf2;if(!this[_0x62f6b(0x17c)])return;this[_0x62f6b(0x195)](this['output'][_0x62f6b(0x195)],this[_0x62f6b(0x18a)](_0xb386e2),..._0x44b580);}[_0x32ddf2(0x181)](_0x56b1a8,..._0x516b09){var _0x1f69e8=_0x32ddf2;this[_0x1f69e8(0x195)](this[_0x1f69e8(0x191)][_0x1f69e8(0x195)],_0x56b1a8,..._0x516b09);}[_0x32ddf2(0x180)](_0x41cc08,..._0x2e3698){var _0x6d4a8e=_0x32ddf2;this[_0x6d4a8e(0x195)](this['output']['warn'],this[_0x6d4a8e(0x18b)](_0x6d4a8e(0x194)+_0x41cc08),..._0x2e3698);}['error'](_0x5dc00c,..._0x3eaa4c){var _0x397b1f=_0x32ddf2;this[_0x397b1f(0x191)][_0x397b1f(0x189)]('\x0a'),this[_0x397b1f(0x195)](this[_0x397b1f(0x191)][_0x397b1f(0x189)],this[_0x397b1f(0x186)]('ERROR\x20'+_0x5dc00c),..._0x3eaa4c),this[_0x397b1f(0x191)]['error']('\x0a');}[_0x32ddf2(0x18f)](_0x3566b0){var _0x229171=_0x32ddf2;this[_0x229171(0x17c)]=_0x3566b0;}['newLog'](_0xd4e6cb){var _0x4540a8=_0x32ddf2;return this[_0x4540a8(0x19c)]&&(_0xd4e6cb=this['tag']+'\x20'+_0xd4e6cb),new ConsoleLog(_0xd4e6cb,this['verbose'],this['output']);}[_0x32ddf2(0x195)](_0x205584,_0x36f4bc,..._0x1166cd){var _0x4caf01=_0x32ddf2;this[_0x4caf01(0x182)]&&(_0x36f4bc=this['prefix']+'\x20'+_0x36f4bc),_0x1166cd?_0x205584(...[_0x36f4bc][_0x4caf01(0x198)](_0x1166cd)):_0x205584(_0x36f4bc);}['inverse'](_0x196875){var _0x45184b=_0x32ddf2;return _0x45184b(0x190)+_0x196875+_0x45184b(0x18d);}[_0x32ddf2(0x18a)](_0x461c0e){var _0x5cd47d=_0x32ddf2;return _0x5cd47d(0x188)+_0x461c0e+_0x5cd47d(0x18d);}[_0x32ddf2(0x18b)](_0x314ff6){var _0x571e75=_0x32ddf2;return'\x1b[33m'+_0x314ff6+_0x571e75(0x18d);}['red'](_0x4c36b9){var _0x160005=_0x32ddf2;return _0x160005(0x199)+_0x4c36b9+'\x1b[0m';}}function _0x4172(_0x18cda8,_0x4ca0b8){var _0x4f7e65=_0x4f7e();return _0x4172=function(_0x417211,_0x2aba2c){_0x417211=_0x417211-0x17c;var _0x826df9=_0x4f7e65[_0x417211];return _0x826df9;},_0x4172(_0x18cda8,_0x4ca0b8);}function _0x4f7e(){var _0x3eaeb7=['7939955XOXEel','red','140750xWEKjy','\x1b[36m','error','dim','yellow','ConsoleLog','\x1b[0m','63WeLNrs','setVerbose','\x1b[7m','output','795675qqIPuz','inverse','WARNING\x20','log','2277jxIUlu','debug','concat','\x1b[31m','62nOzhlG','6401184lgDVMR','tag','verbose','620058PFbudP','3592384XDruUr','42583FgQNRS','warn','info','prefix','defineProperty','__esModule'];_0x4f7e=function(){return _0x3eaeb7;};return _0x4f7e();}exports[_0x32ddf2(0x18c)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3e92(_0x5044c1,_0x197eee){const _0x488f16=_0x488f();return _0x3e92=function(_0x3e9272,_0x2b00ba){_0x3e9272=_0x3e9272-0xed;let _0x120c3f=_0x488f16[_0x3e9272];return _0x120c3f;},_0x3e92(_0x5044c1,_0x197eee);}const _0x58e665=_0x3e92;(function(_0x5ded20,_0x35cc0b){const _0x52909f=_0x3e92,_0x54969e=_0x5ded20();while(!![]){try{const _0x492bdd=-parseInt(_0x52909f(0x106))/0x1+parseInt(_0x52909f(0x10c))/0x2+-parseInt(_0x52909f(0xf9))/0x3*(-parseInt(_0x52909f(0xff))/0x4)+-parseInt(_0x52909f(0xfa))/0x5*(parseInt(_0x52909f(0xf5))/0x6)+-parseInt(_0x52909f(0x10d))/0x7+-parseInt(_0x52909f(0x100))/0x8+parseInt(_0x52909f(0xf6))/0x9*(parseInt(_0x52909f(0x109))/0xa);if(_0x492bdd===_0x35cc0b)break;else _0x54969e['push'](_0x54969e['shift']());}catch(_0x1577d3){_0x54969e['push'](_0x54969e['shift']());}}}(_0x488f,0xa2ec9));function _0x488f(){const _0x494ef4=['Content-Length','error','createWriteStream','3774KFtDWT','16482438XKIsqd','length','Z_SYNC_FLUSH','518988FxQDse','5685FDgYdj','decompressResponseBuffer','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','readable','get','12hzAjzG','7501168gSljxT','defineProperty','data','fetch-h2','headers','unzipSync','1218833iDMfHV','downloadFile','context','20DOrpMY','__esModule','finish','443976DBGLQK','6053257XFWGFH','pipe','follow','constants','brotliDecompressSync','test','zlib'];_0x488f=function(){return _0x494ef4;};return _0x488f();}Object[_0x58e665(0x101)](exports,_0x58e665(0x10a),{'value':!![]}),exports['fetch']=fetch,exports[_0x58e665(0x107)]=downloadFile,exports[_0x58e665(0xfb)]=decompressResponseBuffer;const fetch_h2_1=require(_0x58e665(0x103)),fs=require('fs'),zlib=require(_0x58e665(0xf1)),userAgent=_0x58e665(0xfc),fetchh2Ctx=(0x0,fetch_h2_1[_0x58e665(0x108)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx['fetch'];async function fetch(_0x5c84a4,_0x48b073){const _0x5c13a1=_0x58e665;return await fetchh2(_0x5c84a4,_0x48b073?{'redirect':_0x5c13a1(0xed),..._0x48b073}:{'redirect':'follow'});}async function downloadFile(_0x467026,_0x36c941,_0x3bf4ff){const _0x241855=_0x58e665;let _0x25611b,_0x483c89;_0x25611b=await fetchh2(_0x467026,{'redirect':_0x241855(0xed)}),_0x483c89=await _0x25611b[_0x241855(0xfd)]();const _0xd497ed=_0x25611b[_0x241855(0x104)][_0x241855(0xfe)](_0x241855(0xf2)),_0x3d7c54=_0xd497ed?parseInt(_0xd497ed):-0x1,_0xe29ff4=fs[_0x241855(0xf4)](_0x36c941);let _0x33496a=0x0;await new Promise((_0x392807,_0x13ba2f)=>{const _0x15786e=_0x241855;_0x483c89[_0x15786e(0x10e)](_0xe29ff4),_0x3bf4ff&&_0x483c89['on'](_0x15786e(0x102),_0x1e48be=>{const _0x2cc056=_0x15786e;_0x33496a=_0x33496a+_0x1e48be[_0x2cc056(0xf7)],_0x3bf4ff(_0x33496a,_0x3d7c54);}),_0x483c89['on'](_0x15786e(0xf3),_0xfb2873=>{_0x13ba2f(_0xfb2873);}),_0xe29ff4['on'](_0x15786e(0x10b),()=>{_0x392807();});});}function decompressResponseBuffer(_0x4ffa44,_0x21ec20){const _0x30e339=_0x58e665;let _0x577bbe=_0x4ffa44;if(/\bgzip\b/['test'](_0x21ec20)||/\bdeflate\b/[_0x30e339(0xf0)](_0x21ec20))_0x577bbe=zlib[_0x30e339(0x105)](_0x4ffa44,{'flush':zlib[_0x30e339(0xee)][_0x30e339(0xf8)],'finishFlush':zlib[_0x30e339(0xee)]['Z_SYNC_FLUSH']});else/\bbr\b/[_0x30e339(0xf0)](_0x21ec20)&&(_0x577bbe=zlib[_0x30e339(0xef)](_0x4ffa44));return _0x577bbe;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x64f76f=_0x4be6;(function(_0x4eb80a,_0x56b1f8){const _0x1cac63=_0x4be6,_0x2dd2d0=_0x4eb80a();while(!![]){try{const _0x457fa3=-parseInt(_0x1cac63(0x188))/0x1+parseInt(_0x1cac63(0x1a1))/0x2+parseInt(_0x1cac63(0x192))/0x3+-parseInt(_0x1cac63(0x1ae))/0x4*(-parseInt(_0x1cac63(0x175))/0x5)+-parseInt(_0x1cac63(0x186))/0x6*(parseInt(_0x1cac63(0x178))/0x7)+parseInt(_0x1cac63(0x1a2))/0x8+parseInt(_0x1cac63(0x1ad))/0x9;if(_0x457fa3===_0x56b1f8)break;else _0x2dd2d0['push'](_0x2dd2d0['shift']());}catch(_0x232234){_0x2dd2d0['push'](_0x2dd2d0['shift']());}}}(_0x2c5f,0xbeb57));Object[_0x64f76f(0x19d)](exports,_0x64f76f(0x1ac),{'value':!![]}),exports['messages']=void 0x0;function _0x4be6(_0x5e0457,_0x6abae2){const _0x2c5f27=_0x2c5f();return _0x4be6=function(_0x4be637,_0x59dedc){_0x4be637=_0x4be637-0x16f;let _0x3f081e=_0x2c5f27[_0x4be637];return _0x3f081e;},_0x4be6(_0x5e0457,_0x6abae2);}const colors_1=require(_0x64f76f(0x190));function _0x2c5f(){const _0x604e0f=['yellow','Downloading\x20the\x20Android\x20SDK...','Generating\x20Android\x20Project.','--url','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','\x0aBuilding\x20the\x20Android\x20App...','228ipwtBY','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','1510025nsGSJu','bold','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','Missing\x20required\x20parameter\x20','redirected\x20to\x20','Downloading\x20JDK\x2011\x20to\x20','URL\x20','(5/5)','colors','Password\x20for\x20the\x20Key\x20Store:','2465331uARJKM','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','Country\x20(2\x20letter\x20code):','license\x20agreement.','cyan','Downloading\x20the\x20JDK\x2011\x20Binaries...','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','\x22.\x0a','Downloading\x20the\x20JDK\x2011\x20Sources...','\x20but\x20input\x20is\x20','defineProperty','\x20URL\x20','Path\x20to\x20your\x20existing\x20JDK\x2011:','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','2467348hdhKIO','6017568QxjWlx','green','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)','Path\x20to\x20your\x20existing\x20Android\x20SDK:','\x20or\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','--manifest','\x09-\x20Generated\x20Android\x20APK\x20at\x20','__esModule','134613FBoUWF','9860jixmUp','Decompressing\x20the\x20Android\x20SDK...','Organization\x20(eg:\x20Company\x20Name):','Invalid\x20icon\x20path:\x20','Invalid\x20URL:\x20','https://developer.android.com/studio/terms.html','Downloading\x20Android\x20SDK\x20to\x20','1070ISPDax','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','195069ImKNtL','\x0aSigning\x20key\x20information\x20','underline','\x20can\x20not\x20be\x20accessible.','Icon\x20URL:','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','Maximum\x20length\x20is\x20','Invalid\x20integer\x20provided:\x20'];_0x2c5f=function(){return _0x604e0f;};return _0x2c5f();}exports['messages']={'promptInstallJdk':'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)','promptJdkPath':_0x64f76f(0x19f),'messageDownloadJdk':_0x64f76f(0x18d),'messageDownloadJdkSrc':_0x64f76f(0x19b),'messageDecompressJdkSrc':'Decompressing\x20the\x20JDK\x2011\x20Sources...','messageDownloadJdkBin':_0x64f76f(0x197),'messageDecompressJdkBin':'Decompressing\x20the\x20JDK\x2011\x20Binaries...','promptInstallSdk':_0x64f76f(0x1a4),'promptSdkPath':_0x64f76f(0x1a5),'messageDownloadSdk':_0x64f76f(0x174),'errorSdkTerms':_0x64f76f(0x1a7),'promptSdkTerms':_0x64f76f(0x198)+(0x0,colors_1['underline'])(_0x64f76f(0x173))+'?','messageDownloadAndroidSdk':_0x64f76f(0x181),'messageDecompressAndroidSdk':_0x64f76f(0x16f),'messageInstallingBuildTools':_0x64f76f(0x17d)+_0x64f76f(0x195),'messageGeneratingAndroidProject':_0x64f76f(0x182),'messageCheckSuccess':(_0x1db9c6,_0x3b3188)=>{const _0xd280b=_0x64f76f;return _0xd280b(0x19e)+(0x0,colors_1[_0xd280b(0x196)])(_0x1db9c6)+'\x20'+(_0x3b3188?_0xd280b(0x18c)+(0x0,colors_1[_0xd280b(0x196)])(_0x3b3188):'')+_0xd280b(0x184);},'errorMissingManifestParameter':_0x64f76f(0x18b)+((0x0,colors_1[_0x64f76f(0x196)])('--manifest-url')+_0x64f76f(0x1a6)+(0x0,colors_1[_0x64f76f(0x196)])(_0x64f76f(0x1aa))),'messageInitializingWebManifest':_0x3e78d0=>{const _0x4406e5=_0x64f76f;return _0x4406e5(0x18a)+(0x0,colors_1['cyan'])(_0x3e78d0);},'messageInitializingLocalManifest':_0x21b56a=>{const _0x39edee=_0x64f76f;return _0x39edee(0x176)+(0x0,colors_1['cyan'])(_0x21b56a);},'messageInvalidIcon':_0x1b90a3=>{const _0x5d3eb9=_0x64f76f;return _0x5d3eb9(0x171)+(0x0,colors_1['cyan'])(_0x1b90a3);},'errorStartUrlNotReachable':_0x2e39e9=>_0x64f76f(0x18e)+_0x2e39e9+_0x64f76f(0x17b)+_0x64f76f(0x1a9),'warnFamilyPolicy':(0x0,colors_1[_0x64f76f(0x189)])((0x0,colors_1[_0x64f76f(0x180)])('WARNING:\x20'))+'Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible'+'\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.'+'\x20Check\x20out\x20the\x20Play\x20for'+_0x64f76f(0x199)+(0x0,colors_1[_0x64f76f(0x196)])('https://play.google.com/console/about/families/'),'promptIconUrl':_0x64f76f(0x17c),'errorInvalidUrl':_0x17b016=>{const _0x1516be=_0x64f76f;return _0x1516be(0x172)+_0x17b016;},'errorUrlMustBeImage':_0x1fd330=>{const _0x111504=_0x64f76f;return _0x111504(0x177)+_0x1fd330+'.';},'promptVersionCode':_0x64f76f(0x187),'promptVersionName':_0x64f76f(0x1a8),'messageSigningKeyInformation':(0x0,colors_1['underline'])(_0x64f76f(0x179)+(0x0,colors_1[_0x64f76f(0x1a3)])(_0x64f76f(0x18f))),'messageProjectGeneratedSuccess':'\x0aProject\x20generated\x20successfully.','messageSigningKeyCreation':(0x0,colors_1[_0x64f76f(0x17a)])('\x0aSigning\x20key\x20creation'),'messageSigningKeyNotFound':_0x486426=>{const _0x4e223d=_0x64f76f;return _0x4e223d(0x193)+_0x486426+_0x4e223d(0x19a);},'promptCreateKey':'Do\x20you\x20want\x20to\x20create\x20one\x20now?','promptKeyFullName':'First\x20and\x20Last\x20names\x20(eg:\x20PICO):','promptKeyOrganizationalUnit':'Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','promptKeyOrganization':_0x64f76f(0x170),'promptKeyCountry':_0x64f76f(0x194),'promptKeystorePassword':_0x64f76f(0x191),'promptKeyPassword':'Password\x20for\x20the\x20Key:','messageBuildingApp':_0x64f76f(0x185),'messageEnterPasswords':(_0x289dd3,_0x7e88aa)=>{const _0x2034bb=_0x64f76f;return _0x2034bb(0x1a0)+(0x0,colors_1[_0x2034bb(0x196)])(_0x289dd3)+'\x20and\x20alias\x20'+(0x0,colors_1[_0x2034bb(0x196)])(_0x7e88aa)+'.\x0a';},'errorMinLength':(_0xc6992d,_0x28cd11)=>{const _0x563621=_0x64f76f;return'Minimum\x20length\x20is\x20'+_0xc6992d+_0x563621(0x19c)+_0x28cd11+'.';},'errorMaxLength':(_0x2c71c,_0x34949f)=>{const _0x2a0d46=_0x64f76f;return _0x2a0d46(0x17e)+_0x2c71c+_0x2a0d46(0x19c)+_0x34949f+'.';},'errorInvalidInteger':_0x3ed863=>{const _0x55eba6=_0x64f76f;return _0x55eba6(0x17f)+_0x3ed863;},'messageApkSuccess':_0x3fa5a3=>{const _0x2d94ce=_0x64f76f;return _0x2d94ce(0x1ab)+(0x0,colors_1[_0x2d94ce(0x196)])(_0x3fa5a3);},'missingUrlToCheck':_0x64f76f(0x18b)+(''+(0x0,colors_1['cyan'])(_0x64f76f(0x183)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x458f40=_0x30c4;function _0x30c4(_0x423bec,_0x48ee64){const _0x185001=_0x1850();return _0x30c4=function(_0x30c467,_0x2f0aae){_0x30c467=_0x30c467-0x1e7;let _0x1d22aa=_0x185001[_0x30c467];return _0x1d22aa;},_0x30c4(_0x423bec,_0x48ee64);}(function(_0x4315e4,_0x3180a7){const _0x2f3e69=_0x30c4,_0x7ca967=_0x4315e4();while(!![]){try{const _0x3e2331=parseInt(_0x2f3e69(0x1f5))/0x1*(parseInt(_0x2f3e69(0x1f3))/0x2)+parseInt(_0x2f3e69(0x1ea))/0x3+parseInt(_0x2f3e69(0x1eb))/0x4+-parseInt(_0x2f3e69(0x1e7))/0x5+parseInt(_0x2f3e69(0x1ef))/0x6*(parseInt(_0x2f3e69(0x1f4))/0x7)+parseInt(_0x2f3e69(0x1ee))/0x8+-parseInt(_0x2f3e69(0x1e9))/0x9;if(_0x3e2331===_0x3180a7)break;else _0x7ca967['push'](_0x7ca967['shift']());}catch(_0x162ac5){_0x7ca967['push'](_0x7ca967['shift']());}}}(_0x1850,0x30ac4));Object[_0x458f40(0x1e8)](exports,_0x458f40(0x1f1),{'value':!![]}),exports[_0x458f40(0x1ec)]=parseRouter;function _0x1850(){const _0x29b6b1=['pop','__esModule','replace','2TjAulm','358351qnStBO','47707pkbgGZ','1064185CLeVOa','defineProperty','5461668eghJPM','361095TeaguF','1358636SNmgJs','parseRouter','indexOf','1223768mOtjvq','42PMBxpV'];_0x1850=function(){return _0x29b6b1;};return _0x1850();}function parseRouter(_0x181e76){const _0x42d8b6=_0x458f40;let _0x5db9c8=_0x181e76['split']('/');_0x5db9c8[_0x42d8b6(0x1f0)]();let _0x5d1617=_0x5db9c8['join']();while(_0x5d1617[_0x42d8b6(0x1ed)](',')>=0x0){_0x5d1617=_0x5d1617[_0x42d8b6(0x1f2)](',','/');}return _0x5d1617;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x50f725=_0x457a;(function(_0x3374d1,_0x1caf7a){const _0x433979=_0x457a,_0x19116c=_0x3374d1();while(!![]){try{const _0x3f0b5a=-parseInt(_0x433979(0xa7))/0x1+-parseInt(_0x433979(0xa1))/0x2*(parseInt(_0x433979(0xad))/0x3)+-parseInt(_0x433979(0xb7))/0x4+-parseInt(_0x433979(0xbe))/0x5+parseInt(_0x433979(0xb0))/0x6*(-parseInt(_0x433979(0xb1))/0x7)+parseInt(_0x433979(0xbf))/0x8+parseInt(_0x433979(0xbd))/0x9*(parseInt(_0x433979(0xaf))/0xa);if(_0x3f0b5a===_0x1caf7a)break;else _0x19116c['push'](_0x19116c['shift']());}catch(_0x590ffb){_0x19116c['push'](_0x19116c['shift']());}}}(_0x4173,0x9090f));Object[_0x50f725(0xb3)](exports,_0x50f725(0xb5),{'value':!![]}),exports['XcodeManager']=void 0x0;function _0x457a(_0x596321,_0x160b3b){const _0x41730d=_0x4173();return _0x457a=function(_0x457ae9,_0x259bd1){_0x457ae9=_0x457ae9-0xa1;let _0x4a4c02=_0x41730d[_0x457ae9];return _0x4a4c02;},_0x457a(_0x596321,_0x160b3b);}function _0x4173(){const _0xc1a601=['join','log','export','./xcodeproject','218295xkTALu','4708430xzpbVK','3037504IVuuRq','1604476sNybWZ','parseProject','runWithSimulator','path','/web-spatial.xcodeproj/project.pbxproj','mkdirSync','1045800AvbSwd','write\x20project.pbxproj:\x20ok','existsSync','./xcodebuild','PROJECT_EXPORT_DIRECTORY','.ipa','3FcmkDt','default','1990NgPEHS','29010MTGTmT','1477qIyfgR','name','defineProperty','uploadApp','__esModule','./xcrun','3217524fCMBLW','modify'];_0x4173=function(){return _0xc1a601;};return _0x4173();}const fs=require('fs'),resource_1=require('../resource'),xcodeproject_1=require(_0x50f725(0xbc)),xcodebuild_1=require(_0x50f725(0xaa)),xcrun_1=require(_0x50f725(0xb6)),path_1=require(_0x50f725(0xa4));class XcodeManager{static async[_0x50f725(0xa2)](_0x18dbec,_0x2eb3bd=![]){const _0x34509e=_0x50f725,_0x217f03=resource_1['PROJECT_DIRECTORY']+_0x34509e(0xa5);await xcodeproject_1[_0x34509e(0xae)][_0x34509e(0xb8)](_0x217f03,_0x18dbec,_0x2eb3bd),console[_0x34509e(0xba)](_0x34509e(0xa8));!fs[_0x34509e(0xa9)](resource_1[_0x34509e(0xab)])&&fs[_0x34509e(0xa6)](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]});if(!_0x2eb3bd)await xcodebuild_1[_0x34509e(0xae)]['archive'](_0x18dbec[_0x34509e(0xbb)]);}static async['upload'](_0x3eb842,_0x722618){const _0x290692=_0x50f725;if(_0x3eb842['u']&&_0x3eb842['p'])xcrun_1[_0x290692(0xae)]['uploadApp']((0x0,path_1[_0x290692(0xb9)])(resource_1[_0x290692(0xab)],_0x722618[_0x290692(0xb2)]+'.ipa'),_0x3eb842['u'],_0x3eb842['p'],!![]);else _0x3eb842['k']&&_0x3eb842['i']&&xcrun_1[_0x290692(0xae)][_0x290692(0xb4)]((0x0,path_1[_0x290692(0xb9)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x722618[_0x290692(0xb2)]+_0x290692(0xac)),_0x3eb842['k'],_0x3eb842['i'],![]);}static async[_0x50f725(0xa3)](_0xdc6338){const _0x22eb37=_0x50f725;await xcrun_1[_0x22eb37(0xae)]['runWithSimulator'](_0xdc6338);}}exports['XcodeManager']=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0x401ab6=_0x39c5;function _0x39c5(_0x5eaef9,_0x1a7758){var _0x172999=_0x1729();return _0x39c5=function(_0x39c5d1,_0x4d7647){_0x39c5d1=_0x39c5d1-0x196;var _0x4d1329=_0x172999[_0x39c5d1];return _0x4d1329;},_0x39c5(_0x5eaef9,_0x1a7758);}(function(_0xc52df,_0x39e197){var _0x3f9caf=_0x39c5,_0x5a38fc=_0xc52df();while(!![]){try{var _0x12001c=parseInt(_0x3f9caf(0x198))/0x1*(-parseInt(_0x3f9caf(0x19b))/0x2)+-parseInt(_0x3f9caf(0x1a1))/0x3*(parseInt(_0x3f9caf(0x19c))/0x4)+-parseInt(_0x3f9caf(0x196))/0x5+-parseInt(_0x3f9caf(0x19a))/0x6*(parseInt(_0x3f9caf(0x19e))/0x7)+-parseInt(_0x3f9caf(0x19f))/0x8*(-parseInt(_0x3f9caf(0x1a0))/0x9)+-parseInt(_0x3f9caf(0x199))/0xa+-parseInt(_0x3f9caf(0x197))/0xb*(-parseInt(_0x3f9caf(0x1a3))/0xc);if(_0x12001c===_0x39e197)break;else _0x5a38fc['push'](_0x5a38fc['shift']());}catch(_0x38e791){_0x5a38fc['push'](_0x5a38fc['shift']());}}}(_0x1729,0x21707));function _0x1729(){var _0x183a0a=['196303ocNQgq','2628660DOYSUq','48qwZlOb','2KFthyt','46204UtnAnD','manifestSwiftTemplate','23079uatxLZ','784656EqpCsd','18wcxTNi','33TocPRm','defineProperty','649164BAMlEG','\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','478775jAwZTh','132fxPPoT'];_0x1729=function(){return _0x183a0a;};return _0x1729();}Object[_0x401ab6(0x1a2)](exports,'__esModule',{'value':!![]}),exports[_0x401ab6(0x19d)]=void 0x0,exports['manifestSwiftTemplate']=_0x401ab6(0x1a4);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2702(_0x55cc5c,_0x56ba4d){const _0x48825b=_0x4882();return _0x2702=function(_0x270231,_0x59a25a){_0x270231=_0x270231-0x71;let _0x2d6e6e=_0x48825b[_0x270231];return _0x2d6e6e;},_0x2702(_0x55cc5c,_0x56ba4d);}const _0x5b9104=_0x2702;(function(_0x3a324b,_0x2a873b){const _0x2dfdf3=_0x2702,_0x1617a3=_0x3a324b();while(!![]){try{const _0x5da482=parseInt(_0x2dfdf3(0x9e))/0x1+parseInt(_0x2dfdf3(0x9d))/0x2*(-parseInt(_0x2dfdf3(0x8d))/0x3)+-parseInt(_0x2dfdf3(0xa3))/0x4*(parseInt(_0x2dfdf3(0x89))/0x5)+parseInt(_0x2dfdf3(0x76))/0x6+-parseInt(_0x2dfdf3(0x82))/0x7*(parseInt(_0x2dfdf3(0x7f))/0x8)+-parseInt(_0x2dfdf3(0x73))/0x9+parseInt(_0x2dfdf3(0x7c))/0xa;if(_0x5da482===_0x2a873b)break;else _0x1617a3['push'](_0x1617a3['shift']());}catch(_0x236402){_0x1617a3['push'](_0x1617a3['shift']());}}}(_0x4882,0x580ff));Object['defineProperty'](exports,_0x5b9104(0x95),{'value':!![]}),exports[_0x5b9104(0x93)]=void 0x0;const fs=require('fs'),path_1=require(_0x5b9104(0x84)),resource_1=require(_0x5b9104(0x98)),semver_1=require(_0x5b9104(0x86)),file_1=require(_0x5b9104(0x92)),{execSync,exec}=require(_0x5b9104(0x90));class Xcodebuild{static async[_0x5b9104(0x7a)](){const _0x3c34cb=_0x5b9104;try{await new Promise((_0x423edd,_0xf2c4b7)=>{const _0x461188=_0x2702,_0x4af7b4=resource_1[_0x461188(0x78)]+_0x461188(0x99),_0x16fb3c=execSync(new XcodebuildCMD()['project'](_0x4af7b4)[_0x461188(0x7e)]()[_0x461188(0xa7)]);console['log'](_0x16fb3c[_0x461188(0x7d)]()),_0x423edd(_0x16fb3c);});}catch(_0x205571){console[_0x3c34cb(0x9f)](_0x205571);}}static async[_0x5b9104(0x7e)](){const _0x4542fc=_0x5b9104;try{await new Promise((_0x298b1e,_0x3a8fd)=>{const _0x5b6dcc=_0x2702,_0x4b503b=resource_1[_0x5b6dcc(0x78)]+_0x5b6dcc(0x99),_0xa14a29=execSync(new XcodebuildCMD()[_0x5b6dcc(0x7a)](_0x4b503b)['list']()[_0x5b6dcc(0xa7)]);console[_0x5b6dcc(0x9f)](_0xa14a29[_0x5b6dcc(0x7d)]()),_0x298b1e(_0xa14a29);});}catch(_0xb47400){console[_0x4542fc(0x9f)](_0xb47400);}}static async[_0x5b9104(0xa6)](_0x46912f){const _0x15ea7e=_0x5b9104;try{return console[_0x15ea7e(0x9f)]('start\x20archive'),!fs['existsSync'](resource_1[_0x15ea7e(0x97)])&&fs[_0x15ea7e(0x94)](resource_1[_0x15ea7e(0x97)],{'recursive':!![]}),await new Promise((_0x39dec9,_0x446f13)=>{const _0x51b0aa=_0x15ea7e,_0x22fabb=resource_1[_0x51b0aa(0x78)]+_0x51b0aa(0x99),_0x511429=execSync(new XcodebuildCMD()['project'](_0x22fabb)[_0x51b0aa(0xa4)](_0x51b0aa(0x71))[_0x51b0aa(0xa6)]((0x0,path_1[_0x51b0aa(0xa2)])(resource_1[_0x51b0aa(0x77)],_0x51b0aa(0x83)))[_0x51b0aa(0x9b)]()[_0x51b0aa(0xa7)]);let _0x357b60=_0x511429['toString']();if(_0x357b60[_0x51b0aa(0x9c)](_0x51b0aa(0x74))>0x0){console[_0x51b0aa(0x9f)](_0x51b0aa(0x75)),console[_0x51b0aa(0x9f)](_0x51b0aa(0xa1));const _0x290cc7=execSync(new XcodebuildCMD()[_0x51b0aa(0xa0)]((0x0,path_1[_0x51b0aa(0xa2)])(resource_1[_0x51b0aa(0x77)],_0x51b0aa(0x88)),resource_1[_0x51b0aa(0x97)],(0x0,path_1['join'])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x51b0aa(0x8b)))[_0x51b0aa(0x9a)]()[_0x51b0aa(0xa7)]);_0x357b60=_0x290cc7[_0x51b0aa(0x7d)]();if(_0x357b60[_0x51b0aa(0x9c)](_0x51b0aa(0x8f))>0x0){if(_0x46912f){const _0x58be68=(0x0,path_1[_0x51b0aa(0xa2)])(process['cwd'](),_0x46912f);!fs[_0x51b0aa(0x7b)](_0x58be68)&&fs[_0x51b0aa(0x94)](_0x58be68,{'recursive':!![]}),(0x0,file_1[_0x51b0aa(0x8a)])(resource_1[_0x51b0aa(0x97)],_0x58be68);}console[_0x51b0aa(0x9f)]('-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------'),_0x39dec9(!![]);}(0x0,semver_1[_0x51b0aa(0x9b)])(resource_1[_0x51b0aa(0x77)]);}_0x39dec9(![]);});}catch(_0x22ce6e){console[_0x15ea7e(0x9f)](_0x22ce6e);}}}exports[_0x5b9104(0xa5)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x13a4fa=_0x5b9104;this['line']=_0x13a4fa(0x8c);}[_0x5b9104(0x7a)](_0x16144d){const _0x2b9c49=_0x5b9104;return this['line']+=_0x2b9c49(0x96)+_0x16144d,this;}[_0x5b9104(0x7e)](){const _0x3416bc=_0x5b9104;return this['line']+=_0x3416bc(0x79),this;}[_0x5b9104(0xa4)](_0xafa9f3){const _0x4f8601=_0x5b9104;return this[_0x4f8601(0xa7)]+='\x20-scheme\x20'+_0xafa9f3,this;}[_0x5b9104(0xa6)](_0x2cdc45){const _0x55ca4e=_0x5b9104;return this[_0x55ca4e(0xa7)]+=_0x55ca4e(0x80)+_0x2cdc45+'\x20archive',this;}['allowProvisioningUpdates'](){const _0x2d2f98=_0x5b9104;return this[_0x2d2f98(0xa7)]+='\x20-allowProvisioningUpdates',this;}[_0x5b9104(0x91)](_0x1f5b50){const _0x53e950=_0x5b9104;return this[_0x53e950(0xa7)]+=_0x53e950(0x85)+_0x1f5b50+'\x27',this;}[_0x5b9104(0xa0)](_0xba9b9d,_0x440998,_0x2260ff){const _0xb545bb=_0x5b9104;return this['line']+=_0xb545bb(0x72)+_0xba9b9d+_0xb545bb(0x8e)+_0x440998+_0xb545bb(0x81)+_0x2260ff,this;}[_0x5b9104(0x9b)](){const _0x40bbda=_0x5b9104;return this[_0x40bbda(0xa7)]+=_0x40bbda(0x87),this;}}exports[_0x5b9104(0x93)]=XcodebuildCMD;function _0x4882(){const _0x27024b=['path','\x20-destination\x20\x27','semver','\x20clean','pack.xcarchive','1265jQrkqM','copyDir','ExportOptions.plist','xcodebuild','78zJtcrp','\x20-exportPath\x20','EXPORT\x20SUCCEEDED','child_process','destination','../resource/file','XcodebuildCMD','mkdirSync','__esModule','\x20-project\x20','PROJECT_EXPORT_DIRECTORY','../resource','/web-spatial.xcodeproj','allowProvisioningUpdates','clean','indexOf','28496yYnPAU','119810Rkihvm','log','output','start\x20export','join','6596mbeGOF','scheme','default','archive','line','web-spatial','\x20-exportArchive\x20-archivePath\x20','6042195KGaUok','ARCHIVE\x20SUCCEEDED','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','2146032URkJnd','PROJECT_BUILD_DIRECTORY','PROJECT_DIRECTORY','\x20-list','project','existsSync','16123960jGmgiC','toString','list','808AUtJjs','\x20-archivePath\x20','\x20-exportOptionsPlist\x20','18725qBWzxL','./pack'];_0x4882=function(){return _0x27024b;};return _0x4882();}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default class XcodeProject {
|
|
2
|
-
static modify(projectPath: string, option: any): Promise<void>;
|
|
2
|
+
static modify(projectPath: string, option: any, isDev?: boolean): Promise<void>;
|
|
3
3
|
private static fixProjectFunction;
|
|
4
4
|
private static bindIcon;
|
|
5
5
|
private static updateTeamId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2759ed=_0x4153;function _0x4153(_0x3d8c00,_0x1f7bb5){const _0x3ce456=_0x3ce4();return _0x4153=function(_0x415308,_0x3bec08){_0x415308=_0x415308-0x12c;let _0x1bd016=_0x3ce456[_0x415308];return _0x1bd016;},_0x4153(_0x3d8c00,_0x1f7bb5);}(function(_0x539bba,_0x2a836e){const _0x3d0527=_0x4153,_0x57c586=_0x539bba();while(!![]){try{const _0x303343=parseInt(_0x3d0527(0x186))/0x1*(-parseInt(_0x3d0527(0x12c))/0x2)+parseInt(_0x3d0527(0x182))/0x3+parseInt(_0x3d0527(0x12d))/0x4+-parseInt(_0x3d0527(0x145))/0x5+parseInt(_0x3d0527(0x135))/0x6*(-parseInt(_0x3d0527(0x15a))/0x7)+parseInt(_0x3d0527(0x18c))/0x8*(-parseInt(_0x3d0527(0x141))/0x9)+parseInt(_0x3d0527(0x150))/0xa;if(_0x303343===_0x2a836e)break;else _0x57c586['push'](_0x57c586['shift']());}catch(_0x329326){_0x57c586['push'](_0x57c586['shift']());}}}(_0x3ce4,0x689a3));Object[_0x2759ed(0x16b)](exports,_0x2759ed(0x170),{'value':!![]});const fs=require('fs'),resource_1=require(_0x2759ed(0x15e)),path_1=require('path'),load_1=require('../resource/load'),imageHelper_1=require(_0x2759ed(0x157)),manifestSwiftTemplate_1=require(_0x2759ed(0x138)),xcode=require(_0x2759ed(0x179)),exportOptionsXML=_0x2759ed(0x152),infoPlistXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a';let useExportOptionsXML='';class XcodeProject{static async[_0x2759ed(0x131)](_0x472a40,_0x35ec9a){const _0x53e1e3=_0x2759ed;let _0xddb470=xcode[_0x53e1e3(0x177)](_0x472a40);this[_0x53e1e3(0x171)](_0xddb470),_0xddb470['parseSync']();let _0x314065=_0x35ec9a[_0x53e1e3(0x154)];const _0x3f9964=[_0x53e1e3(0x192),'app-store-connect',_0x53e1e3(0x18a),'enterprise'];useExportOptionsXML=exportOptionsXML[_0x53e1e3(0x15b)](_0x53e1e3(0x163),_0x3f9964[_0x53e1e3(0x13e)](_0x314065)?_0x314065:_0x53e1e3(0x192));_0x35ec9a[_0x53e1e3(0x13d)]&&this[_0x53e1e3(0x185)](_0xddb470,_0x35ec9a[_0x53e1e3(0x13d)]);this[_0x53e1e3(0x17a)]();if(_0x35ec9a[_0x53e1e3(0x15d)])await this['bindIcon'](_0x35ec9a[_0x53e1e3(0x15d)]);this[_0x53e1e3(0x17d)](_0xddb470,_0x35ec9a['manifestInfo']['json']);_0x35ec9a[_0x53e1e3(0x13c)]?this['updateVersion'](_0xddb470,_0x35ec9a[_0x53e1e3(0x13c)]):this[_0x53e1e3(0x151)](_0xddb470,_0x53e1e3(0x136));try{fs['writeFileSync'](_0x472a40,_0xddb470[_0x53e1e3(0x18d)]());}catch(_0x58ad27){console[_0x53e1e3(0x158)](_0x58ad27);}}static[_0x2759ed(0x171)](_0x199136){const _0x1fa63b=_0x2759ed;_0x199136['pbxGroupByName']=function(_0x4456a8){const _0x517ed1=_0x4153;var _0x1918f4=this['hash'][_0x517ed1(0x177)][_0x517ed1(0x183)][_0x517ed1(0x178)],_0x36bcdd,_0x1d8290;for(_0x36bcdd in _0x1918f4){if(!/_comment$/[_0x517ed1(0x188)](_0x36bcdd))continue;if(_0x1918f4[_0x36bcdd]==_0x4456a8)return _0x1d8290=_0x36bcdd['split'](/_comment$/)[0x0],_0x1918f4[_0x1d8290];}return![];},_0x199136[_0x1fa63b(0x134)]=function(_0x24d641,_0x38c89e,_0x9629d4,_0x2ad0d5){const _0x25a4ca=_0x1fa63b;let _0x53fad0=[];const _0x32671f=/_comment$/;if(_0x2ad0d5){const _0x462ada=this[_0x25a4ca(0x173)](_0x2ad0d5),_0x368e18=_0x462ada&&_0x462ada['buildConfigurationList'],_0x581269=this[_0x25a4ca(0x137)]();for(const _0x5788cc in _0x581269){if(!_0x32671f[_0x25a4ca(0x188)](_0x5788cc)&&_0x368e18===_0x5788cc){const _0x35116f=_0x581269[_0x5788cc][_0x25a4ca(0x16a)];for(const _0x1d5953 of _0x35116f){_0x53fad0[_0x25a4ca(0x166)](_0x1d5953[_0x25a4ca(0x14a)]);}break;}}}var _0x4751bf=this[_0x25a4ca(0x14b)]();for(var _0x43e39e in _0x4751bf){if(!_0x32671f[_0x25a4ca(0x188)](_0x43e39e)){if(_0x2ad0d5&&!_0x53fad0[_0x25a4ca(0x13e)](_0x43e39e))continue;var _0x2e17ba=_0x4751bf[_0x43e39e];(_0x9629d4&&_0x2e17ba['name']===_0x9629d4||!_0x9629d4)&&_0x2e17ba[_0x25a4ca(0x139)][_0x24d641]&&(_0x2e17ba['buildSettings'][_0x24d641]=_0x38c89e);}}};}static async[_0x2759ed(0x168)](_0x2f3ed0){const _0x47f831=_0x2759ed;if(_0x2f3ed0){const _0x46ce79=(0x0,path_1[_0x47f831(0x130)])(resource_1[_0x47f831(0x132)],resource_1[_0x47f831(0x14f)]),_0x5de031=(0x0,path_1[_0x47f831(0x130)])(_0x46ce79,_0x47f831(0x16c)),_0x303475=_0x47f831(0x14c)+_0x2f3ed0[_0x47f831(0x12e)]()[_0x47f831(0x15b)](_0x47f831(0x18b),''),_0x1b4fde=(0x0,path_1['join'])(_0x46ce79,_0x303475);let _0xd55455=await(0x0,load_1[_0x47f831(0x16d)])(_0x5de031);_0xd55455[_0x47f831(0x180)][0x0][_0x47f831(0x16f)]=_0x303475,await _0x2f3ed0['writeAsync'](_0x1b4fde),await fs[_0x47f831(0x189)](_0x5de031,JSON[_0x47f831(0x153)](_0xd55455));const _0x483a07=(0x0,path_1[_0x47f831(0x130)])(resource_1[_0x47f831(0x132)],resource_1[_0x47f831(0x172)]),_0x4e3461=(0x0,path_1['join'])(_0x483a07,_0x47f831(0x16c)),_0x20c9ea='icon.png',_0xd47bb6=(0x0,path_1[_0x47f831(0x130)])(_0x483a07,_0x20c9ea);let _0x50ea96=await(0x0,load_1[_0x47f831(0x16d)])(_0x4e3461),_0x3914ce=imageHelper_1[_0x47f831(0x160)]['createImg'](0x200);_0x50ea96[_0x47f831(0x180)][0x0][_0x47f831(0x16f)]=_0x20c9ea,await _0x3914ce[_0x47f831(0x149)](_0xd47bb6),await fs[_0x47f831(0x189)](_0x4e3461,JSON[_0x47f831(0x153)](_0x50ea96));}}static[_0x2759ed(0x185)](_0x8569b4,_0x2abaf3){const _0x281672=_0x2759ed;_0x8569b4['updateBuildProperty'](_0x281672(0x159),_0x2abaf3),useExportOptionsXML=useExportOptionsXML[_0x281672(0x15b)](_0x281672(0x190),_0x2abaf3);}static[_0x2759ed(0x17a)](){const _0x16a8e8=_0x2759ed;!fs[_0x16a8e8(0x174)](resource_1[_0x16a8e8(0x161)])&&fs['mkdirSync'](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x16a8e8(0x189)]((0x0,path_1[_0x16a8e8(0x130)])(resource_1[_0x16a8e8(0x161)],_0x16a8e8(0x140)),useExportOptionsXML);}static['bindManifestInfo'](_0x4e22ed,_0x10e89d){const _0x2814c8=_0x2759ed;var _0x3e3a71;_0x4e22ed[_0x2814c8(0x18e)](_0x10e89d[_0x2814c8(0x142)]),_0x4e22ed['updateBuildProperty']('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x10e89d['id']+'\x22'),this[_0x2814c8(0x148)]((_0x3e3a71=_0x10e89d[_0x2814c8(0x176)])!==null&&_0x3e3a71!==void 0x0?_0x3e3a71:[]),this[_0x2814c8(0x156)](_0x10e89d);}static[_0x2759ed(0x151)](_0x5377df,_0x252f78){const _0x57f98f=_0x2759ed;_0x5377df[_0x57f98f(0x134)](_0x57f98f(0x146),_0x252f78);}static[_0x2759ed(0x148)](_0x49b205){const _0x2c8645=_0x2759ed;let _0x509b79=(0x0,path_1[_0x2c8645(0x130)])(resource_1[_0x2c8645(0x132)],_0x2c8645(0x184)),_0x3e1b7a='';for(let _0x4c4884=0x0;_0x4c4884<_0x49b205[_0x2c8645(0x13a)];_0x4c4884++){_0x3e1b7a+=_0x2c8645(0x193)+_0x49b205[_0x4c4884]['protocol']+'</string>';}const _0x14988f=infoPlistXML[_0x2c8645(0x15b)](_0x2c8645(0x175),_0x3e1b7a);fs['writeFileSync'](_0x509b79,_0x14988f);}static[_0x2759ed(0x156)](_0x125a03){const _0x5587d8=_0x2759ed,_0x2cfccf=(0x0,path_1['join'])(resource_1[_0x5587d8(0x132)],_0x5587d8(0x164));let _0xa173e1=manifestSwiftTemplate_1[_0x5587d8(0x191)];_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x17b),_0x125a03['start_url']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x18f),_0x125a03[_0x5587d8(0x144)]),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)]('AppName',_0x125a03['name']),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x147),_0x125a03['description']),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x133),_0x125a03['id']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)]('.minimal',_0x125a03[_0x5587d8(0x14d)]==_0x5587d8(0x165)?'.minimal':'.standalone');if(_0x125a03[_0x5587d8(0x176)]){let _0x4704dd='';for(let _0x5dee9e=0x0;_0x5dee9e<_0x125a03[_0x5587d8(0x176)]['length'];_0x5dee9e++){_0x4704dd+=_0x5587d8(0x143)+_0x125a03['protocol_handlers'][_0x5dee9e][_0x5587d8(0x162)]+_0x5587d8(0x17c)+_0x125a03[_0x5587d8(0x176)][_0x5dee9e][_0x5587d8(0x155)]+_0x5587d8(0x167);}_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x13f),_0x4704dd);}typeof _0x125a03[_0x5587d8(0x14e)]===_0x5587d8(0x187)?(_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x169),_0x125a03[_0x5587d8(0x14e)][_0x5587d8(0x13b)]['width']),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x17f),_0x125a03['mainScene'][_0x5587d8(0x13b)][_0x5587d8(0x181)]),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x16e),'\x22'+_0x125a03[_0x5587d8(0x14e)]['resizability']+'\x22'),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x194),'true')):(_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x169),'1280'),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x17f),_0x5587d8(0x15c)),_0xa173e1=_0xa173e1[_0x5587d8(0x15b)](_0x5587d8(0x16e),_0x5587d8(0x12f)),_0xa173e1=_0xa173e1['replace'](_0x5587d8(0x194),_0x5587d8(0x17e))),fs[_0x5587d8(0x189)](_0x2cfccf,_0xa173e1,'utf-8');}}function _0x3ce4(){const _0x37d725=['SCOPE','YOURTEAMID','manifestSwiftTemplate','release-testing','<string>','USE_MAIN_SCENE','12986aNySoU','3346172YiyFYu','getMIME','\x22automatic\x22','join','modify','PROJECT_DIRECTORY','AppID','updateBuildProperty','102Kpqhfo','1.0','pbxXCConfigurationList','./manifestSwiftTemplate','buildSettings','length','defaultSize','version','teamId','includes','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','ExportOptions.plist','4311VhVKcn','name','PWAProtocol(protocolValue:\x20\x22','scope','4140285UEkRuk','CURRENT_PROJECT_VERSION','Description','updateDeeplink','writeAsync','value','pbxXCBuildConfigurationSection','icon.','display','mainScene','BACK_APPICON_DIRECTORY','12902940cFLTrg','updateVersion','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>','stringify','buildType','url','modifySwift','../resource/imageHelper','log','DEVELOPMENT_TEAM','276437OSqTqe','replace','1280','icon','../resource','default','ImageHelper','PROJECT_BUILD_DIRECTORY','protocol','BUILDTYPE','./web-spatial/libs/webView/manifest.swift','minimal-ui','push','\x22),','bindIcon','SceneWidth','buildConfigurations','defineProperty','Contents.json','loadJsonFromDisk','SceneResizability','filename','__esModule','fixProjectFunction','MIDDLE_APPICON_DIRECTORY','pbxTargetByName','existsSync','DEEPLINK','protocol_handlers','project','PBXGroup','xcode','updateExportOptions','START_URL','\x22,\x20url:\x20\x22','bindManifestInfo','false','SceneHeight','images','height','1198164YYUGCX','objects','./web-spatial/Info.plist','updateTeamId','67mJYRHb','object','test','writeFileSync','debugging','image/','2728qMvwRE','writeSync','updateProductName'];_0x3ce4=function(){return _0x37d725;};return _0x3ce4();}exports[_0x2759ed(0x15f)]=XcodeProject;
|
|
1
|
+
'use strict';const _0x53b7bd=_0x39cb;function _0x39cb(_0x3d7a2d,_0x15c5a8){const _0x127e3b=_0x127e();return _0x39cb=function(_0x39cb3f,_0x50a87e){_0x39cb3f=_0x39cb3f-0xdf;let _0x383a33=_0x127e3b[_0x39cb3f];return _0x383a33;},_0x39cb(_0x3d7a2d,_0x15c5a8);}(function(_0x405024,_0xf59f83){const _0x381c54=_0x39cb,_0x462f90=_0x405024();while(!![]){try{const _0x5b06ae=parseInt(_0x381c54(0x137))/0x1+parseInt(_0x381c54(0xf2))/0x2*(-parseInt(_0x381c54(0x120))/0x3)+parseInt(_0x381c54(0x114))/0x4*(-parseInt(_0x381c54(0x150))/0x5)+parseInt(_0x381c54(0xec))/0x6+-parseInt(_0x381c54(0x13b))/0x7*(parseInt(_0x381c54(0xe0))/0x8)+-parseInt(_0x381c54(0x121))/0x9*(parseInt(_0x381c54(0x132))/0xa)+parseInt(_0x381c54(0xf7))/0xb*(parseInt(_0x381c54(0x11f))/0xc);if(_0x5b06ae===_0xf59f83)break;else _0x462f90['push'](_0x462f90['shift']());}catch(_0x21986a){_0x462f90['push'](_0x462f90['shift']());}}}(_0x127e,0x2e4ae));Object[_0x53b7bd(0xe9)](exports,_0x53b7bd(0x144),{'value':!![]});function _0x127e(){const _0x275a8f=['bindManifestInfo','1280','mainScene','pbxTargetByName','<?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','SceneWidth','split','replace','updateBuildProperty','PWAProtocol(protocolValue:\x20\x22','length','protocol','height','updateDeeplink','mkdirSync','description','false','</string>','protocol_handlers','width','fixProjectFunction','teamId','createImg','PRODUCT_BUNDLE_IDENTIFIER','12MPsVpV','updateTeamId','join','<string>','icon','buildType','path','writeAsync','project','../resource/load','json','1956gJAfkz','483zAbQug','31869oXPlrU','.minimal','./manifestSwiftTemplate','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','ExportOptions.plist','defaultSize','display','buildConfigurations','version','getMIME','DEVELOPMENT_TEAM','BUILDTYPE','AppName','BACK_APPICON_DIRECTORY','PROJECT_DIRECTORY','enterprise','stringify','190GGGaIA','pbxGroupByName','SceneHeight','writeFileSync','value','165928wLoLLY','./web-spatial/Info.plist','<?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>','MIDDLE_APPICON_DIRECTORY','14efYkNH','../resource','updateVersion','existsSync','Contents.json','release-testing','writeSync','images','pbxXCBuildConfigurationSection','__esModule','objects','object','minimal-ui','\x22),','modifySwift','USE_MAIN_SCENE','xcode','url','buildSettings','scope','SceneResizability','390805FkqCCN','PROJECT_BUILD_DIRECTORY','parseSync','resizability','SCOPE','1236296jJbZtj','debugging','name','loadJsonFromDisk','icon.','push','utf-8','CURRENT_PROJECT_VERSION','bindIcon','defineProperty','log','image/','520644xmIQTW','filename','manifestInfo','test','updateProductName','updateExportOptions','68daWFAz','modify','../resource/imageHelper','\x22,\x20url:\x20\x22','icon.png','37334KyIUXD','DEEPLINK','PBXGroup','AppID','manifestSwiftTemplate'];_0x127e=function(){return _0x275a8f;};return _0x127e();}const fs=require('fs'),resource_1=require(_0x53b7bd(0x13c)),path_1=require(_0x53b7bd(0x11a)),load_1=require(_0x53b7bd(0x11d)),imageHelper_1=require(_0x53b7bd(0xf4)),manifestSwiftTemplate_1=require(_0x53b7bd(0x123)),xcode=require(_0x53b7bd(0x14b)),exportOptionsXML=_0x53b7bd(0x139),infoPlistXML=_0x53b7bd(0x100);let useExportOptionsXML='';class XcodeProject{static async[_0x53b7bd(0xf3)](_0x505486,_0x282390,_0x57bfaf=![]){const _0x4fa84d=_0x53b7bd;let _0x19a481=xcode[_0x4fa84d(0x11c)](_0x505486);this[_0x4fa84d(0x110)](_0x19a481),_0x19a481[_0x4fa84d(0x152)]();let _0x214614=_0x282390[_0x4fa84d(0x119)];const _0x2971fd=['release-testing','app-store-connect',_0x4fa84d(0xe1),_0x4fa84d(0x130)];useExportOptionsXML=exportOptionsXML[_0x4fa84d(0x103)](_0x4fa84d(0x12c),_0x2971fd['includes'](_0x214614)?_0x214614:_0x4fa84d(0x140));_0x282390[_0x4fa84d(0x111)]&&this['updateTeamId'](_0x19a481,_0x282390[_0x4fa84d(0x111)]);this[_0x4fa84d(0xf1)]();if(_0x282390[_0x4fa84d(0x118)])await this[_0x4fa84d(0xe8)](_0x282390[_0x4fa84d(0x118)]);this['bindManifestInfo'](_0x19a481,_0x282390[_0x4fa84d(0xee)][_0x4fa84d(0x11e)],_0x57bfaf);_0x282390[_0x4fa84d(0x129)]?this[_0x4fa84d(0x13d)](_0x19a481,_0x282390[_0x4fa84d(0x129)]):this[_0x4fa84d(0x13d)](_0x19a481,'1.0');try{fs[_0x4fa84d(0x135)](_0x505486,_0x19a481[_0x4fa84d(0x141)]());}catch(_0x3aa60f){console[_0x4fa84d(0xea)](_0x3aa60f);}}static[_0x53b7bd(0x110)](_0x45b57b){const _0x5093be=_0x53b7bd;_0x45b57b[_0x5093be(0x133)]=function(_0x5cdc7c){const _0x34f1fc=_0x5093be;var _0x3314c7=this['hash'][_0x34f1fc(0x11c)][_0x34f1fc(0x145)][_0x34f1fc(0xf9)],_0x31c1b5,_0x560395;for(_0x31c1b5 in _0x3314c7){if(!/_comment$/[_0x34f1fc(0xef)](_0x31c1b5))continue;if(_0x3314c7[_0x31c1b5]==_0x5cdc7c)return _0x560395=_0x31c1b5[_0x34f1fc(0x102)](/_comment$/)[0x0],_0x3314c7[_0x560395];}return![];},_0x45b57b[_0x5093be(0x104)]=function(_0x1c7dbb,_0x33b1e9,_0x5bdd27,_0x30293e){const _0x4a913c=_0x5093be;let _0x411c40=[];const _0x101657=/_comment$/;if(_0x30293e){const _0x5be3f0=this[_0x4a913c(0xff)](_0x30293e),_0x24673d=_0x5be3f0&&_0x5be3f0['buildConfigurationList'],_0x49aa60=this['pbxXCConfigurationList']();for(const _0x59fff8 in _0x49aa60){if(!_0x101657[_0x4a913c(0xef)](_0x59fff8)&&_0x24673d===_0x59fff8){const _0x3120d2=_0x49aa60[_0x59fff8][_0x4a913c(0x128)];for(const _0x2a99b3 of _0x3120d2){_0x411c40[_0x4a913c(0xe5)](_0x2a99b3[_0x4a913c(0x136)]);}break;}}}var _0xa9beca=this[_0x4a913c(0x143)]();for(var _0x2ce91d in _0xa9beca){if(!_0x101657['test'](_0x2ce91d)){if(_0x30293e&&!_0x411c40['includes'](_0x2ce91d))continue;var _0x57d61b=_0xa9beca[_0x2ce91d];(_0x5bdd27&&_0x57d61b['name']===_0x5bdd27||!_0x5bdd27)&&_0x57d61b[_0x4a913c(0x14d)][_0x1c7dbb]&&(_0x57d61b[_0x4a913c(0x14d)][_0x1c7dbb]=_0x33b1e9);}}};}static async['bindIcon'](_0x5df5d9){const _0x52bef3=_0x53b7bd;if(_0x5df5d9){const _0x1e560c=(0x0,path_1[_0x52bef3(0x116)])(resource_1[_0x52bef3(0x12f)],resource_1[_0x52bef3(0x12e)]),_0x2ff633=(0x0,path_1['join'])(_0x1e560c,'Contents.json'),_0xb2d1=_0x52bef3(0xe4)+_0x5df5d9[_0x52bef3(0x12a)]()[_0x52bef3(0x103)](_0x52bef3(0xeb),''),_0x3eb24a=(0x0,path_1[_0x52bef3(0x116)])(_0x1e560c,_0xb2d1);let _0x4194f8=await(0x0,load_1['loadJsonFromDisk'])(_0x2ff633);_0x4194f8[_0x52bef3(0x142)][0x0][_0x52bef3(0xed)]=_0xb2d1,await _0x5df5d9[_0x52bef3(0x11b)](_0x3eb24a),await fs['writeFileSync'](_0x2ff633,JSON[_0x52bef3(0x131)](_0x4194f8));const _0x35bbbc=(0x0,path_1['join'])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x52bef3(0x13a)]),_0x19bc8d=(0x0,path_1['join'])(_0x35bbbc,_0x52bef3(0x13f)),_0x4c294e=_0x52bef3(0xf6),_0x42a069=(0x0,path_1[_0x52bef3(0x116)])(_0x35bbbc,_0x4c294e);let _0x170592=await(0x0,load_1[_0x52bef3(0xe3)])(_0x19bc8d),_0x41b21f=imageHelper_1['ImageHelper'][_0x52bef3(0x112)](0x200);_0x170592['images'][0x0]['filename']=_0x4c294e,await _0x41b21f[_0x52bef3(0x11b)](_0x42a069),await fs['writeFileSync'](_0x19bc8d,JSON[_0x52bef3(0x131)](_0x170592));}}static[_0x53b7bd(0x115)](_0x39f269,_0x19c8f7){const _0xe4b9ec=_0x53b7bd;_0x39f269[_0xe4b9ec(0x104)](_0xe4b9ec(0x12b),_0x19c8f7),useExportOptionsXML=useExportOptionsXML['replace']('YOURTEAMID',_0x19c8f7);}static[_0x53b7bd(0xf1)](){const _0x3fa780=_0x53b7bd;!fs[_0x3fa780(0x13e)](resource_1[_0x3fa780(0x151)])&&fs[_0x3fa780(0x10a)](resource_1[_0x3fa780(0x151)],{'recursive':!![]}),fs[_0x3fa780(0x135)]((0x0,path_1[_0x3fa780(0x116)])(resource_1[_0x3fa780(0x151)],_0x3fa780(0x125)),useExportOptionsXML);}static[_0x53b7bd(0xfc)](_0x1e18d5,_0x348c0b,_0x15d5af=![]){const _0x15d8c4=_0x53b7bd;var _0x5e85b8;_0x1e18d5[_0x15d8c4(0xf0)](_0x348c0b[_0x15d8c4(0xe2)]),_0x348c0b['id']&&!_0x15d5af&&_0x1e18d5[_0x15d8c4(0x104)](_0x15d8c4(0x113),'\x22'+_0x348c0b['id']+'\x22'),this[_0x15d8c4(0x109)]((_0x5e85b8=_0x348c0b[_0x15d8c4(0x10e)])!==null&&_0x5e85b8!==void 0x0?_0x5e85b8:[]),this[_0x15d8c4(0x149)](_0x348c0b);}static[_0x53b7bd(0x13d)](_0x588c3e,_0x4dc36e){const _0x54f9ce=_0x53b7bd;_0x588c3e[_0x54f9ce(0x104)](_0x54f9ce(0xe7),_0x4dc36e);}static['updateDeeplink'](_0x2c1057){const _0x30bed5=_0x53b7bd;let _0x4c5ebc=(0x0,path_1[_0x30bed5(0x116)])(resource_1[_0x30bed5(0x12f)],_0x30bed5(0x138)),_0x43fd8f='';for(let _0x56497d=0x0;_0x56497d<_0x2c1057[_0x30bed5(0x106)];_0x56497d++){_0x43fd8f+=_0x30bed5(0x117)+_0x2c1057[_0x56497d][_0x30bed5(0x107)]+_0x30bed5(0x10d);}const _0x5f303f=infoPlistXML[_0x30bed5(0x103)](_0x30bed5(0xf8),_0x43fd8f);fs[_0x30bed5(0x135)](_0x4c5ebc,_0x5f303f);}static[_0x53b7bd(0x149)](_0xa96dbc){const _0x36bf5f=_0x53b7bd,_0x3fecb8=(0x0,path_1[_0x36bf5f(0x116)])(resource_1[_0x36bf5f(0x12f)],'./web-spatial/libs/webView/manifest.swift');let _0x51a9a9=manifestSwiftTemplate_1[_0x36bf5f(0xfb)];_0x51a9a9=_0x51a9a9['replace']('START_URL',_0xa96dbc['start_url']),_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0xdf),_0xa96dbc[_0x36bf5f(0x14e)]),_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0x12d),_0xa96dbc[_0x36bf5f(0xe2)]),_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)]('Description',_0xa96dbc[_0x36bf5f(0x10b)]),_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0xfa),_0xa96dbc['id']),_0x51a9a9=_0x51a9a9['replace'](_0x36bf5f(0x122),_0xa96dbc[_0x36bf5f(0x127)]==_0x36bf5f(0x147)?'.minimal':'.standalone');if(_0xa96dbc[_0x36bf5f(0x10e)]){let _0xc4b9a4='';for(let _0x2106ce=0x0;_0x2106ce<_0xa96dbc[_0x36bf5f(0x10e)][_0x36bf5f(0x106)];_0x2106ce++){_0xc4b9a4+=_0x36bf5f(0x105)+_0xa96dbc[_0x36bf5f(0x10e)][_0x2106ce][_0x36bf5f(0x107)]+_0x36bf5f(0xf5)+_0xa96dbc[_0x36bf5f(0x10e)][_0x2106ce][_0x36bf5f(0x14c)]+_0x36bf5f(0x148);}_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0x124),_0xc4b9a4);}typeof _0xa96dbc[_0x36bf5f(0xfe)]===_0x36bf5f(0x146)?(_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0x101),_0xa96dbc[_0x36bf5f(0xfe)][_0x36bf5f(0x126)][_0x36bf5f(0x10f)]),_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0x134),_0xa96dbc[_0x36bf5f(0xfe)]['defaultSize'][_0x36bf5f(0x108)]),_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)]('SceneResizability','\x22'+_0xa96dbc['mainScene'][_0x36bf5f(0x153)]+'\x22'),_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0x14a),'true')):(_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0x101),_0x36bf5f(0xfd)),_0x51a9a9=_0x51a9a9['replace'](_0x36bf5f(0x134),'1280'),_0x51a9a9=_0x51a9a9['replace'](_0x36bf5f(0x14f),'\x22automatic\x22'),_0x51a9a9=_0x51a9a9[_0x36bf5f(0x103)](_0x36bf5f(0x14a),_0x36bf5f(0x10c))),fs[_0x36bf5f(0x135)](_0x3fecb8,_0x51a9a9,_0x36bf5f(0xe6));}}exports['default']=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4f88e3=_0x5022;(function(_0x77d440,_0xbb00f4){const _0x257a21=_0x5022,_0x4f693a=_0x77d440();while(!![]){try{const _0x5bc984=-parseInt(_0x257a21(0x194))/0x1+-parseInt(_0x257a21(0x1ba))/0x2*(parseInt(_0x257a21(0x17c))/0x3)+parseInt(_0x257a21(0x173))/0x4*(-parseInt(_0x257a21(0x176))/0x5)+-parseInt(_0x257a21(0x16c))/0x6*(-parseInt(_0x257a21(0x190))/0x7)+parseInt(_0x257a21(0x1b2))/0x8*(-parseInt(_0x257a21(0x18a))/0x9)+-parseInt(_0x257a21(0x1a1))/0xa*(-parseInt(_0x257a21(0x19d))/0xb)+parseInt(_0x257a21(0x177))/0xc*(parseInt(_0x257a21(0x1a2))/0xd);if(_0x5bc984===_0xbb00f4)break;else _0x4f693a['push'](_0x4f693a['shift']());}catch(_0x1d15fb){_0x4f693a['push'](_0x4f693a['shift']());}}}(_0x5790,0xa450f));Object[_0x4f88e3(0x1ac)](exports,'__esModule',{'value':!![]});const child_process_1=require('child_process'),resource_1=require('../resource'),path_1=require(_0x4f88e3(0x1a7)),fs=require('fs'),xcodebuild_1=require(_0x4f88e3(0x1ae));function _0x5790(){const _0x2b61a2=['install\x20success','verbose','start\x20building','3251364yhjhtJ','version','trim','5NABUuy','12oBkXLI','PROJECT_DIRECTORY','mkdirSync','split','install','813558cnnSVr','toString','boot','line','\x20-p\x20','visionos','length','uploadApp','\x20shutdown\x20booted','\x20--upload-app\x20-f\x20','no\x20visionOS\x20simulator\x20found','PROJECT_BUILD_DIRECTORY','Shutdown','\x20--validate-app\x20-f\x20','1076175oZDqqb','Build/Products/Debug-xrsimulator/','validate','\x20list\x20devices\x20\x22','runWithSimulator','execSync','77721ydWQKX','uploadPackage','\x27\x20-derivedDataPath\x20','build\x20success','860340rUjrRp','deviceId','includes','state','appleId','platform','simctl','/test','existsSync','22BGbiUz','\x20-u\x20','.app','log','714270ImWbUu','41469025EPgaYn','project','--\x20visionOS','\x20--verbose','authAccount','path','\x20--upload-package\x20','\x20boot\x20\x22','/web-spatial.xcodeproj','launch','defineProperty','join','./xcodebuild','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','\x20--apiKey\x20','push','64JblprN','listDevices','\x22\x20\x22','XcodebuildCMD','parseListDevices','default','authApi','installing\x20app','8KKSZSg','altool','570MGOSCG','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','\x20--bundle-version\x20','\x20simctl'];_0x5790=function(){return _0x2b61a2;};return _0x5790();}class Xcrun{static async[_0x4f88e3(0x18c)](_0xffae7,_0x5e9435,_0x2a7ce3,_0x17a536){const _0x391faa=_0x4f88e3,_0xb80924=new XcrunCMD()[_0x391faa(0x1bb)]();_0xb80924[_0x391faa(0x18c)](_0xffae7);_0x17a536?_0xb80924[_0x391faa(0x1a6)](_0x5e9435,_0x2a7ce3):_0xb80924[_0x391faa(0x1b8)](_0x5e9435,_0x2a7ce3);_0xb80924[_0x391faa(0x199)](_0x391faa(0x181));const _0x4e96ec=(0x0,child_process_1[_0x391faa(0x18f)])(_0xb80924['line']);return _0x4e96ec[_0x391faa(0x17d)]();}static async[_0x4f88e3(0x191)](_0x27be10,_0x3cb9fc,_0x10fc5a,_0x32bba3,_0x3a3582){const _0x1dd90f=_0x4f88e3,_0x589c5b=new XcrunCMD()[_0x1dd90f(0x1bb)]();_0x589c5b[_0x1dd90f(0x191)](_0x27be10);_0x3a3582?_0x589c5b[_0x1dd90f(0x1a6)](_0x3cb9fc,_0x10fc5a):_0x589c5b[_0x1dd90f(0x1b8)](_0x3cb9fc,_0x10fc5a);_0x589c5b[_0x1dd90f(0x199)](_0x1dd90f(0x181)),_0x589c5b[_0x1dd90f(0x198)](_0x32bba3);const _0x34c328=(0x0,child_process_1[_0x1dd90f(0x18f)])(_0x589c5b['line']);return _0x34c328[_0x1dd90f(0x17d)]();}static async[_0x4f88e3(0x183)](_0x433c52,_0x56f0d3,_0x31ec0c,_0x3061c3){const _0x227d87=_0x4f88e3,_0x25b5b3=new XcrunCMD()[_0x227d87(0x1bb)]();_0x25b5b3[_0x227d87(0x183)](_0x433c52);_0x3061c3?_0x25b5b3[_0x227d87(0x1a6)](_0x56f0d3,_0x31ec0c):_0x25b5b3['authApi'](_0x56f0d3,_0x31ec0c);_0x25b5b3[_0x227d87(0x199)](_0x227d87(0x181));const _0x4b10b2=(0x0,child_process_1[_0x227d87(0x18f)])(_0x25b5b3[_0x227d87(0x17f)]);return _0x4b10b2[_0x227d87(0x17d)]();}static async[_0x4f88e3(0x18e)](_0x513397){const _0x2abc35=_0x4f88e3;let _0x1f1816=new XcrunCMD()[_0x2abc35(0x19a)]();_0x1f1816['listDevices']('Apple\x20Vision\x20Pro');const _0x2f7779=(0x0,child_process_1[_0x2abc35(0x18f)])(_0x1f1816[_0x2abc35(0x17f)]),_0x279c06=this['parseListDevices'](_0x2f7779[_0x2abc35(0x17d)]());if(_0x279c06[_0x2abc35(0x182)]===0x0)throw new Error(_0x2abc35(0x186));let _0x584819=_0x279c06[0x0];for(let _0x55da4f=0x0;_0x55da4f<_0x279c06[_0x2abc35(0x182)];_0x55da4f++){if(_0x279c06[_0x55da4f][_0x2abc35(0x197)]==='Booted'){_0x584819=_0x279c06[_0x55da4f];break;}}console[_0x2abc35(0x1a0)]('find\x20simulator:\x20'+_0x584819[_0x2abc35(0x195)]);const _0x3242f2=resource_1[_0x2abc35(0x178)]+_0x2abc35(0x1aa),_0x23bdb2=resource_1['PROJECT_BUILD_DIRECTORY']+_0x2abc35(0x19b);!fs[_0x2abc35(0x19c)](resource_1[_0x2abc35(0x187)])&&fs[_0x2abc35(0x179)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]});!fs[_0x2abc35(0x19c)](_0x23bdb2)&&fs[_0x2abc35(0x179)](_0x23bdb2,{'recursive':!![]});const _0x6d1b68=new xcodebuild_1[(_0x2abc35(0x1b5))]()[_0x2abc35(0x1a3)](_0x3242f2)[_0x2abc35(0x17f)]+(_0x2abc35(0x1af)+_0x584819[_0x2abc35(0x195)]+_0x2abc35(0x192)+_0x23bdb2);console[_0x2abc35(0x1a0)](_0x2abc35(0x172)),(0x0,child_process_1['execSync'])(_0x6d1b68),console[_0x2abc35(0x1a0)](_0x2abc35(0x193));_0x584819[_0x2abc35(0x197)]===_0x2abc35(0x188)&&(_0x1f1816=new XcrunCMD()[_0x2abc35(0x19a)](),_0x1f1816['boot'](_0x584819[_0x2abc35(0x195)]),(0x0,child_process_1[_0x2abc35(0x18f)])(_0x1f1816[_0x2abc35(0x17f)]));(0x0,child_process_1['execSync'])(_0x2abc35(0x16d)),console[_0x2abc35(0x1a0)](_0x2abc35(0x1b9));const _0x205a29=(0x0,path_1[_0x2abc35(0x1ad)])(_0x23bdb2,_0x2abc35(0x18b)+_0x513397['name']+_0x2abc35(0x19f));_0x1f1816=new XcrunCMD()[_0x2abc35(0x19a)](),_0x1f1816[_0x2abc35(0x17b)](_0x584819[_0x2abc35(0x195)],_0x205a29),(0x0,child_process_1[_0x2abc35(0x18f)])(_0x1f1816[_0x2abc35(0x17f)]),console['log'](_0x2abc35(0x170)),console['log']('launch\x20app'),_0x1f1816=new XcrunCMD()[_0x2abc35(0x19a)](),_0x1f1816[_0x2abc35(0x1ab)](_0x584819[_0x2abc35(0x195)],_0x513397['id']),(0x0,child_process_1['execSync'])(_0x1f1816[_0x2abc35(0x17f)]);}static[_0x4f88e3(0x1b6)](_0x10f6dc){const _0x1fa476=_0x4f88e3;let _0x4d1bad=_0x10f6dc[_0x1fa476(0x17a)]('\x0a'),_0x44961f=[],_0x264af1=-0x1;for(let _0x31f91a=0x0;_0x31f91a<_0x4d1bad[_0x1fa476(0x182)];_0x31f91a++){if(_0x4d1bad[_0x31f91a][_0x1fa476(0x196)](_0x1fa476(0x1a4)))_0x264af1=_0x31f91a;else{if(_0x264af1>0x0){if(_0x4d1bad[_0x31f91a]['includes']('--\x20'))break;if(_0x4d1bad[_0x31f91a]['length']>0x0){const _0x3045e9=_0x4d1bad[_0x31f91a][_0x1fa476(0x17a)]('('),_0x30d07f={'name':_0x3045e9[0x0][_0x1fa476(0x175)](),'deviceId':_0x3045e9[0x1][_0x1fa476(0x17a)](')')[0x0][_0x1fa476(0x175)](),'state':_0x3045e9[0x2][_0x1fa476(0x17a)](')')[0x0][_0x1fa476(0x175)]()};_0x44961f[_0x1fa476(0x1b1)](_0x30d07f);}}}}return _0x44961f;}}function _0x5022(_0x4ae367,_0x10711c){const _0x579028=_0x5790();return _0x5022=function(_0x50221e,_0x5619cb){_0x50221e=_0x50221e-0x16c;let _0x3c75e8=_0x579028[_0x50221e];return _0x3c75e8;},_0x5022(_0x4ae367,_0x10711c);}exports[_0x4f88e3(0x1b7)]=Xcrun;class XcrunCMD{constructor(){const _0x703059=_0x4f88e3;this[_0x703059(0x17f)]='xcrun';}['altool'](){return this['line']+='\x20altool',this;}[_0x4f88e3(0x19a)](){const _0x33fa3e=_0x4f88e3;return this[_0x33fa3e(0x17f)]+=_0x33fa3e(0x16f),this;}['list'](){const _0x312d65=_0x4f88e3;return this[_0x312d65(0x17f)]+='\x20list',this;}[_0x4f88e3(0x1b3)](_0x17638a){const _0x515b58=_0x4f88e3;return this['line']+=_0x515b58(0x18d)+_0x17638a+'\x22',this;}[_0x4f88e3(0x18c)](_0x127cde){const _0x59be8e=_0x4f88e3;return this[_0x59be8e(0x17f)]+=_0x59be8e(0x189)+_0x127cde,this;}['uploadApp'](_0x4f0c8c){const _0x3021f6=_0x4f88e3;return this[_0x3021f6(0x17f)]+=_0x3021f6(0x185)+_0x4f0c8c,this;}[_0x4f88e3(0x191)](_0x5c5421){const _0x30a1b8=_0x4f88e3;return this['line']+=_0x30a1b8(0x1a8)+_0x5c5421,this;}[_0x4f88e3(0x1a6)](_0x2444e9,_0x34ece8){const _0x36d37a=_0x4f88e3;return this[_0x36d37a(0x17f)]+=_0x36d37a(0x19e)+_0x2444e9+_0x36d37a(0x180)+_0x34ece8,this;}['authApi'](_0x30587a,_0x40f548){const _0x2408db=_0x4f88e3;return this['line']+=_0x2408db(0x1b0)+_0x30587a+'\x20--apiIssuer\x20'+_0x40f548,this;}['appleId'](_0x2c91f0){const _0x4d8a93=_0x4f88e3;return this[_0x4d8a93(0x17f)]+='\x20--apple-id\x20'+_0x2c91f0,this;}[_0x4f88e3(0x199)](_0x5e79fc){const _0x4751d9=_0x4f88e3;return this[_0x4751d9(0x17f)]+='\x20-t\x20'+_0x5e79fc,this;}[_0x4f88e3(0x174)](_0x3bbc11){const _0x48ce21=_0x4f88e3;return this[_0x48ce21(0x17f)]+=_0x48ce21(0x16e)+_0x3bbc11,this;}[_0x4f88e3(0x171)](){const _0x4ea29f=_0x4f88e3;return this[_0x4ea29f(0x17f)]+=_0x4ea29f(0x1a5),this;}['shutdown'](){const _0x413c07=_0x4f88e3;return this[_0x413c07(0x17f)]+=_0x413c07(0x184),this;}[_0x4f88e3(0x17e)](_0x4656f6){const _0x5984ec=_0x4f88e3;return this[_0x5984ec(0x17f)]+=_0x5984ec(0x1a9)+_0x4656f6+'\x22',this;}[_0x4f88e3(0x17b)](_0x1de52c,_0x1edfe5){const _0x57557c=_0x4f88e3;return this['line']+='\x20install\x20\x22'+_0x1de52c+_0x57557c(0x1b4)+_0x1edfe5+'\x22',this;}[_0x4f88e3(0x1ab)](_0x1576fb,_0x4067a3){const _0x21a52e=_0x4f88e3;return this[_0x21a52e(0x17f)]+='\x20launch\x20\x22'+_0x1576fb+_0x21a52e(0x1b4)+_0x4067a3+'\x22',this;}}
|