@webspatial/builder 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.d.ts +3 -3
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.d.ts +3 -2
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.d.ts +1 -1
- package/dist/lib/pwa/validate.js +1 -1
- package/dist/lib/resource/file.js +1 -1
- package/dist/lib/resource/imageHelper.js +1 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -14,49 +14,49 @@ If you wish to package an IPA file or publish it to App Store Connect, you need
|
|
|
14
14
|
## **Usage**
|
|
15
15
|
Build and run local WebSpatial project on Apple Vision Pro simulator.
|
|
16
16
|
|
|
17
|
-
`webspatial-builder run --manifest=public/manifest.json --project=dist --base
|
|
17
|
+
`webspatial-builder run --manifest=public/manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos`
|
|
18
18
|
|
|
19
19
|
- Default parameters
|
|
20
20
|
- --manifest=public/manifest.json
|
|
21
21
|
- --project=dist
|
|
22
22
|
- --platform=visionos
|
|
23
23
|
- Necessary parameters
|
|
24
|
-
- --base
|
|
24
|
+
- --base
|
|
25
25
|
|
|
26
|
-
> The --base
|
|
26
|
+
> The --base is the root path to the project. It will be combined with start_url in the manifest.json file to generate the final URL.
|
|
27
27
|
>
|
|
28
28
|
>**For example:**
|
|
29
29
|
>```
|
|
30
30
|
>Example 1:
|
|
31
31
|
>start_url:./a/index.html
|
|
32
|
-
>--base
|
|
32
|
+
>--base:dist/webspatial/avp
|
|
33
33
|
>final url:dist/webspatial/avp/a/index.html
|
|
34
34
|
>
|
|
35
35
|
>Example 2:
|
|
36
36
|
>start_url:https://www.domain1.com/a/index.html
|
|
37
|
-
>--base
|
|
37
|
+
>--base:https://www.domain2.com/webspatial/avp
|
|
38
38
|
>final url:https://www.domain2.com/webspatial/avp/index.html
|
|
39
39
|
>
|
|
40
40
|
>Example 3:
|
|
41
41
|
>start_url:https://www.domain1.com/a/index.html
|
|
42
|
-
>--base
|
|
42
|
+
>--base:dist/webspatial/avp
|
|
43
43
|
>final url:dist/webspatial/avp/index.html
|
|
44
44
|
>```
|
|
45
45
|
|
|
46
46
|
Package an IPA file.
|
|
47
47
|
|
|
48
|
-
`webspatial-builder build --manifest=manifest.json --project=dist --base
|
|
48
|
+
`webspatial-builder build --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId`
|
|
49
49
|
|
|
50
50
|
- Necessary parameters
|
|
51
|
-
- --base
|
|
51
|
+
- --base
|
|
52
52
|
- --teamId
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
Publish to App Store Connect.
|
|
56
|
-
`webspatial-builder publish --manifest=manifest.json --project=dist --base
|
|
56
|
+
`webspatial-builder publish --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --version=projectVersion --u=yourAppleId --p=yourAppSpecificCode`
|
|
57
57
|
|
|
58
58
|
- Necessary parameters
|
|
59
|
-
- --base
|
|
59
|
+
- --base
|
|
60
60
|
- --teamId
|
|
61
61
|
- --version
|
|
62
62
|
- --u
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5b30(_0x5433b2,_0x15ae3f){const _0x24d27d=_0x24d2();return _0x5b30=function(_0x5b3024,_0x13b307){_0x5b3024=_0x5b3024-0x98;let _0x541a41=_0x24d27d[_0x5b3024];return _0x541a41;},_0x5b30(_0x5433b2,_0x15ae3f);}function _0x24d2(){const _0x10ca2a=['CustomError','customMessage','3168ZZRivF','defineProperty','815952CdBGrZ','5676790JoAiSh','Cli','exit','47510pYVpXl','735510WsSAyl','20mpWgoR','isArray','2221384dtQsVb','400776PqfuWh','argv','24LTFMqC','18NGcyZA','6785ELejcl','error','ConsoleLog','exports','code','message','forEach'];_0x24d2=function(){return _0x10ca2a;};return _0x24d2();}const _0x22aa51=_0x5b30;(function(_0x1b89f1,_0x188ad8){const _0x4e3579=_0x5b30,_0x494d52=_0x1b89f1();while(!![]){try{const _0x4792fb=parseInt(_0x4e3579(0xaa))/0x1+parseInt(_0x4e3579(0xa5))/0x2+-parseInt(_0x4e3579(0xae))/0x3*(parseInt(_0x4e3579(0xab))/0x4)+-parseInt(_0x4e3579(0x9a))/0x5*(parseInt(_0x4e3579(0x98))/0x6)+parseInt(_0x4e3579(0xa6))/0x7+-parseInt(_0x4e3579(0xad))/0x8*(-parseInt(_0x4e3579(0x99))/0x9)+-parseInt(_0x4e3579(0xa9))/0xa*(parseInt(_0x4e3579(0xa3))/0xb);if(_0x4792fb===_0x188ad8)break;else _0x494d52['push'](_0x494d52['shift']());}catch(_0x13dbdf){_0x494d52['push'](_0x494d52['shift']());}}}(_0x24d2,0x7249e));Object[_0x22aa51(0xa4)](exports,'__esModule',{'value':!![]});const Cli_1=require('./lib/Cli'),Log_1=require('./lib/utils/Log'),CustomError_1=require('./lib/utils/CustomError');module[_0x22aa51(0x9d)]=async()=>{const _0x6a7a12=_0x22aa51,_0x7b1bcd=new Cli_1[(_0x6a7a12(0xa7))](),_0x1cb01d=new Log_1[(_0x6a7a12(0x9c))]('cli'),_0x160f61=process[_0x6a7a12(0xaf)]['slice'](0x2);let _0x1e2831;try{_0x1e2831=await _0x7b1bcd['run'](_0x160f61);}catch(_0x411659){if(_0x411659 instanceof CustomError_1[_0x6a7a12(0xa1)]){const _0x4d0c0f=_0x411659[_0x6a7a12(0xa2)];Array[_0x6a7a12(0xac)](_0x4d0c0f)?_0x4d0c0f[_0x6a7a12(0xa0)](_0x1631fd=>{const _0x5b4a02=_0x6a7a12;_0x1cb01d[_0x5b4a02(0x9b)](_0x1631fd[_0x5b4a02(0x9e)]+':\x20'+_0x1631fd['message']);}):_0x1cb01d['error'](_0x4d0c0f[_0x6a7a12(0x9e)]+':\x20'+_0x4d0c0f[_0x6a7a12(0x9f)]);}else _0x1cb01d[_0x6a7a12(0x9b)](_0x411659[_0x6a7a12(0x9f)]);_0x1e2831=![];}!_0x1e2831?process[_0x6a7a12(0xa8)](0x1):process[_0x6a7a12(0xa8)](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5cfd7b=_0x3617;(function(_0x61eacf,_0x145eb7){const _0x425116=_0x3617,_0x56d813=_0x61eacf();while(!![]){try{const _0x3a7a7f=parseInt(_0x425116(0xbf))/0x1*(-parseInt(_0x425116(0xc0))/0x2)+parseInt(_0x425116(0xb0))/0x3+parseInt(_0x425116(0xc3))/0x4*(-parseInt(_0x425116(0xb2))/0x5)+-parseInt(_0x425116(0xad))/0x6+parseInt(_0x425116(0xae))/0x7+parseInt(_0x425116(0xbb))/0x8*(parseInt(_0x425116(0xb5))/0x9)+parseInt(_0x425116(0xa7))/0xa;if(_0x3a7a7f===_0x145eb7)break;else _0x56d813['push'](_0x56d813['shift']());}catch(_0x3670eb){_0x56d813['push'](_0x56d813['shift']());}}}(_0x170c,0x5ef3a));Object[_0x5cfd7b(0xc5)](exports,_0x5cfd7b(0xac),{'value':!![]}),exports[_0x5cfd7b(0xc6)]=void 0x0;function _0x3617(_0x163ab6,_0x25d213){const _0x170c7a=_0x170c();return _0x3617=function(_0x3617d0,_0x37f2f2){_0x3617d0=_0x3617d0-0xa5;let _0x59b6a3=_0x170c7a[_0x3617d0];return _0x59b6a3;},_0x3617(_0x163ab6,_0x25d213);}const minimist=require(_0x5cfd7b(0xbc)),semver_1=require(_0x5cfd7b(0xb9)),FetchUtils_1_1=require(_0x5cfd7b(0xb8)),help_1=require('./cmds/help'),build_1=require(_0x5cfd7b(0xc2)),version_1=require(_0x5cfd7b(0xb4)),fetch_1=require(_0x5cfd7b(0xbe));class Cli{async[_0x5cfd7b(0xb3)](_0x179a0d){const _0xf15db0=_0x5cfd7b;if((0x0,semver_1[_0xf15db0(0xc8)])(process['versions']['node'])<0xe)throw new Error(_0xf15db0(0xaf)+process[_0xf15db0(0xc1)][_0xf15db0(0xb1)]+'.'+_0xf15db0(0xc4));FetchUtils_1_1[_0xf15db0(0xa9)][_0xf15db0(0xab)](fetch_1[_0xf15db0(0xba)]),FetchUtils_1_1['fetchUtils'][_0xf15db0(0xb7)](fetch_1['downloadFile']),FetchUtils_1_1[_0xf15db0(0xa9)]['setDecompressResponseBuffer'](fetch_1['decompressResponseBuffer']);const _0x2fae95=minimist(_0x179a0d);let _0x22b409=undefined;if(_0x2fae95['_'][_0xf15db0(0xb6)]===0x0){if(_0x2fae95['version'])_0x22b409=_0xf15db0(0xaa);else _0x2fae95[_0xf15db0(0xa6)]&&(_0x22b409='help');}else _0x22b409=_0x2fae95['_'][0x0];!_0x22b409&&(_0x22b409=_0xf15db0(0xa6));switch(_0x22b409){case _0xf15db0(0xa6):case'h':return await(0x0,help_1[_0xf15db0(0xa6)])(_0x2fae95);case _0xf15db0(0xc7):return await(0x0,build_1[_0xf15db0(0xa5)])(_0x2fae95);case'publish':return await(0x0,build_1[_0xf15db0(0xa8)])(_0x2fae95);case _0xf15db0(0xb3):return await(0x0,build_1['run'])(_0x2fae95);case _0xf15db0(0xaa):{return await(0x0,version_1[_0xf15db0(0xaa)])();}default:throw new Error('\x22'+_0x22b409+_0xf15db0(0xbd));}}}exports['Cli']=Cli;function _0x170c(){const _0x4f7c0d=['4490514aGUByw','Current\x20Node.js\x20version\x20is\x20','464982AGpJIV','node','5YPAvGG','run','./cmds/version','1791HtxJFe','length','setDownloadFile','./utils/FetchUtils-1','semver','fetch','2568UscWMZ','minimist','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','./utils/fetch','1nQVSHg','1139210rBazan','versions','./cmds/build','2286856NyHxlM','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','defineProperty','Cli','build','major','start','help','8879260JWgVNs','store','fetchUtils','version','setFetch','__esModule','1308360LfUbFg'];_0x170c=function(){return _0x4f7c0d;};return _0x170c();}
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x290410=_0x256c;function _0x256c(_0x1bbdf2,_0x559f62){const _0x29f639=_0x29f6();return _0x256c=function(_0x256c23,_0x2a3292){_0x256c23=_0x256c23-0x150;let _0x15f357=_0x29f639[_0x256c23];return _0x15f357;},_0x256c(_0x1bbdf2,_0x559f62);}(function(_0x157086,_0xaaa98){const _0x3edb69=_0x256c,_0x4475f7=_0x157086();while(!![]){try{const _0x284c74=-parseInt(_0x3edb69(0x168))/0x1*(parseInt(_0x3edb69(0x177))/0x2)+parseInt(_0x3edb69(0x159))/0x3+parseInt(_0x3edb69(0x155))/0x4*(parseInt(_0x3edb69(0x15c))/0x5)+-parseInt(_0x3edb69(0x163))/0x6+-parseInt(_0x3edb69(0x169))/0x7+-parseInt(_0x3edb69(0x156))/0x8*(-parseInt(_0x3edb69(0x153))/0x9)+parseInt(_0x3edb69(0x175))/0xa*(parseInt(_0x3edb69(0x154))/0xb);if(_0x284c74===_0xaaa98)break;else _0x4475f7['push'](_0x4475f7['shift']());}catch(_0x7cfa95){_0x4475f7['push'](_0x4475f7['shift']());}}}(_0x29f6,0xdd0e9));Object[_0x290410(0x171)](exports,_0x290410(0x15d),{'value':!![]}),exports['start']=start,exports[_0x290410(0x15e)]=store,exports[_0x290410(0x16e)]=run;function _0x29f6(){const _0x2a1b66=['SpatialWebTest','com.SpatialWeb.test','../xcode','name','fromNet','1592721GGouPg','44PSLsKu','32plETIw','32lRTTMU','log','dist','373971sjjCOI','json','ResourceManager','947160jTCCQj','__esModule','store','teamId','project','app-store-connect','XcodeManager','9685098pqMfVa','version','PWAGenerator','../resource','-------------------\x20build\x20start\x20-------------------','1MvZvOO','3154046IqtKmT','export','platform','../pwa','move\x20web\x20project:\x20ok','run','parseProject','generateIcon','defineProperty','buildType','moveProjectFrom','checkStoreParams','5330230rZzucw','generator','3019742RPutem','-------------------\x20build\x20end\x20-------------------'];_0x29f6=function(){return _0x2a1b66;};return _0x29f6();}const pwa_1=require(_0x290410(0x16c)),resource_1=require(_0x290410(0x166)),xcode_1=require(_0x290410(0x150)),check_1=require('./check');async function start(_0x53460c,_0x5efaf2=![]){const _0x38e762=_0x290410;var _0x5abc7e;(0x0,check_1['checkBuildParams'])(_0x53460c,_0x5efaf2),resource_1[_0x38e762(0x15b)]['checkPlatformPath'](_0x53460c['platform']),console[_0x38e762(0x157)](_0x38e762(0x167));let _0x1b537c=await pwa_1[_0x38e762(0x165)][_0x38e762(0x176)](_0x53460c,_0x5efaf2);!_0x1b537c[_0x38e762(0x152)]&&(await resource_1[_0x38e762(0x15b)][_0x38e762(0x173)]((_0x5abc7e=_0x53460c[_0x38e762(0x160)])!==null&&_0x5abc7e!==void 0x0?_0x5abc7e:_0x38e762(0x158)),console['log'](_0x38e762(0x16d)));const _0x64b3a6=await resource_1[_0x38e762(0x15b)][_0x38e762(0x170)](_0x1b537c);return console[_0x38e762(0x157)]('generate\x20icon:\x20ok'),await xcode_1[_0x38e762(0x162)][_0x38e762(0x16f)]({'icon':_0x64b3a6,'manifestInfo':_0x1b537c,'teamId':_0x53460c[_0x38e762(0x15f)],'version':_0x53460c[_0x38e762(0x164)],'buildType':_0x53460c[_0x38e762(0x172)],'export':_0x53460c[_0x38e762(0x16a)]},_0x5efaf2),console[_0x38e762(0x157)](_0x38e762(0x178)),_0x1b537c;}async function store(_0x465f46){const _0x9ae55c=_0x290410;resource_1['ResourceManager']['checkPlatformPath'](_0x465f46[_0x9ae55c(0x16b)]),(0x0,check_1[_0x9ae55c(0x174)])(_0x465f46);let _0x5e48a3={'name':'SpatialWebTest'};_0x465f46[_0x9ae55c(0x172)]=_0x9ae55c(0x161);if(_0x465f46[_0x9ae55c(0x151)])_0x5e48a3[_0x9ae55c(0x151)]=_0x465f46['name'];else{const _0x1e7350=await start(_0x465f46);if(!_0x1e7350)return![];_0x5e48a3[_0x9ae55c(0x151)]=_0x1e7350[_0x9ae55c(0x15a)][_0x9ae55c(0x151)];}return await xcode_1[_0x9ae55c(0x162)]['upload'](_0x465f46,_0x5e48a3),!![];}async function run(_0x4482ac){const _0x4cad22=_0x290410;let _0x266834={'name':_0x4cad22(0x179),'id':_0x4cad22(0x17a)};const _0x522399=await start(_0x4482ac,!![]);if(!_0x522399)return![];return _0x266834[_0x4cad22(0x151)]=_0x522399['json']['name'],_0x266834['id']=_0x522399[_0x4cad22(0x15a)]['id'],await xcode_1[_0x4cad22(0x162)]['runWithSimulator'](_0x266834),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x14fb26=_0x5cb2;(function(_0x20d4ce,_0x3433eb){const _0x4a3f89=_0x5cb2,_0x3852fd=_0x20d4ce();while(!![]){try{const _0x20ca91=-parseInt(_0x4a3f89(0x1c5))/0x1+parseInt(_0x4a3f89(0x1c4))/0x2+parseInt(_0x4a3f89(0x1cb))/0x3+-parseInt(_0x4a3f89(0x1d5))/0x4*(parseInt(_0x4a3f89(0x1da))/0x5)+-parseInt(_0x4a3f89(0x1c7))/0x6*(-parseInt(_0x4a3f89(0x1d3))/0x7)+-parseInt(_0x4a3f89(0x1d1))/0x8*(parseInt(_0x4a3f89(0x1d0))/0x9)+-parseInt(_0x4a3f89(0x1c9))/0xa*(-parseInt(_0x4a3f89(0x1d8))/0xb);if(_0x20ca91===_0x3433eb)break;else _0x3852fd['push'](_0x3852fd['shift']());}catch(_0x10e0a2){_0x3852fd['push'](_0x3852fd['shift']());}}}(_0x1438,0x95c60));function _0x1438(){const _0x21f9b0=['10eKFhtC','checkBuildParams','847413JPsAdu','../pwa/validate','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','manifest','pathname','9IWvHYo','7162808gbfhdi','checkStoreParams','16870miZZwS','validateURL','8nUcpcH','__esModule','manifest-url','21711217YjxKHB','base','765245VdzhQP','--u\x20and\x20--p\x20is\x20required','hash','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','pop','split','teamId','version\x20is\x20required','--teamId\x20is\x20required','test','194790PfHLZc','1023102gqduWT','version','1206lExatJ','search'];_0x1438=function(){return _0x21f9b0;};return _0x1438();}Object['defineProperty'](exports,_0x14fb26(0x1d6),{'value':!![]}),exports[_0x14fb26(0x1ca)]=checkBuildParams,exports[_0x14fb26(0x1d2)]=checkStoreParams;const validate_1=require(_0x14fb26(0x1cc));function checkBuildParams(_0x3fed55,_0x3a51c2=![]){const _0x1419f8=_0x14fb26;if(_0x3fed55[_0x1419f8(0x1ce)]&&_0x3fed55[_0x1419f8(0x1d7)])throw new Error(_0x1419f8(0x1cd));if(!_0x3fed55[_0x1419f8(0x1c0)]&&!_0x3a51c2)throw new Error(_0x1419f8(0x1c2));if(_0x3fed55[_0x1419f8(0x1d9)]){if((0x0,validate_1[_0x1419f8(0x1d4)])(_0x3fed55[_0x1419f8(0x1d9)])){const _0x38feaf=new URL(_0x3fed55[_0x1419f8(0x1d9)]);if(_0x38feaf[_0x1419f8(0x1cf)]!=='/'||_0x38feaf[_0x1419f8(0x1c8)]||_0x38feaf[_0x1419f8(0x1dc)])throw new Error(_0x1419f8(0x1dd));}else{const _0x452cf8=/(\?.*|\.\w+|#.*)$/,_0x149aba=_0x3fed55['base'][_0x1419f8(0x1bf)]('/')[_0x1419f8(0x1de)]()||'';if(_0x452cf8[_0x1419f8(0x1c3)](_0x149aba))throw new Error(_0x1419f8(0x1dd));}}}function _0x5cb2(_0x54e096,_0x126daa){const _0x1438cc=_0x1438();return _0x5cb2=function(_0x5cb22b,_0x97621e){_0x5cb22b=_0x5cb22b-0x1bf;let _0x3446da=_0x1438cc[_0x5cb22b];return _0x3446da;},_0x5cb2(_0x54e096,_0x126daa);}function checkStoreParams(_0x2304ac){const _0x4c6e21=_0x14fb26;if(!(_0x2304ac['u']&&_0x2304ac['p']))throw new Error(_0x4c6e21(0x1db));if(!_0x2304ac[_0x4c6e21(0x1c6)])throw new Error(_0x4c6e21(0x1c1));}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x538c(){const _0x2f94af=['15950jQIsQt','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','982899ymSLlf','defineProperty','help','../utils/Log','9415qKEPmG','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','4CuLgRQ','887530VbMnzC','2921217kpPoKi','join','56VBpNiv','publish','Usage:','main','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','559166rSXgVP','132KwOGJB','2120dnPypy','info','webspatial\x20[command]\x20<options>','332FGrfvR','build','help\x20................\x20shows\x20this\x20menu','get','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','24xNcSen','dev','895152nLjbwM'];_0x538c=function(){return _0x2f94af;};return _0x538c();}const _0x3caf1d=_0xdc3b;(function(_0x3588f3,_0x4fd8a0){const _0x4ba733=_0xdc3b,_0x2e38d1=_0x3588f3();while(!![]){try{const _0x20d517=-parseInt(_0x4ba733(0x123))/0x1*(-parseInt(_0x4ba733(0x12e))/0x2)+parseInt(_0x4ba733(0x13b))/0x3+parseInt(_0x4ba733(0x133))/0x4*(parseInt(_0x4ba733(0x121))/0x5)+-parseInt(_0x4ba733(0x139))/0x6*(-parseInt(_0x4ba733(0x124))/0x7)+parseInt(_0x4ba733(0x127))/0x8*(parseInt(_0x4ba733(0x13e))/0x9)+-parseInt(_0x4ba733(0x130))/0xa*(-parseInt(_0x4ba733(0x13c))/0xb)+parseInt(_0x4ba733(0x12f))/0xc*(-parseInt(_0x4ba733(0x125))/0xd);if(_0x20d517===_0x4fd8a0)break;else _0x2e38d1['push'](_0x2e38d1['shift']());}catch(_0x16ff5d){_0x2e38d1['push'](_0x2e38d1['shift']());}}}(_0x538c,0xa6133));function _0xdc3b(_0x51538f,_0xee1ae0){const _0x538c9e=_0x538c();return _0xdc3b=function(_0xdc3bd5,_0x22ac44){_0xdc3bd5=_0xdc3bd5-0x121;let _0x153c14=_0x538c9e[_0xdc3bd5];return _0x153c14;},_0xdc3b(_0x51538f,_0xee1ae0);}Object[_0x3caf1d(0x13f)](exports,'__esModule',{'value':!![]}),exports[_0x3caf1d(0x140)]=help;const Log_1=require(_0x3caf1d(0x141)),HELP_MESSAGES=new Map([[_0x3caf1d(0x12a),[_0x3caf1d(0x132),'','',_0x3caf1d(0x135),_0x3caf1d(0x138)+_0x3caf1d(0x12c),'run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator',_0x3caf1d(0x12b)][_0x3caf1d(0x126)]('\x0a')],[_0x3caf1d(0x134),[_0x3caf1d(0x129),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','',_0x3caf1d(0x122)][_0x3caf1d(0x126)]('\x0a')],[_0x3caf1d(0x13a),[_0x3caf1d(0x129),'','',_0x3caf1d(0x12d),'','',_0x3caf1d(0x13d)][_0x3caf1d(0x126)]('\x0a')],[_0x3caf1d(0x128),[_0x3caf1d(0x129),'','',_0x3caf1d(0x137),'','','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','','','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>'][_0x3caf1d(0x126)]('\x0a')]]);async function help(_0x4a4286,_0x1195fd=new Log_1['ConsoleLog'](_0x3caf1d(0x140))){const _0x3609ba=_0x3caf1d,_0x4664ca=_0x4a4286['_'][0x1],_0xae6dab=HELP_MESSAGES[_0x3609ba(0x136)](_0x4664ca)||HELP_MESSAGES['get']('main');return _0x1195fd[_0x3609ba(0x131)](_0xae6dab),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2cbdb8=_0xa828;(function(_0x3a62b7,_0x4e2150){const _0x1fb70b=_0xa828,_0x33096d=_0x3a62b7();while(!![]){try{const _0x33d8f4=parseInt(_0x1fb70b(0x97))/0x1+-parseInt(_0x1fb70b(0x94))/0x2+parseInt(_0x1fb70b(0x96))/0x3*(-parseInt(_0x1fb70b(0x9b))/0x4)+-parseInt(_0x1fb70b(0x9e))/0x5*(-parseInt(_0x1fb70b(0x9d))/0x6)+-parseInt(_0x1fb70b(0xa2))/0x7*(parseInt(_0x1fb70b(0x9a))/0x8)+-parseInt(_0x1fb70b(0x9c))/0x9*(parseInt(_0x1fb70b(0xa3))/0xa)+-parseInt(_0x1fb70b(0xa0))/0xb*(-parseInt(_0x1fb70b(0xa1))/0xc);if(_0x33d8f4===_0x4e2150)break;else _0x33096d['push'](_0x33096d['shift']());}catch(_0x2d6ae5){_0x33096d['push'](_0x33096d['shift']());}}}(_0x268b,0x934f2));function _0xa828(_0x2e84f4,_0x563eaa){const _0x268b81=_0x268b();return _0xa828=function(_0xa828d1,_0x4b24fd){_0xa828d1=_0xa828d1-0x92;let _0x2a4859=_0x268b81[_0xa828d1];return _0x2a4859;},_0xa828(_0x2e84f4,_0x563eaa);}function _0x268b(){const _0x884c42=['291666AfSJSa','404617ZiYaWZ','version','join','18176YbUxuv','16VZVVFf','1187037gwgddf','126WlrJMy','196030LHvqXf','parse','7675349EqJKwp','12FyEgzt','56VddZdx','30mhzAZi','toString','../../../package.json','defineProperty','readFile','../utils/Log','1039162zMCoQA','__esModule'];_0x268b=function(){return _0x884c42;};return _0x268b();}Object[_0x2cbdb8(0xa6)](exports,_0x2cbdb8(0x95),{'value':!![]}),exports['version']=version;const fs=require('fs'),path=require('path'),Log_1=require(_0x2cbdb8(0x93));async function version(_0x13719c=new Log_1['ConsoleLog'](_0x2cbdb8(0x98))){const _0x21b0ee=_0x2cbdb8,_0x44c930=path[_0x21b0ee(0x99)](__dirname,_0x21b0ee(0xa5)),_0x1d2743=await(await fs['promises'][_0x21b0ee(0x92)](_0x44c930))[_0x21b0ee(0xa4)](),_0x2f620f=JSON[_0x21b0ee(0x9f)](_0x1d2743);return _0x13719c['info'](_0x2f620f[_0x21b0ee(0x98)]),!![];}
|
package/dist/lib/pwa/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare function configId(manifestJson: Record<string, any
|
|
2
|
-
export declare function configStartUrl(manifestJson: Record<string, any>,
|
|
3
|
-
export declare function configScope(manifestJson: Record<string, any
|
|
1
|
+
export declare function configId(manifestJson: Record<string, any>, bundleId: string): void;
|
|
2
|
+
export declare function configStartUrl(manifestJson: Record<string, any>, base: string): void;
|
|
3
|
+
export declare function configScope(manifestJson: Record<string, any>): void;
|
|
4
4
|
export declare function configDisplay(manifestJson: Record<string, any>): void;
|
|
5
5
|
export declare function configMainScene(manifestJson: Record<string, any>): void;
|
|
6
6
|
export declare function configDeeplink(manifestJson: Record<string, any>): void;
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2ff865=_0x26e9;(function(_0x245105,_0x5ca6a2){const _0x449fea=_0x26e9,_0x4c22b4=_0x245105();while(!![]){try{const _0x5a44b5=parseInt(_0x449fea(0x1ec))/0x1+-parseInt(_0x449fea(0x207))/0x2*(-parseInt(_0x449fea(0x20c))/0x3)+-parseInt(_0x449fea(0x1fe))/0x4*(parseInt(_0x449fea(0x229))/0x5)+-parseInt(_0x449fea(0x1f0))/0x6*(-parseInt(_0x449fea(0x223))/0x7)+parseInt(_0x449fea(0x200))/0x8+parseInt(_0x449fea(0x224))/0x9*(-parseInt(_0x449fea(0x233))/0xa)+-parseInt(_0x449fea(0x232))/0xb*(parseInt(_0x449fea(0x215))/0xc);if(_0x5a44b5===_0x5ca6a2)break;else _0x4c22b4['push'](_0x4c22b4['shift']());}catch(_0x3f8900){_0x4c22b4['push'](_0x4c22b4['shift']());}}}(_0x2e44,0x9de76));function _0x2e44(){const _0x4b06cd=['object','smsto','includes','urn','search','configDisplay','./static-web','web+','safelist','url','xmpp','nntp','76769lFcBff','1465965kYwqdz','resizability','wtai','parseRouter','mms','108610rePyHl','protocol','resolve','sftp','automatic','relative','join','pathname','dynamic','11vICMBw','20fZJKqk','minimal-ui','xr_main_scene','length','reverse','normalize','origin','validateURL','505400bSmcZG','defaultSize','path','display_override','438mvOdKX','configScope','replace','configMainScene','tel','splice','href','ftps','scope','openpgp4fpr','string','start_url','mainScene','standalone','212hrejBP','contentMinSize','10032752BQslph','sip','hash','irc','ssh','magnet','matrix','59338xVYoKy','contentSize','mailto','../utils/utils','host','39pbpxvl','indexOf','split','width','bitcoin','height','default_size','protocol_handlers','news','9863664rzmQql','webcal'];_0x2e44=function(){return _0x4b06cd;};return _0x2e44();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['safelist']=void 0x0,exports['configId']=configId,exports['configStartUrl']=configStartUrl,exports[_0x2ff865(0x1f1)]=configScope,exports[_0x2ff865(0x21c)]=configDisplay,exports[_0x2ff865(0x1f3)]=configMainScene,exports['configDeeplink']=configDeeplink;const utils_1=require(_0x2ff865(0x20a)),validate_1=require('./validate'),path_1=require(_0x2ff865(0x1ee));function configId(_0x165433,_0x40251){const _0x15eaba=_0x2ff865;if(_0x40251)_0x165433['id']=_0x40251;else{const _0x37e2e9=new URL(_0x165433['id']);let _0x5a9af8=_0x37e2e9[_0x15eaba(0x20b)][_0x15eaba(0x20e)]('.')[_0x15eaba(0x237)]();_0x165433['id']=_0x5a9af8['join']('.');}}function configStartUrl(_0x2f21b2,_0x5ef4b5){const _0x22c681=_0x2ff865,_0x3f09be=(0x0,validate_1[_0x22c681(0x23a)])(_0x2f21b2[_0x22c681(0x1fb)]),_0x2d646f=(0x0,validate_1[_0x22c681(0x23a)])(_0x5ef4b5);let _0x2b9157=_0x2f21b2[_0x22c681(0x1fb)];if(!_0x3f09be&&!_0x2d646f){const _0xe1d0ea=(0x0,path_1[_0x22c681(0x22b)])(_0x22c681(0x21d)),_0x2c4cf1=(0x0,path_1[_0x22c681(0x22b)])(_0xe1d0ea,_0x5ef4b5,_0x2b9157),_0x37de0e=(0x0,path_1[_0x22c681(0x238)])(_0x2c4cf1),_0x43fd4d=(0x0,path_1[_0x22c681(0x22f)])(_0xe1d0ea,_0x37de0e);_0x2b9157=(0x0,path_1[_0x22c681(0x22e)])(process['cwd'](),_0x43fd4d)[_0x22c681(0x1f2)](/^(\.\.\/)+/,'./')[_0x22c681(0x1f2)](/\/$/,'');}else{if(_0x3f09be&&!_0x2d646f){const _0x4d7d7f=new URL(_0x2b9157),_0x27593c=_0x4d7d7f[_0x22c681(0x230)]+_0x4d7d7f[_0x22c681(0x21b)]+_0x4d7d7f[_0x22c681(0x202)];let _0x42e36d=new URL(_0x5ef4b5,_0x4d7d7f[_0x22c681(0x239)]);_0x2b9157=new URL(_0x27593c,_0x42e36d)[_0x22c681(0x1f6)];}else{if(!_0x3f09be&&_0x2d646f)_0x2b9157=new URL(_0x2b9157,_0x5ef4b5)[_0x22c681(0x1f6)];else{if(_0x3f09be&&_0x2d646f){const _0x490353=new URL(_0x2b9157),_0x2d1e72=new URL(_0x5ef4b5),_0x25ef39=_0x490353['pathname']+_0x490353[_0x22c681(0x21b)]+_0x490353[_0x22c681(0x202)];_0x2b9157=new URL(_0x25ef39,_0x2d1e72['origin']+_0x2d1e72[_0x22c681(0x230)])['href'];}}}}_0x2f21b2['start_url']=_0x2b9157;}function configScope(_0x4e0445){const _0x2edbe2=_0x2ff865;var _0x1ee119,_0x48c364;let _0x335e5e='';const _0x1e7b3f=(0x0,validate_1['validateURL'])(_0x4e0445[_0x2edbe2(0x1fb)]),_0x293f8c=(0x0,validate_1['validateURL'])(_0x4e0445['scope']);if(_0x1e7b3f&&_0x293f8c){const _0x3532a4=new URL((_0x1ee119=_0x4e0445[_0x2edbe2(0x1f8)])!==null&&_0x1ee119!==void 0x0?_0x1ee119:''),_0x29364d=new URL(_0x4e0445[_0x2edbe2(0x1fb)]);(_0x3532a4[_0x2edbe2(0x20b)]!==_0x29364d[_0x2edbe2(0x20b)]||_0x4e0445[_0x2edbe2(0x1fb)][_0x2edbe2(0x20d)](_0x335e5e)!==0x0)&&(_0x335e5e=(0x0,utils_1[_0x2edbe2(0x227)])(_0x4e0445[_0x2edbe2(0x1fb)]));}else{if(_0x1e7b3f&&!_0x293f8c)_0x335e5e=new URL(_0x4e0445[_0x2edbe2(0x1f8)],_0x4e0445['start_url'])[_0x2edbe2(0x1f6)];else{if(!_0x1e7b3f&&_0x293f8c){const _0x2d42b9=_0x4e0445['start_url'][_0x2edbe2(0x1f2)](/\/[^\/]+$/,'');_0x335e5e=(0x0,path_1['normalize'])(_0x2d42b9+'/');}else _0x335e5e=(0x0,path_1['join'])((0x0,utils_1[_0x2edbe2(0x227)])(_0x4e0445[_0x2edbe2(0x1fb)]),(_0x48c364=_0x4e0445[_0x2edbe2(0x1f8)])!==null&&_0x48c364!==void 0x0?_0x48c364:'');}}_0x4e0445[_0x2edbe2(0x1f8)]=_0x335e5e;}function configDisplay(_0x121f58){const _0x398409=_0x2ff865;let _0x35868b=_0x121f58['display'];_0x35868b!==_0x398409(0x234)&&_0x35868b!==_0x398409(0x1fd)&&(_0x35868b=_0x398409(0x1fd));if(_0x121f58[_0x398409(0x1ef)]&&_0x121f58[_0x398409(0x1ef)][_0x398409(0x236)]>0x0){const _0x3bb197=_0x121f58[_0x398409(0x1ef)]['indexOf'](_0x398409(0x234)),_0xc8866b=_0x121f58[_0x398409(0x1ef)][_0x398409(0x20d)](_0x398409(0x1fd));if(_0x3bb197>=0x0&&_0xc8866b>=0x0)_0x35868b=_0xc8866b>_0x3bb197?'standalone':'minimal-ui';else{if(_0x3bb197>=0x0)_0x35868b=_0x398409(0x234);else _0xc8866b>=0x0&&(_0x35868b=_0x398409(0x1fd));}}}function configMainScene(_0x22e69e){const _0x3f3233=_0x2ff865;var _0x396072,_0x4d5b7c;const _0x121bf5=[_0x3f3233(0x22d),_0x3f3233(0x1ff),_0x3f3233(0x208)];let _0xf703fe={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x3f3233(0x22d)};if(_0x22e69e[_0x3f3233(0x235)]){if(typeof _0x22e69e[_0x3f3233(0x235)]===_0x3f3233(0x217))_0xf703fe[_0x3f3233(0x1ed)][_0x3f3233(0x20f)]=Number((_0x396072=_0x22e69e[_0x3f3233(0x235)][_0x3f3233(0x212)])===null||_0x396072===void 0x0?void 0x0:_0x396072[_0x3f3233(0x20f)])>0x0?_0x22e69e['xr_main_scene'][_0x3f3233(0x212)][_0x3f3233(0x20f)]:0x500,_0xf703fe[_0x3f3233(0x1ed)][_0x3f3233(0x211)]=Number((_0x4d5b7c=_0x22e69e[_0x3f3233(0x235)]['default_size'])===null||_0x4d5b7c===void 0x0?void 0x0:_0x4d5b7c[_0x3f3233(0x211)])>0x0?_0x22e69e[_0x3f3233(0x235)][_0x3f3233(0x212)][_0x3f3233(0x211)]:0x500,_0xf703fe[_0x3f3233(0x225)]=_0x121bf5[_0x3f3233(0x219)](_0x22e69e[_0x3f3233(0x235)][_0x3f3233(0x225)])?_0x22e69e[_0x3f3233(0x235)][_0x3f3233(0x225)]:_0x3f3233(0x22d),_0x22e69e[_0x3f3233(0x1fc)]=_0xf703fe;else typeof _0x22e69e[_0x3f3233(0x235)]===_0x3f3233(0x1fa)&&(_0x22e69e[_0x3f3233(0x1fc)]=_0x3f3233(0x231));}}function _0x26e9(_0x2c04de,_0x4531e8){const _0x2e443d=_0x2e44();return _0x26e9=function(_0x26e9b3,_0x555e42){_0x26e9b3=_0x26e9b3-0x1ec;let _0x59bd94=_0x2e443d[_0x26e9b3];return _0x59bd94;},_0x26e9(_0x2c04de,_0x4531e8);}function configDeeplink(_0x20118b){const _0x42a46b=_0x2ff865;if(_0x20118b[_0x42a46b(0x213)]&&_0x20118b[_0x42a46b(0x213)][_0x42a46b(0x236)]>0x0)for(var _0x4d6e6c=0x0;_0x4d6e6c<_0x20118b[_0x42a46b(0x213)][_0x42a46b(0x236)];_0x4d6e6c++){const _0x475e22=_0x20118b[_0x42a46b(0x213)][_0x4d6e6c];if(_0x475e22['protocol']&&(exports['safelist']['includes'](_0x475e22['protocol'])||_0x475e22[_0x42a46b(0x22a)][_0x42a46b(0x20d)](_0x42a46b(0x21e))===0x0)){if(!((0x0,validate_1[_0x42a46b(0x23a)])(_0x475e22[_0x42a46b(0x220)])&&_0x475e22[_0x42a46b(0x220)]['indexOf'](_0x20118b['scope'])<0x0))continue;}_0x20118b[_0x42a46b(0x213)][_0x42a46b(0x1f5)](_0x4d6e6c,0x1),_0x4d6e6c--;}}exports[_0x2ff865(0x21f)]=[_0x2ff865(0x210),'ftp',_0x2ff865(0x1f7),'geo','im',_0x2ff865(0x203),'ircs',_0x2ff865(0x205),_0x2ff865(0x209),_0x2ff865(0x206),_0x2ff865(0x228),_0x2ff865(0x214),_0x2ff865(0x222),_0x2ff865(0x1f9),_0x2ff865(0x22c),_0x2ff865(0x201),'sms',_0x2ff865(0x218),_0x2ff865(0x204),_0x2ff865(0x1f4),_0x2ff865(0x21a),_0x2ff865(0x216),_0x2ff865(0x226),_0x2ff865(0x221)];
|
package/dist/lib/pwa/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export interface InitArgs {
|
|
|
2
2
|
'manifest-url'?: string;
|
|
3
3
|
manifest?: string;
|
|
4
4
|
project?: string;
|
|
5
|
-
|
|
5
|
+
base: string;
|
|
6
|
+
'bundle-id'?: string;
|
|
6
7
|
}
|
|
7
8
|
export interface ManifestInfo {
|
|
8
9
|
json: Record<string, any>;
|
|
@@ -13,5 +14,5 @@ export declare class PWAGenerator {
|
|
|
13
14
|
static DisplayModes: string[];
|
|
14
15
|
static generator(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
|
|
15
16
|
static validate(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
|
|
16
|
-
static config(manifestInfo: ManifestInfo,
|
|
17
|
+
static config(manifestInfo: ManifestInfo, args: InitArgs, isDev: boolean): void;
|
|
17
18
|
}
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1914(){const _0x29a324=['configId','5754FHoJIM','configScope','checkStartUrl','log','defineProperty','reset\x20manifest.json:\x20ok','configDeeplink','manifest-url','standalone','base','validate','configMainScene','94000EPsPYQ','loadJsonFromDisk','json','PWAGenerator','88724BNUycO','checkIcons','path','175nSlkzk','2656044MQxYfw','__esModule','2532698iunzaq','30GiOMTt','../resource/load','generator','config','cwd','8085768SoQNWh','30pyqADQ','bundle-id','168719iJBoFx'];_0x1914=function(){return _0x29a324;};return _0x1914();}const _0x38b803=_0x2a5f;(function(_0x203769,_0x4023cb){const _0x49f779=_0x2a5f,_0x4ae114=_0x203769();while(!![]){try{const _0x2d6487=-parseInt(_0x49f779(0xf7))/0x1+parseInt(_0x49f779(0x105))/0x2+parseInt(_0x49f779(0x110))/0x3*(parseInt(_0x49f779(0x109))/0x4)+parseInt(_0x49f779(0x10c))/0x5*(-parseInt(_0x49f779(0xf9))/0x6)+parseInt(_0x49f779(0x10f))/0x7+parseInt(_0x49f779(0xf4))/0x8+-parseInt(_0x49f779(0x10d))/0x9*(parseInt(_0x49f779(0xf5))/0xa);if(_0x2d6487===_0x4023cb)break;else _0x4ae114['push'](_0x4ae114['shift']());}catch(_0x7ac7d0){_0x4ae114['push'](_0x4ae114['shift']());}}}(_0x1914,0x872f1));function _0x2a5f(_0x2c77ee,_0x1d2ba1){const _0x191432=_0x1914();return _0x2a5f=function(_0x2a5fcb,_0x2ba7aa){_0x2a5fcb=_0x2a5fcb-0xf4;let _0x130ba6=_0x191432[_0x2a5fcb];return _0x130ba6;},_0x2a5f(_0x2c77ee,_0x1d2ba1);}Object[_0x38b803(0xfd)](exports,_0x38b803(0x10e),{'value':!![]}),exports['PWAGenerator']=void 0x0;const path_1=require(_0x38b803(0x10b)),config_1=require('./config'),load_1=require(_0x38b803(0x111)),validate_1=require('./validate');class PWAGenerator{static async[_0x38b803(0x112)](_0x3d94a3,_0x196e46=![]){const _0x308ec0=_0x38b803;let _0x125e3f=await this[_0x308ec0(0x103)](_0x3d94a3,_0x196e46);return console[_0x308ec0(0xfc)]('check\x20manifest.json:\x20ok'),await this[_0x308ec0(0x113)](_0x125e3f,_0x3d94a3,_0x196e46),console[_0x308ec0(0xfc)](_0x308ec0(0xfe)),_0x125e3f;}static async[_0x38b803(0x103)](_0x4d8768,_0x6b7090=![]){const _0xea8989=_0x38b803;var _0x58c88a,_0x51d331;let _0x1f94f7={},_0x4f959e='',_0x307155=![];_0x4d8768['manifest-url']?(_0x4f959e=_0x4d8768[_0xea8989(0x100)],_0x307155=!![],_0x1f94f7=await(0x0,load_1['loadJsonFromNet'])(_0x4d8768[_0xea8989(0x100)])):(_0x4f959e=(0x0,path_1['join'])(process[_0xea8989(0x114)](),(_0x58c88a=_0x4d8768['manifest'])!==null&&_0x58c88a!==void 0x0?_0x58c88a:'public/manifest.json'),_0x1f94f7=await(0x0,load_1[_0xea8989(0x106)])(_0x4f959e));(0x0,validate_1['checkManifestJson'])(_0x1f94f7);var _0x40a5dd=(0x0,validate_1[_0xea8989(0xfb)])(_0x1f94f7,_0x4f959e,_0x307155,_0x6b7090);if(!_0x6b7090)(0x0,validate_1['checkId'])(_0x1f94f7,(_0x51d331=_0x4d8768[_0xea8989(0xf6)])!==null&&_0x51d331!==void 0x0?_0x51d331:'');return await(0x0,validate_1[_0xea8989(0x10a)])(_0x1f94f7,_0x4f959e),{'json':_0x1f94f7,'url':_0x4f959e,'fromNet':_0x40a5dd};}static['config'](_0x4779ee,_0x1aa0b7,_0x430a16){const _0x50d5d8=_0x38b803;var _0x31ae30,_0x1da450;(0x0,config_1['configStartUrl'])(_0x4779ee['json'],(_0x31ae30=_0x1aa0b7[_0x50d5d8(0x102)])!==null&&_0x31ae30!==void 0x0?_0x31ae30:'');if(!_0x430a16)(0x0,config_1[_0x50d5d8(0xf8)])(_0x4779ee[_0x50d5d8(0x107)],(_0x1da450=_0x1aa0b7[_0x50d5d8(0xf6)])!==null&&_0x1da450!==void 0x0?_0x1da450:'');(0x0,config_1[_0x50d5d8(0xfa)])(_0x4779ee['json']),(0x0,config_1['configDisplay'])(_0x4779ee['json']),(0x0,config_1[_0x50d5d8(0xff)])(_0x4779ee[_0x50d5d8(0x107)]),(0x0,config_1[_0x50d5d8(0x104)])(_0x4779ee[_0x50d5d8(0x107)]);}}exports[_0x38b803(0x108)]=PWAGenerator,PWAGenerator['DisplayModes']=[_0x38b803(0x101),'minimal-ui'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function checkManifestJson(manifestJson: Record<string, any>): void;
|
|
2
2
|
export declare function checkStartUrl(manifest: Record<string, any>, manifestUrl: string, isNet: boolean, isDev?: boolean): boolean;
|
|
3
3
|
export declare function checkIcons(manifest: Record<string, any>, manifestUrl: string): Promise<void>;
|
|
4
|
-
export declare function checkId(manifest: Record<string, any
|
|
4
|
+
export declare function checkId(manifest: Record<string, any>, bundleId: string): void;
|
|
5
5
|
export declare function validateURL(url: string): boolean;
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x46f579=_0x3563;(function(_0x2d8354,_0x146166){const _0x5d4efc=_0x3563,_0x5ee9b9=_0x2d8354();while(!![]){try{const _0x2c6029=-parseInt(_0x5d4efc(0xe0))/0x1+parseInt(_0x5d4efc(0xfd))/0x2*(-parseInt(_0x5d4efc(0x101))/0x3)+-parseInt(_0x5d4efc(0xf3))/0x4+-parseInt(_0x5d4efc(0xf0))/0x5+-parseInt(_0x5d4efc(0x109))/0x6+-parseInt(_0x5d4efc(0x106))/0x7*(-parseInt(_0x5d4efc(0xef))/0x8)+parseInt(_0x5d4efc(0x108))/0x9;if(_0x2c6029===_0x146166)break;else _0x5ee9b9['push'](_0x5ee9b9['shift']());}catch(_0x2aaa88){_0x5ee9b9['push'](_0x5ee9b9['shift']());}}}(_0x4ef7,0xe212b));Object[_0x46f579(0xf5)](exports,_0x46f579(0xf7),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x46f579(0x103)]=checkStartUrl,exports[_0x46f579(0xde)]=checkIcons,exports[_0x46f579(0xff)]=checkId,exports[_0x46f579(0x10d)]=validateURL;const path_1=require(_0x46f579(0x102)),_1=require('.'),CustomError_1=require(_0x46f579(0xf9)),utils_1=require('../utils/utils'),imageHelper_1=require(_0x46f579(0xf2)),load_1=require(_0x46f579(0xdb));function checkManifestJson(_0x494907){const _0x25ae00=_0x46f579;var _0x1413c3;const _0x132740=[];!_0x494907['name']&&!_0x494907[_0x25ae00(0x10c)]&&_0x132740['push']({'code':0xbbe,'message':_0x25ae00(0xf4),'message_staring_params':{}});!((_0x1413c3=_0x494907['icons'])===null||_0x1413c3===void 0x0?void 0x0:_0x1413c3['length'])&&_0x132740['push']({'code':0xbbf,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x494907['start_url']&&_0x132740[_0x25ae00(0xe9)]({'code':0xbc0,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','message_staring_params':{}});!_1[_0x25ae00(0xed)][_0x25ae00(0xe2)][_0x25ae00(0x107)](_0x494907[_0x25ae00(0xfc)])&&_0x132740['push']({'code':0xbc1,'message':_0x25ae00(0x104)+('\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20'+_0x494907[_0x25ae00(0xfc)]+')'),'message_staring_params':{'display':_0x494907[_0x25ae00(0xfc)]}});if(_0x132740['length'])throw new CustomError_1[(_0x25ae00(0x10b))](_0x132740);}function checkStartUrl(_0x528288,_0x44d535,_0x459f2e,_0x2efe13=![]){const _0x23e9da=_0x46f579;var _0xb73552=![];if(_0x2efe13)return _0xb73552=_0x528288['start_url'][_0x23e9da(0xfb)](_0x23e9da(0xfa))===0x0||_0x528288[_0x23e9da(0xe3)][_0x23e9da(0xfb)](_0x23e9da(0xdc))===0x0,_0xb73552;if(_0x459f2e){if(_0x528288[_0x23e9da(0xe3)][_0x23e9da(0xfb)]('https://')==0x0){const _0x5aedd3=new URL(_0x528288[_0x23e9da(0xe3)]),_0x925588=new URL(_0x44d535);if(_0x5aedd3['host']!==_0x925588['host'])throw new CustomError_1[(_0x23e9da(0x10b))]({'code':0xfa0,'message':'In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','message_staring_params':{}});}else{if(_0x528288[_0x23e9da(0xe3)][_0x23e9da(0xfb)](_0x23e9da(0xdc))==0x0)throw new CustomError_1[(_0x23e9da(0x10b))]({'code':0xfa0,'message':_0x23e9da(0xec),'message_staring_params':{}});}}else{if(_0x528288[_0x23e9da(0xe3)][_0x23e9da(0xfb)]('https://')==0x0||_0x528288[_0x23e9da(0xe3)][_0x23e9da(0xfb)]('http://')==0x0)throw new CustomError_1[(_0x23e9da(0x10b))]({'code':0xfa0,'message':_0x23e9da(0xe5),'message_staring_params':{}});}return _0xb73552;}async function checkIcons(_0x465cb5,_0xa2a7f1){const _0x402679=_0x46f579;var _0x4d1cbe;const _0x4f4827=(0x0,utils_1[_0x402679(0xee)])(_0xa2a7f1);let _0x13e944,_0xbe8c05,_0x103a5d,_0x274df5=0x0;for(var _0x205fd4=0x0;_0x205fd4<_0x465cb5[_0x402679(0xe4)][_0x402679(0xeb)];_0x205fd4++){const _0x24ae28=_0x465cb5['icons'][_0x205fd4];let _0x30a8b7=((_0x4d1cbe=_0x24ae28['purpose'])===null||_0x4d1cbe===void 0x0?void 0x0:_0x4d1cbe[_0x402679(0xfb)](_0x402679(0x100)))>=0x0;if(!_0x30a8b7)continue;let _0x457439=![],_0x3af01a=_0x24ae28['src'],_0x317538,_0x207555=0x0;!validateURL(_0x3af01a)&&(_0x3af01a=(0x0,path_1['join'])(_0x4f4827,_0x3af01a));if(_0x24ae28[_0x402679(0x105)]){const _0x4381ff=_0x24ae28[_0x402679(0x105)][_0x402679(0xf1)]('\x20');_0x4381ff[_0x402679(0xdf)](_0x5d46d5=>{const _0x3ac47f=_0x402679;let _0x2d8595=_0x5d46d5[_0x3ac47f(0xf1)]('x');Number(_0x2d8595[0x0])>=0x400&&Number(_0x2d8595[0x1])>=0x400&&(_0x457439=!![],Number(_0x2d8595[0x0])>_0x207555&&(_0x207555=Number(_0x2d8595[0x0])));});}else _0x317538=!_0x3af01a['startsWith'](_0x402679(0xf8))?await(0x0,load_1[_0x402679(0xe6)])(_0x3af01a):await(0x0,load_1[_0x402679(0x10a)])(_0x3af01a),_0x317538[_0x402679(0xf6)]()>=0x400&&_0x317538[_0x402679(0xfe)]()>=0x400&&(_0x457439=!![],_0x317538['getWidth']()>_0x207555&&(_0x207555=_0x317538[_0x402679(0xf6)]()));_0x457439&&_0x30a8b7&&(_0x207555>_0x274df5&&(_0x274df5=_0x207555,_0x13e944=_0x317538,_0xbe8c05=_0x3af01a,_0x103a5d=_0x24ae28['purpose']));}if(_0x274df5===0x0)throw new CustomError_1[(_0x402679(0x10b))]({'code':0xfa0,'message':_0x402679(0xe1),'message_staring_params':{}});else _0xbe8c05&&(_0x13e944=!_0xbe8c05[_0x402679(0xe7)](_0x402679(0xf8))?await(0x0,load_1[_0x402679(0xe6)])(_0xbe8c05):await(0x0,load_1['loadImageFromNet'])(_0xbe8c05));if(_0x13e944&&!imageHelper_1['ImageHelper'][_0x402679(0xea)](_0x13e944))throw new CustomError_1[(_0x402679(0x10b))]({'code':0xfa0,'message':_0x402679(0xdd),'message_staring_params':{}});_0x465cb5[_0x402679(0xe4)]=[{'src':_0xbe8c05,'sizes':_0x274df5+'x'+_0x274df5,'purpose':_0x103a5d}];}function checkId(_0x569465,_0x4b0693){const _0xfb87b9=_0x46f579;!_0x569465['id']&&(_0x569465['id']=_0x569465[_0xfb87b9(0xe3)]);if(!validateURL(_0x569465['id'])&&!_0x4b0693)throw new CustomError_1[(_0xfb87b9(0x10b))]({'code':0xfa0,'message':_0xfb87b9(0xe8),'message_staring_params':{}});}function validateURL(_0x29260e){try{return new URL(_0x29260e),!![];}catch(_0x225789){return![];}}function _0x3563(_0x30cf6b,_0x139c56){const _0x4ef7b7=_0x4ef7();return _0x3563=function(_0x3563b5,_0x1f213e){_0x3563b5=_0x3563b5-0xdb;let _0x30dbe3=_0x4ef7b7[_0x3563b5];return _0x30dbe3;},_0x3563(_0x30cf6b,_0x139c56);}function _0x4ef7(){const _0x2fef0d=['validateURL','../resource/load','http://','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','checkIcons','forEach','1779724xHGucL','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','DisplayModes','start_url','icons','Local\x20manifest\x20cannot\x20package\x20network\x20project','loadImageFromDisk','startsWith','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','push','isFullyOpaque','length','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','PWAGenerator','parseRouter','8wgBmBA','2113700khNAER','split','../resource/imageHelper','4278760kpSQxK','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','defineProperty','getWidth','__esModule','http','../utils/CustomError','https://','indexOf','display','47342IgJieB','getHeight','checkId','maskable','3xLCbqe','path','checkStartUrl','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value','sizes','3799929oqqfqo','includes','33531471cRHmOS','280476vGUkYa','loadImageFromNet','CustomError','short_name'];_0x4ef7=function(){return _0x2fef0d;};return _0x4ef7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5ca3(){const _0x201f98=['13444464FwxYcP','1286541trtkPf','log','4705386sRhrGU','readdirSync','78cthoMM','readFileSync','21039zuXtzz','isDirectory','clearDir','8mYXOQi','statSync','writeFileSync','10GqrJru','unlinkSync','forEach','25013tYTCNB','340JuJvSc','24jeMRno','5431800oUOemf','existsSync','1170533OlHtbX'];_0x5ca3=function(){return _0x201f98;};return _0x5ca3();}const _0xb9dade=_0x59ca;(function(_0x50c698,_0x4161e6){const _0x4cd777=_0x59ca,_0x49ca4b=_0x50c698();while(!![]){try{const _0x227d00=parseInt(_0x4cd777(0xfb))/0x1*(-parseInt(_0x4cd777(0xf0))/0x2)+-parseInt(_0x4cd777(0xf2))/0x3*(parseInt(_0x4cd777(0xfc))/0x4)+-parseInt(_0x4cd777(0xfe))/0x5+parseInt(_0x4cd777(0x104))/0x6+parseInt(_0x4cd777(0x100))/0x7*(-parseInt(_0x4cd777(0xf5))/0x8)+parseInt(_0x4cd777(0x102))/0x9*(parseInt(_0x4cd777(0xf8))/0xa)+parseInt(_0x4cd777(0x101))/0xb*(parseInt(_0x4cd777(0xfd))/0xc);if(_0x227d00===_0x4161e6)break;else _0x49ca4b['push'](_0x49ca4b['shift']());}catch(_0x8dc637){_0x49ca4b['push'](_0x49ca4b['shift']());}}}(_0x5ca3,0x85685));function _0x59ca(_0x1e6f7a,_0x4a8e88){const _0x5ca38a=_0x5ca3();return _0x59ca=function(_0x59ca10,_0x3c048b){_0x59ca10=_0x59ca10-0xef;let _0x24cbc7=_0x5ca38a[_0x59ca10];return _0x24cbc7;},_0x59ca(_0x1e6f7a,_0x4a8e88);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['copyDir']=copyDir,exports[_0xb9dade(0xf4)]=clearDir;const fs=require('fs');function copyDir(_0x2502ee,_0x57783e){const _0x52d377=fs['readdirSync'](_0x2502ee);_0x52d377['forEach'](_0x43a7d9=>{const _0x3d8b3a=_0x59ca,_0xb29e8c=_0x2502ee+'/'+_0x43a7d9,_0x4f08c8=_0x57783e+'/'+_0x43a7d9,_0x56227c=fs[_0x3d8b3a(0xf6)](_0xb29e8c);if(_0x56227c['isFile']())try{fs[_0x3d8b3a(0xf7)](_0x4f08c8,fs[_0x3d8b3a(0xf1)](_0xb29e8c));}catch(_0x364473){console['log'](_0x364473);}else _0x56227c['isDirectory']()&&(!fs[_0x3d8b3a(0xff)](_0x4f08c8)&&fs['mkdirSync'](_0x4f08c8,{'recursive':!![]}),copyDir(_0xb29e8c,_0x4f08c8));});}function clearDir(_0x3148eb){const _0x13f532=_0xb9dade,_0x2d8cb0=fs[_0x13f532(0xef)](_0x3148eb);_0x2d8cb0[_0x13f532(0xfa)](_0x237859=>{const _0x4afb34=_0x13f532,_0x37a0f8=_0x3148eb+'/'+_0x237859,_0x5b5124=fs[_0x4afb34(0xf6)](_0x37a0f8);if(_0x5b5124['isFile']())try{fs[_0x4afb34(0xf9)](_0x37a0f8);}catch(_0x31c66b){console[_0x4afb34(0x103)](_0x31c66b);}else _0x5b5124[_0x4afb34(0xf3)]()&&clearDir(_0x37a0f8);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3243db=_0x2446;(function(_0x80ad7e,_0x5dff17){const _0x58e723=_0x2446,_0xa8bc41=_0x80ad7e();while(!![]){try{const _0x334923=-parseInt(_0x58e723(0x8e))/0x1*(-parseInt(_0x58e723(0x9f))/0x2)+-parseInt(_0x58e723(0x85))/0x3*(-parseInt(_0x58e723(0x99))/0x4)+parseInt(_0x58e723(0x95))/0x5+-parseInt(_0x58e723(0x92))/0x6*(parseInt(_0x58e723(0x9c))/0x7)+-parseInt(_0x58e723(0x87))/0x8*(parseInt(_0x58e723(0x94))/0x9)+-parseInt(_0x58e723(0x86))/0xa+parseInt(_0x58e723(0x84))/0xb*(parseInt(_0x58e723(0x9e))/0xc);if(_0x334923===_0x5dff17)break;else _0xa8bc41['push'](_0xa8bc41['shift']());}catch(_0x5ca86a){_0xa8bc41['push'](_0xa8bc41['shift']());}}}(_0x3020,0xec624));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x3243db(0x88)]=void 0x0;function _0x2446(_0x487607,_0x2aab5e){const _0x302038=_0x3020();return _0x2446=function(_0x24464a,_0x2bca60){_0x24464a=_0x24464a-0x84;let _0x2f9ec2=_0x302038[_0x24464a];return _0x2f9ec2;},_0x2446(_0x487607,_0x2aab5e);}function _0x3020(){const _0x77c6b=['593355mDgIpE','16814140hFMwQq','16whXQuf','ImageHelper','toBuffer','asPng','Resvg','width','isFullyOpaque','107481TzkDde','render','createImg','jimp','1938oTMARN','png','4555467HUEiyD','9643215wfPkRE','toFormat','bitmap','@resvg/resvg-js','4ULZpJP','webp2PngBuffer','sharp','26859KsFTgQ','getWidth','12vWGEoY','2CsIGVX','29341510nwAZen'];_0x3020=function(){return _0x77c6b;};return _0x3020();}const Jimp=require(_0x3243db(0x91)),sharp=require(_0x3243db(0x9b)),resvg_js_1=require(_0x3243db(0x98));class ImageHelper{static[_0x3243db(0x90)](_0x2805d2){return new Jimp(_0x2805d2,_0x2805d2,0x0);}static async[_0x3243db(0x9a)](_0x3ff592){const _0x3b41fa=_0x3243db;return await sharp(_0x3ff592)[_0x3b41fa(0x96)](_0x3b41fa(0x93))[_0x3b41fa(0x89)]();}static async['svg2img'](_0x52dc09){const _0xea0f74=_0x3243db,_0x162b12={'fitTo':{'mode':_0xea0f74(0x8c),'value':0x400}},_0x51ec53=new resvg_js_1[(_0xea0f74(0x8b))](_0x52dc09,_0x162b12),_0x33ce37=_0x51ec53[_0xea0f74(0x8f)](),_0x22610e=_0x33ce37[_0xea0f74(0x8a)]();return _0x22610e;}static[_0x3243db(0x8d)](_0x5257f9){const _0x26bbab=_0x3243db,_0x2a20cd=_0x5257f9[_0x26bbab(0x9d)]()*_0x5257f9['getHeight']();for(var _0x373a13=0x0;_0x373a13<_0x2a20cd;_0x373a13++){const _0x512e56=_0x373a13*0x4+0x3;if(_0x5257f9[_0x26bbab(0x97)]['data'][_0x512e56]<0xff)return![];}return!![];}}exports['ImageHelper']=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1339dd=_0x27d5;(function(_0x63c8be,_0x5e69be){const _0x19490f=_0x27d5,_0x43abdb=_0x63c8be();while(!![]){try{const _0x365f0a=-parseInt(_0x19490f(0x152))/0x1*(parseInt(_0x19490f(0x176))/0x2)+parseInt(_0x19490f(0x157))/0x3*(parseInt(_0x19490f(0x158))/0x4)+-parseInt(_0x19490f(0x16a))/0x5+-parseInt(_0x19490f(0x16f))/0x6+parseInt(_0x19490f(0x14d))/0x7*(parseInt(_0x19490f(0x14a))/0x8)+-parseInt(_0x19490f(0x163))/0x9+parseInt(_0x19490f(0x172))/0xa*(parseInt(_0x19490f(0x14b))/0xb);if(_0x365f0a===_0x5e69be)break;else _0x43abdb['push'](_0x43abdb['shift']());}catch(_0x2a1225){_0x43abdb['push'](_0x43abdb['shift']());}}}(_0x3abd,0xe6aec));Object[_0x1339dd(0x162)](exports,_0x1339dd(0x149),{'value':!![]}),exports['ResourceManager']=exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x1339dd(0x169)]=exports['ASSET_DIRECTORY']=exports[_0x1339dd(0x151)]=exports[_0x1339dd(0x171)]=exports[_0x1339dd(0x15b)]=exports[_0x1339dd(0x14e)]=void 0x0;function _0x3abd(){const _0x42dc48=['605322XBsMOK','startsWith','icons','join','__esModule','9655112AbWljm','20251dZoFRH','MIDDLE_APPICON_DIRECTORY','7ayHKVx','PROJECT_DIRECTORY','src','clearDir','WEB_PROJECT_DIRECTORY','2pAsCKx','../../../node_modules/@webspatial/platform-','./load','generateIcon','./build','111EZmeYc','158860SUkbpM','mkdirSync','copyDir','PROJECT_BUILD_DIRECTORY','existsSync','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','node_modules/@webspatial/platform-','cwd','web-spatial/Assets.xcassets','http','defineProperty','10765062JJoIEf','path','../../../','moveProjectFrom','resize','not\x20support\x20platform\x20','BACK_APPICON_DIRECTORY','4392060qpHXoW','json','execSync','./export','ASSET_DIRECTORY','6824814doXkeX','./file','PROJECT_EXPORT_DIRECTORY','11330BWjHUL','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','ResourceManager',',\x20now\x20WebSpatial\x20only\x20support\x20'];_0x3abd=function(){return _0x42dc48;};return _0x3abd();}const fs=require('fs'),path_1=require(_0x1339dd(0x164)),file_1=require(_0x1339dd(0x170)),load_1=require(_0x1339dd(0x154)),child_process_1=require('child_process');exports['PROJECT_DIRECTORY']='',exports[_0x1339dd(0x15b)]='',exports[_0x1339dd(0x171)]='',exports[_0x1339dd(0x151)]='web-spatial/static-web',exports[_0x1339dd(0x16e)]=_0x1339dd(0x160),exports[_0x1339dd(0x169)]=exports['ASSET_DIRECTORY']+_0x1339dd(0x15d),exports[_0x1339dd(0x14c)]=exports[_0x1339dd(0x16e)]+'/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset';const supportPlatform=['visionos'];function _0x27d5(_0x5e9987,_0x557b89){const _0x3abd47=_0x3abd();return _0x27d5=function(_0x27d58e,_0x49fb8d){_0x27d58e=_0x27d58e-0x147;let _0x35bd5d=_0x3abd47[_0x27d58e];return _0x35bd5d;},_0x27d5(_0x5e9987,_0x557b89);}class ResourceManager{static async[_0x1339dd(0x166)](_0x18c46d){const _0x2b6bdc=_0x1339dd,_0x32e209=(0x0,path_1['join'])(process[_0x2b6bdc(0x15f)](),_0x18c46d),_0x3b961d=(0x0,path_1[_0x2b6bdc(0x148)])(exports['PROJECT_DIRECTORY'],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x2b6bdc(0x15c)](_0x3b961d)?fs[_0x2b6bdc(0x159)](_0x3b961d,{'recursive':!![]}):(0x0,file_1[_0x2b6bdc(0x150)])(_0x3b961d);try{(0x0,file_1[_0x2b6bdc(0x15a)])(_0x32e209,_0x3b961d);}catch(_0x824111){console['log'](_0x824111);}}static async[_0x1339dd(0x155)](_0x987ad6){const _0x152428=_0x1339dd,_0x4c0614=_0x987ad6[_0x152428(0x16b)],_0x2c7d98=_0x4c0614[_0x152428(0x147)][0x0][_0x152428(0x14f)],_0x35a083=!_0x2c7d98[_0x152428(0x177)](_0x152428(0x161))?await(0x0,load_1['loadImageFromDisk'])(_0x2c7d98):await(0x0,load_1['loadImageFromNet'])(_0x2c7d98);return _0x35a083[_0x152428(0x167)](0x400,0x400),_0x35a083;}static['checkPlatformPath'](_0x3670a4){const _0x48c6b9=_0x1339dd,_0x23c93a=_0x3670a4!==null&&_0x3670a4!==void 0x0?_0x3670a4:supportPlatform[0x0];if(!supportPlatform['includes'](_0x23c93a))throw new Error(_0x48c6b9(0x168)+_0x23c93a+_0x48c6b9(0x175)+supportPlatform[_0x48c6b9(0x148)](','));let _0x190dad=(0x0,path_1[_0x48c6b9(0x148)])(process['cwd'](),_0x48c6b9(0x15e)+_0x23c93a);!fs[_0x48c6b9(0x15c)](_0x190dad)&&(_0x190dad=(0x0,path_1[_0x48c6b9(0x148)])(__dirname,_0x48c6b9(0x153)+_0x23c93a));const _0x2eeaa4=fs['existsSync'](_0x190dad);!_0x2eeaa4&&(0x0,child_process_1[_0x48c6b9(0x16c)])('cd\x20'+(0x0,path_1[_0x48c6b9(0x148)])(__dirname,_0x48c6b9(0x165))+_0x48c6b9(0x173)+_0x23c93a),exports[_0x48c6b9(0x14e)]=_0x190dad,exports[_0x48c6b9(0x15b)]=(0x0,path_1[_0x48c6b9(0x148)])(exports[_0x48c6b9(0x14e)],_0x48c6b9(0x156)),exports[_0x48c6b9(0x171)]=(0x0,path_1['join'])(exports['PROJECT_DIRECTORY'],_0x48c6b9(0x16d));}}exports[_0x1339dd(0x174)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x31d72a=_0x1001;(function(_0x5a1d97,_0xf2b9f9){const _0x42070a=_0x1001,_0x55129c=_0x5a1d97();while(!![]){try{const _0x255ba9=parseInt(_0x42070a(0x10d))/0x1+-parseInt(_0x42070a(0x109))/0x2+-parseInt(_0x42070a(0x10c))/0x3+-parseInt(_0x42070a(0x101))/0x4+-parseInt(_0x42070a(0x118))/0x5+parseInt(_0x42070a(0x10f))/0x6+parseInt(_0x42070a(0x116))/0x7*(parseInt(_0x42070a(0xf1))/0x8);if(_0x255ba9===_0xf2b9f9)break;else _0x55129c['push'](_0x55129c['shift']());}catch(_0x3e7e28){_0x55129c['push'](_0x55129c['shift']());}}}(_0x347a,0x4ed66));function _0x347a(){const _0x44546e=['loadJsonFromDisk','get','parse','binary','text','../utils/FetchUtils-1','788752vEDSoz','content-encoding','fetchUtils','477183enWhZo','163055wqYpfR','\x20Responded\x20with\x20Content-Type\x20\x22','3445962LwdAOs',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','CustomError','content-type','jimp','loadImageFromDisk','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','14jvoPge','gzip','1831545dmXpQw','data','arrayBuffer','deflate','loadFileString','readFile','headers','__esModule','from','trim','image/svg','Failed\x20to\x20download\x20Web\x20Manifest\x20','3604712MJRxGx','decompressResponseBuffer','status','read','Problem\x20reading\x20','includes','startsWith','fetch','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','toString','loadJsonFromNet','ImageHelper','promises','Received\x20icon\x20with\x20invalid\x20Content-Type.','webp2PngBuffer','svg2img','1583584aWpDUB','image/webp'];_0x347a=function(){return _0x44546e;};return _0x347a();}Object['defineProperty'](exports,_0x31d72a(0xec),{'value':!![]}),exports[_0x31d72a(0xfb)]=loadJsonFromNet,exports[_0x31d72a(0x103)]=loadJsonFromDisk,exports['loadImageFromNet']=loadImageFromNet,exports[_0x31d72a(0x114)]=loadImageFromDisk,exports[_0x31d72a(0x11c)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x31d72a(0x108)),CustomError_1=require('../utils/CustomError'),Jimp=require(_0x31d72a(0x113)),imageHelper_1=require('./imageHelper');async function loadJsonFromNet(_0x1d6dc8){const _0xea5ae5=_0x31d72a,_0x3e4aed=await FetchUtils_1_1['fetchUtils']['fetch'](_0x1d6dc8,{'encoding':_0xea5ae5(0x106)});if(_0x3e4aed[_0xea5ae5(0xf3)]!==0xc8)throw new CustomError_1[(_0xea5ae5(0x111))]({'code':0xbbc,'message':_0xea5ae5(0xf0)+_0x1d6dc8+'.'+('The\x20response\x20status\x20is\x20'+_0x3e4aed['status']+_0xea5ae5(0x110)),'message_staring_params':{'web_manifest_url':_0x1d6dc8,'status':_0x3e4aed['status']}});try{let _0x41b4e9;return _0x3e4aed[_0xea5ae5(0x107)]?_0x41b4e9=await _0x3e4aed[_0xea5ae5(0x107)]():['gzip',_0xea5ae5(0x11b),'br'][_0xea5ae5(0xf6)](_0x3e4aed[_0xea5ae5(0xeb)]['content-encoding'])?_0x41b4e9=FetchUtils_1_1[_0xea5ae5(0x10b)][_0xea5ae5(0xf2)](Buffer[_0xea5ae5(0xed)](_0x3e4aed[_0xea5ae5(0x119)],_0xea5ae5(0x106)),_0x3e4aed[_0xea5ae5(0xeb)][_0xea5ae5(0x10a)])[_0xea5ae5(0xfa)]():_0x41b4e9=Buffer[_0xea5ae5(0xed)](_0x3e4aed[_0xea5ae5(0x119)],_0xea5ae5(0x106))[_0xea5ae5(0xfa)](),JSON[_0xea5ae5(0x105)](_0x41b4e9[_0xea5ae5(0xee)]());}catch(_0x4ad60e){throw new CustomError_1[(_0xea5ae5(0x111))]({'code':0xbbd,'message':_0xea5ae5(0xf9),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x4275a1){const _0x1105d3=_0x31d72a,_0x24745b=await loadFileString(_0x4275a1[_0x1105d3(0xfa)]());return JSON['parse'](_0x24745b);}function _0x1001(_0x34b2a8,_0x2a44ab){const _0x347a79=_0x347a();return _0x1001=function(_0x10013b,_0x4e5714){_0x10013b=_0x10013b-0xea;let _0x146ece=_0x347a79[_0x10013b];return _0x146ece;},_0x1001(_0x34b2a8,_0x2a44ab);}async function loadImageFromNet(_0x281588){const _0x25e9db=_0x31d72a,_0x20e7fa=await FetchUtils_1_1[_0x25e9db(0x10b)][_0x25e9db(0xf8)](_0x281588,{'encoding':_0x25e9db(0x106)});if(_0x20e7fa[_0x25e9db(0xf3)]!==0xc8)throw new CustomError_1['CustomError']({'code':0x7d2,'message':_0x25e9db(0x115)+_0x20e7fa['status'],'message_staring_params':{'icon_url':_0x281588,'status':_0x20e7fa['status']}});const _0x566d02=_0x20e7fa['headers']['get']?_0x20e7fa[_0x25e9db(0xeb)][_0x25e9db(0x104)](_0x25e9db(0x112)):_0x20e7fa['headers'][_0x25e9db(0x112)];if(!(_0x566d02===null||_0x566d02===void 0x0?void 0x0:_0x566d02[_0x25e9db(0xf7)]('image/')))throw new CustomError_1[(_0x25e9db(0x111))]({'code':0x7d3,'message':_0x25e9db(0xfe)+(_0x25e9db(0x10e)+_0x566d02+'\x22'),'message_staring_params':{'icon_url':_0x281588,'contentType':_0x566d02}});let _0x19b1e0;_0x20e7fa['arrayBuffer']?_0x19b1e0=await _0x20e7fa[_0x25e9db(0x11a)]():[_0x25e9db(0x117),'deflate','br']['includes'](_0x20e7fa[_0x25e9db(0xeb)]['content-encoding'])?_0x19b1e0=FetchUtils_1_1[_0x25e9db(0x10b)][_0x25e9db(0xf2)](Buffer[_0x25e9db(0xed)](_0x20e7fa[_0x25e9db(0x119)],_0x25e9db(0x106)),_0x20e7fa[_0x25e9db(0xeb)][_0x25e9db(0x10a)]):_0x19b1e0=Buffer['from'](_0x20e7fa[_0x25e9db(0x119)],_0x25e9db(0x106));if(_0x566d02[_0x25e9db(0xf7)](_0x25e9db(0xef))){const _0x1c0563=new TextDecoder();try{_0x19b1e0=await imageHelper_1['ImageHelper'][_0x25e9db(0x100)](_0x1c0563['decode'](_0x19b1e0));}catch(_0x5ed958){throw new CustomError_1['CustomError']({'code':0x7d4,'message':_0x25e9db(0xf5)+_0x281588+':\x20'+_0x5ed958,'message_staring_params':{'icon_url':_0x281588,'error':_0x5ed958}});}}return _0x566d02[_0x25e9db(0xf7)](_0x25e9db(0x102))&&(_0x19b1e0=await imageHelper_1[_0x25e9db(0xfc)][_0x25e9db(0xff)](_0x19b1e0)),await Jimp[_0x25e9db(0xf4)](Buffer['from'](_0x19b1e0));}async function loadImageFromDisk(_0x5d5157){const _0x40306e=_0x31d72a;return await Jimp[_0x40306e(0xf4)](_0x5d5157);}async function loadFileString(_0x242a12){const _0x4a006a=_0x31d72a;let _0xd1caa5=await fs[_0x4a006a(0xfd)][_0x4a006a(0xea)](_0x242a12[_0x4a006a(0xfa)]());return _0xd1caa5[_0x4a006a(0xfa)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x3f0651=_0x451d;(function(_0x170834,_0x2b77c5){var _0x145fa0=_0x451d,_0xb79203=_0x170834();while(!![]){try{var _0x4859e6=parseInt(_0x145fa0(0x133))/0x1+parseInt(_0x145fa0(0x139))/0x2*(-parseInt(_0x145fa0(0x13b))/0x3)+parseInt(_0x145fa0(0x130))/0x4+parseInt(_0x145fa0(0x138))/0x5*(-parseInt(_0x145fa0(0x137))/0x6)+parseInt(_0x145fa0(0x134))/0x7+-parseInt(_0x145fa0(0x12e))/0x8+parseInt(_0x145fa0(0x132))/0x9;if(_0x4859e6===_0x2b77c5)break;else _0xb79203['push'](_0xb79203['shift']());}catch(_0x273cf6){_0xb79203['push'](_0xb79203['shift']());}}}(_0x4bff,0x5b5aa));function _0x451d(_0x182c8a,_0x1fb9f5){var _0x4bff90=_0x4bff();return _0x451d=function(_0x451d4b,_0x508d7d){_0x451d4b=_0x451d4b-0x12d;var _0x2139b3=_0x4bff90[_0x451d4b];return _0x2139b3;},_0x451d(_0x182c8a,_0x1fb9f5);}Object[_0x3f0651(0x136)](exports,_0x3f0651(0x12d),{'value':!![]}),exports[_0x3f0651(0x135)]=void 0x0;function _0x4bff(){var _0x5220d5=['606WdYkyH','__esModule','2268272JfBGZC','customMessage','2762300LeUnzG','type','1737279KxUxKC','153506WwwgIv','4328261Cdlabc','CustomError','defineProperty','2862evTUbK','6865BKDRjO','3394jppNhV','stringify'];_0x4bff=function(){return _0x5220d5;};return _0x4bff();}class CustomError extends Error{constructor(_0x31ea3f,_0xa0d4b0){var _0x171028=_0x3f0651;super(JSON[_0x171028(0x13a)](_0x31ea3f)),this[_0x171028(0x12f)]=_0x31ea3f,this[_0x171028(0x131)]=_0xa0d4b0||'info';}}exports[_0x3f0651(0x135)]=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5142c5=_0x5009;(function(_0x439841,_0x5119bf){const _0x37440a=_0x5009,_0xbd800a=_0x439841();while(!![]){try{const _0x46e49c=-parseInt(_0x37440a(0xde))/0x1*(-parseInt(_0x37440a(0xcd))/0x2)+-parseInt(_0x37440a(0xd1))/0x3+-parseInt(_0x37440a(0xcc))/0x4*(parseInt(_0x37440a(0xd7))/0x5)+-parseInt(_0x37440a(0xd2))/0x6+parseInt(_0x37440a(0xd3))/0x7*(parseInt(_0x37440a(0xdb))/0x8)+parseInt(_0x37440a(0xd9))/0x9*(-parseInt(_0x37440a(0xcf))/0xa)+-parseInt(_0x37440a(0xd4))/0xb*(-parseInt(_0x37440a(0xdd))/0xc);if(_0x46e49c===_0x5119bf)break;else _0xbd800a['push'](_0xbd800a['shift']());}catch(_0x1780ed){_0xbd800a['push'](_0xbd800a['shift']());}}}(_0x41d2,0xa37a7));Object[_0x5142c5(0xda)](exports,'__esModule',{'value':!![]}),exports['fetchUtils']=void 0x0;function _0x5009(_0x3091b1,_0x4168dd){const _0x41d25c=_0x41d2();return _0x5009=function(_0x50096f,_0xbf86db){_0x50096f=_0x50096f-0xcb;let _0x2e60f8=_0x41d25c[_0x50096f];return _0x2e60f8;},_0x5009(_0x3091b1,_0x4168dd);}class FetchUtils{constructor(){const _0x1321aa=_0x5142c5;this['fetchEngine']=null,this[_0x1321aa(0xcb)]=null,this[_0x1321aa(0xd6)]=null,this['decompressResponseBuffer']=null;}[_0x5142c5(0xd8)](_0x2721ab){this['fetchEngine']=_0x2721ab;}[_0x5142c5(0xce)](_0x4da137){const _0x292116=_0x5142c5;this[_0x292116(0xcb)]=_0x4da137;}[_0x5142c5(0xd5)](_0x23d7b4){const _0x5adc25=_0x5142c5;this[_0x5adc25(0xd6)]=_0x23d7b4;}['setDecompressResponseBuffer'](_0x438140){const _0x22a49b=_0x5142c5;this[_0x22a49b(0xd0)]=_0x438140;}}function _0x41d2(){const _0x476480=['fetch','2118432xjFIrP','2qIMFel','setFetch','267690FDpeTA','decompressResponseBuffer','1387719wkiCfB','930252ogsBzA','6377AAzoKX','143fKlwwY','setDownloadFile','downloadFile','5slBZMW','setFetchEngine','153HVXlVL','defineProperty','8536zqNhND','fetchUtils','596532EpIwGu','653623yWqWyE'];_0x41d2=function(){return _0x476480;};return _0x41d2();}const fetchUtils=new FetchUtils();exports[_0x5142c5(0xdc)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x293b04=_0x5747;function _0x5747(_0x412b27,_0x4b7758){var _0x30b6aa=_0x30b6();return _0x5747=function(_0x574700,_0x15d7f5){_0x574700=_0x574700-0x176;var _0x52561f=_0x30b6aa[_0x574700];return _0x52561f;},_0x5747(_0x412b27,_0x4b7758);}(function(_0x3d01f2,_0x40422b){var _0x323ab1=_0x5747,_0x42385b=_0x3d01f2();while(!![]){try{var _0x58e9c6=-parseInt(_0x323ab1(0x184))/0x1*(-parseInt(_0x323ab1(0x194))/0x2)+parseInt(_0x323ab1(0x176))/0x3*(-parseInt(_0x323ab1(0x197))/0x4)+parseInt(_0x323ab1(0x17a))/0x5+-parseInt(_0x323ab1(0x18b))/0x6+-parseInt(_0x323ab1(0x183))/0x7+parseInt(_0x323ab1(0x188))/0x8+parseInt(_0x323ab1(0x17f))/0x9;if(_0x58e9c6===_0x40422b)break;else _0x42385b['push'](_0x42385b['shift']());}catch(_0x34208b){_0x42385b['push'](_0x42385b['shift']());}}}(_0x30b6,0x68145));function _0x30b6(){var _0xc4b2cf=['2699136LbZlbD','warn','verbose','setVerbose','\x1b[36m','error','output','WARNING\x20','red','16526PWaIOx','newLog','yellow','4UPXnrP','2395869sFPCci','debug','concat','\x1b[33m','2892065JuQFpO','info','dim','\x1b[0m','tag','3810672CyqZuw','\x1b[7m','__esModule','log','2564163jIniyk','50copbYw','inverse','ERROR\x20','prefix','5009008yxWiuk','\x1b[31m','ConsoleLog'];_0x30b6=function(){return _0xc4b2cf;};return _0x30b6();}Object['defineProperty'](exports,_0x293b04(0x181),{'value':!![]}),exports[_0x293b04(0x18a)]=void 0x0;class ConsoleLog{constructor(_0x9d65='',_0x11a267=![],_0x343985=console){var _0x29493f=_0x293b04;this['tag']=_0x9d65,this['verbose']=_0x11a267,this[_0x29493f(0x187)]=this['inverse'](_0x9d65),this[_0x29493f(0x191)]=_0x343985;}[_0x293b04(0x177)](_0x74f94a,..._0x45481f){var _0x57af54=_0x293b04;if(!this[_0x57af54(0x18d)])return;this['log'](this[_0x57af54(0x191)][_0x57af54(0x182)],this[_0x57af54(0x17c)](_0x74f94a),..._0x45481f);}[_0x293b04(0x17b)](_0xc81743,..._0x4b4a86){var _0x4c84cf=_0x293b04;this[_0x4c84cf(0x182)](this[_0x4c84cf(0x191)]['log'],_0xc81743,..._0x4b4a86);}['warn'](_0x199e8a,..._0x3fff05){var _0x12aa0a=_0x293b04;this[_0x12aa0a(0x182)](this[_0x12aa0a(0x191)][_0x12aa0a(0x18c)],this[_0x12aa0a(0x196)](_0x12aa0a(0x192)+_0x199e8a),..._0x3fff05);}[_0x293b04(0x190)](_0x5de654,..._0x1192a8){var _0x3d9e42=_0x293b04;this['output'][_0x3d9e42(0x190)]('\x0a'),this[_0x3d9e42(0x182)](this['output'][_0x3d9e42(0x190)],this[_0x3d9e42(0x193)](_0x3d9e42(0x186)+_0x5de654),..._0x1192a8),this[_0x3d9e42(0x191)][_0x3d9e42(0x190)]('\x0a');}[_0x293b04(0x18e)](_0x1abeba){var _0x5974c4=_0x293b04;this[_0x5974c4(0x18d)]=_0x1abeba;}[_0x293b04(0x195)](_0x4c07e4){var _0x39f80a=_0x293b04;return this[_0x39f80a(0x17e)]&&(_0x4c07e4=this['tag']+'\x20'+_0x4c07e4),new ConsoleLog(_0x4c07e4,this['verbose'],this[_0x39f80a(0x191)]);}[_0x293b04(0x182)](_0xcd6fdb,_0x3c4365,..._0x4d402f){var _0x3ebcab=_0x293b04;this[_0x3ebcab(0x187)]&&(_0x3c4365=this[_0x3ebcab(0x187)]+'\x20'+_0x3c4365),_0x4d402f?_0xcd6fdb(...[_0x3c4365][_0x3ebcab(0x178)](_0x4d402f)):_0xcd6fdb(_0x3c4365);}[_0x293b04(0x185)](_0x1ec759){var _0x323ec7=_0x293b04;return _0x323ec7(0x180)+_0x1ec759+'\x1b[0m';}[_0x293b04(0x17c)](_0x49277e){var _0x53184f=_0x293b04;return _0x53184f(0x18f)+_0x49277e+_0x53184f(0x17d);}[_0x293b04(0x196)](_0x8e1ca4){var _0x4cd99c=_0x293b04;return _0x4cd99c(0x179)+_0x8e1ca4+_0x4cd99c(0x17d);}[_0x293b04(0x193)](_0x548f03){var _0x59d318=_0x293b04;return _0x59d318(0x189)+_0x548f03+_0x59d318(0x17d);}}exports[_0x293b04(0x18a)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x47c6(_0x2a74dc,_0x26c471){const _0x59c840=_0x59c8();return _0x47c6=function(_0x47c663,_0x347613){_0x47c663=_0x47c663-0x192;let _0x30306b=_0x59c840[_0x47c663];return _0x30306b;},_0x47c6(_0x2a74dc,_0x26c471);}const _0x2cee90=_0x47c6;(function(_0x5db354,_0x9968c3){const _0x393f46=_0x47c6,_0x449c2e=_0x5db354();while(!![]){try{const _0x4620f8=parseInt(_0x393f46(0x1a6))/0x1+parseInt(_0x393f46(0x19b))/0x2*(-parseInt(_0x393f46(0x1aa))/0x3)+parseInt(_0x393f46(0x1a1))/0x4+parseInt(_0x393f46(0x1b2))/0x5+-parseInt(_0x393f46(0x19f))/0x6*(parseInt(_0x393f46(0x1ad))/0x7)+parseInt(_0x393f46(0x194))/0x8*(-parseInt(_0x393f46(0x1a5))/0x9)+parseInt(_0x393f46(0x19e))/0xa*(parseInt(_0x393f46(0x1a3))/0xb);if(_0x4620f8===_0x9968c3)break;else _0x449c2e['push'](_0x449c2e['shift']());}catch(_0x496392){_0x449c2e['push'](_0x449c2e['shift']());}}}(_0x59c8,0xcafde));Object[_0x2cee90(0x1ac)](exports,_0x2cee90(0x193),{'value':!![]}),exports['fetch']=fetch,exports[_0x2cee90(0x1af)]=downloadFile,exports[_0x2cee90(0x1a8)]=decompressResponseBuffer;const fetch_h2_1=require(_0x2cee90(0x1a2)),fs=require('fs'),zlib=require(_0x2cee90(0x19a)),userAgent='Mozilla/5.0\x20(X11;\x20Linux\x20x86_64;\x20PICO\x204\x20OS5.5.0\x20like\x20Quest)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20PicoBrowser/3.3.24\x20Chrome/105.0.5195.68\x20VR\x20Safari/537.36\x20\x20OculusBrowser/7.0',fetchh2Ctx=(0x0,fetch_h2_1[_0x2cee90(0x1ae)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x2cee90(0x199)];function _0x59c8(){const _0x272e5d=['Z_SYNC_FLUSH','__esModule','21592QyrsCU','get','createWriteStream','brotliDecompressSync','pipe','fetch','zlib','42858NzizOW','follow','headers','95690dkgtdp','1746wlZwhP','data','2398768UbgtiK','fetch-h2','847MhxEBf','unzipSync','2853uQmTJT','1493309kVJQqi','finish','decompressResponseBuffer','error','120JycoAi','Content-Length','defineProperty','9898NyhEEq','context','downloadFile','length','constants','629285qiBozD','test'];_0x59c8=function(){return _0x272e5d;};return _0x59c8();}async function fetch(_0xb6322e,_0x2e8ae5){const _0x57138d=_0x2cee90;return await fetchh2(_0xb6322e,_0x2e8ae5?{'redirect':_0x57138d(0x19c),..._0x2e8ae5}:{'redirect':_0x57138d(0x19c)});}async function downloadFile(_0x13eee6,_0x3186cd,_0x295e58){const _0x1cc09d=_0x2cee90;let _0x591ab0,_0x2dd347;_0x591ab0=await fetchh2(_0x13eee6,{'redirect':_0x1cc09d(0x19c)}),_0x2dd347=await _0x591ab0['readable']();const _0x499a9c=_0x591ab0[_0x1cc09d(0x19d)][_0x1cc09d(0x195)](_0x1cc09d(0x1ab)),_0x836d5a=_0x499a9c?parseInt(_0x499a9c):-0x1,_0x557722=fs[_0x1cc09d(0x196)](_0x3186cd);let _0x45a84a=0x0;await new Promise((_0x4666e6,_0x5443f9)=>{const _0x144a02=_0x1cc09d;_0x2dd347[_0x144a02(0x198)](_0x557722),_0x295e58&&_0x2dd347['on'](_0x144a02(0x1a0),_0x56a14f=>{const _0x8beef6=_0x144a02;_0x45a84a=_0x45a84a+_0x56a14f[_0x8beef6(0x1b0)],_0x295e58(_0x45a84a,_0x836d5a);}),_0x2dd347['on'](_0x144a02(0x1a9),_0x5cdd3d=>{_0x5443f9(_0x5cdd3d);}),_0x557722['on'](_0x144a02(0x1a7),()=>{_0x4666e6();});});}function decompressResponseBuffer(_0x3d0aa1,_0x865f5e){const _0x5e99b0=_0x2cee90;let _0x3f8d3f=_0x3d0aa1;if(/\bgzip\b/['test'](_0x865f5e)||/\bdeflate\b/['test'](_0x865f5e))_0x3f8d3f=zlib[_0x5e99b0(0x1a4)](_0x3d0aa1,{'flush':zlib[_0x5e99b0(0x1b1)][_0x5e99b0(0x192)],'finishFlush':zlib[_0x5e99b0(0x1b1)][_0x5e99b0(0x192)]});else/\bbr\b/[_0x5e99b0(0x1b3)](_0x865f5e)&&(_0x3f8d3f=zlib[_0x5e99b0(0x197)](_0x3d0aa1));return _0x3f8d3f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x57c4(_0x47bc5b,_0x25503d){const _0x59eb58=_0x59eb();return _0x57c4=function(_0x57c48c,_0x66bda0){_0x57c48c=_0x57c48c-0x187;let _0x24d2e7=_0x59eb58[_0x57c48c];return _0x24d2e7;},_0x57c4(_0x47bc5b,_0x25503d);}const _0x1aff09=_0x57c4;(function(_0x43e2a4,_0x4a3a25){const _0x278429=_0x57c4,_0x1ea1ab=_0x43e2a4();while(!![]){try{const _0x5321f8=parseInt(_0x278429(0x194))/0x1+parseInt(_0x278429(0x18e))/0x2*(parseInt(_0x278429(0x1a0))/0x3)+-parseInt(_0x278429(0x190))/0x4+parseInt(_0x278429(0x19d))/0x5*(parseInt(_0x278429(0x18b))/0x6)+-parseInt(_0x278429(0x197))/0x7*(-parseInt(_0x278429(0x1bf))/0x8)+parseInt(_0x278429(0x1aa))/0x9+-parseInt(_0x278429(0x1b2))/0xa*(parseInt(_0x278429(0x1c6))/0xb);if(_0x5321f8===_0x4a3a25)break;else _0x1ea1ab['push'](_0x1ea1ab['shift']());}catch(_0x6b73b4){_0x1ea1ab['push'](_0x1ea1ab['shift']());}}}(_0x59eb,0x7ced2));Object[_0x1aff09(0x1b8)](exports,_0x1aff09(0x1c2),{'value':!![]}),exports[_0x1aff09(0x192)]=void 0x0;const colors_1=require(_0x1aff09(0x1a1));function _0x59eb(){const _0x5c975f=['Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','\x20Check\x20out\x20the\x20Play\x20for','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','Path\x20to\x20your\x20existing\x20Android\x20SDK:','Generating\x20Android\x20Project.','1103400PvTJpJ','--manifest','--url','Downloading\x20JDK\x2011\x20to\x20','Invalid\x20URL:\x20','\x0aSigning\x20key\x20information\x20','\x20or\x20','Password\x20for\x20the\x20Key:','620pVSyQh','Do\x20you\x20want\x20to\x20create\x20one\x20now?','Downloading\x20the\x20JDK\x2011\x20Sources...','bold','Minimum\x20length\x20is\x20','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','defineProperty','license\x20agreement.','Missing\x20required\x20parameter\x20','Downloading\x20the\x20JDK\x2011\x20Binaries...','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)','Decompressing\x20the\x20JDK\x2011\x20Binaries...','Password\x20for\x20the\x20Key\x20Store:','30560qbauyr','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','\x0aProject\x20generated\x20successfully.','__esModule','Downloading\x20Android\x20SDK\x20to\x20','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','62095WMvWsy','(5/5)','Decompressing\x20the\x20Android\x20SDK...','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','52362GCQjFb','underline','redirected\x20to\x20','9184diozjS','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','3879692YlqvqO','\x0aSigning\x20key\x20creation','messages','Invalid\x20integer\x20provided:\x20','445828tmoMzT','\x20but\x20input\x20is\x20','--manifest-url','1575hhxjQt','Invalid\x20icon\x20path:\x20','URL\x20','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','Country\x20(2\x20letter\x20code):','https://developer.android.com/studio/terms.html','105gigFHX','Organization\x20(eg:\x20Company\x20Name):','cyan','144PEhepz','colors','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20'];_0x59eb=function(){return _0x5c975f;};return _0x59eb();}exports[_0x1aff09(0x192)]={'promptInstallJdk':_0x1aff09(0x1bc),'promptJdkPath':'Path\x20to\x20your\x20existing\x20JDK\x2011:','messageDownloadJdk':_0x1aff09(0x1ad),'messageDownloadJdkSrc':_0x1aff09(0x1b4),'messageDecompressJdkSrc':'Decompressing\x20the\x20JDK\x2011\x20Sources...','messageDownloadJdkBin':_0x1aff09(0x1bb),'messageDecompressJdkBin':_0x1aff09(0x1bd),'promptInstallSdk':'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)','promptSdkPath':_0x1aff09(0x1a8),'messageDownloadSdk':_0x1aff09(0x1c3),'errorSdkTerms':_0x1aff09(0x1c5),'promptSdkTerms':_0x1aff09(0x1c4)+(0x0,colors_1[_0x1aff09(0x18c)])(_0x1aff09(0x19c))+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':_0x1aff09(0x188),'messageInstallingBuildTools':_0x1aff09(0x1a2)+_0x1aff09(0x1b9),'messageGeneratingAndroidProject':_0x1aff09(0x1a9),'messageCheckSuccess':(_0x3e4f48,_0xc23577)=>{const _0x4cc5f9=_0x1aff09;return'\x20URL\x20'+(0x0,colors_1[_0x4cc5f9(0x19f)])(_0x3e4f48)+'\x20'+(_0xc23577?_0x4cc5f9(0x18d)+(0x0,colors_1[_0x4cc5f9(0x19f)])(_0xc23577):'')+_0x4cc5f9(0x1c0);},'errorMissingManifestParameter':'Missing\x20required\x20parameter\x20'+((0x0,colors_1[_0x1aff09(0x19f)])(_0x1aff09(0x196))+_0x1aff09(0x1b0)+(0x0,colors_1['cyan'])(_0x1aff09(0x1ab))),'messageInitializingWebManifest':_0x4d0a69=>{const _0x4f2cdc=_0x1aff09;return _0x4f2cdc(0x189)+(0x0,colors_1[_0x4f2cdc(0x19f)])(_0x4d0a69);},'messageInitializingLocalManifest':_0x463b85=>{const _0x512fe5=_0x1aff09;return'Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x512fe5(0x19f)])(_0x463b85);},'messageInvalidIcon':_0x1b8806=>{const _0x57609c=_0x1aff09;return _0x57609c(0x198)+(0x0,colors_1[_0x57609c(0x19f)])(_0x1b8806);},'errorStartUrlNotReachable':_0x5afe78=>_0x1aff09(0x199)+_0x5afe78+'\x20can\x20not\x20be\x20accessible.'+'Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','warnFamilyPolicy':(0x0,colors_1[_0x1aff09(0x1b5)])((0x0,colors_1['yellow'])('WARNING:\x20'))+_0x1aff09(0x19a)+_0x1aff09(0x1a3)+_0x1aff09(0x1a6)+_0x1aff09(0x18a)+(0x0,colors_1['cyan'])('https://play.google.com/console/about/families/'),'promptIconUrl':'Icon\x20URL:','errorInvalidUrl':_0x2e99b0=>{const _0x4503b9=_0x1aff09;return _0x4503b9(0x1ae)+_0x2e99b0;},'errorUrlMustBeImage':_0x41d134=>{const _0x57b9ce=_0x1aff09;return _0x57b9ce(0x1a4)+_0x41d134+'.';},'promptVersionCode':_0x1aff09(0x1a7),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0x1aff09(0x18c)])(_0x1aff09(0x1af)+(0x0,colors_1['green'])(_0x1aff09(0x187))),'messageProjectGeneratedSuccess':_0x1aff09(0x1c1),'messageSigningKeyCreation':(0x0,colors_1[_0x1aff09(0x18c)])(_0x1aff09(0x191)),'messageSigningKeyNotFound':_0x36cb36=>{return'\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22'+_0x36cb36+'\x22.\x0a';},'promptCreateKey':_0x1aff09(0x1b3),'promptKeyFullName':_0x1aff09(0x18f),'promptKeyOrganizationalUnit':_0x1aff09(0x1b7),'promptKeyOrganization':_0x1aff09(0x19e),'promptKeyCountry':_0x1aff09(0x19b),'promptKeystorePassword':_0x1aff09(0x1be),'promptKeyPassword':_0x1aff09(0x1b1),'messageBuildingApp':'\x0aBuilding\x20the\x20Android\x20App...','messageEnterPasswords':(_0x2efe9f,_0xcd02b2)=>{const _0x2fb20f=_0x1aff09;return _0x2fb20f(0x1a5)+(0x0,colors_1[_0x2fb20f(0x19f)])(_0x2efe9f)+'\x20and\x20alias\x20'+(0x0,colors_1['cyan'])(_0xcd02b2)+'.\x0a';},'errorMinLength':(_0x385e80,_0x250d20)=>{const _0x3d8893=_0x1aff09;return _0x3d8893(0x1b6)+_0x385e80+_0x3d8893(0x195)+_0x250d20+'.';},'errorMaxLength':(_0x58b5b9,_0xbb03ea)=>{const _0x33a56d=_0x1aff09;return'Maximum\x20length\x20is\x20'+_0x58b5b9+_0x33a56d(0x195)+_0xbb03ea+'.';},'errorInvalidInteger':_0x2e0d90=>{const _0x386af7=_0x1aff09;return _0x386af7(0x193)+_0x2e0d90;},'messageApkSuccess':_0x40c651=>{const _0x3980fa=_0x1aff09;return'\x09-\x20Generated\x20Android\x20APK\x20at\x20'+(0x0,colors_1[_0x3980fa(0x19f)])(_0x40c651);},'missingUrlToCheck':_0x1aff09(0x1ba)+(''+(0x0,colors_1[_0x1aff09(0x19f)])(_0x1aff09(0x1ac)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x232058=_0x16d4;(function(_0x5a462d,_0xbb2456){const _0x32c2fa=_0x16d4,_0x4773c6=_0x5a462d();while(!![]){try{const _0x7dde26=-parseInt(_0x32c2fa(0x125))/0x1*(parseInt(_0x32c2fa(0x11e))/0x2)+-parseInt(_0x32c2fa(0x128))/0x3*(-parseInt(_0x32c2fa(0x12c))/0x4)+parseInt(_0x32c2fa(0x127))/0x5*(-parseInt(_0x32c2fa(0x124))/0x6)+-parseInt(_0x32c2fa(0x126))/0x7*(-parseInt(_0x32c2fa(0x120))/0x8)+-parseInt(_0x32c2fa(0x129))/0x9+-parseInt(_0x32c2fa(0x11b))/0xa+parseInt(_0x32c2fa(0x11f))/0xb*(parseInt(_0x32c2fa(0x11a))/0xc);if(_0x7dde26===_0xbb2456)break;else _0x4773c6['push'](_0x4773c6['shift']());}catch(_0xf9fe3c){_0x4773c6['push'](_0x4773c6['shift']());}}}(_0x306e,0xe3284));function _0x306e(){const _0x14afae=['15864060esekXx','parseRouter','indexOf','2zthunf','1051567fKEIpK','24ksUIwb','replace','split','__esModule','7026OpFaXY','1703176gddYxD','1940127RQBENO','1805pWcUbL','2010363FNHNjb','4432347UtTiBF','join','pop','8VljLuD','372MMMitQ'];_0x306e=function(){return _0x14afae;};return _0x306e();}function _0x16d4(_0x4db584,_0x33bad5){const _0x306ef3=_0x306e();return _0x16d4=function(_0x16d41a,_0x45abdf){_0x16d41a=_0x16d41a-0x11a;let _0x34ed81=_0x306ef3[_0x16d41a];return _0x34ed81;},_0x16d4(_0x4db584,_0x33bad5);}Object['defineProperty'](exports,_0x232058(0x123),{'value':!![]}),exports[_0x232058(0x11c)]=parseRouter;function parseRouter(_0x2ece5b){const _0xf15289=_0x232058;let _0x3d99e1=_0x2ece5b[_0xf15289(0x122)]('/');_0x3d99e1[_0xf15289(0x12b)]();let _0x53508e=_0x3d99e1[_0xf15289(0x12a)]();while(_0x53508e[_0xf15289(0x11d)](',')>=0x0){_0x53508e=_0x53508e[_0xf15289(0x121)](',','/');}return _0x53508e;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1656(_0x410627,_0x282e6e){const _0xca448d=_0xca44();return _0x1656=function(_0x165606,_0x12dbb8){_0x165606=_0x165606-0x157;let _0x2bbf00=_0xca448d[_0x165606];return _0x2bbf00;},_0x1656(_0x410627,_0x282e6e);}const _0x5abf74=_0x1656;function _0xca44(){const _0x25605a=['archive','/web-spatial.xcodeproj/project.pbxproj','path','default','./xcodeproject','68naxqQh','343172BoydKB','160625hWxArN','./xcrun','.ipa','__esModule','export','5203520GitTCR','write\x20project.pbxproj:\x20ok','upload','16aJkJnd','name','280137TomoUE','2727iJuPrq','PROJECT_EXPORT_DIRECTORY','join','runWithSimulator','432kbfSDo','uploadApp','XcodeManager','log','defineProperty','4368CNwhAj','924xEUbon','./xcodebuild','1102527VfbIKQ'];_0xca44=function(){return _0x25605a;};return _0xca44();}(function(_0x53e5c5,_0x5bfb59){const _0x12d875=_0x1656,_0x2a875e=_0x53e5c5();while(!![]){try{const _0x2c670c=-parseInt(_0x12d875(0x157))/0x1+parseInt(_0x12d875(0x167))/0x2*(-parseInt(_0x12d875(0x163))/0x3)+parseInt(_0x12d875(0x175))/0x4*(parseInt(_0x12d875(0x158))/0x5)+parseInt(_0x12d875(0x16d))/0x6*(parseInt(_0x12d875(0x16c))/0x7)+-parseInt(_0x12d875(0x160))/0x8*(parseInt(_0x12d875(0x16f))/0x9)+parseInt(_0x12d875(0x15d))/0xa+parseInt(_0x12d875(0x162))/0xb;if(_0x2c670c===_0x5bfb59)break;else _0x2a875e['push'](_0x2a875e['shift']());}catch(_0x263b6a){_0x2a875e['push'](_0x2a875e['shift']());}}}(_0xca44,0x6283e));Object[_0x5abf74(0x16b)](exports,_0x5abf74(0x15b),{'value':!![]}),exports['XcodeManager']=void 0x0;const fs=require('fs'),resource_1=require('../resource'),xcodeproject_1=require(_0x5abf74(0x174)),xcodebuild_1=require(_0x5abf74(0x16e)),xcrun_1=require(_0x5abf74(0x159)),path_1=require(_0x5abf74(0x172));class XcodeManager{static async['parseProject'](_0x51f4c6,_0x1d5f5e=![]){const _0x8e334d=_0x5abf74,_0x26713a=resource_1['PROJECT_DIRECTORY']+_0x8e334d(0x171);await xcodeproject_1['default']['modify'](_0x26713a,_0x51f4c6),console[_0x8e334d(0x16a)](_0x8e334d(0x15e));!fs['existsSync'](resource_1[_0x8e334d(0x164)])&&fs['mkdirSync'](resource_1[_0x8e334d(0x164)],{'recursive':!![]});if(!_0x1d5f5e)await xcodebuild_1[_0x8e334d(0x173)][_0x8e334d(0x170)](_0x51f4c6[_0x8e334d(0x15c)]);}static async[_0x5abf74(0x15f)](_0x11167a,_0x22bf4d){const _0x3fbeab=_0x5abf74;if(_0x11167a['u']&&_0x11167a['p'])xcrun_1[_0x3fbeab(0x173)][_0x3fbeab(0x168)]((0x0,path_1[_0x3fbeab(0x165)])(resource_1[_0x3fbeab(0x164)],_0x22bf4d[_0x3fbeab(0x161)]+_0x3fbeab(0x15a)),_0x11167a['u'],_0x11167a['p'],!![]);else _0x11167a['k']&&_0x11167a['i']&&xcrun_1[_0x3fbeab(0x173)][_0x3fbeab(0x168)]((0x0,path_1[_0x3fbeab(0x165)])(resource_1[_0x3fbeab(0x164)],_0x22bf4d[_0x3fbeab(0x161)]+'.ipa'),_0x11167a['k'],_0x11167a['i'],![]);}static async[_0x5abf74(0x166)](_0x575613){const _0xf9a336=_0x5abf74;await xcrun_1[_0xf9a336(0x173)][_0xf9a336(0x166)](_0x575613);}}exports[_0x5abf74(0x169)]=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2a34(_0x49b95b,_0x6a23e4){var _0x544bb1=_0x544b();return _0x2a34=function(_0x2a345f,_0x53b8c5){_0x2a345f=_0x2a345f-0xe2;var _0x12d4e1=_0x544bb1[_0x2a345f];return _0x12d4e1;},_0x2a34(_0x49b95b,_0x6a23e4);}var _0x29c34f=_0x2a34;function _0x544b(){var _0x373780=['87ixDrWL','21cLLbge','__esModule','173538MqzXAf','456168ojGLul','100081wcKsSO','\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','22136bvMUWu','defineProperty','27xKWeOl','manifestSwiftTemplate','309536OYtDcX','172140OfgAgl','862440MKlOqJ'];_0x544b=function(){return _0x373780;};return _0x544b();}(function(_0x18ef96,_0xecd143){var _0x25aeef=_0x2a34,_0x12e317=_0x18ef96();while(!![]){try{var _0x8aa3bb=-parseInt(_0x25aeef(0xe3))/0x1+-parseInt(_0x25aeef(0xef))/0x2+parseInt(_0x25aeef(0xec))/0x3*(-parseInt(_0x25aeef(0xe5))/0x4)+parseInt(_0x25aeef(0xea))/0x5+parseInt(_0x25aeef(0xe2))/0x6*(parseInt(_0x25aeef(0xed))/0x7)+parseInt(_0x25aeef(0xe9))/0x8+-parseInt(_0x25aeef(0xe7))/0x9*(-parseInt(_0x25aeef(0xeb))/0xa);if(_0x8aa3bb===_0xecd143)break;else _0x12e317['push'](_0x12e317['shift']());}catch(_0x52197e){_0x12e317['push'](_0x12e317['shift']());}}}(_0x544b,0x33e78));Object[_0x29c34f(0xe6)](exports,_0x29c34f(0xee),{'value':!![]}),exports['manifestSwiftTemplate']=void 0x0,exports[_0x29c34f(0xe8)]=_0x29c34f(0xe4);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x40dee4=_0x435a;function _0x435a(_0x39bccc,_0x47a2e1){const _0x376cdb=_0x376c();return _0x435a=function(_0x435a81,_0x118eba){_0x435a81=_0x435a81-0xd8;let _0xf40007=_0x376cdb[_0x435a81];return _0xf40007;},_0x435a(_0x39bccc,_0x47a2e1);}function _0x376c(){const _0xf51d28=['web-spatial','destination','./pack','\x20-scheme\x20','\x20-list','1081670XZWBVT','__esModule','scheme','xcodebuild','start\x20export','PROJECT_EXPORT_DIRECTORY','ExportOptions.plist','output','\x20-project\x20','PROJECT_BUILD_DIRECTORY','8612088XYOTQW','copyDir','5RGjkKP','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','project','../resource/file','toString','4RQXMmX','5292402hVIkGc','line','201626pPGdjZ','clean','\x20archive','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','ARCHIVE\x20SUCCEEDED','\x20-exportArchive\x20-archivePath\x20','18038610CHdVca','\x20-archivePath\x20','log','defineProperty','indexOf','existsSync','XcodebuildCMD','\x20-exportPath\x20','EXPORT\x20SUCCEEDED','pack.xcarchive','allowProvisioningUpdates','list','child_process','mkdirSync','archive','2224974JSBrIC','../resource','semver','join','PROJECT_DIRECTORY','\x20-allowProvisioningUpdates','10293444CRTuWE','path'];_0x376c=function(){return _0xf51d28;};return _0x376c();}(function(_0x52266d,_0x551e31){const _0x4a5454=_0x435a,_0x3da7fa=_0x52266d();while(!![]){try{const _0x244dd0=parseInt(_0x4a5454(0xf0))/0x1+-parseInt(_0x4a5454(0xdc))/0x2+parseInt(_0x4a5454(0x105))/0x3*(parseInt(_0x4a5454(0xed))/0x4)+-parseInt(_0x4a5454(0xe8))/0x5*(-parseInt(_0x4a5454(0xee))/0x6)+-parseInt(_0x4a5454(0x10b))/0x7+-parseInt(_0x4a5454(0xe6))/0x8+parseInt(_0x4a5454(0xf6))/0x9;if(_0x244dd0===_0x551e31)break;else _0x3da7fa['push'](_0x3da7fa['shift']());}catch(_0xff3c53){_0x3da7fa['push'](_0x3da7fa['shift']());}}}(_0x376c,0xb51ab));Object[_0x40dee4(0xf9)](exports,_0x40dee4(0xdd),{'value':!![]}),exports['XcodebuildCMD']=void 0x0;const fs=require('fs'),path_1=require(_0x40dee4(0x10c)),resource_1=require(_0x40dee4(0x106)),semver_1=require(_0x40dee4(0x107)),file_1=require(_0x40dee4(0xeb)),{execSync,exec}=require(_0x40dee4(0x102));class Xcodebuild{static async[_0x40dee4(0xea)](){const _0x217a1e=_0x40dee4;try{await new Promise((_0x537bd6,_0x4d5647)=>{const _0x5bf0b5=_0x435a,_0xb26a96=resource_1[_0x5bf0b5(0x109)]+'/web-spatial.xcodeproj',_0x294867=execSync(new XcodebuildCMD()['project'](_0xb26a96)[_0x5bf0b5(0x101)]()[_0x5bf0b5(0xef)]);console[_0x5bf0b5(0xf8)](_0x294867[_0x5bf0b5(0xec)]()),_0x537bd6(_0x294867);});}catch(_0x471b92){console[_0x217a1e(0xf8)](_0x471b92);}}static async[_0x40dee4(0x101)](){const _0x14ef0e=_0x40dee4;try{await new Promise((_0xc986f9,_0x3ca97b)=>{const _0x592c80=_0x435a,_0x53fd06=resource_1[_0x592c80(0x109)]+'/web-spatial.xcodeproj',_0x43856e=execSync(new XcodebuildCMD()[_0x592c80(0xea)](_0x53fd06)[_0x592c80(0x101)]()[_0x592c80(0xef)]);console[_0x592c80(0xf8)](_0x43856e['toString']()),_0xc986f9(_0x43856e);});}catch(_0x516a15){console[_0x14ef0e(0xf8)](_0x516a15);}}static async[_0x40dee4(0x104)](_0x3889fe){const _0x9aa84c=_0x40dee4;try{return console[_0x9aa84c(0xf8)]('start\x20archive'),!fs[_0x9aa84c(0xfb)](resource_1[_0x9aa84c(0xe1)])&&fs[_0x9aa84c(0x103)](resource_1[_0x9aa84c(0xe1)],{'recursive':!![]}),await new Promise((_0x30db55,_0x48dce7)=>{const _0x5fd0ad=_0x9aa84c,_0x2ad1f7=resource_1[_0x5fd0ad(0x109)]+'/web-spatial.xcodeproj',_0x5308d7=execSync(new XcodebuildCMD()[_0x5fd0ad(0xea)](_0x2ad1f7)[_0x5fd0ad(0xde)](_0x5fd0ad(0x10d))[_0x5fd0ad(0x104)]((0x0,path_1[_0x5fd0ad(0x108)])(resource_1[_0x5fd0ad(0xe5)],_0x5fd0ad(0xd9)))['clean']()[_0x5fd0ad(0xef)]);let _0x1143c6=_0x5308d7[_0x5fd0ad(0xec)]();if(_0x1143c6[_0x5fd0ad(0xfa)](_0x5fd0ad(0xf4))>0x0){console[_0x5fd0ad(0xf8)](_0x5fd0ad(0xf3)),console[_0x5fd0ad(0xf8)](_0x5fd0ad(0xe0));const _0x1a6ee7=execSync(new XcodebuildCMD()['output']((0x0,path_1[_0x5fd0ad(0x108)])(resource_1[_0x5fd0ad(0xe5)],_0x5fd0ad(0xff)),resource_1['PROJECT_EXPORT_DIRECTORY'],(0x0,path_1['join'])(resource_1[_0x5fd0ad(0xe5)],_0x5fd0ad(0xe2)))[_0x5fd0ad(0x100)]()[_0x5fd0ad(0xef)]);_0x1143c6=_0x1a6ee7[_0x5fd0ad(0xec)]();if(_0x1143c6[_0x5fd0ad(0xfa)](_0x5fd0ad(0xfe))>0x0){if(_0x3889fe){const _0x2fadae=(0x0,path_1[_0x5fd0ad(0x108)])(process['cwd'](),_0x3889fe);!fs['existsSync'](_0x2fadae)&&fs['mkdirSync'](_0x2fadae,{'recursive':!![]}),(0x0,file_1[_0x5fd0ad(0xe7)])(resource_1[_0x5fd0ad(0xe1)],_0x2fadae);}console[_0x5fd0ad(0xf8)](_0x5fd0ad(0xe9)),_0x30db55(!![]);}(0x0,semver_1[_0x5fd0ad(0xf1)])(resource_1[_0x5fd0ad(0xe5)]);}_0x30db55(![]);});}catch(_0x172762){console[_0x9aa84c(0xf8)](_0x172762);}}}exports['default']=Xcodebuild;class XcodebuildCMD{constructor(){const _0x58ce02=_0x40dee4;this[_0x58ce02(0xef)]=_0x58ce02(0xdf);}['project'](_0x446b69){const _0xd9a46b=_0x40dee4;return this['line']+=_0xd9a46b(0xe4)+_0x446b69,this;}[_0x40dee4(0x101)](){const _0x445616=_0x40dee4;return this[_0x445616(0xef)]+=_0x445616(0xdb),this;}[_0x40dee4(0xde)](_0xbbf7a3){const _0x4aa01e=_0x40dee4;return this['line']+=_0x4aa01e(0xda)+_0xbbf7a3,this;}[_0x40dee4(0x104)](_0x10f724){const _0x1ef551=_0x40dee4;return this[_0x1ef551(0xef)]+=_0x1ef551(0xf7)+_0x10f724+_0x1ef551(0xf2),this;}[_0x40dee4(0x100)](){const _0x491643=_0x40dee4;return this['line']+=_0x491643(0x10a),this;}[_0x40dee4(0xd8)](_0x55a40a){return this['line']+='\x20-destination\x20\x27'+_0x55a40a+'\x27',this;}[_0x40dee4(0xe3)](_0x128b8c,_0x2d3469,_0x3e69f0){const _0x24339e=_0x40dee4;return this[_0x24339e(0xef)]+=_0x24339e(0xf5)+_0x128b8c+_0x24339e(0xfd)+_0x2d3469+'\x20-exportOptionsPlist\x20'+_0x3e69f0,this;}['clean'](){const _0x319f21=_0x40dee4;return this[_0x319f21(0xef)]+='\x20clean',this;}}exports[_0x40dee4(0xfc)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x448c(){const _0x4434a0=['BACK_APPICON_DIRECTORY','pbxTargetByName','resizability','1280','false','mkdirSync','SceneHeight','includes','protocol','SceneWidth','PROJECT_BUILD_DIRECTORY','icon.png','icon','enterprise','\x22),','stringify','MIDDLE_APPICON_DIRECTORY','length','303635BUvAUj','AppID','pbxXCBuildConfigurationSection','START_URL','manifestSwiftTemplate','objects','width','\x22,\x20url:\x20\x22','scope','11496oEweet','PBXGroup','325814rJHuXM','53290xBLLFa','display','buildConfigurations','release-testing','SceneResizability','updateTeamId','modify','image/','defaultSize','../resource','writeFileSync','475878YZnTZh','1384075czQlrk','loadJsonFromDisk','updateProductName','2310240LXUhXU','YOURTEAMID','project','USE_MAIN_SCENE','SCOPE','891CWvzpp','push','ExportOptions.plist','test','replace','modifySwift','protocol_handlers','54HdLQbn','writeAsync','<string>','app-store-connect','4EjsheX','defineProperty','updateBuildProperty','fixProjectFunction','manifestInfo','join','hash','buildConfigurationList','./web-spatial/Info.plist','../resource/load','teamId','path','.standalone','updateVersion','existsSync','buildSettings','object','mainScene','getMIME','60pblzXL','updateDeeplink','icon.','\x22automatic\x22','AppName','log','pbxGroupByName','</string>','__esModule','filename','images','debugging','./manifestSwiftTemplate','buildType','updateExportOptions','2009ingJbv','version','minimal-ui','./web-spatial/libs/webView/manifest.swift','pbxXCConfigurationList','.minimal','start_url','createImg','name','url','<?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>','bindIcon','DEEPLINK','Contents.json','bindManifestInfo','PROJECT_DIRECTORY','../resource/imageHelper','writeSync'];_0x448c=function(){return _0x4434a0;};return _0x448c();}const _0x5a9efa=_0x497b;(function(_0x519a23,_0x157a13){const _0x5a0fa0=_0x497b,_0x5cd4ba=_0x519a23();while(!![]){try{const _0x14b697=parseInt(_0x5a0fa0(0x117))/0x1*(parseInt(_0x5a0fa0(0x137))/0x2)+parseInt(_0x5a0fa0(0x123))/0x3+parseInt(_0x5a0fa0(0x127))/0x4+-parseInt(_0x5a0fa0(0x10c))/0x5*(parseInt(_0x5a0fa0(0x133))/0x6)+parseInt(_0x5a0fa0(0xe8))/0x7*(-parseInt(_0x5a0fa0(0x115))/0x8)+-parseInt(_0x5a0fa0(0x12c))/0x9*(-parseInt(_0x5a0fa0(0x118))/0xa)+-parseInt(_0x5a0fa0(0x124))/0xb*(parseInt(_0x5a0fa0(0x14a))/0xc);if(_0x14b697===_0x157a13)break;else _0x5cd4ba['push'](_0x5cd4ba['shift']());}catch(_0x409499){_0x5cd4ba['push'](_0x5cd4ba['shift']());}}}(_0x448c,0x4fe82));function _0x497b(_0x92894f,_0x1bfb7a){const _0x448c9f=_0x448c();return _0x497b=function(_0x497bb9,_0x2daca1){_0x497bb9=_0x497bb9-0xe3;let _0x229ddd=_0x448c9f[_0x497bb9];return _0x229ddd;},_0x497b(_0x92894f,_0x1bfb7a);}Object[_0x5a9efa(0x138)](exports,_0x5a9efa(0x152),{'value':!![]});const fs=require('fs'),resource_1=require(_0x5a9efa(0x121)),path_1=require(_0x5a9efa(0x142)),load_1=require(_0x5a9efa(0x140)),imageHelper_1=require(_0x5a9efa(0xf8)),manifestSwiftTemplate_1=require(_0x5a9efa(0xe5)),xcode=require('xcode'),exportOptionsXML=_0x5a9efa(0xf2),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[_0x5a9efa(0x11e)](_0x2e1534,_0x28c067){const _0x3a3bf5=_0x5a9efa;let _0x1dc741=xcode[_0x3a3bf5(0x129)](_0x2e1534);this[_0x3a3bf5(0x13a)](_0x1dc741),_0x1dc741['parseSync']();let _0x219399=_0x28c067[_0x3a3bf5(0xe6)];const _0x2bd3e5=['release-testing',_0x3a3bf5(0x136),_0x3a3bf5(0xe4),_0x3a3bf5(0x107)];useExportOptionsXML=exportOptionsXML[_0x3a3bf5(0x130)]('BUILDTYPE',_0x2bd3e5[_0x3a3bf5(0x101)](_0x219399)?_0x219399:_0x3a3bf5(0x11b));_0x28c067['teamId']&&this['updateTeamId'](_0x1dc741,_0x28c067[_0x3a3bf5(0x141)]);this[_0x3a3bf5(0xe7)](),await this['bindIcon'](_0x28c067[_0x3a3bf5(0x106)]),this[_0x3a3bf5(0xf6)](_0x1dc741,_0x28c067[_0x3a3bf5(0x13b)]['json']);_0x28c067[_0x3a3bf5(0xe9)]?this['updateVersion'](_0x1dc741,_0x28c067[_0x3a3bf5(0xe9)]):this[_0x3a3bf5(0x144)](_0x1dc741,'1.0');try{fs['writeFileSync'](_0x2e1534,_0x1dc741[_0x3a3bf5(0xf9)]());}catch(_0x45fd00){console[_0x3a3bf5(0x14f)](_0x45fd00);}}static['fixProjectFunction'](_0x51896f){const _0x54f45b=_0x5a9efa;_0x51896f[_0x54f45b(0x150)]=function(_0xf2544e){const _0x31dd17=_0x54f45b;var _0x470484=this[_0x31dd17(0x13d)][_0x31dd17(0x129)][_0x31dd17(0x111)][_0x31dd17(0x116)],_0x5d32f5,_0x537ccd;for(_0x5d32f5 in _0x470484){if(!/_comment$/[_0x31dd17(0x12f)](_0x5d32f5))continue;if(_0x470484[_0x5d32f5]==_0xf2544e)return _0x537ccd=_0x5d32f5['split'](/_comment$/)[0x0],_0x470484[_0x537ccd];}return![];},_0x51896f[_0x54f45b(0x139)]=function(_0x161cd4,_0x3e15d2,_0x33b699,_0x159ee8){const _0x59eaa9=_0x54f45b;let _0x39a8d3=[];const _0x96bda=/_comment$/;if(_0x159ee8){const _0x4d40bb=this[_0x59eaa9(0xfb)](_0x159ee8),_0xb9ad0e=_0x4d40bb&&_0x4d40bb[_0x59eaa9(0x13e)],_0x51e78c=this[_0x59eaa9(0xec)]();for(const _0x4700d6 in _0x51e78c){if(!_0x96bda[_0x59eaa9(0x12f)](_0x4700d6)&&_0xb9ad0e===_0x4700d6){const _0x3e8ebd=_0x51e78c[_0x4700d6][_0x59eaa9(0x11a)];for(const _0x5e643a of _0x3e8ebd){_0x39a8d3[_0x59eaa9(0x12d)](_0x5e643a['value']);}break;}}}var _0x144000=this[_0x59eaa9(0x10e)]();for(var _0x6dd61f in _0x144000){if(!_0x96bda[_0x59eaa9(0x12f)](_0x6dd61f)){if(_0x159ee8&&!_0x39a8d3['includes'](_0x6dd61f))continue;var _0x3b5c44=_0x144000[_0x6dd61f];(_0x33b699&&_0x3b5c44[_0x59eaa9(0xf0)]===_0x33b699||!_0x33b699)&&_0x3b5c44[_0x59eaa9(0x146)][_0x161cd4]&&(_0x3b5c44[_0x59eaa9(0x146)][_0x161cd4]=_0x3e15d2);}}};}static async[_0x5a9efa(0xf3)](_0x50f9e8){const _0x142edd=_0x5a9efa;if(_0x50f9e8){const _0x20f247=(0x0,path_1[_0x142edd(0x13c)])(resource_1[_0x142edd(0xf7)],resource_1[_0x142edd(0xfa)]),_0x1719e6=(0x0,path_1[_0x142edd(0x13c)])(_0x20f247,_0x142edd(0xf5)),_0x45c8bb=_0x142edd(0x14c)+_0x50f9e8[_0x142edd(0x149)]()[_0x142edd(0x130)](_0x142edd(0x11f),''),_0x149b99=(0x0,path_1[_0x142edd(0x13c)])(_0x20f247,_0x45c8bb);let _0x53ef50=await(0x0,load_1[_0x142edd(0x125)])(_0x1719e6);_0x53ef50['images'][0x0][_0x142edd(0x153)]=_0x45c8bb,await _0x50f9e8[_0x142edd(0x134)](_0x149b99),await fs[_0x142edd(0x122)](_0x1719e6,JSON['stringify'](_0x53ef50));const _0x2e3980=(0x0,path_1[_0x142edd(0x13c)])(resource_1[_0x142edd(0xf7)],resource_1[_0x142edd(0x10a)]),_0x310290=(0x0,path_1[_0x142edd(0x13c)])(_0x2e3980,'Contents.json'),_0x598516=_0x142edd(0x105),_0x4b8ef3=(0x0,path_1[_0x142edd(0x13c)])(_0x2e3980,_0x598516);let _0x5a834f=await(0x0,load_1['loadJsonFromDisk'])(_0x310290),_0x16a8c9=imageHelper_1['ImageHelper'][_0x142edd(0xef)](0x200);_0x5a834f[_0x142edd(0xe3)][0x0][_0x142edd(0x153)]=_0x598516,await _0x16a8c9[_0x142edd(0x134)](_0x4b8ef3),await fs[_0x142edd(0x122)](_0x310290,JSON[_0x142edd(0x109)](_0x5a834f));}}static[_0x5a9efa(0x11d)](_0x3789d8,_0x10fb90){const _0xfc3672=_0x5a9efa;_0x3789d8[_0xfc3672(0x139)]('DEVELOPMENT_TEAM',_0x10fb90),useExportOptionsXML=useExportOptionsXML['replace'](_0xfc3672(0x128),_0x10fb90);}static[_0x5a9efa(0xe7)](){const _0x57973e=_0x5a9efa;!fs[_0x57973e(0x145)](resource_1[_0x57973e(0x104)])&&fs[_0x57973e(0xff)](resource_1[_0x57973e(0x104)],{'recursive':!![]}),fs[_0x57973e(0x122)]((0x0,path_1[_0x57973e(0x13c)])(resource_1[_0x57973e(0x104)],_0x57973e(0x12e)),useExportOptionsXML);}static[_0x5a9efa(0xf6)](_0x23ad54,_0x2cfe7f){const _0x2878f6=_0x5a9efa;var _0x3adc62;_0x23ad54[_0x2878f6(0x126)](_0x2cfe7f[_0x2878f6(0xf0)]),_0x23ad54['updateBuildProperty']('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x2cfe7f['id']+'\x22'),this[_0x2878f6(0x14b)]((_0x3adc62=_0x2cfe7f[_0x2878f6(0x132)])!==null&&_0x3adc62!==void 0x0?_0x3adc62:[]),this[_0x2878f6(0x131)](_0x2cfe7f);}static[_0x5a9efa(0x144)](_0x601532,_0x4a36f1){const _0x1d8a7a=_0x5a9efa;_0x601532[_0x1d8a7a(0x139)]('CURRENT_PROJECT_VERSION',_0x4a36f1);}static[_0x5a9efa(0x14b)](_0x1a05d8){const _0x59c113=_0x5a9efa;let _0x3862e6=(0x0,path_1[_0x59c113(0x13c)])(resource_1[_0x59c113(0xf7)],_0x59c113(0x13f)),_0x5afc0b='';for(let _0x5d67c1=0x0;_0x5d67c1<_0x1a05d8['length'];_0x5d67c1++){_0x5afc0b+=_0x59c113(0x135)+_0x1a05d8[_0x5d67c1]['protocol']+_0x59c113(0x151);}const _0x269ee7=infoPlistXML['replace'](_0x59c113(0xf4),_0x5afc0b);fs[_0x59c113(0x122)](_0x3862e6,_0x269ee7);}static[_0x5a9efa(0x131)](_0x56a9a4){const _0x3635e7=_0x5a9efa,_0x21af6b=(0x0,path_1[_0x3635e7(0x13c)])(resource_1[_0x3635e7(0xf7)],_0x3635e7(0xeb));let _0x249816=manifestSwiftTemplate_1[_0x3635e7(0x110)];_0x249816=_0x249816['replace'](_0x3635e7(0x10f),_0x56a9a4[_0x3635e7(0xee)]),_0x249816=_0x249816['replace'](_0x3635e7(0x12b),_0x56a9a4[_0x3635e7(0x114)]),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x14e),_0x56a9a4[_0x3635e7(0xf0)]),_0x249816=_0x249816[_0x3635e7(0x130)]('Description',_0x56a9a4['description']),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x10d),_0x56a9a4['id']),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0xed),_0x56a9a4[_0x3635e7(0x119)]==_0x3635e7(0xea)?_0x3635e7(0xed):_0x3635e7(0x143));if(_0x56a9a4[_0x3635e7(0x132)]){let _0x49f5da='';for(let _0x117943=0x0;_0x117943<_0x56a9a4[_0x3635e7(0x132)][_0x3635e7(0x10b)];_0x117943++){_0x49f5da+='PWAProtocol(protocolValue:\x20\x22'+_0x56a9a4['protocol_handlers'][_0x117943][_0x3635e7(0x102)]+_0x3635e7(0x113)+_0x56a9a4['protocol_handlers'][_0x117943][_0x3635e7(0xf1)]+_0x3635e7(0x108);}_0x249816=_0x249816[_0x3635e7(0x130)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x49f5da);}typeof _0x56a9a4['mainScene']===_0x3635e7(0x147)?(_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x103),_0x56a9a4['mainScene']['defaultSize'][_0x3635e7(0x112)]),_0x249816=_0x249816[_0x3635e7(0x130)]('SceneHeight',_0x56a9a4[_0x3635e7(0x148)][_0x3635e7(0x120)]['height']),_0x249816=_0x249816['replace'](_0x3635e7(0x11c),'\x22'+_0x56a9a4[_0x3635e7(0x148)][_0x3635e7(0xfc)]+'\x22'),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x12a),'true')):(_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x103),'1280'),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x100),_0x3635e7(0xfd)),_0x249816=_0x249816[_0x3635e7(0x130)]('SceneResizability',_0x3635e7(0x14d)),_0x249816=_0x249816[_0x3635e7(0x130)]('USE_MAIN_SCENE',_0x3635e7(0xfe))),fs['writeFileSync'](_0x21af6b,_0x249816,'utf-8');}}exports['default']=XcodeProject;
|
|
1
|
+
'use strict';const _0x4fb80d=_0x53b4;(function(_0x10c17,_0xb76f8b){const _0xb7f00c=_0x53b4,_0x389398=_0x10c17();while(!![]){try{const _0x5b03e8=parseInt(_0xb7f00c(0xb3))/0x1*(-parseInt(_0xb7f00c(0xb6))/0x2)+-parseInt(_0xb7f00c(0xcf))/0x3*(parseInt(_0xb7f00c(0x91))/0x4)+-parseInt(_0xb7f00c(0xe2))/0x5*(parseInt(_0xb7f00c(0xdf))/0x6)+parseInt(_0xb7f00c(0x82))/0x7*(-parseInt(_0xb7f00c(0xaf))/0x8)+parseInt(_0xb7f00c(0xba))/0x9+parseInt(_0xb7f00c(0xa8))/0xa*(parseInt(_0xb7f00c(0x9f))/0xb)+parseInt(_0xb7f00c(0xd1))/0xc*(parseInt(_0xb7f00c(0xb1))/0xd);if(_0x5b03e8===_0xb76f8b)break;else _0x389398['push'](_0x389398['shift']());}catch(_0x311ac4){_0x389398['push'](_0x389398['shift']());}}}(_0x174f,0x4c347));Object[_0x4fb80d(0xe0)](exports,_0x4fb80d(0xbe),{'value':!![]});function _0x174f(){const _0x23763b=['width','manifestSwiftTemplate','images','BACK_APPICON_DIRECTORY','pbxXCBuildConfigurationSection','url','updateBuildProperty','push','loadJsonFromDisk','hash','11JQzWyB','buildConfigurationList','PROJECT_BUILD_DIRECTORY','MIDDLE_APPICON_DIRECTORY','bindManifestInfo','AppName','writeAsync','path','teamId','3021910PZManr','./manifestSwiftTemplate','<?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','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','utf-8','SceneWidth','updateExportOptions','8QBRARX','1.0','149643MMjlWG','buildType','35UtpZxM','project','\x22,\x20url:\x20\x22','9988sUGFKI','resizability','</string>','YOURTEAMID','3649770IxSlDR','CURRENT_PROJECT_VERSION','buildSettings','\x22),','__esModule','AppID','version','split','1280','mainScene','display','Description','SceneHeight','../resource/load','<string>','protocol_handlers','parseSync','enterprise','fixProjectFunction','../resource/imageHelper','minimal-ui','201QghnvK','getMIME','468IVzoSa','updateTeamId','value','PRODUCT_BUNDLE_IDENTIFIER','updateDeeplink','modifySwift','xcode','DEVELOPMENT_TEAM','ExportOptions.plist','icon','bindIcon','defaultSize','test','writeFileSync','1389798MTPXsA','defineProperty','replace','5vrlvUG','PWAProtocol(protocolValue:\x20\x22','.minimal','modify','json','buildConfigurations','PROJECT_DIRECTORY','PBXGroup','scope','writeSync','createImg','false','length','2936731tTqCJm','protocol','Contents.json','updateVersion','ImageHelper','default','release-testing','join','manifestInfo','SceneResizability','includes','app-store-connect','./web-spatial/Info.plist','true','<?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>','1108hoNwSl','filename','USE_MAIN_SCENE','stringify'];_0x174f=function(){return _0x23763b;};return _0x174f();}const fs=require('fs'),resource_1=require('../resource'),path_1=require(_0x4fb80d(0xa6)),load_1=require(_0x4fb80d(0xc7)),imageHelper_1=require(_0x4fb80d(0xcd)),manifestSwiftTemplate_1=require(_0x4fb80d(0xa9)),xcode=require(_0x4fb80d(0xd7)),exportOptionsXML=_0x4fb80d(0x90),infoPlistXML=_0x4fb80d(0xaa);let useExportOptionsXML='';class XcodeProject{static async[_0x4fb80d(0x78)](_0xe512ad,_0x4f00b1){const _0x12799d=_0x4fb80d;let _0x19fbf6=xcode[_0x12799d(0xb4)](_0xe512ad);this['fixProjectFunction'](_0x19fbf6),_0x19fbf6[_0x12799d(0xca)]();let _0x1975b7=_0x4f00b1[_0x12799d(0xb2)];const _0x12407a=[_0x12799d(0x88),_0x12799d(0x8d),'debugging',_0x12799d(0xcb)];useExportOptionsXML=exportOptionsXML[_0x12799d(0xe1)]('BUILDTYPE',_0x12407a['includes'](_0x1975b7)?_0x1975b7:_0x12799d(0x88));_0x4f00b1['teamId']&&this[_0x12799d(0xd2)](_0x19fbf6,_0x4f00b1[_0x12799d(0xa7)]);this[_0x12799d(0xae)](),await this[_0x12799d(0xdb)](_0x4f00b1[_0x12799d(0xda)]),this[_0x12799d(0xa3)](_0x19fbf6,_0x4f00b1[_0x12799d(0x8a)][_0x12799d(0x79)]);_0x4f00b1[_0x12799d(0xc0)]?this['updateVersion'](_0x19fbf6,_0x4f00b1[_0x12799d(0xc0)]):this[_0x12799d(0x85)](_0x19fbf6,_0x12799d(0xb0));try{fs[_0x12799d(0xde)](_0xe512ad,_0x19fbf6[_0x12799d(0x7e)]());}catch(_0x4ec5e2){console['log'](_0x4ec5e2);}}static[_0x4fb80d(0xcc)](_0x521b07){const _0x533535=_0x4fb80d;_0x521b07['pbxGroupByName']=function(_0x5f3f3c){const _0x20480e=_0x53b4;var _0x30cafa=this[_0x20480e(0x9e)][_0x20480e(0xb4)]['objects'][_0x20480e(0x7c)],_0x1e322c,_0x22df09;for(_0x1e322c in _0x30cafa){if(!/_comment$/[_0x20480e(0xdd)](_0x1e322c))continue;if(_0x30cafa[_0x1e322c]==_0x5f3f3c)return _0x22df09=_0x1e322c[_0x20480e(0xc1)](/_comment$/)[0x0],_0x30cafa[_0x22df09];}return![];},_0x521b07[_0x533535(0x9b)]=function(_0x307cfe,_0x20a709,_0x338e4e,_0x3c6a99){const _0x5af795=_0x533535;let _0x1612e3=[];const _0x3d13d6=/_comment$/;if(_0x3c6a99){const _0x1d6335=this['pbxTargetByName'](_0x3c6a99),_0x5cc844=_0x1d6335&&_0x1d6335[_0x5af795(0xa0)],_0x58c8f0=this['pbxXCConfigurationList']();for(const _0x105de2 in _0x58c8f0){if(!_0x3d13d6['test'](_0x105de2)&&_0x5cc844===_0x105de2){const _0x251aba=_0x58c8f0[_0x105de2][_0x5af795(0x7a)];for(const _0x167ee6 of _0x251aba){_0x1612e3[_0x5af795(0x9c)](_0x167ee6[_0x5af795(0xd3)]);}break;}}}var _0x5886c8=this[_0x5af795(0x99)]();for(var _0x28eee9 in _0x5886c8){if(!_0x3d13d6[_0x5af795(0xdd)](_0x28eee9)){if(_0x3c6a99&&!_0x1612e3[_0x5af795(0x8c)](_0x28eee9))continue;var _0x1bf91a=_0x5886c8[_0x28eee9];(_0x338e4e&&_0x1bf91a['name']===_0x338e4e||!_0x338e4e)&&_0x1bf91a[_0x5af795(0xbc)][_0x307cfe]&&(_0x1bf91a[_0x5af795(0xbc)][_0x307cfe]=_0x20a709);}}};}static async['bindIcon'](_0x5223a3){const _0x3c8c95=_0x4fb80d;if(_0x5223a3){const _0x2af7fd=(0x0,path_1[_0x3c8c95(0x89)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x3c8c95(0x98)]),_0x40cc20=(0x0,path_1[_0x3c8c95(0x89)])(_0x2af7fd,_0x3c8c95(0x84)),_0x4f6bca='icon.'+_0x5223a3[_0x3c8c95(0xd0)]()[_0x3c8c95(0xe1)]('image/',''),_0x38f318=(0x0,path_1[_0x3c8c95(0x89)])(_0x2af7fd,_0x4f6bca);let _0x3779dd=await(0x0,load_1[_0x3c8c95(0x9d)])(_0x40cc20);_0x3779dd[_0x3c8c95(0x97)][0x0][_0x3c8c95(0x92)]=_0x4f6bca,await _0x5223a3[_0x3c8c95(0xa5)](_0x38f318),await fs[_0x3c8c95(0xde)](_0x40cc20,JSON[_0x3c8c95(0x94)](_0x3779dd));const _0x9d1feb=(0x0,path_1[_0x3c8c95(0x89)])(resource_1[_0x3c8c95(0x7b)],resource_1[_0x3c8c95(0xa2)]),_0x1bd90c=(0x0,path_1[_0x3c8c95(0x89)])(_0x9d1feb,_0x3c8c95(0x84)),_0x5e49ab='icon.png',_0x563671=(0x0,path_1['join'])(_0x9d1feb,_0x5e49ab);let _0x52e488=await(0x0,load_1[_0x3c8c95(0x9d)])(_0x1bd90c),_0x5e628f=imageHelper_1[_0x3c8c95(0x86)][_0x3c8c95(0x7f)](0x200);_0x52e488['images'][0x0][_0x3c8c95(0x92)]=_0x5e49ab,await _0x5e628f[_0x3c8c95(0xa5)](_0x563671),await fs[_0x3c8c95(0xde)](_0x1bd90c,JSON['stringify'](_0x52e488));}}static[_0x4fb80d(0xd2)](_0x38cf4d,_0x1a9fae){const _0x4af2a1=_0x4fb80d;_0x38cf4d[_0x4af2a1(0x9b)](_0x4af2a1(0xd8),_0x1a9fae),useExportOptionsXML=useExportOptionsXML[_0x4af2a1(0xe1)](_0x4af2a1(0xb9),_0x1a9fae);}static[_0x4fb80d(0xae)](){const _0x59df7b=_0x4fb80d;!fs['existsSync'](resource_1[_0x59df7b(0xa1)])&&fs['mkdirSync'](resource_1[_0x59df7b(0xa1)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1[_0x59df7b(0x89)])(resource_1[_0x59df7b(0xa1)],_0x59df7b(0xd9)),useExportOptionsXML);}static[_0x4fb80d(0xa3)](_0x50b628,_0x3ed169){const _0x578802=_0x4fb80d;var _0x53f8ac;_0x50b628['updateProductName'](_0x3ed169['name']),_0x50b628['updateBuildProperty'](_0x578802(0xd4),'\x22'+_0x3ed169['id']+'\x22'),this[_0x578802(0xd5)]((_0x53f8ac=_0x3ed169['protocol_handlers'])!==null&&_0x53f8ac!==void 0x0?_0x53f8ac:[]),this[_0x578802(0xd6)](_0x3ed169);}static[_0x4fb80d(0x85)](_0x2a5fea,_0x41218f){const _0x20a0ab=_0x4fb80d;_0x2a5fea[_0x20a0ab(0x9b)](_0x20a0ab(0xbb),_0x41218f);}static[_0x4fb80d(0xd5)](_0x18842e){const _0xd7684a=_0x4fb80d;let _0x1b8d58=(0x0,path_1[_0xd7684a(0x89)])(resource_1['PROJECT_DIRECTORY'],_0xd7684a(0x8e)),_0x434cf4='';for(let _0x4d9c0d=0x0;_0x4d9c0d<_0x18842e[_0xd7684a(0x81)];_0x4d9c0d++){_0x434cf4+=_0xd7684a(0xc8)+_0x18842e[_0x4d9c0d][_0xd7684a(0x83)]+_0xd7684a(0xb8);}const _0x52fab9=infoPlistXML[_0xd7684a(0xe1)]('DEEPLINK',_0x434cf4);fs['writeFileSync'](_0x1b8d58,_0x52fab9);}static[_0x4fb80d(0xd6)](_0x14d7e3){const _0xd41029=_0x4fb80d,_0x169b80=(0x0,path_1[_0xd41029(0x89)])(resource_1[_0xd41029(0x7b)],'./web-spatial/libs/webView/manifest.swift');let _0x105296=manifestSwiftTemplate_1[_0xd41029(0x96)];_0x105296=_0x105296[_0xd41029(0xe1)]('START_URL',_0x14d7e3['start_url']),_0x105296=_0x105296[_0xd41029(0xe1)]('SCOPE',_0x14d7e3[_0xd41029(0x7d)]),_0x105296=_0x105296[_0xd41029(0xe1)](_0xd41029(0xa4),_0x14d7e3['name']),_0x105296=_0x105296['replace'](_0xd41029(0xc5),_0x14d7e3['description']),_0x105296=_0x105296[_0xd41029(0xe1)](_0xd41029(0xbf),_0x14d7e3['id']),_0x105296=_0x105296['replace']('.minimal',_0x14d7e3[_0xd41029(0xc4)]==_0xd41029(0xce)?_0xd41029(0x77):'.standalone');if(_0x14d7e3[_0xd41029(0xc9)]){let _0x527420='';for(let _0x2b14b2=0x0;_0x2b14b2<_0x14d7e3[_0xd41029(0xc9)][_0xd41029(0x81)];_0x2b14b2++){_0x527420+=_0xd41029(0x76)+_0x14d7e3[_0xd41029(0xc9)][_0x2b14b2][_0xd41029(0x83)]+_0xd41029(0xb5)+_0x14d7e3[_0xd41029(0xc9)][_0x2b14b2][_0xd41029(0x9a)]+_0xd41029(0xbd);}_0x105296=_0x105296['replace'](_0xd41029(0xab),_0x527420);}typeof _0x14d7e3[_0xd41029(0xc3)]==='object'?(_0x105296=_0x105296[_0xd41029(0xe1)](_0xd41029(0xad),_0x14d7e3[_0xd41029(0xc3)][_0xd41029(0xdc)][_0xd41029(0x95)]),_0x105296=_0x105296[_0xd41029(0xe1)](_0xd41029(0xc6),_0x14d7e3[_0xd41029(0xc3)]['defaultSize']['height']),_0x105296=_0x105296[_0xd41029(0xe1)](_0xd41029(0x8b),'\x22'+_0x14d7e3[_0xd41029(0xc3)][_0xd41029(0xb7)]+'\x22'),_0x105296=_0x105296['replace'](_0xd41029(0x93),_0xd41029(0x8f))):(_0x105296=_0x105296[_0xd41029(0xe1)](_0xd41029(0xad),_0xd41029(0xc2)),_0x105296=_0x105296[_0xd41029(0xe1)](_0xd41029(0xc6),_0xd41029(0xc2)),_0x105296=_0x105296['replace'](_0xd41029(0x8b),'\x22automatic\x22'),_0x105296=_0x105296[_0xd41029(0xe1)](_0xd41029(0x93),_0xd41029(0x80))),fs[_0xd41029(0xde)](_0x169b80,_0x105296,_0xd41029(0xac));}}function _0x53b4(_0x5ef560,_0x325475){const _0x174f41=_0x174f();return _0x53b4=function(_0x53b439,_0x5e2e04){_0x53b439=_0x53b439-0x76;let _0x9514bb=_0x174f41[_0x53b439];return _0x9514bb;},_0x53b4(_0x5ef560,_0x325475);}exports[_0x4fb80d(0x87)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3e0de0=_0x32ac;function _0x32ac(_0x4dbee5,_0x4dc1ea){const _0x2eb46d=_0x2eb4();return _0x32ac=function(_0x32ac7f,_0x20b54f){_0x32ac7f=_0x32ac7f-0x94;let _0x2c97b0=_0x2eb46d[_0x32ac7f];return _0x2c97b0;},_0x32ac(_0x4dbee5,_0x4dc1ea);}(function(_0x2563fc,_0x52c4e8){const _0xf31ad8=_0x32ac,_0x2e2c4d=_0x2563fc();while(!![]){try{const _0x272afa=-parseInt(_0xf31ad8(0xc1))/0x1+-parseInt(_0xf31ad8(0xd7))/0x2+-parseInt(_0xf31ad8(0xaa))/0x3+-parseInt(_0xf31ad8(0xb6))/0x4+-parseInt(_0xf31ad8(0x94))/0x5+-parseInt(_0xf31ad8(0xc3))/0x6+parseInt(_0xf31ad8(0xa5))/0x7;if(_0x272afa===_0x52c4e8)break;else _0x2e2c4d['push'](_0x2e2c4d['shift']());}catch(_0x3be284){_0x2e2c4d['push'](_0x2e2c4d['shift']());}}}(_0x2eb4,0xbf7a2));Object[_0x3e0de0(0xad)](exports,_0x3e0de0(0x9d),{'value':!![]});const child_process_1=require(_0x3e0de0(0xb7)),resource_1=require(_0x3e0de0(0x9c)),path_1=require('path'),fs=require('fs'),xcodebuild_1=require(_0x3e0de0(0xd4));function _0x2eb4(){const _0x780f90=['uploadPackage','list','simctl','find\x20simulator:\x20','toString','--\x20','\x27\x20-derivedDataPath\x20','name','build\x20success','appleId','./xcodebuild','execSync','visionos','524156Hasofn','existsSync','log','boot','default','\x20--apiKey\x20','\x22\x20\x22','2626085mPdsoj','includes','PROJECT_BUILD_DIRECTORY','\x20altool','project','\x20--verbose','\x20-p\x20','/web-spatial.xcodeproj','../resource','__esModule','authApi','install\x20success','\x20-t\x20','\x20--apple-id\x20','trim','\x20--validate-app\x20-f\x20','split','43226050BvTPrY','\x20list','\x20--upload-package\x20','install','authAccount','2607828SBeMrk','length','.app','defineProperty','listDevices','Apple\x20Vision\x20Pro','push','mkdirSync','verbose','\x20-u\x20','\x20--apiIssuer\x20','launch\x20app','4750392mOagfK','child_process','uploadApp','deviceId','state','Shutdown','altool','Build/Products/Debug-xrsimulator/','start\x20building','--\x20visionOS','line','1458832GiphXO','join','6527154hMmoPK','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','version','validate','launch','platform','\x20install\x20\x22'];_0x2eb4=function(){return _0x780f90;};return _0x2eb4();}class Xcrun{static async[_0x3e0de0(0xc6)](_0x2e08fb,_0x1136d9,_0x5e259a,_0x445072){const _0x8032a4=_0x3e0de0,_0x1c52a7=new XcrunCMD()[_0x8032a4(0xbc)]();_0x1c52a7[_0x8032a4(0xc6)](_0x2e08fb);_0x445072?_0x1c52a7[_0x8032a4(0xa9)](_0x1136d9,_0x5e259a):_0x1c52a7[_0x8032a4(0x9e)](_0x1136d9,_0x5e259a);_0x1c52a7[_0x8032a4(0xc8)](_0x8032a4(0xd6));const _0x223be0=(0x0,child_process_1[_0x8032a4(0xd5)])(_0x1c52a7['line']);return _0x223be0['toString']();}static async[_0x3e0de0(0xca)](_0x5f3365,_0x58e10a,_0x536844,_0x494012,_0x161442){const _0x2c4f38=_0x3e0de0,_0x57d329=new XcrunCMD()[_0x2c4f38(0xbc)]();_0x57d329[_0x2c4f38(0xca)](_0x5f3365);_0x161442?_0x57d329[_0x2c4f38(0xa9)](_0x58e10a,_0x536844):_0x57d329[_0x2c4f38(0x9e)](_0x58e10a,_0x536844);_0x57d329[_0x2c4f38(0xc8)](_0x2c4f38(0xd6)),_0x57d329[_0x2c4f38(0xd3)](_0x494012);const _0x6c43e5=(0x0,child_process_1['execSync'])(_0x57d329[_0x2c4f38(0xc0)]);return _0x6c43e5[_0x2c4f38(0xce)]();}static async[_0x3e0de0(0xb8)](_0xa1c1f5,_0x1b987c,_0x21714a,_0x4350a0){const _0x14687c=_0x3e0de0,_0x21bfd3=new XcrunCMD()[_0x14687c(0xbc)]();_0x21bfd3[_0x14687c(0xb8)](_0xa1c1f5);_0x4350a0?_0x21bfd3[_0x14687c(0xa9)](_0x1b987c,_0x21714a):_0x21bfd3[_0x14687c(0x9e)](_0x1b987c,_0x21714a);_0x21bfd3[_0x14687c(0xc8)](_0x14687c(0xd6));const _0x3bdb4e=(0x0,child_process_1[_0x14687c(0xd5)])(_0x21bfd3['line']);return _0x3bdb4e[_0x14687c(0xce)]();}static async['runWithSimulator'](_0x197772){const _0x451c48=_0x3e0de0;let _0x414134=new XcrunCMD()[_0x451c48(0xcc)]();_0x414134[_0x451c48(0xae)](_0x451c48(0xaf));const _0x797d8e=(0x0,child_process_1[_0x451c48(0xd5)])(_0x414134['line']),_0x33fc19=this['parseListDevices'](_0x797d8e[_0x451c48(0xce)]());if(_0x33fc19[_0x451c48(0xab)]===0x0)throw new Error('no\x20visionOS\x20simulator\x20found');let _0x3738e6=_0x33fc19[0x0];for(let _0x391b9b=0x0;_0x391b9b<_0x33fc19['length'];_0x391b9b++){if(_0x33fc19[_0x391b9b][_0x451c48(0xba)]==='Booted'){_0x3738e6=_0x33fc19[_0x391b9b];break;}}console['log'](_0x451c48(0xcd)+_0x3738e6['deviceId']);const _0x49147a=resource_1['PROJECT_DIRECTORY']+_0x451c48(0x9b),_0x640688=resource_1[_0x451c48(0x96)]+'/test';!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x451c48(0xb1)](resource_1[_0x451c48(0x96)],{'recursive':!![]});!fs[_0x451c48(0xd8)](_0x640688)&&fs[_0x451c48(0xb1)](_0x640688,{'recursive':!![]});const _0x38f985=new xcodebuild_1['XcodebuildCMD']()[_0x451c48(0x98)](_0x49147a)[_0x451c48(0xc0)]+('\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id='+_0x3738e6[_0x451c48(0xb9)]+_0x451c48(0xd0)+_0x640688);console['log'](_0x451c48(0xbe)),(0x0,child_process_1[_0x451c48(0xd5)])(_0x38f985),console['log'](_0x451c48(0xd2));_0x3738e6['state']===_0x451c48(0xbb)&&(_0x414134=new XcrunCMD()[_0x451c48(0xcc)](),_0x414134[_0x451c48(0xda)](_0x3738e6[_0x451c48(0xb9)]),(0x0,child_process_1[_0x451c48(0xd5)])(_0x414134[_0x451c48(0xc0)]));(0x0,child_process_1['execSync'])(_0x451c48(0xc4)),console[_0x451c48(0xd9)]('installing\x20app');const _0x4549e5=(0x0,path_1[_0x451c48(0xc2)])(_0x640688,_0x451c48(0xbd)+_0x197772[_0x451c48(0xd1)]+_0x451c48(0xac));_0x414134=new XcrunCMD()[_0x451c48(0xcc)](),_0x414134[_0x451c48(0xa8)](_0x3738e6[_0x451c48(0xb9)],_0x4549e5),(0x0,child_process_1['execSync'])(_0x414134[_0x451c48(0xc0)]),console[_0x451c48(0xd9)](_0x451c48(0x9f)),console[_0x451c48(0xd9)](_0x451c48(0xb5)),_0x414134=new XcrunCMD()[_0x451c48(0xcc)](),_0x414134[_0x451c48(0xc7)](_0x3738e6['deviceId'],_0x197772['id']),(0x0,child_process_1[_0x451c48(0xd5)])(_0x414134[_0x451c48(0xc0)]);}static['parseListDevices'](_0x3e5c71){const _0x1b98cb=_0x3e0de0;let _0x225a60=_0x3e5c71[_0x1b98cb(0xa4)]('\x0a'),_0x51509d=[],_0x31c0e8=-0x1;for(let _0x48c442=0x0;_0x48c442<_0x225a60[_0x1b98cb(0xab)];_0x48c442++){if(_0x225a60[_0x48c442][_0x1b98cb(0x95)](_0x1b98cb(0xbf)))_0x31c0e8=_0x48c442;else{if(_0x31c0e8>0x0){if(_0x225a60[_0x48c442]['includes'](_0x1b98cb(0xcf)))break;if(_0x225a60[_0x48c442][_0x1b98cb(0xab)]>0x0){const _0x3a471f=_0x225a60[_0x48c442][_0x1b98cb(0xa4)]('('),_0x33d545={'name':_0x3a471f[0x0][_0x1b98cb(0xa2)](),'deviceId':_0x3a471f[0x1][_0x1b98cb(0xa4)](')')[0x0]['trim'](),'state':_0x3a471f[0x2][_0x1b98cb(0xa4)](')')[0x0][_0x1b98cb(0xa2)]()};_0x51509d[_0x1b98cb(0xb0)](_0x33d545);}}}}return _0x51509d;}}exports[_0x3e0de0(0xdb)]=Xcrun;class XcrunCMD{constructor(){const _0x5266a3=_0x3e0de0;this[_0x5266a3(0xc0)]='xcrun';}['altool'](){const _0x3478fc=_0x3e0de0;return this[_0x3478fc(0xc0)]+=_0x3478fc(0x97),this;}['simctl'](){const _0x51f7d4=_0x3e0de0;return this[_0x51f7d4(0xc0)]+='\x20simctl',this;}[_0x3e0de0(0xcb)](){const _0x327342=_0x3e0de0;return this[_0x327342(0xc0)]+=_0x327342(0xa6),this;}['listDevices'](_0x47c5bf){const _0x14b270=_0x3e0de0;return this[_0x14b270(0xc0)]+='\x20list\x20devices\x20\x22'+_0x47c5bf+'\x22',this;}[_0x3e0de0(0xc6)](_0x24ae10){const _0x470a33=_0x3e0de0;return this[_0x470a33(0xc0)]+=_0x470a33(0xa3)+_0x24ae10,this;}[_0x3e0de0(0xb8)](_0x4c4c30){const _0x307e23=_0x3e0de0;return this[_0x307e23(0xc0)]+='\x20--upload-app\x20-f\x20'+_0x4c4c30,this;}[_0x3e0de0(0xca)](_0x4e41ce){const _0x3815b4=_0x3e0de0;return this[_0x3815b4(0xc0)]+=_0x3815b4(0xa7)+_0x4e41ce,this;}[_0x3e0de0(0xa9)](_0x2e4b05,_0x25f2a7){const _0x22aa6c=_0x3e0de0;return this[_0x22aa6c(0xc0)]+=_0x22aa6c(0xb3)+_0x2e4b05+_0x22aa6c(0x9a)+_0x25f2a7,this;}[_0x3e0de0(0x9e)](_0x27006a,_0x598933){const _0x5bbfbc=_0x3e0de0;return this['line']+=_0x5bbfbc(0xdc)+_0x27006a+_0x5bbfbc(0xb4)+_0x598933,this;}['appleId'](_0x4fcc11){const _0x5b03c3=_0x3e0de0;return this['line']+=_0x5b03c3(0xa1)+_0x4fcc11,this;}[_0x3e0de0(0xc8)](_0x3ef8ee){const _0x4ae8d7=_0x3e0de0;return this[_0x4ae8d7(0xc0)]+=_0x4ae8d7(0xa0)+_0x3ef8ee,this;}[_0x3e0de0(0xc5)](_0x57cda6){const _0x4d4b1c=_0x3e0de0;return this[_0x4d4b1c(0xc0)]+='\x20--bundle-version\x20'+_0x57cda6,this;}[_0x3e0de0(0xb2)](){const _0x26ffe8=_0x3e0de0;return this[_0x26ffe8(0xc0)]+=_0x26ffe8(0x99),this;}['shutdown'](){const _0x588f19=_0x3e0de0;return this[_0x588f19(0xc0)]+='\x20shutdown\x20booted',this;}['boot'](_0x5ceb95){return this['line']+='\x20boot\x20\x22'+_0x5ceb95+'\x22',this;}[_0x3e0de0(0xa8)](_0x1b99dc,_0x5b9663){const _0x37a17e=_0x3e0de0;return this[_0x37a17e(0xc0)]+=_0x37a17e(0xc9)+_0x1b99dc+_0x37a17e(0xdd)+_0x5b9663+'\x22',this;}[_0x3e0de0(0xc7)](_0x1baae1,_0x19aaf0){const _0x49a10a=_0x3e0de0;return this[_0x49a10a(0xc0)]+='\x20launch\x20\x22'+_0x1baae1+_0x49a10a(0xdd)+_0x19aaf0+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"dist/index.js",
|
|
20
20
|
"bin",
|
|
21
21
|
"template",
|
|
22
|
-
"package.json"
|
|
22
|
+
"package.json",
|
|
23
|
+
"README.md"
|
|
23
24
|
],
|
|
24
25
|
"author": "",
|
|
25
26
|
"license": "ISC",
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"test1": "npm run build && bin/bundlepwa.js build --manifest=../testLocal/manifest.json --project=../testLocal --export=./export --version=1.0 --teamId=teamId",
|
|
65
66
|
"test2": "npm run build && bin/bundlepwa.js publish --manifest=../pack-test/pwa_test.json --project=../pack-test --version=1.0 --teamId=teamId --u=username --p=password",
|
|
66
67
|
"test3": "npm run build && bin/bundlepwa.js publish --name=webspatial --version=1.0 --u=username --p=password",
|
|
67
|
-
"test4": "npm run build && bin/bundlepwa.js run
|
|
68
|
+
"test4": "npm run build && bin/bundlepwa.js run",
|
|
68
69
|
"obfuscate": "node obfuscate.js",
|
|
69
70
|
"build": "tsc && npm run obfuscate",
|
|
70
71
|
"build1": "rollup -c ./rollup.config.js",
|