@webspatial/builder 0.1.9 → 0.1.11
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 +20 -8
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.d.ts +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.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.d.ts +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,17 +14,29 @@ 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=dist/webspatial/avp --platform=visionos`
|
|
17
|
+
`webspatial-builder run --manifest=public/manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --bundle-id=com.webspatial.test`
|
|
18
18
|
|
|
19
19
|
- Default parameters
|
|
20
20
|
- --manifest=public/manifest.json or --manifest=manifest.webmanifest
|
|
21
21
|
- --project=dist
|
|
22
22
|
- --platform=visionos
|
|
23
|
-
-
|
|
24
|
-
- --base
|
|
23
|
+
- --base=/
|
|
25
24
|
|
|
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
25
|
>
|
|
26
|
+
> 1. If you don't have a manifest file, CLI will use the default configuration
|
|
27
|
+
> ```json
|
|
28
|
+
> {
|
|
29
|
+
> id: 'com.webspatial.test',
|
|
30
|
+
> name: 'WebSpatialTest',
|
|
31
|
+
> display: 'minimal-ui',
|
|
32
|
+
> start_url: '/',
|
|
33
|
+
> scope: '/',
|
|
34
|
+
> }
|
|
35
|
+
> ```
|
|
36
|
+
>
|
|
37
|
+
>2. 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.
|
|
38
|
+
>
|
|
39
|
+
> 3. The --bundle-id is the bundle identifier of the app.
|
|
28
40
|
>**For example:**
|
|
29
41
|
>```
|
|
30
42
|
>Example 1:
|
|
@@ -34,8 +46,8 @@ Build and run local WebSpatial project on Apple Vision Pro simulator.
|
|
|
34
46
|
>
|
|
35
47
|
>Example 2:
|
|
36
48
|
>start_url:https://www.domain1.com/a/index.html
|
|
37
|
-
>--base:
|
|
38
|
-
>final url:
|
|
49
|
+
>--base:http://localhost:5173
|
|
50
|
+
>final url:http://localhost:5173/a/index.html
|
|
39
51
|
>
|
|
40
52
|
>Example 3:
|
|
41
53
|
>start_url:https://www.domain1.com/a/index.html
|
|
@@ -45,7 +57,7 @@ Build and run local WebSpatial project on Apple Vision Pro simulator.
|
|
|
45
57
|
|
|
46
58
|
Package an IPA file.
|
|
47
59
|
|
|
48
|
-
`webspatial-builder build --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId`
|
|
60
|
+
`webspatial-builder build --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --bundle-id=com.webspatial.test`
|
|
49
61
|
|
|
50
62
|
- Necessary parameters
|
|
51
63
|
- --base
|
|
@@ -53,7 +65,7 @@ Package an IPA file.
|
|
|
53
65
|
|
|
54
66
|
|
|
55
67
|
Publish to App Store Connect.
|
|
56
|
-
`webspatial-builder publish --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --version=projectVersion --u=yourAppleId --p=yourAppSpecificCode`
|
|
68
|
+
`webspatial-builder publish --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --version=projectVersion --u=yourAppleId --p=yourAppSpecificCode --bundle-id=com.webspatial.test`
|
|
57
69
|
|
|
58
70
|
- Necessary parameters
|
|
59
71
|
- --base
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x31b017=_0x4b16;(function(_0x5874bd,_0x4b338f){const _0x4df770=_0x4b16,_0x54a34d=_0x5874bd();while(!![]){try{const _0x36e12b=-parseInt(_0x4df770(0x1f9))/0x1*(-parseInt(_0x4df770(0x1e1))/0x2)+-parseInt(_0x4df770(0x1ea))/0x3*(-parseInt(_0x4df770(0x1f3))/0x4)+-parseInt(_0x4df770(0x1e2))/0x5+parseInt(_0x4df770(0x1f7))/0x6+parseInt(_0x4df770(0x1e6))/0x7*(parseInt(_0x4df770(0x1f8))/0x8)+parseInt(_0x4df770(0x1e3))/0x9*(-parseInt(_0x4df770(0x1e4))/0xa)+-parseInt(_0x4df770(0x1eb))/0xb;if(_0x36e12b===_0x4b338f)break;else _0x54a34d['push'](_0x54a34d['shift']());}catch(_0x306cc0){_0x54a34d['push'](_0x54a34d['shift']());}}}(_0x561c,0x92ba2));Object['defineProperty'](exports,_0x31b017(0x1f0),{'value':!![]});const Cli_1=require(_0x31b017(0x1e7)),CustomError_1=require(_0x31b017(0x1f5));module[_0x31b017(0x1e0)]=async()=>{const _0x2aed76=_0x31b017,_0x287e42=new Cli_1[(_0x2aed76(0x1f2))](),_0x5bd04d=Cli_1['Cli'][_0x2aed76(0x1ec)],_0x116ec0=process[_0x2aed76(0x1ed)]['slice'](0x2);let _0x591f0c;try{_0x591f0c=await _0x287e42[_0x2aed76(0x1e5)](_0x116ec0);}catch(_0x224181){if(_0x224181 instanceof CustomError_1[_0x2aed76(0x1f1)]){const _0x471c1b=_0x224181[_0x2aed76(0x1ef)];Array[_0x2aed76(0x1f6)](_0x471c1b)?_0x471c1b['forEach'](_0x23c40a=>{const _0x2d0f54=_0x2aed76;_0x5bd04d[_0x2d0f54(0x1f4)](_0x23c40a[_0x2d0f54(0x1e8)]+':\x20'+_0x23c40a[_0x2d0f54(0x1e9)]);}):_0x5bd04d[_0x2aed76(0x1f4)](_0x471c1b[_0x2aed76(0x1e8)]+':\x20'+_0x471c1b[_0x2aed76(0x1e9)]);}else _0x5bd04d[_0x2aed76(0x1f4)](_0x224181[_0x2aed76(0x1e9)]);_0x591f0c=![];}!_0x591f0c?process[_0x2aed76(0x1ee)](0x1):process[_0x2aed76(0x1ee)](0x0);};function _0x4b16(_0xc8261d,_0xd2d8a9){const _0x561c31=_0x561c();return _0x4b16=function(_0x4b1632,_0x398805){_0x4b1632=_0x4b1632-0x1e0;let _0x399e02=_0x561c31[_0x4b1632];return _0x399e02;},_0x4b16(_0xc8261d,_0xd2d8a9);}function _0x561c(){const _0xaf5e86=['isArray','6345996HXdEUH','688gaMwUm','203909JxdDkI','exports','10SenOZZ','534820khGlVn','25749MYEtoz','2630jrZhMA','run','35385DMiLdn','./lib/Cli','code','message','363567eDnoAS','14233098QqraoY','log','argv','exit','customMessage','__esModule','CustomError','Cli','8zcamHy','error','./lib/utils/CustomError'];_0x561c=function(){return _0xaf5e86;};return _0x561c();}
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4ab2(){const _0x133218=['ConsoleLog','build','./utils/FetchUtils-1','67880DxnGlt','1381880YDIVKx','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','1683154WYQZRT','479952JrrvTx','__esModule','decompressResponseBuffer','setDecompressResponseBuffer','fetch','320373qngtkK','length','versions','Current\x20Node.js\x20version\x20is\x20','629870DSBXeb','log','../lib/utils/Log','Cli','216AnUxzp','downloadFile','semver','7364BYbSqV','start','minimist','version','run','help','webspatial-builder','node','setDownloadFile','setFetch','2VeLOFD','18eoSjzE','defineProperty','./utils/fetch','./cmds/build','5000foKUJF','./cmds/help','fetchUtils'];_0x4ab2=function(){return _0x133218;};return _0x4ab2();}function _0x4671(_0x142623,_0x13d982){const _0x4ab252=_0x4ab2();return _0x4671=function(_0x4671d0,_0x1fd9a6){_0x4671d0=_0x4671d0-0x12e;let _0x1b44fc=_0x4ab252[_0x4671d0];return _0x1b44fc;},_0x4671(_0x142623,_0x13d982);}const _0x5c0cfa=_0x4671;(function(_0x1e7f71,_0x46ce25){const _0x1bb12c=_0x4671,_0x5e9779=_0x1e7f71();while(!![]){try{const _0x27a4f0=-parseInt(_0x1bb12c(0x14b))/0x1+-parseInt(_0x1bb12c(0x133))/0x2*(parseInt(_0x1bb12c(0x147))/0x3)+-parseInt(_0x1bb12c(0x142))/0x4+-parseInt(_0x1bb12c(0x13e))/0x5*(-parseInt(_0x1bb12c(0x14f))/0x6)+parseInt(_0x1bb12c(0x152))/0x7*(parseInt(_0x1bb12c(0x138))/0x8)+-parseInt(_0x1bb12c(0x134))/0x9*(-parseInt(_0x1bb12c(0x13f))/0xa)+-parseInt(_0x1bb12c(0x141))/0xb;if(_0x27a4f0===_0x46ce25)break;else _0x5e9779['push'](_0x5e9779['shift']());}catch(_0x4b8766){_0x5e9779['push'](_0x5e9779['shift']());}}}(_0x4ab2,0x64d15));Object[_0x5c0cfa(0x135)](exports,_0x5c0cfa(0x143),{'value':!![]}),exports[_0x5c0cfa(0x14e)]=void 0x0;const minimist=require(_0x5c0cfa(0x154)),semver_1=require(_0x5c0cfa(0x151)),Log_1=require(_0x5c0cfa(0x14d)),FetchUtils_1_1=require(_0x5c0cfa(0x13d)),help_1=require(_0x5c0cfa(0x139)),build_1=require(_0x5c0cfa(0x137)),version_1=require('./cmds/version'),fetch_1=require(_0x5c0cfa(0x136));class Cli{async[_0x5c0cfa(0x156)](_0x4fae4a){const _0x25db67=_0x5c0cfa;if((0x0,semver_1['major'])(process[_0x25db67(0x149)][_0x25db67(0x130)])<0xe)throw new Error(_0x25db67(0x14a)+process[_0x25db67(0x149)][_0x25db67(0x130)]+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');FetchUtils_1_1['fetchUtils'][_0x25db67(0x132)](fetch_1[_0x25db67(0x146)]),FetchUtils_1_1[_0x25db67(0x13a)][_0x25db67(0x131)](fetch_1[_0x25db67(0x150)]),FetchUtils_1_1[_0x25db67(0x13a)][_0x25db67(0x145)](fetch_1[_0x25db67(0x144)]);const _0x3273d4=minimist(_0x4fae4a);let _0x3409a1=undefined;if(_0x3273d4['_'][_0x25db67(0x148)]===0x0){if(_0x3273d4[_0x25db67(0x155)])_0x3409a1=_0x25db67(0x155);else _0x3273d4['help']&&(_0x3409a1=_0x25db67(0x12e));}else _0x3409a1=_0x3273d4['_'][0x0];!_0x3409a1&&(_0x3409a1=_0x25db67(0x12e));switch(_0x3409a1){case _0x25db67(0x12e):case'h':return await(0x0,help_1[_0x25db67(0x12e)])(_0x3273d4);case _0x25db67(0x13c):return await(0x0,build_1[_0x25db67(0x153)])(_0x3273d4);case'publish':return await(0x0,build_1['store'])(_0x3273d4);case _0x25db67(0x156):return await(0x0,build_1[_0x25db67(0x156)])(_0x3273d4);case _0x25db67(0x155):{return await(0x0,version_1[_0x25db67(0x155)])();}default:throw new Error('\x22'+_0x3409a1+_0x25db67(0x140));}}}exports[_0x5c0cfa(0x14e)]=Cli,Cli[_0x5c0cfa(0x14c)]=new Log_1[(_0x5c0cfa(0x13b))](_0x5c0cfa(0x12f));
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3e0efe=_0x5473;(function(_0x50c399,_0x4ce39c){const _0x117683=_0x5473,_0x436b8d=_0x50c399();while(!![]){try{const _0x15e728=-parseInt(_0x117683(0x1ef))/0x1+-parseInt(_0x117683(0x1db))/0x2*(-parseInt(_0x117683(0x1f1))/0x3)+-parseInt(_0x117683(0x1ea))/0x4+-parseInt(_0x117683(0x1f5))/0x5+-parseInt(_0x117683(0x1f6))/0x6*(-parseInt(_0x117683(0x1da))/0x7)+-parseInt(_0x117683(0x1fe))/0x8*(parseInt(_0x117683(0x1e6))/0x9)+parseInt(_0x117683(0x1e4))/0xa;if(_0x15e728===_0x4ce39c)break;else _0x436b8d['push'](_0x436b8d['shift']());}catch(_0x1bd67f){_0x436b8d['push'](_0x436b8d['shift']());}}}(_0x585b,0x76b7b));function _0x5473(_0x51fb87,_0x20a2b1){const _0x585bd2=_0x585b();return _0x5473=function(_0x5473ae,_0x526ed){_0x5473ae=_0x5473ae-0x1da;let _0x52dd60=_0x585bd2[_0x5473ae];return _0x52dd60;},_0x5473(_0x51fb87,_0x20a2b1);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['start']=start,exports[_0x3e0efe(0x1ed)]=store,exports['run']=run;const pwa_1=require(_0x3e0efe(0x1fc)),resource_1=require(_0x3e0efe(0x1e9)),xcode_1=require(_0x3e0efe(0x1fd)),check_1=require('./check');function _0x585b(){const _0x3c2d18=['1947463AhWzeO','214xwiRcJ','upload','name','runWithSimulator','teamId','move\x20web\x20project:\x20ok','buildType','checkPlatformPath','app-store-connect','13094610hSQEYS','XcodeManager','27fZflVo','moveProjectFrom','generator','../resource','2762600uEqSKL','WebSpatialTest','log','store','generate\x20icon:\x20ok','222177rBKFhi','checkBuildParams','2181AuqsOb','platform','generateIcon','version','4063530VWuxvS','18ptWHry','parseProject','PWAGenerator','project','json','export','../pwa','../xcode','26872MtekPc','ResourceManager'];_0x585b=function(){return _0x3c2d18;};return _0x585b();}async function start(_0x319866,_0x3ff379=![]){const _0x3c8ae8=_0x3e0efe;var _0x1449ba;(0x0,check_1[_0x3c8ae8(0x1f0)])(_0x319866,_0x3ff379),resource_1[_0x3c8ae8(0x1ff)]['checkPlatformPath'](_0x319866[_0x3c8ae8(0x1f2)]),console[_0x3c8ae8(0x1ec)]('-------------------\x20build\x20start\x20-------------------');let _0x529f29=await pwa_1[_0x3c8ae8(0x1f8)][_0x3c8ae8(0x1e8)](_0x319866,_0x3ff379);!_0x529f29['fromNet']&&(await resource_1[_0x3c8ae8(0x1ff)][_0x3c8ae8(0x1e7)]((_0x1449ba=_0x319866[_0x3c8ae8(0x1f9)])!==null&&_0x1449ba!==void 0x0?_0x1449ba:'dist'),console[_0x3c8ae8(0x1ec)](_0x3c8ae8(0x1e0)));let _0x3efb3d=await resource_1['ResourceManager'][_0x3c8ae8(0x1f3)](_0x529f29);return console['log'](_0x3c8ae8(0x1ee)),await xcode_1[_0x3c8ae8(0x1e5)][_0x3c8ae8(0x1f7)]({'icon':_0x3efb3d,'manifestInfo':_0x529f29,'teamId':_0x319866[_0x3c8ae8(0x1df)],'version':_0x319866[_0x3c8ae8(0x1f4)],'buildType':_0x319866[_0x3c8ae8(0x1e1)],'export':_0x319866[_0x3c8ae8(0x1fb)]},_0x3ff379),console[_0x3c8ae8(0x1ec)]('-------------------\x20build\x20end\x20-------------------'),_0x529f29;}async function store(_0x2259ef){const _0x4e2189=_0x3e0efe;resource_1['ResourceManager'][_0x4e2189(0x1e2)](_0x2259ef[_0x4e2189(0x1f2)]),(0x0,check_1['checkStoreParams'])(_0x2259ef);let _0x4c5a35={'name':'WebSpatialTest'};_0x2259ef[_0x4e2189(0x1e1)]=_0x4e2189(0x1e3);if(_0x2259ef[_0x4e2189(0x1dd)])_0x4c5a35[_0x4e2189(0x1dd)]=_0x2259ef['name'];else{const _0x275ee0=await start(_0x2259ef);if(!_0x275ee0)return![];_0x4c5a35['name']=_0x275ee0[_0x4e2189(0x1fa)][_0x4e2189(0x1dd)];}return await xcode_1[_0x4e2189(0x1e5)][_0x4e2189(0x1dc)](_0x2259ef,_0x4c5a35),!![];}async function run(_0x3daf81){const _0xe8ed14=_0x3e0efe;let _0x1d737d={'name':_0xe8ed14(0x1eb),'id':''};const _0x27821e=await start(_0x3daf81,!![]);if(!_0x27821e)return![];return _0x1d737d[_0xe8ed14(0x1dd)]=_0x27821e[_0xe8ed14(0x1fa)][_0xe8ed14(0x1dd)],_0x1d737d['id']=_0x27821e[_0xe8ed14(0x1fa)]['id'],await xcode_1[_0xe8ed14(0x1e5)][_0xe8ed14(0x1de)](_0x1d737d),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x6500ff=_0x9425;(function(_0x3762ff,_0x3789e2){const _0x3f1c97=_0x9425,_0x407a43=_0x3762ff();while(!![]){try{const _0x8ab1fc=-parseInt(_0x3f1c97(0x8f))/0x1+parseInt(_0x3f1c97(0x81))/0x2+-parseInt(_0x3f1c97(0x91))/0x3*(parseInt(_0x3f1c97(0x77))/0x4)+-parseInt(_0x3f1c97(0x7f))/0x5*(parseInt(_0x3f1c97(0x8b))/0x6)+parseInt(_0x3f1c97(0x93))/0x7*(-parseInt(_0x3f1c97(0x90))/0x8)+parseInt(_0x3f1c97(0x86))/0x9*(-parseInt(_0x3f1c97(0x8e))/0xa)+-parseInt(_0x3f1c97(0x7c))/0xb*(-parseInt(_0x3f1c97(0x79))/0xc);if(_0x8ab1fc===_0x3789e2)break;else _0x407a43['push'](_0x407a43['shift']());}catch(_0x5b54ce){_0x407a43['push'](_0x407a43['shift']());}}}(_0x5896,0x649b4));function _0x9425(_0x26c268,_0x471575){const _0x589674=_0x5896();return _0x9425=function(_0x9425a5,_0x9d3fbb){_0x9425a5=_0x9425a5-0x77;let _0x40aea6=_0x589674[_0x9425a5];return _0x40aea6;},_0x9425(_0x26c268,_0x471575);}Object[_0x6500ff(0x80)](exports,_0x6500ff(0x8c),{'value':!![]}),exports[_0x6500ff(0x8a)]=checkBuildParams,exports[_0x6500ff(0x8d)]=checkStoreParams;function _0x5896(){const _0x3e1b84=['87750cDJbJh','../pwa/validate','test','base','version\x20is\x20required','1360494QrwiJi','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','version','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','checkBuildParams','12AaSHRJ','__esModule','checkStoreParams','10UXJdVL','802227NmjmwU','88qgzTFX','153054aAHEGT','--teamId\x20is\x20required','312599IKwDpf','24EBIgIf','validateURL','441948vlroSI','split','search','825FSQATy','manifest','--u\x20and\x20--p\x20is\x20required','1608095JuwdmU','defineProperty'];_0x5896=function(){return _0x3e1b84;};return _0x5896();}const validate_1=require(_0x6500ff(0x82));function checkBuildParams(_0x75cd80,_0x2a72d0=![]){const _0x52b9d1=_0x6500ff;if(_0x75cd80[_0x52b9d1(0x7d)]&&_0x75cd80['manifest-url'])throw new Error(_0x52b9d1(0x87));if(!_0x75cd80['teamId']&&!_0x2a72d0)throw new Error(_0x52b9d1(0x92));if(_0x75cd80[_0x52b9d1(0x84)]){if((0x0,validate_1[_0x52b9d1(0x78)])(_0x75cd80[_0x52b9d1(0x84)]))try{const _0x2e92cc=new URL(_0x75cd80[_0x52b9d1(0x84)]);if(_0x2e92cc[_0x52b9d1(0x7b)]||_0x2e92cc['hash'])throw new Error(_0x52b9d1(0x89));}catch(_0x5107b0){throw new Error(_0x52b9d1(0x89));}else{const _0x58820d=/(\?.*|\.\w+|#.*)$/,_0x5c9b6a=_0x75cd80[_0x52b9d1(0x84)][_0x52b9d1(0x7a)]('/')['pop']()||'';if(_0x58820d[_0x52b9d1(0x83)](_0x5c9b6a))throw new Error(_0x52b9d1(0x89));}}}function checkStoreParams(_0x26c85a){const _0x25c249=_0x6500ff;if(!(_0x26c85a['u']&&_0x26c85a['p']))throw new Error(_0x25c249(0x7e));if(!_0x26c85a[_0x25c249(0x88)])throw new Error(_0x25c249(0x85));}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x423c87=_0x2a38;(function(_0x39cf68,_0x16db68){const _0x53c106=_0x2a38,_0x13541b=_0x39cf68();while(!![]){try{const _0x53a846=parseInt(_0x53c106(0x6a))/0x1*(parseInt(_0x53c106(0x72))/0x2)+-parseInt(_0x53c106(0x82))/0x3*(-parseInt(_0x53c106(0x6f))/0x4)+-parseInt(_0x53c106(0x6e))/0x5+parseInt(_0x53c106(0x70))/0x6+parseInt(_0x53c106(0x66))/0x7*(parseInt(_0x53c106(0x65))/0x8)+parseInt(_0x53c106(0x76))/0x9+parseInt(_0x53c106(0x69))/0xa;if(_0x53a846===_0x16db68)break;else _0x13541b['push'](_0x13541b['shift']());}catch(_0x204bac){_0x13541b['push'](_0x13541b['shift']());}}}(_0x3e7e,0x71a6b));function _0x2a38(_0x396542,_0x24e5c2){const _0x3e7eec=_0x3e7e();return _0x2a38=function(_0x2a3886,_0x54d6e4){_0x2a3886=_0x2a3886-0x65;let _0x28cbaa=_0x3e7eec[_0x2a3886];return _0x28cbaa;},_0x2a38(_0x396542,_0x24e5c2);}function _0x3e7e(){const _0xc59d10=['webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','publish','get','main','join','webspatial\x20[command]\x20<options>','help\x20................\x20shows\x20this\x20menu','587721OTqwyu','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','40aWAYAP','503629wNlGxN','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','__esModule','764120oKRVuC','32051eyqfmQ','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','Usage:','4085295zdhrzq','8QwNEbY','1381584iPMFle','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','2nxCirh','dev','ConsoleLog','defineProperty','1730682ISbLaI','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>','help','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','info'];_0x3e7e=function(){return _0xc59d10;};return _0x3e7e();}Object[_0x423c87(0x75)](exports,_0x423c87(0x68),{'value':!![]}),exports['help']=help;const Log_1=require('../utils/Log'),HELP_MESSAGES=new Map([[_0x423c87(0x7e),[_0x423c87(0x80),'','',_0x423c87(0x81),_0x423c87(0x6b)+_0x423c87(0x79),_0x423c87(0x71),_0x423c87(0x84)]['join']('\x0a')],['build',[_0x423c87(0x6d),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','',_0x423c87(0x67)][_0x423c87(0x7f)]('\x0a')],[_0x423c87(0x73),[_0x423c87(0x6d),'','',_0x423c87(0x6c),'','','webspatial\x20dev\x20--manifest-url=<net-manifest-url>'][_0x423c87(0x7f)]('\x0a')],[_0x423c87(0x7c),[_0x423c87(0x6d),'','',_0x423c87(0x77),'','',_0x423c87(0x7b),'','',_0x423c87(0x83)][_0x423c87(0x7f)]('\x0a')]]);async function help(_0x492f46,_0x2204da=new Log_1[(_0x423c87(0x74))](_0x423c87(0x78))){const _0x32b617=_0x423c87,_0x5c5b22=_0x492f46['_'][0x1],_0xf9782=HELP_MESSAGES[_0x32b617(0x7d)](_0x5c5b22)||HELP_MESSAGES[_0x32b617(0x7d)]('main');return _0x2204da[_0x32b617(0x7a)](_0xf9782),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3958(){const _0x4c1a4d=['441YTuvPm','880197nWdIOJ','path','toString','33438sdTkVf','info','../../../package.json','1036735mqbKhx','2205135aQOdZr','18210800uDCGEd','1110EbTUPv','join','parse','4jpUwnY','481184rNopcK','895qaCYvq','version','ConsoleLog'];_0x3958=function(){return _0x4c1a4d;};return _0x3958();}function _0x48e2(_0x2954fd,_0x26db33){const _0x3958a0=_0x3958();return _0x48e2=function(_0x48e236,_0x40cae2){_0x48e236=_0x48e236-0xb4;let _0x4cf6fa=_0x3958a0[_0x48e236];return _0x4cf6fa;},_0x48e2(_0x2954fd,_0x26db33);}const _0x26b4fa=_0x48e2;(function(_0x6b3770,_0x35a086){const _0x529f7d=_0x48e2,_0x3c44ec=_0x6b3770();while(!![]){try{const _0x42666a=-parseInt(_0x529f7d(0xb6))/0x1*(parseInt(_0x529f7d(0xc3))/0x2)+-parseInt(_0x529f7d(0xba))/0x3*(parseInt(_0x529f7d(0xb4))/0x4)+-parseInt(_0x529f7d(0xc0))/0x5+-parseInt(_0x529f7d(0xbd))/0x6*(-parseInt(_0x529f7d(0xb9))/0x7)+-parseInt(_0x529f7d(0xb5))/0x8+-parseInt(_0x529f7d(0xc1))/0x9+parseInt(_0x529f7d(0xc2))/0xa;if(_0x42666a===_0x35a086)break;else _0x3c44ec['push'](_0x3c44ec['shift']());}catch(_0x313bc2){_0x3c44ec['push'](_0x3c44ec['shift']());}}}(_0x3958,0xd44a9));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x26b4fa(0xb7)]=version;const fs=require('fs'),path=require(_0x26b4fa(0xbb)),Log_1=require('../utils/Log');async function version(_0x10d1d6=new Log_1[(_0x26b4fa(0xb8))](_0x26b4fa(0xb7))){const _0x5798f5=_0x26b4fa,_0x4cc55c=path[_0x5798f5(0xc4)](__dirname,_0x5798f5(0xbf)),_0xfb3670=await(await fs['promises']['readFile'](_0x4cc55c))[_0x5798f5(0xbc)](),_0x956414=JSON[_0x5798f5(0xc5)](_0xfb3670);return _0x10d1d6[_0x5798f5(0xbe)](_0x956414['version']),!![];}
|
package/dist/lib/pwa/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function configId(manifestJson: Record<string, any>, bundleId: string
|
|
1
|
+
export declare function configId(manifestJson: Record<string, any>, bundleId: string): void;
|
|
2
2
|
export declare function configStartUrl(manifestJson: Record<string, any>, base: string, manifestUrl: string, isNet: boolean): any;
|
|
3
3
|
export declare function configScope(manifestJson: Record<string, any>): void;
|
|
4
4
|
export declare function configDisplay(manifestJson: Record<string, any>): void;
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x27cb2a=_0x4dab;(function(_0x5c907b,_0x459347){const _0x3344de=_0x4dab,_0x270301=_0x5c907b();while(!![]){try{const _0x398bb6=parseInt(_0x3344de(0x17b))/0x1+-parseInt(_0x3344de(0x15a))/0x2+-parseInt(_0x3344de(0x14f))/0x3+-parseInt(_0x3344de(0x16d))/0x4*(-parseInt(_0x3344de(0x177))/0x5)+parseInt(_0x3344de(0x156))/0x6+parseInt(_0x3344de(0x134))/0x7*(parseInt(_0x3344de(0x183))/0x8)+-parseInt(_0x3344de(0x162))/0x9;if(_0x398bb6===_0x459347)break;else _0x270301['push'](_0x270301['shift']());}catch(_0xce732){_0x270301['push'](_0x270301['shift']());}}}(_0x9c36,0x3f05d));Object['defineProperty'](exports,_0x27cb2a(0x170),{'value':!![]}),exports[_0x27cb2a(0x158)]=void 0x0,exports['configId']=configId,exports[_0x27cb2a(0x17f)]=configStartUrl,exports[_0x27cb2a(0x160)]=configScope,exports[_0x27cb2a(0x176)]=configDisplay,exports['configMainScene']=configMainScene,exports['configDeeplink']=configDeeplink;const utils_1=require(_0x27cb2a(0x181)),validate_1=require(_0x27cb2a(0x154)),path_1=require('path');function configId(_0xd95113,_0xf2ec6b){const _0x3f79b9=_0x27cb2a;if(_0xf2ec6b)_0xd95113['id']=_0xf2ec6b;else try{const _0x28da66=new URL(_0xd95113['id']);let _0x250264=_0x28da66['host'][_0x3f79b9(0x16c)]('.')[_0x3f79b9(0x166)]();_0xd95113['id']=_0x250264[_0x3f79b9(0x178)]('.');}catch(_0x1094c7){throw new Error('id\x20is\x20not\x20a\x20valid\x20url');}}function configStartUrl(_0x5f4203,_0x4ec523,_0x411f5d,_0x243e2d){const _0x3adb48=_0x27cb2a;var _0x3c61e0;let _0x9cb71d=(_0x3c61e0=_0x5f4203['start_url'])!==null&&_0x3c61e0!==void 0x0?_0x3c61e0:'/';const _0x206571=(0x0,validate_1[_0x3adb48(0x13c)])(_0x9cb71d),_0x42debd=_0x4ec523[_0x3adb48(0x138)]>0x0;if(_0x42debd){const _0x41be69=(0x0,validate_1[_0x3adb48(0x13c)])(_0x4ec523);if(!_0x206571&&!_0x41be69){const _0xb65c29=(0x0,path_1['resolve'])('./static-web'),_0x350736=(0x0,path_1[_0x3adb48(0x167)])(_0xb65c29,_0x4ec523,_0x9cb71d),_0x273a16=(0x0,path_1['normalize'])(_0x350736),_0x594689=(0x0,path_1[_0x3adb48(0x178)])(_0xb65c29,_0x273a16);_0x9cb71d=(0x0,path_1[_0x3adb48(0x145)])(process['cwd'](),_0x594689)[_0x3adb48(0x13e)](/^(\.\.\/)+/,'./')[_0x3adb48(0x13e)](/\/$/,'');}else{if(_0x206571&&!_0x41be69){const _0x1b130b=new URL(_0x9cb71d),_0x26e31d=_0x1b130b['pathname']+_0x1b130b['search']+_0x1b130b['hash'];let _0x503b13=new URL(_0x4ec523,_0x1b130b[_0x3adb48(0x13d)]);_0x9cb71d=new URL(_0x26e31d,_0x503b13)[_0x3adb48(0x14d)];}else{if(!_0x206571&&_0x41be69){if(_0x9cb71d[_0x3adb48(0x184)]('/')){const _0x3a415e=new URL(_0x4ec523);_0x9cb71d=_0x3a415e[_0x3adb48(0x13d)]+(0x0,path_1['join'])(_0x3a415e[_0x3adb48(0x150)],_0x9cb71d);}else _0x9cb71d=new URL(_0x9cb71d,_0x4ec523)[_0x3adb48(0x14d)];}else{if(_0x206571&&_0x41be69){const _0x41ec1f=new URL(_0x9cb71d),_0x56309c=new URL(_0x4ec523),_0x55bac9=_0x41ec1f[_0x3adb48(0x150)]+_0x41ec1f[_0x3adb48(0x17a)]+_0x41ec1f[_0x3adb48(0x180)];_0x9cb71d=new URL(_0x55bac9,_0x56309c[_0x3adb48(0x13d)]+_0x56309c[_0x3adb48(0x150)])[_0x3adb48(0x14d)];}}}}}else{if(_0x243e2d){const _0x5d70bc=new URL(_0x411f5d);if(!_0x206571){const _0x5d5bb7=new URL(_0x9cb71d,_0x5d70bc[_0x3adb48(0x13d)]);_0x9cb71d=_0x5d5bb7['href'];}else{const _0x55feb0=new URL(_0x9cb71d);_0x9cb71d=_0x5d70bc['origin']+_0x55feb0[_0x3adb48(0x150)]+_0x55feb0[_0x3adb48(0x17a)]+_0x55feb0[_0x3adb48(0x180)];}}else{if(!_0x206571){const _0x122850=(0x0,path_1[_0x3adb48(0x167)])(_0x3adb48(0x164)),_0x20d19c=(0x0,path_1['resolve'])(_0x122850,_0x9cb71d),_0x88b77e=(0x0,path_1[_0x3adb48(0x161)])(_0x20d19c),_0x310744=(0x0,path_1[_0x3adb48(0x178)])(_0x122850,_0x88b77e);_0x9cb71d=(0x0,path_1[_0x3adb48(0x145)])(process['cwd'](),_0x310744)[_0x3adb48(0x13e)](/^(\.\.\/)+/,'./')[_0x3adb48(0x13e)](/\/$/,'');}}}return _0x9cb71d;}function configScope(_0x58733f){const _0x57203b=_0x27cb2a;var _0x49cee7;let _0x5126b9=(_0x49cee7=_0x58733f[_0x57203b(0x172)])!==null&&_0x49cee7!==void 0x0?_0x49cee7:'/';const _0x2b1933=(0x0,validate_1['validateURL'])(_0x58733f[_0x57203b(0x14c)]),_0x1b07f3=(0x0,validate_1['validateURL'])(_0x5126b9);if(_0x2b1933&&_0x1b07f3){const _0xb7fb5d=new URL(_0x5126b9),_0x2752d6=new URL(_0x58733f[_0x57203b(0x14c)]);(_0xb7fb5d[_0x57203b(0x14a)]!==_0x2752d6[_0x57203b(0x14a)]||_0x58733f['start_url'][_0x57203b(0x179)](_0x5126b9)!==0x0)&&(_0x5126b9=(0x0,utils_1[_0x57203b(0x151)])(_0x58733f[_0x57203b(0x14c)]));}else{if(_0x2b1933&&!_0x1b07f3)_0x5126b9=new URL(_0x5126b9,_0x58733f['start_url'])[_0x57203b(0x14d)];else{if(!_0x2b1933&&_0x1b07f3){const _0x365288=_0x58733f[_0x57203b(0x14c)][_0x57203b(0x13e)](/\/[^\/]+$/,'');_0x5126b9=(0x0,path_1[_0x57203b(0x161)])(_0x365288+'/');}else _0x5126b9=(0x0,path_1[_0x57203b(0x178)])((0x0,utils_1[_0x57203b(0x151)])(_0x58733f[_0x57203b(0x14c)]),_0x5126b9);}}_0x58733f['scope']=_0x5126b9;}function _0x4dab(_0x5c7fb3,_0xc754be){const _0x9c3630=_0x9c36();return _0x4dab=function(_0x4dabab,_0x4f5c0d){_0x4dabab=_0x4dabab-0x134;let _0xbb80c0=_0x9c3630[_0x4dabab];return _0xbb80c0;},_0x4dab(_0x5c7fb3,_0xc754be);}function configDisplay(_0x2459c7){const _0x2bbd72=_0x27cb2a;let _0x490677=_0x2459c7[_0x2bbd72(0x169)];const _0x586ac4=[_0x2bbd72(0x171),'standalone',_0x2bbd72(0x16f)];!_0x586ac4['includes'](_0x490677)&&(_0x490677=_0x2bbd72(0x17e));if(_0x2459c7[_0x2bbd72(0x168)]&&_0x2459c7[_0x2bbd72(0x168)][_0x2bbd72(0x138)]>0x0){const _0x5f026c=_0x2459c7[_0x2bbd72(0x168)][_0x2bbd72(0x141)]((_0x387752,_0x80bcbc)=>({'mode':_0x387752,'index':_0x80bcbc}))[_0x2bbd72(0x13a)](({mode:_0x5211c0})=>_0x586ac4[_0x2bbd72(0x174)](_0x5211c0))[_0x2bbd72(0x143)]((_0x1c36f1,_0x142893)=>_0x1c36f1[_0x2bbd72(0x14b)]-_0x142893[_0x2bbd72(0x14b)]);_0x5f026c[_0x2bbd72(0x138)]>0x0&&(_0x490677=_0x5f026c[0x0][_0x2bbd72(0x186)]);}_0x2459c7[_0x2bbd72(0x169)]=_0x490677;}function configMainScene(_0x120d46){const _0x5814fc=_0x27cb2a;var _0x2e8b51,_0x2e4c69;const _0x2d3e64=['automatic','contentMinSize',_0x5814fc(0x147)];let _0x463413={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0x120d46[_0x5814fc(0x15b)]){if(typeof _0x120d46[_0x5814fc(0x15b)]===_0x5814fc(0x17d))_0x463413['defaultSize'][_0x5814fc(0x182)]=Number((_0x2e8b51=_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x142)])===null||_0x2e8b51===void 0x0?void 0x0:_0x2e8b51[_0x5814fc(0x182)])>0x0?_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x142)][_0x5814fc(0x182)]:0x500,_0x463413[_0x5814fc(0x137)][_0x5814fc(0x15c)]=Number((_0x2e4c69=_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x142)])===null||_0x2e4c69===void 0x0?void 0x0:_0x2e4c69[_0x5814fc(0x15c)])>0x0?_0x120d46[_0x5814fc(0x15b)]['default_size'][_0x5814fc(0x15c)]:0x500,_0x463413['resizability']=_0x2d3e64['includes'](_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x173)])?_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x173)]:_0x5814fc(0x155),_0x120d46[_0x5814fc(0x13f)]=_0x463413;else typeof _0x120d46[_0x5814fc(0x15b)]===_0x5814fc(0x15d)&&(_0x120d46[_0x5814fc(0x13f)]=_0x5814fc(0x165));}}function configDeeplink(_0x3983c0){const _0x239a5c=_0x27cb2a;if(_0x3983c0[_0x239a5c(0x185)]&&_0x3983c0[_0x239a5c(0x185)][_0x239a5c(0x138)]>0x0)for(var _0xc9f3f=0x0;_0xc9f3f<_0x3983c0[_0x239a5c(0x185)]['length'];_0xc9f3f++){const _0x2b2d27=_0x3983c0[_0x239a5c(0x185)][_0xc9f3f];if(_0x2b2d27[_0x239a5c(0x15f)]&&(exports[_0x239a5c(0x158)][_0x239a5c(0x174)](_0x2b2d27[_0x239a5c(0x15f)])||_0x2b2d27[_0x239a5c(0x15f)][_0x239a5c(0x179)](_0x239a5c(0x175))===0x0)){if(!((0x0,validate_1['validateURL'])(_0x2b2d27[_0x239a5c(0x148)])&&_0x2b2d27[_0x239a5c(0x148)]['indexOf'](_0x3983c0[_0x239a5c(0x172)])<0x0))continue;}_0x3983c0[_0x239a5c(0x185)]['splice'](_0xc9f3f,0x1),_0xc9f3f--;}}function _0x9c36(){const _0x833127=['length','news','filter','bitcoin','validateURL','origin','replace','mainScene','geo','map','default_size','sort','mms','relative','urn','contentSize','url','wtai','host','index','start_url','href','ssh','754080JKFlzP','pathname','parseRouter','matrix','magnet','./validate','automatic','2743668enWHWM','sip','safelist','xmpp','779774BBPSlJ','xr_main_scene','height','string','ftps','protocol','configScope','normalize','3915351hKyTNd','ftp','./static-web','dynamic','reverse','resolve','display_override','display','mailto','nntp','split','1305028Dqhmgx','sms','fullscreen','__esModule','minimal-ui','scope','resizability','includes','web+','configDisplay','5yTuPxW','join','indexOf','search','310102koFdkA','openpgp4fpr','object','standalone','configStartUrl','hash','../utils/utils','width','8kOLraM','startsWith','protocol_handlers','mode','1685530AzNIxF','ircs','smsto','defaultSize'];_0x9c36=function(){return _0x833127;};return _0x9c36();}exports[_0x27cb2a(0x158)]=[_0x27cb2a(0x13b),_0x27cb2a(0x163),_0x27cb2a(0x15e),_0x27cb2a(0x140),'im','irc',_0x27cb2a(0x135),_0x27cb2a(0x153),_0x27cb2a(0x16a),_0x27cb2a(0x152),_0x27cb2a(0x144),_0x27cb2a(0x139),_0x27cb2a(0x16b),_0x27cb2a(0x17c),'sftp',_0x27cb2a(0x157),_0x27cb2a(0x16e),_0x27cb2a(0x136),_0x27cb2a(0x14e),'tel',_0x27cb2a(0x146),'webcal',_0x27cb2a(0x149),_0x27cb2a(0x159)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4aaf92=_0x37fc;(function(_0x47a100,_0x20425a){const _0x5c452f=_0x37fc,_0x410d1b=_0x47a100();while(!![]){try{const _0x457854=parseInt(_0x5c452f(0x1cd))/0x1+parseInt(_0x5c452f(0x1be))/0x2+parseInt(_0x5c452f(0x1b4))/0x3*(parseInt(_0x5c452f(0x1bd))/0x4)+-parseInt(_0x5c452f(0x1b0))/0x5+-parseInt(_0x5c452f(0x1b7))/0x6*(-parseInt(_0x5c452f(0x1c5))/0x7)+parseInt(_0x5c452f(0x1cb))/0x8+-parseInt(_0x5c452f(0x1d5))/0x9*(parseInt(_0x5c452f(0x1bf))/0xa);if(_0x457854===_0x20425a)break;else _0x410d1b['push'](_0x410d1b['shift']());}catch(_0x111375){_0x410d1b['push'](_0x410d1b['shift']());}}}(_0x587e,0x819d6));Object[_0x4aaf92(0x1d0)](exports,'__esModule',{'value':!![]}),exports[_0x4aaf92(0x1b2)]=void 0x0;function _0x587e(){const _0x38f03a=['useDefaultManifestJson','defineProperty','start_url','configMainScene','configScope','validate','117uQxYqU','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','existsSync','defaultManifestJson','./config','join','DisplayModes','manifest-url','bundle-id','public/manifest.webmanifest','standalone','4694140vkWiJT','loadJsonFromDisk','PWAGenerator','public/manifest.json','132JeLUmG','log','../resource/load','6PZiKjh','base','checkStartUrl','check\x20manifest.json:\x20ok','configStartUrl','Cli','19012qsbUtP','1186326xxShiP','188240nQpoVf','configId','com.webspatial.test','json','config','loadJsonFromNet','975058haLztT','configDisplay','../Cli','manifest','generator','cwd','6147776TGzUSO','reset\x20manifest.json:\x20ok','4381PlrodO','warn'];_0x587e=function(){return _0x38f03a;};return _0x587e();}const path_1=require('path'),config_1=require(_0x4aaf92(0x1d9)),load_1=require(_0x4aaf92(0x1b6)),validate_1=require('./validate'),fs=require('fs'),Cli_1=require(_0x4aaf92(0x1c7));class PWAGenerator{static async[_0x4aaf92(0x1c9)](_0x294ef1,_0x4c618b=![]){const _0x9d9f7=_0x4aaf92;let _0x3a2960=await this[_0x9d9f7(0x1d4)](_0x294ef1,_0x4c618b);return console['log'](_0x9d9f7(0x1ba)),await this[_0x9d9f7(0x1c3)](_0x3a2960,_0x294ef1,_0x4c618b),console[_0x9d9f7(0x1b5)](_0x9d9f7(0x1cc)),_0x3a2960;}static async[_0x4aaf92(0x1d4)](_0x191ea4,_0x3b3ee0=![]){const _0xf6b0e1=_0x4aaf92;var _0x58cc98,_0x3cc1ea;let _0x3176d5={},_0x1a400b='',_0x265cea=![],_0x23f25d=![];if(_0x191ea4[_0xf6b0e1(0x1dc)])_0x1a400b=_0x191ea4[_0xf6b0e1(0x1dc)],_0x265cea=!![],_0x3176d5=await(0x0,load_1[_0xf6b0e1(0x1c4)])(_0x191ea4[_0xf6b0e1(0x1dc)]);else{_0x191ea4[_0xf6b0e1(0x1c8)]?_0x1a400b=(0x0,path_1['join'])(process['cwd'](),_0x191ea4[_0xf6b0e1(0x1c8)]):(_0x1a400b=(0x0,path_1[_0xf6b0e1(0x1da)])(process[_0xf6b0e1(0x1ca)](),_0xf6b0e1(0x1b3)),!fs[_0xf6b0e1(0x1d7)](_0x1a400b)&&(_0x1a400b=(0x0,path_1['join'])(process[_0xf6b0e1(0x1ca)](),_0xf6b0e1(0x1de))));if(!fs[_0xf6b0e1(0x1d7)](_0x1a400b)){if(_0x3b3ee0)_0x23f25d=!![],Cli_1[_0xf6b0e1(0x1bc)][_0xf6b0e1(0x1b5)][_0xf6b0e1(0x1ce)](_0xf6b0e1(0x1d6));else throw new Error('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found');}_0x3176d5=_0x23f25d?this[_0xf6b0e1(0x1d8)]:await(0x0,load_1[_0xf6b0e1(0x1b1)])(_0x1a400b),this[_0xf6b0e1(0x1cf)]=_0x23f25d;}(0x0,validate_1['checkManifestJson'])(_0x3176d5,_0x3b3ee0);let _0x257001=(0x0,config_1[_0xf6b0e1(0x1bb)])(_0x3176d5,(_0x58cc98=_0x191ea4[_0xf6b0e1(0x1b8)])!==null&&_0x58cc98!==void 0x0?_0x58cc98:'',_0x1a400b,_0x265cea);var _0x28f7af=(0x0,validate_1[_0xf6b0e1(0x1b9)])(_0x257001,_0x1a400b,_0x265cea,_0x3b3ee0);_0x3176d5[_0xf6b0e1(0x1d1)]=_0x257001;if(!_0x3b3ee0)(0x0,validate_1['checkId'])(_0x3176d5,(_0x3cc1ea=_0x191ea4['bundle-id'])!==null&&_0x3cc1ea!==void 0x0?_0x3cc1ea:'');return await(0x0,validate_1['checkIcons'])(_0x3176d5,_0x1a400b,_0x3b3ee0),{'json':_0x3176d5,'url':_0x1a400b,'fromNet':_0x28f7af};}static[_0x4aaf92(0x1c3)](_0x14cb3b,_0x3ec9df,_0x38f24e){const _0x4d7773=_0x4aaf92;var _0x282e6c;let _0x46c8f8=(_0x282e6c=_0x3ec9df[_0x4d7773(0x1dd)])!==null&&_0x282e6c!==void 0x0?_0x282e6c:'';_0x38f24e&&!_0x14cb3b[_0x4d7773(0x1c2)]['id']&&(_0x46c8f8=this[_0x4d7773(0x1d8)]['id']),(0x0,config_1[_0x4d7773(0x1c0)])(_0x14cb3b[_0x4d7773(0x1c2)],_0x46c8f8),(0x0,config_1[_0x4d7773(0x1d3)])(_0x14cb3b[_0x4d7773(0x1c2)]),(0x0,config_1[_0x4d7773(0x1c6)])(_0x14cb3b[_0x4d7773(0x1c2)]),(0x0,config_1['configDeeplink'])(_0x14cb3b[_0x4d7773(0x1c2)]),(0x0,config_1[_0x4d7773(0x1d2)])(_0x14cb3b[_0x4d7773(0x1c2)]);}}function _0x37fc(_0x3826f3,_0x1c5e18){const _0x587e04=_0x587e();return _0x37fc=function(_0x37fc70,_0xe1a94e){_0x37fc70=_0x37fc70-0x1af;let _0x3e32c4=_0x587e04[_0x37fc70];return _0x3e32c4;},_0x37fc(_0x3826f3,_0x1c5e18);}exports[_0x4aaf92(0x1b2)]=PWAGenerator,PWAGenerator[_0x4aaf92(0x1db)]=[_0x4aaf92(0x1af),'minimal-ui'],PWAGenerator[_0x4aaf92(0x1d8)]={'id':_0x4aaf92(0x1c1),'name':'WebSpatialTest','display':'minimal-ui','start_url':'/','scope':'/'},PWAGenerator['useDefaultManifestJson']=![];
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x10346b=_0x5f46;(function(_0x50f713,_0x25a0ae){const _0x513690=_0x5f46,_0x5bfce4=_0x50f713();while(!![]){try{const _0x3c57dc=-parseInt(_0x513690(0x144))/0x1+-parseInt(_0x513690(0x132))/0x2+-parseInt(_0x513690(0x128))/0x3+parseInt(_0x513690(0x15f))/0x4+-parseInt(_0x513690(0x13f))/0x5*(-parseInt(_0x513690(0x141))/0x6)+-parseInt(_0x513690(0x13c))/0x7*(parseInt(_0x513690(0x15b))/0x8)+parseInt(_0x513690(0x12e))/0x9*(parseInt(_0x513690(0x13d))/0xa);if(_0x3c57dc===_0x25a0ae)break;else _0x5bfce4['push'](_0x5bfce4['shift']());}catch(_0x15a2d6){_0x5bfce4['push'](_0x5bfce4['shift']());}}}(_0x2fcd,0xe346b));Object[_0x10346b(0x160)](exports,'__esModule',{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x10346b(0x149)]=checkStartUrl,exports['checkIcons']=checkIcons,exports[_0x10346b(0x150)]=checkId,exports[_0x10346b(0x155)]=validateBundleId,exports['validateURL']=validateURL;const path_1=require(_0x10346b(0x12d)),CustomError_1=require(_0x10346b(0x14d)),utils_1=require(_0x10346b(0x14f)),imageHelper_1=require(_0x10346b(0x159)),load_1=require(_0x10346b(0x14c)),Cli_1=require(_0x10346b(0x12f));function checkManifestJson(_0x1f4678,_0x11359f=![]){const _0x5cfce3=_0x10346b;var _0x5afc87;const _0xe2bb99=[];!_0x1f4678[_0x5cfce3(0x131)]&&!_0x1f4678[_0x5cfce3(0x134)]&&!_0x11359f&&_0xe2bb99['push']({'code':0xbbe,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x5afc87=_0x1f4678[_0x5cfce3(0x146)])===null||_0x5afc87===void 0x0?void 0x0:_0x5afc87['length'])&&!_0x11359f&&_0xe2bb99[_0x5cfce3(0x127)]({'code':0xbbf,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x1f4678[_0x5cfce3(0x154)]&&!_0x11359f&&_0xe2bb99[_0x5cfce3(0x127)]({'code':0xbc0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','message_staring_params':{}});if(_0xe2bb99[_0x5cfce3(0x147)])throw new CustomError_1['CustomError'](_0xe2bb99);}function _0x5f46(_0x3b5c46,_0x223c42){const _0x2fcdee=_0x2fcd();return _0x5f46=function(_0x5f462b,_0x484d38){_0x5f462b=_0x5f462b-0x127;let _0x547812=_0x2fcdee[_0x5f462b];return _0x547812;},_0x5f46(_0x3b5c46,_0x223c42);}function checkStartUrl(_0xdc5a73,_0x210b8e,_0x484dec,_0x3e3f12=![]){const _0x460cba=_0x10346b;var _0x460999=![];if(_0x3e3f12)return _0xdc5a73['startsWith'](_0x460cba(0x13e))||_0xdc5a73[_0x460cba(0x13b)]('http://');if(_0x484dec){if(_0xdc5a73[_0x460cba(0x13b)](_0x460cba(0x13e))){const _0x1f71bc=new URL(_0xdc5a73),_0x82b58a=new URL(_0x210b8e);if(_0x1f71bc[_0x460cba(0x136)]!==_0x82b58a['host'])throw new CustomError_1[(_0x460cba(0x138))]({'code':0xfa0,'message':_0x460cba(0x130),'message_staring_params':{}});}else{if(_0xdc5a73[_0x460cba(0x13b)]('http://'))throw new CustomError_1[(_0x460cba(0x138))]({'code':0xfa0,'message':_0x460cba(0x133),'message_staring_params':{}});}}else{if(_0xdc5a73[_0x460cba(0x13b)](_0x460cba(0x13e))||_0xdc5a73[_0x460cba(0x13b)](_0x460cba(0x12c)))throw new CustomError_1[(_0x460cba(0x138))]({'code':0xfa0,'message':_0x460cba(0x14a),'message_staring_params':{}});}return _0x460999;}async function checkIcons(_0x543ae5,_0x1fa4e9,_0x39c35d=![]){const _0x2bd417=_0x10346b;var _0x49611a,_0x1bdca8;if(!((_0x49611a=_0x543ae5[_0x2bd417(0x146)])===null||_0x49611a===void 0x0?void 0x0:_0x49611a['length'])&&_0x39c35d){_0x543ae5[_0x2bd417(0x146)]=[{'src':(0x0,path_1['join'])(__dirname,_0x2bd417(0x12b)),'sizes':_0x2bd417(0x14e),'purpose':_0x2bd417(0x156)}],Cli_1[_0x2bd417(0x157)]['log'][_0x2bd417(0x135)](_0x2bd417(0x12a));return;}const _0x18a6f8=(0x0,utils_1[_0x2bd417(0x13a)])(_0x1fa4e9);let _0x9c35ed,_0x4494a1,_0x5cbce7,_0xacadfc=0x0;for(var _0x267e13=0x0;_0x267e13<_0x543ae5['icons']['length'];_0x267e13++){const _0x316bb3=_0x543ae5[_0x2bd417(0x146)][_0x267e13];let _0x22740f=((_0x1bdca8=_0x316bb3['purpose'])===null||_0x1bdca8===void 0x0?void 0x0:_0x1bdca8[_0x2bd417(0x15e)]('maskable'))>=0x0;if(!_0x22740f)continue;let _0x5d6c2d=![],_0x156f2d=_0x316bb3[_0x2bd417(0x145)],_0x59bdec,_0x1271bc=0x0;!validateURL(_0x156f2d)&&(_0x156f2d=(0x0,path_1[_0x2bd417(0x151)])(_0x18a6f8,_0x156f2d));if(_0x316bb3[_0x2bd417(0x139)]){const _0x11ee38=_0x316bb3[_0x2bd417(0x139)]['split']('\x20');_0x11ee38['forEach'](_0x80b443=>{const _0x1d3ba2=_0x2bd417;let _0x5d926=_0x80b443[_0x1d3ba2(0x129)]('x');Number(_0x5d926[0x0])>=0x400&&Number(_0x5d926[0x1])>=0x400&&(_0x5d6c2d=!![],Number(_0x5d926[0x0])>_0x1271bc&&(_0x1271bc=Number(_0x5d926[0x0])));});}else _0x59bdec=!_0x156f2d[_0x2bd417(0x13b)]('http')?await(0x0,load_1['loadImageFromDisk'])(_0x156f2d):await(0x0,load_1['loadImageFromNet'])(_0x156f2d),_0x59bdec[_0x2bd417(0x142)]()>=0x400&&_0x59bdec[_0x2bd417(0x14b)]()>=0x400&&(_0x5d6c2d=!![],_0x59bdec['getWidth']()>_0x1271bc&&(_0x1271bc=_0x59bdec[_0x2bd417(0x142)]()));_0x5d6c2d&&_0x22740f&&(_0x1271bc>_0xacadfc&&(_0xacadfc=_0x1271bc,_0x9c35ed=_0x59bdec,_0x4494a1=_0x156f2d,_0x5cbce7=_0x316bb3[_0x2bd417(0x153)]));}if(_0xacadfc===0x0){if(_0x39c35d){_0x543ae5['icons']=[{'src':(0x0,path_1[_0x2bd417(0x151)])(__dirname,'../../assets/icon-default.png'),'sizes':_0x2bd417(0x14e),'purpose':_0x2bd417(0x156)}],Cli_1[_0x2bd417(0x157)][_0x2bd417(0x15d)][_0x2bd417(0x135)]('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable'),Cli_1[_0x2bd417(0x157)]['log'][_0x2bd417(0x135)](_0x2bd417(0x15a));return;}throw new CustomError_1[(_0x2bd417(0x138))]({'code':0xfa0,'message':_0x2bd417(0x15c),'message_staring_params':{}});}else _0x4494a1&&(_0x9c35ed=!_0x4494a1[_0x2bd417(0x13b)](_0x2bd417(0x137))?await(0x0,load_1[_0x2bd417(0x143)])(_0x4494a1):await(0x0,load_1['loadImageFromNet'])(_0x4494a1));if(_0x9c35ed&&!imageHelper_1[_0x2bd417(0x158)][_0x2bd417(0x161)](_0x9c35ed)){if(_0x39c35d){Cli_1[_0x2bd417(0x157)]['log'][_0x2bd417(0x135)]('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable');return;}throw new CustomError_1[(_0x2bd417(0x138))]({'code':0xfa0,'message':_0x2bd417(0x140),'message_staring_params':{}});}_0x543ae5[_0x2bd417(0x146)]=[{'src':_0x4494a1,'sizes':_0xacadfc+'x'+_0xacadfc,'purpose':_0x5cbce7}];}function checkId(_0xbb4513,_0x37097f){const _0x330c71=_0x10346b;if(_0x37097f){if(!validateBundleId(_0x37097f))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x330c71(0x148),'message_staring_params':{}});return;}!_0xbb4513['id']&&(_0xbb4513['id']=_0xbb4513[_0x330c71(0x154)]);if(!validateURL(_0xbb4513['id'])&&!_0x37097f)throw new CustomError_1[(_0x330c71(0x138))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','message_staring_params':{}});}function validateBundleId(_0x22abae){const _0x975e2f=_0x10346b,_0x58cc76=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x58cc76[_0x975e2f(0x152)](_0x22abae);}function validateURL(_0x107d7a){try{return new URL(_0x107d7a),!![];}catch(_0x1b0763){return![];}}function _0x2fcd(){const _0x1495f2=['http','CustomError','sizes','parseRouter','startsWith','2849469EKZJzj','1126720BiQduP','https://','2665185zPKJeu','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','6SZQDcJ','getWidth','loadImageFromDisk','675902QtMwyD','src','icons','length','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','checkStartUrl','Local\x20manifest\x20cannot\x20package\x20network\x20project','getHeight','../resource/load','../utils/CustomError','1024x1024','../utils/utils','checkId','join','test','purpose','start_url','validateBundleId','maskable','Cli','ImageHelper','../resource/imageHelper','icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode','8WTfpAC','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','log','indexOf','6477452PhFLpv','defineProperty','isFullyOpaque','push','2132100UsFiVs','split','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','../../assets/icon-default.png','http://','path','99TLEBma','../Cli','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','name','1334400WmsDOy','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','short_name','warn','host'];_0x2fcd=function(){return _0x1495f2;};return _0x2fcd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x356e63=_0x37d2;(function(_0x1e3fd2,_0x52e361){const _0x207636=_0x37d2,_0x487ed6=_0x1e3fd2();while(!![]){try{const _0x4da4d0=-parseInt(_0x207636(0xe6))/0x1+parseInt(_0x207636(0xdf))/0x2+parseInt(_0x207636(0xe2))/0x3*(parseInt(_0x207636(0xe3))/0x4)+-parseInt(_0x207636(0xf2))/0x5+parseInt(_0x207636(0xf0))/0x6*(-parseInt(_0x207636(0xf3))/0x7)+-parseInt(_0x207636(0xe5))/0x8*(-parseInt(_0x207636(0xeb))/0x9)+parseInt(_0x207636(0xef))/0xa*(parseInt(_0x207636(0xe4))/0xb);if(_0x4da4d0===_0x52e361)break;else _0x487ed6['push'](_0x487ed6['shift']());}catch(_0x31e23c){_0x487ed6['push'](_0x487ed6['shift']());}}}(_0x240c,0xe3910));Object[_0x356e63(0xed)](exports,_0x356e63(0xe9),{'value':!![]}),exports[_0x356e63(0xee)]=copyDir,exports[_0x356e63(0xe7)]=clearDir;const fs=require('fs');function copyDir(_0x256493,_0x57ff8d){const _0x2aea30=_0x356e63,_0x22dcdd=fs[_0x2aea30(0xec)](_0x256493);_0x22dcdd['forEach'](_0x3936da=>{const _0x3eaf02=_0x2aea30,_0x45f332=_0x256493+'/'+_0x3936da,_0x22a11a=_0x57ff8d+'/'+_0x3936da,_0x3a0a6a=fs[_0x3eaf02(0xea)](_0x45f332);if(_0x3a0a6a[_0x3eaf02(0xe0)]())try{fs['writeFileSync'](_0x22a11a,fs[_0x3eaf02(0xf5)](_0x45f332));}catch(_0x5baabf){console['log'](_0x5baabf);}else _0x3a0a6a[_0x3eaf02(0xf1)]()&&(!fs[_0x3eaf02(0xf7)](_0x22a11a)&&fs[_0x3eaf02(0xe8)](_0x22a11a,{'recursive':!![]}),copyDir(_0x45f332,_0x22a11a));});}function _0x37d2(_0x242cf8,_0x54c64b){const _0x240cf6=_0x240c();return _0x37d2=function(_0x37d254,_0x4a0af4){_0x37d254=_0x37d254-0xdf;let _0x5068e4=_0x240cf6[_0x37d254];return _0x5068e4;},_0x37d2(_0x242cf8,_0x54c64b);}function _0x240c(){const _0x4942d5=['5071wBcTZn','4511112EFjplX','311613XUlBHo','clearDir','mkdirSync','__esModule','statSync','9zMRqoh','readdirSync','defineProperty','copyDir','8640yTiTAY','114EWBezA','isDirectory','2074330LYaWIY','601461yQBvJd','unlinkSync','readFileSync','log','existsSync','1065430uZYbLy','isFile','forEach','316980IAjBIA','68qTvcGl'];_0x240c=function(){return _0x4942d5;};return _0x240c();}function clearDir(_0x11a9da){const _0x2d6cce=_0x356e63,_0x54acc4=fs[_0x2d6cce(0xec)](_0x11a9da);_0x54acc4[_0x2d6cce(0xe1)](_0x4e43f5=>{const _0x21a0c7=_0x2d6cce,_0x2e038d=_0x11a9da+'/'+_0x4e43f5,_0x1ef8a4=fs['statSync'](_0x2e038d);if(_0x1ef8a4[_0x21a0c7(0xe0)]())try{fs[_0x21a0c7(0xf4)](_0x2e038d);}catch(_0xd9c357){console[_0x21a0c7(0xf6)](_0xd9c357);}else _0x1ef8a4[_0x21a0c7(0xf1)]()&&clearDir(_0x2e038d);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3068c3=_0x4b5c;function _0x13c3(){const _0x6677d=['png','9MzDAMT','1633060UIrOJY','toFormat','isFullyOpaque','ImageHelper','createImg','defineProperty','svg2img','__esModule','jimp','1bNFpFE','2196TkdUFp','sharp','bitmap','29244tWZwIr','toBuffer','render','getHeight','1365SFEzUt','270968DIEVhA','asPng','161nIhNsQ','5298293MWrUuX','width','data','webp2PngBuffer','972145dcPqoG','823018VoIGef'];_0x13c3=function(){return _0x6677d;};return _0x13c3();}function _0x4b5c(_0x1591cb,_0xed703e){const _0x13c320=_0x13c3();return _0x4b5c=function(_0x4b5cfe,_0x55757b){_0x4b5cfe=_0x4b5cfe-0x13f;let _0x56158a=_0x13c320[_0x4b5cfe];return _0x56158a;},_0x4b5c(_0x1591cb,_0xed703e);}(function(_0x4558db,_0x27c0b1){const _0x5b5ba8=_0x4b5c,_0x5e2182=_0x4558db();while(!![]){try{const _0x131b01=-parseInt(_0x5b5ba8(0x159))/0x1*(-parseInt(_0x5b5ba8(0x14d))/0x2)+parseInt(_0x5b5ba8(0x144))/0x3*(-parseInt(_0x5b5ba8(0x15a))/0x4)+-parseInt(_0x5b5ba8(0x14c))/0x5+-parseInt(_0x5b5ba8(0x140))/0x6*(-parseInt(_0x5b5ba8(0x147))/0x7)+-parseInt(_0x5b5ba8(0x145))/0x8*(parseInt(_0x5b5ba8(0x14f))/0x9)+-parseInt(_0x5b5ba8(0x150))/0xa+parseInt(_0x5b5ba8(0x148))/0xb;if(_0x131b01===_0x27c0b1)break;else _0x5e2182['push'](_0x5e2182['shift']());}catch(_0x2d5a3d){_0x5e2182['push'](_0x5e2182['shift']());}}}(_0x13c3,0x58d61));Object[_0x3068c3(0x155)](exports,_0x3068c3(0x157),{'value':!![]}),exports[_0x3068c3(0x153)]=void 0x0;const Jimp=require(_0x3068c3(0x158)),sharp=require(_0x3068c3(0x15b)),resvg_js_1=require('@resvg/resvg-js');class ImageHelper{static[_0x3068c3(0x154)](_0x5c2190){return new Jimp(_0x5c2190,_0x5c2190,0x0);}static async[_0x3068c3(0x14b)](_0x3df4c2){const _0x941ad3=_0x3068c3;return await sharp(_0x3df4c2)[_0x941ad3(0x151)](_0x941ad3(0x14e))[_0x941ad3(0x141)]();}static async[_0x3068c3(0x156)](_0x1c617e){const _0x2c4129=_0x3068c3,_0x868004={'fitTo':{'mode':_0x2c4129(0x149),'value':0x400}},_0x3bc6da=new resvg_js_1['Resvg'](_0x1c617e,_0x868004),_0x3297a7=_0x3bc6da[_0x2c4129(0x142)](),_0x5e89b7=_0x3297a7[_0x2c4129(0x146)]();return _0x5e89b7;}static[_0x3068c3(0x152)](_0x3d1b9b){const _0x24b2db=_0x3068c3,_0x52fb5d=_0x3d1b9b['getWidth']()*_0x3d1b9b[_0x24b2db(0x143)]();for(var _0x302bd6=0x0;_0x302bd6<_0x52fb5d;_0x302bd6++){const _0xb99a2=_0x302bd6*0x4+0x3;if(_0x3d1b9b[_0x24b2db(0x13f)][_0x24b2db(0x14a)][_0xb99a2]<0xff)return![];}return!![];}}exports[_0x3068c3(0x153)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x53d32c=_0x499b;(function(_0x12c009,_0x33b0a5){const _0x166d3a=_0x499b,_0x66499c=_0x12c009();while(!![]){try{const _0x311128=parseInt(_0x166d3a(0x13d))/0x1+-parseInt(_0x166d3a(0x15a))/0x2+-parseInt(_0x166d3a(0x141))/0x3+parseInt(_0x166d3a(0x132))/0x4*(-parseInt(_0x166d3a(0x14c))/0x5)+-parseInt(_0x166d3a(0x130))/0x6+-parseInt(_0x166d3a(0x131))/0x7+parseInt(_0x166d3a(0x15e))/0x8*(parseInt(_0x166d3a(0x14d))/0x9);if(_0x311128===_0x33b0a5)break;else _0x66499c['push'](_0x66499c['shift']());}catch(_0x190178){_0x66499c['push'](_0x66499c['shift']());}}}(_0x2d55,0x8c5e1));Object[_0x53d32c(0x149)](exports,_0x53d32c(0x133),{'value':!![]}),exports[_0x53d32c(0x14f)]=exports[_0x53d32c(0x144)]=exports['BACK_APPICON_DIRECTORY']=exports['ASSET_DIRECTORY']=exports[_0x53d32c(0x142)]=exports['PROJECT_EXPORT_DIRECTORY']=exports[_0x53d32c(0x15b)]=exports[_0x53d32c(0x13a)]=void 0x0;const fs=require('fs'),path_1=require('path'),file_1=require('./file'),load_1=require('./load'),child_process_1=require(_0x53d32c(0x148));exports[_0x53d32c(0x13a)]='',exports[_0x53d32c(0x15b)]='',exports[_0x53d32c(0x154)]='',exports[_0x53d32c(0x142)]=_0x53d32c(0x155),exports[_0x53d32c(0x151)]=_0x53d32c(0x145),exports[_0x53d32c(0x139)]=exports['ASSET_DIRECTORY']+'/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset',exports[_0x53d32c(0x144)]=exports[_0x53d32c(0x151)]+_0x53d32c(0x13b);const supportPlatform=[_0x53d32c(0x156)];function _0x2d55(){const _0x4d4b6d=['731091QrLAej','cwd','cd\x20','checkPlatformPath','1676184tszVSM','WEB_PROJECT_DIRECTORY','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','MIDDLE_APPICON_DIRECTORY','web-spatial/Assets.xcassets',',\x20now\x20WebSpatial\x20only\x20support\x20','loadImageFromNet','child_process','defineProperty','./build','mkdirSync','3408055vRqbwc','43362PdrCMn','existsSync','ResourceManager','../../../node_modules/@webspatial/platform-','ASSET_DIRECTORY','includes','log','PROJECT_EXPORT_DIRECTORY','web-spatial/static-web','visionos','not\x20support\x20platform\x20','join','node_modules/@webspatial/platform-','1041482JUUWlh','PROJECT_BUILD_DIRECTORY','resize','moveProjectFrom','4128YPRepa','src','loadImageFromDisk','./export','3356826UgDbDe','2251781semXEY','4koAtaH','__esModule','icons','copyDir','execSync','startsWith','generateIcon','BACK_APPICON_DIRECTORY','PROJECT_DIRECTORY','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','json'];_0x2d55=function(){return _0x4d4b6d;};return _0x2d55();}function _0x499b(_0x52a6e4,_0x4ac0a8){const _0x2d5551=_0x2d55();return _0x499b=function(_0x499baf,_0x59930f){_0x499baf=_0x499baf-0x130;let _0x3d036e=_0x2d5551[_0x499baf];return _0x3d036e;},_0x499b(_0x52a6e4,_0x4ac0a8);}class ResourceManager{static async[_0x53d32c(0x15d)](_0x1ffa26){const _0x3fd277=_0x53d32c,_0x134c4a=(0x0,path_1[_0x3fd277(0x158)])(process[_0x3fd277(0x13e)](),_0x1ffa26),_0x518a93=(0x0,path_1[_0x3fd277(0x158)])(exports[_0x3fd277(0x13a)],exports[_0x3fd277(0x142)]);!fs['existsSync'](_0x518a93)?fs[_0x3fd277(0x14b)](_0x518a93,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0x518a93);try{(0x0,file_1[_0x3fd277(0x135)])(_0x134c4a,_0x518a93);}catch(_0x5e93ec){console[_0x3fd277(0x153)](_0x5e93ec);}}static async[_0x53d32c(0x138)](_0x1a3a8e){const _0x4734c2=_0x53d32c,_0xce351c=_0x1a3a8e[_0x4734c2(0x13c)],_0x4e8fc2=_0xce351c[_0x4734c2(0x134)][0x0][_0x4734c2(0x15f)],_0x40522b=!_0x4e8fc2[_0x4734c2(0x137)]('http')?await(0x0,load_1[_0x4734c2(0x160)])(_0x4e8fc2):await(0x0,load_1[_0x4734c2(0x147)])(_0x4e8fc2);return _0x40522b[_0x4734c2(0x15c)](0x400,0x400),_0x40522b;}static[_0x53d32c(0x140)](_0x4971ad){const _0x29e6ad=_0x53d32c,_0x1bb2b2=_0x4971ad!==null&&_0x4971ad!==void 0x0?_0x4971ad:supportPlatform[0x0];if(!supportPlatform[_0x29e6ad(0x152)](_0x1bb2b2))throw new Error(_0x29e6ad(0x157)+_0x1bb2b2+_0x29e6ad(0x146)+supportPlatform[_0x29e6ad(0x158)](','));let _0xe2e5f1=(0x0,path_1[_0x29e6ad(0x158)])(process[_0x29e6ad(0x13e)](),_0x29e6ad(0x159)+_0x1bb2b2);!fs['existsSync'](_0xe2e5f1)&&(_0xe2e5f1=(0x0,path_1[_0x29e6ad(0x158)])(__dirname,_0x29e6ad(0x150)+_0x1bb2b2));const _0x2af1dc=fs[_0x29e6ad(0x14e)](_0xe2e5f1);!_0x2af1dc&&(0x0,child_process_1[_0x29e6ad(0x136)])(_0x29e6ad(0x13f)+(0x0,path_1[_0x29e6ad(0x158)])(__dirname,'../../../')+_0x29e6ad(0x143)+_0x1bb2b2),exports[_0x29e6ad(0x13a)]=_0xe2e5f1,exports['PROJECT_BUILD_DIRECTORY']=(0x0,path_1[_0x29e6ad(0x158)])(exports['PROJECT_DIRECTORY'],_0x29e6ad(0x14a)),exports[_0x29e6ad(0x154)]=(0x0,path_1[_0x29e6ad(0x158)])(exports[_0x29e6ad(0x13a)],_0x29e6ad(0x161));}}exports[_0x53d32c(0x14f)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x314a6f=_0x5b5c;(function(_0x46796e,_0x4bca3c){const _0x2329bf=_0x5b5c,_0x473f1f=_0x46796e();while(!![]){try{const _0x2b70f7=-parseInt(_0x2329bf(0xb6))/0x1*(parseInt(_0x2329bf(0xd6))/0x2)+parseInt(_0x2329bf(0xd4))/0x3*(parseInt(_0x2329bf(0xba))/0x4)+-parseInt(_0x2329bf(0xdd))/0x5*(parseInt(_0x2329bf(0xc1))/0x6)+-parseInt(_0x2329bf(0xd3))/0x7+-parseInt(_0x2329bf(0xda))/0x8+-parseInt(_0x2329bf(0xbc))/0x9+-parseInt(_0x2329bf(0xd0))/0xa*(-parseInt(_0x2329bf(0xc6))/0xb);if(_0x2b70f7===_0x4bca3c)break;else _0x473f1f['push'](_0x473f1f['shift']());}catch(_0x5ec815){_0x473f1f['push'](_0x473f1f['shift']());}}}(_0x3f18,0x36d9b));Object[_0x314a6f(0xc0)](exports,'__esModule',{'value':!![]}),exports['loadJsonFromNet']=loadJsonFromNet,exports[_0x314a6f(0xad)]=loadJsonFromDisk,exports['loadImageFromNet']=loadImageFromNet,exports['loadImageFromDisk']=loadImageFromDisk,exports[_0x314a6f(0xc5)]=loadFileString;function _0x5b5c(_0x1b347a,_0x3077a0){const _0x3f1810=_0x3f18();return _0x5b5c=function(_0x5b5c6d,_0x314593){_0x5b5c6d=_0x5b5c6d-0xab;let _0x466605=_0x3f1810[_0x5b5c6d];return _0x466605;},_0x5b5c(_0x1b347a,_0x3077a0);}const fs=require('fs'),FetchUtils_1_1=require(_0x314a6f(0xdb)),CustomError_1=require(_0x314a6f(0xc3)),Jimp=require(_0x314a6f(0xb7)),imageHelper_1=require(_0x314a6f(0xdc));async function loadJsonFromNet(_0x390233){const _0x1bdc6c=_0x314a6f,_0x248179=await FetchUtils_1_1[_0x1bdc6c(0xae)][_0x1bdc6c(0xbf)](_0x390233,{'encoding':'binary'});if(_0x248179['status']!==0xc8)throw new CustomError_1[(_0x1bdc6c(0xc8))]({'code':0xbbc,'message':'Failed\x20to\x20download\x20Web\x20Manifest\x20'+_0x390233+'.'+('The\x20response\x20status\x20is\x20'+_0x248179[_0x1bdc6c(0xd7)]+_0x1bdc6c(0xc7)),'message_staring_params':{'web_manifest_url':_0x390233,'status':_0x248179[_0x1bdc6c(0xd7)]}});try{let _0x2948a9;return _0x248179[_0x1bdc6c(0xde)]?_0x2948a9=await _0x248179[_0x1bdc6c(0xde)]():[_0x1bdc6c(0xd1),'deflate','br'][_0x1bdc6c(0xb3)](_0x248179[_0x1bdc6c(0xb8)][_0x1bdc6c(0xcc)])?_0x2948a9=FetchUtils_1_1['fetchUtils'][_0x1bdc6c(0xbe)](Buffer['from'](_0x248179[_0x1bdc6c(0xb2)],_0x1bdc6c(0xbb)),_0x248179[_0x1bdc6c(0xb8)][_0x1bdc6c(0xcc)])[_0x1bdc6c(0xca)]():_0x2948a9=Buffer[_0x1bdc6c(0xb9)](_0x248179[_0x1bdc6c(0xb2)],_0x1bdc6c(0xbb))[_0x1bdc6c(0xca)](),JSON[_0x1bdc6c(0xc9)](_0x2948a9[_0x1bdc6c(0xc2)]());}catch(_0x3f9225){throw new CustomError_1[(_0x1bdc6c(0xc8))]({'code':0xbbd,'message':_0x1bdc6c(0xb5),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x241838){const _0x29b174=_0x314a6f,_0x282431=await loadFileString(_0x241838[_0x29b174(0xca)]());return JSON[_0x29b174(0xc9)](_0x282431);}async function loadImageFromNet(_0x28a5b2){const _0x1e63dc=_0x314a6f,_0x55f645=await FetchUtils_1_1[_0x1e63dc(0xae)][_0x1e63dc(0xbf)](_0x28a5b2,{'encoding':'binary'});if(_0x55f645[_0x1e63dc(0xd7)]!==0xc8)throw new CustomError_1['CustomError']({'code':0x7d2,'message':_0x1e63dc(0xaf)+_0x55f645['status'],'message_staring_params':{'icon_url':_0x28a5b2,'status':_0x55f645[_0x1e63dc(0xd7)]}});const _0xf91f=_0x55f645['headers'][_0x1e63dc(0xb1)]?_0x55f645[_0x1e63dc(0xb8)]['get'](_0x1e63dc(0xb0)):_0x55f645[_0x1e63dc(0xb8)]['content-type'];if(!(_0xf91f===null||_0xf91f===void 0x0?void 0x0:_0xf91f[_0x1e63dc(0xbd)](_0x1e63dc(0xac))))throw new CustomError_1[(_0x1e63dc(0xc8))]({'code':0x7d3,'message':'Received\x20icon\x20with\x20invalid\x20Content-Type.'+('\x20Responded\x20with\x20Content-Type\x20\x22'+_0xf91f+'\x22'),'message_staring_params':{'icon_url':_0x28a5b2,'contentType':_0xf91f}});let _0x43682a;_0x55f645[_0x1e63dc(0xce)]?_0x43682a=await _0x55f645[_0x1e63dc(0xce)]():[_0x1e63dc(0xd1),_0x1e63dc(0xab),'br'][_0x1e63dc(0xb3)](_0x55f645['headers']['content-encoding'])?_0x43682a=FetchUtils_1_1['fetchUtils'][_0x1e63dc(0xbe)](Buffer[_0x1e63dc(0xb9)](_0x55f645['data'],_0x1e63dc(0xbb)),_0x55f645['headers'][_0x1e63dc(0xcc)]):_0x43682a=Buffer[_0x1e63dc(0xb9)](_0x55f645[_0x1e63dc(0xb2)],'binary');if(_0xf91f[_0x1e63dc(0xbd)](_0x1e63dc(0xd9))){const _0xc9714b=new TextDecoder();try{_0x43682a=await imageHelper_1['ImageHelper'][_0x1e63dc(0xd2)](_0xc9714b[_0x1e63dc(0xcf)](_0x43682a));}catch(_0x555ccc){throw new CustomError_1['CustomError']({'code':0x7d4,'message':_0x1e63dc(0xc4)+_0x28a5b2+':\x20'+_0x555ccc,'message_staring_params':{'icon_url':_0x28a5b2,'error':_0x555ccc}});}}return _0xf91f['startsWith'](_0x1e63dc(0xd5))&&(_0x43682a=await imageHelper_1[_0x1e63dc(0xb4)][_0x1e63dc(0xcb)](_0x43682a)),await Jimp[_0x1e63dc(0xcd)](Buffer['from'](_0x43682a));}function _0x3f18(){const _0x723156=['ImageHelper','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','1XkSdlP','jimp','headers','from','64CLjczj','binary','936423jSiweF','startsWith','decompressResponseBuffer','fetch','defineProperty','6lIHAVI','trim','../utils/CustomError','Problem\x20reading\x20','loadFileString','13975126PdoFDv',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','CustomError','parse','toString','webp2PngBuffer','content-encoding','read','arrayBuffer','decode','10TYkjiP','gzip','svg2img','1279047rYkzfD','5784lCYHyt','image/webp','73090bFOIvR','status','promises','image/svg','3443712KzTvyp','../utils/FetchUtils-1','./imageHelper','1614350qRCZWw','text','deflate','image/','loadJsonFromDisk','fetchUtils','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','content-type','get','data','includes'];_0x3f18=function(){return _0x723156;};return _0x3f18();}async function loadImageFromDisk(_0x539522){const _0x5c723d=_0x314a6f;return await Jimp[_0x5c723d(0xcd)](_0x539522);}async function loadFileString(_0x3421b0){const _0x523d4e=_0x314a6f;let _0x5d7a7b=await fs[_0x523d4e(0xd8)]['readFile'](_0x3421b0[_0x523d4e(0xca)]());return _0x5d7a7b[_0x523d4e(0xca)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1c58d3=_0x345a;(function(_0x554e99,_0x32704b){var _0x464a96=_0x345a,_0x413e74=_0x554e99();while(!![]){try{var _0x130754=parseInt(_0x464a96(0x1c7))/0x1*(-parseInt(_0x464a96(0x1d6))/0x2)+parseInt(_0x464a96(0x1d0))/0x3+-parseInt(_0x464a96(0x1d4))/0x4*(parseInt(_0x464a96(0x1cd))/0x5)+parseInt(_0x464a96(0x1d2))/0x6*(-parseInt(_0x464a96(0x1d5))/0x7)+parseInt(_0x464a96(0x1c8))/0x8*(parseInt(_0x464a96(0x1cf))/0x9)+-parseInt(_0x464a96(0x1ce))/0xa*(-parseInt(_0x464a96(0x1ca))/0xb)+-parseInt(_0x464a96(0x1c9))/0xc*(-parseInt(_0x464a96(0x1cc))/0xd);if(_0x130754===_0x32704b)break;else _0x413e74['push'](_0x413e74['shift']());}catch(_0x1bd7d0){_0x413e74['push'](_0x413e74['shift']());}}}(_0x17cf,0x5a21e));function _0x345a(_0x330759,_0x57b57a){var _0x17cfc2=_0x17cf();return _0x345a=function(_0x345a43,_0x517d53){_0x345a43=_0x345a43-0x1c7;var _0x3cfe71=_0x17cfc2[_0x345a43];return _0x3cfe71;},_0x345a(_0x330759,_0x57b57a);}Object[_0x1c58d3(0x1d9)](exports,_0x1c58d3(0x1cb),{'value':!![]}),exports[_0x1c58d3(0x1d8)]=void 0x0;class CustomError extends Error{constructor(_0x28350f,_0x2746cc){var _0x34163e=_0x1c58d3;super(JSON[_0x34163e(0x1da)](_0x28350f)),this[_0x34163e(0x1d7)]=_0x28350f,this[_0x34163e(0x1d3)]=_0x2746cc||_0x34163e(0x1d1);}}exports[_0x1c58d3(0x1d8)]=CustomError;function _0x17cf(){var _0x2b324e=['CustomError','defineProperty','stringify','51919DZkyNf','124952BCdgEW','24YbRFRl','22hnMPRD','__esModule','2199613lUUeWo','503290FRDDWv','1519170gXUrLN','261wuWVDX','1434840Btmafm','info','36ugkplx','type','20PQeSgu','272678sGWvmE','18kFLeEi','customMessage'];_0x17cf=function(){return _0x2b324e;};return _0x17cf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x264519=_0x8197;(function(_0x582f47,_0x5a9088){const _0x3d58d0=_0x8197,_0x13b348=_0x582f47();while(!![]){try{const _0x382143=-parseInt(_0x3d58d0(0xaa))/0x1+-parseInt(_0x3d58d0(0x9c))/0x2+-parseInt(_0x3d58d0(0x9e))/0x3*(-parseInt(_0x3d58d0(0xa5))/0x4)+-parseInt(_0x3d58d0(0xa7))/0x5+-parseInt(_0x3d58d0(0xa3))/0x6+-parseInt(_0x3d58d0(0xab))/0x7*(parseInt(_0x3d58d0(0x9a))/0x8)+parseInt(_0x3d58d0(0xa2))/0x9;if(_0x382143===_0x5a9088)break;else _0x13b348['push'](_0x13b348['shift']());}catch(_0xc058b3){_0x13b348['push'](_0x13b348['shift']());}}}(_0x220b,0x5eba8));Object[_0x264519(0xac)](exports,_0x264519(0x9d),{'value':!![]}),exports[_0x264519(0x9b)]=void 0x0;class FetchUtils{constructor(){const _0x2e217f=_0x264519;this[_0x2e217f(0xa1)]=null,this[_0x2e217f(0xa8)]=null,this[_0x2e217f(0xa0)]=null,this[_0x2e217f(0xa6)]=null;}['setFetchEngine'](_0x9e7eac){const _0x219771=_0x264519;this[_0x219771(0xa1)]=_0x9e7eac;}[_0x264519(0xa9)](_0x34583b){this['fetch']=_0x34583b;}[_0x264519(0xa4)](_0x3204de){const _0x1f7499=_0x264519;this[_0x1f7499(0xa0)]=_0x3204de;}[_0x264519(0x9f)](_0x27b0d9){const _0x326ae9=_0x264519;this[_0x326ae9(0xa6)]=_0x27b0d9;}}function _0x220b(){const _0x125edf=['521038BcPHUB','__esModule','840564vexazM','setDecompressResponseBuffer','downloadFile','fetchEngine','10500210PXvKCA','376542IdVIyY','setDownloadFile','4ndIrww','decompressResponseBuffer','687225mkRctf','fetch','setFetch','556361mVfFHy','868nkpDaP','defineProperty','2696TBNZOg','fetchUtils'];_0x220b=function(){return _0x125edf;};return _0x220b();}function _0x8197(_0x340841,_0xff06d7){const _0x220bca=_0x220b();return _0x8197=function(_0x819767,_0x1b0fca){_0x819767=_0x819767-0x9a;let _0x40095e=_0x220bca[_0x819767];return _0x40095e;},_0x8197(_0x340841,_0xff06d7);}const fetchUtils=new FetchUtils();exports['fetchUtils']=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5bcda3=_0x5480;(function(_0x4577db,_0x46f921){var _0x4629a5=_0x5480,_0x3dc2a2=_0x4577db();while(!![]){try{var _0x542fd7=parseInt(_0x4629a5(0xe2))/0x1*(-parseInt(_0x4629a5(0xf0))/0x2)+parseInt(_0x4629a5(0xf5))/0x3*(-parseInt(_0x4629a5(0xed))/0x4)+-parseInt(_0x4629a5(0xe8))/0x5+parseInt(_0x4629a5(0xe5))/0x6+parseInt(_0x4629a5(0xf6))/0x7*(-parseInt(_0x4629a5(0xfa))/0x8)+parseInt(_0x4629a5(0xeb))/0x9*(-parseInt(_0x4629a5(0xfd))/0xa)+parseInt(_0x4629a5(0xe4))/0xb;if(_0x542fd7===_0x46f921)break;else _0x3dc2a2['push'](_0x3dc2a2['shift']());}catch(_0x2658d1){_0x3dc2a2['push'](_0x3dc2a2['shift']());}}}(_0x4518,0xefdcc));function _0x5480(_0x272679,_0x268a14){var _0x451850=_0x4518();return _0x5480=function(_0x54803f,_0x3066f3){_0x54803f=_0x54803f-0xdf;var _0xdbae63=_0x451850[_0x54803f];return _0xdbae63;},_0x5480(_0x272679,_0x268a14);}Object[_0x5bcda3(0xf7)](exports,_0x5bcda3(0xef),{'value':!![]}),exports[_0x5bcda3(0xff)]=void 0x0;class ConsoleLog{constructor(_0x40d5ef='',_0x4672fd=![],_0x95ce9=console){var _0x1959e6=_0x5bcda3;this[_0x1959e6(0xf1)]=_0x40d5ef,this[_0x1959e6(0xe7)]=_0x4672fd,this[_0x1959e6(0xdf)]=this['inverse'](_0x40d5ef),this[_0x1959e6(0xec)]=_0x95ce9;}[_0x5bcda3(0xe1)](_0x8c9e5a,..._0x1fa29f){var _0x43a0d7=_0x5bcda3;if(!this[_0x43a0d7(0xe7)])return;this[_0x43a0d7(0xf4)](this['output'][_0x43a0d7(0xf4)],this[_0x43a0d7(0x100)](_0x8c9e5a),..._0x1fa29f);}[_0x5bcda3(0xe6)](_0x1cdbad,..._0x3c8c07){var _0x160e44=_0x5bcda3;this[_0x160e44(0xf4)](this[_0x160e44(0xec)]['log'],_0x1cdbad,..._0x3c8c07);}[_0x5bcda3(0xfe)](_0x394f41,..._0x18d51b){var _0xea7864=_0x5bcda3;this[_0xea7864(0xf4)](this[_0xea7864(0xec)][_0xea7864(0xfe)],this[_0xea7864(0xfc)](_0xea7864(0xfb)+_0x394f41),..._0x18d51b);}['error'](_0x1a936f,..._0x93d595){var _0x37151e=_0x5bcda3;this['output'][_0x37151e(0xe0)]('\x0a'),this[_0x37151e(0xf4)](this[_0x37151e(0xec)][_0x37151e(0xe0)],this[_0x37151e(0xf9)]('ERROR\x20'+_0x1a936f),..._0x93d595),this[_0x37151e(0xec)]['error']('\x0a');}['setVerbose'](_0x13a51a){this['verbose']=_0x13a51a;}[_0x5bcda3(0xf2)](_0x62894){var _0x4c4a2b=_0x5bcda3;return this[_0x4c4a2b(0xf1)]&&(_0x62894=this['tag']+'\x20'+_0x62894),new ConsoleLog(_0x62894,this[_0x4c4a2b(0xe7)],this[_0x4c4a2b(0xec)]);}[_0x5bcda3(0xf4)](_0x4d4b3a,_0x13ba60,..._0x5d6ebb){var _0x163f61=_0x5bcda3;this[_0x163f61(0xdf)]&&(_0x13ba60=this['prefix']+'\x20'+_0x13ba60),_0x5d6ebb?_0x4d4b3a(...[_0x13ba60][_0x163f61(0xe3)](_0x5d6ebb)):_0x4d4b3a(_0x13ba60);}['inverse'](_0x49fb91){var _0x44f85a=_0x5bcda3;return _0x44f85a(0xee)+_0x49fb91+_0x44f85a(0xf3);}['dim'](_0x2223d1){var _0x29ee0f=_0x5bcda3;return _0x29ee0f(0xf8)+_0x2223d1+_0x29ee0f(0xf3);}[_0x5bcda3(0xfc)](_0x4ef3e3){var _0xd56833=_0x5bcda3;return _0xd56833(0xea)+_0x4ef3e3+'\x1b[0m';}[_0x5bcda3(0xf9)](_0x275e42){var _0x4bfa17=_0x5bcda3;return _0x4bfa17(0xe9)+_0x275e42+'\x1b[0m';}}function _0x4518(){var _0x35dc2e=['477724bOIgAo','tag','newLog','\x1b[0m','log','9McPdBD','581lTclhT','defineProperty','\x1b[36m','red','129256ZUWGGc','WARNING\x20','yellow','10OUBWkJ','warn','ConsoleLog','dim','prefix','error','debug','7hJbYoz','concat','48503499pwQQfQ','10175088ZLxnfR','info','verbose','1583330xPuawq','\x1b[31m','\x1b[33m','1256373bUywxI','output','2204604UtkOCO','\x1b[7m','__esModule'];_0x4518=function(){return _0x35dc2e;};return _0x4518();}exports[_0x5bcda3(0xff)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3d1aa8=_0x15f1;(function(_0x3826d9,_0x16d7f4){const _0x457beb=_0x15f1,_0x5c8c2a=_0x3826d9();while(!![]){try{const _0x5a291d=parseInt(_0x457beb(0x153))/0x1*(parseInt(_0x457beb(0x15d))/0x2)+parseInt(_0x457beb(0x14f))/0x3*(-parseInt(_0x457beb(0x159))/0x4)+parseInt(_0x457beb(0x15a))/0x5+parseInt(_0x457beb(0x151))/0x6+parseInt(_0x457beb(0x15e))/0x7+-parseInt(_0x457beb(0x155))/0x8*(-parseInt(_0x457beb(0x143))/0x9)+parseInt(_0x457beb(0x146))/0xa*(-parseInt(_0x457beb(0x150))/0xb);if(_0x5a291d===_0x16d7f4)break;else _0x5c8c2a['push'](_0x5c8c2a['shift']());}catch(_0x339b0d){_0x5c8c2a['push'](_0x5c8c2a['shift']());}}}(_0x5f2c,0x86f22));function _0x15f1(_0x5a9ad2,_0xcd3141){const _0x5f2ccf=_0x5f2c();return _0x15f1=function(_0x15f17a,_0x539e4c){_0x15f17a=_0x15f17a-0x143;let _0xe8f9b0=_0x5f2ccf[_0x15f17a];return _0xe8f9b0;},_0x15f1(_0x5a9ad2,_0xcd3141);}Object[_0x3d1aa8(0x152)](exports,'__esModule',{'value':!![]}),exports[_0x3d1aa8(0x145)]=fetch,exports[_0x3d1aa8(0x149)]=downloadFile,exports[_0x3d1aa8(0x158)]=decompressResponseBuffer;const fetch_h2_1=require(_0x3d1aa8(0x156)),fs=require('fs'),zlib=require(_0x3d1aa8(0x15c)),userAgent=_0x3d1aa8(0x14c),fetchh2Ctx=(0x0,fetch_h2_1['context'])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x3d1aa8(0x145)];async function fetch(_0x33102b,_0x48427a){const _0xbe2919=_0x3d1aa8;return await fetchh2(_0x33102b,_0x48427a?{'redirect':_0xbe2919(0x161),..._0x48427a}:{'redirect':'follow'});}async function downloadFile(_0x389844,_0x4b273a,_0xb83227){const _0x1d5770=_0x3d1aa8;let _0x2ca7e3,_0x528791;_0x2ca7e3=await fetchh2(_0x389844,{'redirect':_0x1d5770(0x161)}),_0x528791=await _0x2ca7e3[_0x1d5770(0x14d)]();const _0x352d7f=_0x2ca7e3[_0x1d5770(0x148)][_0x1d5770(0x15f)](_0x1d5770(0x154)),_0x29ed5a=_0x352d7f?parseInt(_0x352d7f):-0x1,_0x353b7=fs[_0x1d5770(0x147)](_0x4b273a);let _0x189fe6=0x0;await new Promise((_0x2d4b25,_0x2c248f)=>{const _0x3c0341=_0x1d5770;_0x528791['pipe'](_0x353b7),_0xb83227&&_0x528791['on'](_0x3c0341(0x162),_0x461740=>{const _0x460319=_0x3c0341;_0x189fe6=_0x189fe6+_0x461740[_0x460319(0x14b)],_0xb83227(_0x189fe6,_0x29ed5a);}),_0x528791['on'](_0x3c0341(0x15b),_0x4d7b4c=>{_0x2c248f(_0x4d7b4c);}),_0x353b7['on'](_0x3c0341(0x14a),()=>{_0x2d4b25();});});}function _0x5f2c(){const _0x8ca1ab=['Mozilla/5.0\x20(X11;\x20Linux\x20x86_64;\x20PICO\x204\x20OS5.5.0\x20like\x20Quest)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20PicoBrowser/3.3.24\x20Chrome/105.0.5195.68\x20VR\x20Safari/537.36\x20\x20OculusBrowser/7.0','readable','Z_SYNC_FLUSH','6qaMoGI','44MqePqP','4829112NnbcYw','defineProperty','1HhiJWb','Content-Length','10984IwUhFY','fetch-h2','test','decompressResponseBuffer','327692sEIJCg','2473190WigNMk','error','zlib','451534vzDwPb','3279514eyFDxO','get','constants','follow','data','3789CEvxqX','brotliDecompressSync','fetch','4638020FzxTii','createWriteStream','headers','downloadFile','finish','length'];_0x5f2c=function(){return _0x8ca1ab;};return _0x5f2c();}function decompressResponseBuffer(_0x46b43b,_0x3c8e8a){const _0x23ff8f=_0x3d1aa8;let _0x5eab9d=_0x46b43b;if(/\bgzip\b/[_0x23ff8f(0x157)](_0x3c8e8a)||/\bdeflate\b/[_0x23ff8f(0x157)](_0x3c8e8a))_0x5eab9d=zlib['unzipSync'](_0x46b43b,{'flush':zlib['constants']['Z_SYNC_FLUSH'],'finishFlush':zlib[_0x23ff8f(0x160)][_0x23ff8f(0x14e)]});else/\bbr\b/[_0x23ff8f(0x157)](_0x3c8e8a)&&(_0x5eab9d=zlib[_0x23ff8f(0x144)](_0x46b43b));return _0x5eab9d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2b8b38=_0x5812;(function(_0x33f2bd,_0x775b40){const _0x3ac6f4=_0x5812,_0x27a4c2=_0x33f2bd();while(!![]){try{const _0x49a775=parseInt(_0x3ac6f4(0x106))/0x1+-parseInt(_0x3ac6f4(0xe6))/0x2+-parseInt(_0x3ac6f4(0x103))/0x3*(-parseInt(_0x3ac6f4(0x112))/0x4)+parseInt(_0x3ac6f4(0xd6))/0x5*(parseInt(_0x3ac6f4(0xec))/0x6)+-parseInt(_0x3ac6f4(0xe1))/0x7*(parseInt(_0x3ac6f4(0xf4))/0x8)+-parseInt(_0x3ac6f4(0xdb))/0x9+parseInt(_0x3ac6f4(0xda))/0xa;if(_0x49a775===_0x775b40)break;else _0x27a4c2['push'](_0x27a4c2['shift']());}catch(_0x976761){_0x27a4c2['push'](_0x27a4c2['shift']());}}}(_0x33ce,0x19dfa));Object[_0x2b8b38(0xdf)](exports,_0x2b8b38(0xd8),{'value':!![]}),exports[_0x2b8b38(0xfd)]=void 0x0;function _0x33ce(){const _0x57f3ea=['Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','Password\x20for\x20the\x20Key:','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','underline','136kYGHwc','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','Downloading\x20JDK\x2011\x20to\x20','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','Decompressing\x20the\x20JDK\x2011\x20Sources...','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','Icon\x20URL:','Do\x20you\x20want\x20to\x20create\x20one\x20now?','messages','cyan','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','redirected\x20to\x20','\x09-\x20Generated\x20Android\x20APK\x20at\x20','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','3738AnXQfd','\x20but\x20input\x20is\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','20425HkYVGf','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','Missing\x20required\x20parameter\x20','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','--url','Decompressing\x20the\x20Android\x20SDK...','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','\x0aProject\x20generated\x20successfully.','Downloading\x20Android\x20SDK\x20to\x20','\x20and\x20alias\x20','Password\x20for\x20the\x20Key\x20Store:','Invalid\x20icon\x20path:\x20','212EKRmji','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','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)','Maximum\x20length\x20is\x20','WARNING:\x20','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','license\x20agreement.','\x20or\x20','yellow','\x0aSigning\x20key\x20creation','https://developer.android.com/studio/terms.html','--manifest-url','85LtIjBz','colors','__esModule','Decompressing\x20the\x20JDK\x2011\x20Binaries...','2571430FTkGTP','1887948omijud','Path\x20to\x20your\x20existing\x20JDK\x2011:','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','bold','defineProperty','(5/5)','19082IuXZca','\x22.\x0a','Invalid\x20integer\x20provided:\x20','\x0aBuilding\x20the\x20Android\x20App...','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)','116266YOXdlQ','\x20URL\x20','https://play.google.com/console/about/families/','Organization\x20(eg:\x20Company\x20Name):','Minimum\x20length\x20is\x20','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','27042qYglVz','Path\x20to\x20your\x20existing\x20Android\x20SDK:','green','Downloading\x20the\x20JDK\x2011\x20Sources...'];_0x33ce=function(){return _0x57f3ea;};return _0x33ce();}function _0x5812(_0x32923c,_0x353c0e){const _0x33ce13=_0x33ce();return _0x5812=function(_0x58124e,_0x1c025f){_0x58124e=_0x58124e-0xd4;let _0x1582a9=_0x33ce13[_0x58124e];return _0x1582a9;},_0x5812(_0x32923c,_0x353c0e);}const colors_1=require(_0x2b8b38(0xd7));exports[_0x2b8b38(0xfd)]={'promptInstallJdk':_0x2b8b38(0xe5),'promptJdkPath':_0x2b8b38(0xdc),'messageDownloadJdk':_0x2b8b38(0xf6),'messageDownloadJdkSrc':_0x2b8b38(0xef),'messageDecompressJdkSrc':_0x2b8b38(0xf9),'messageDownloadJdkBin':'Downloading\x20the\x20JDK\x2011\x20Binaries...','messageDecompressJdkBin':_0x2b8b38(0xd9),'promptInstallSdk':_0x2b8b38(0x114),'promptSdkPath':_0x2b8b38(0xed),'messageDownloadSdk':_0x2b8b38(0x10e),'errorSdkTerms':_0x2b8b38(0x105),'promptSdkTerms':_0x2b8b38(0xf2)+(0x0,colors_1[_0x2b8b38(0xf3)])(_0x2b8b38(0xd4))+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':_0x2b8b38(0x10b),'messageInstallingBuildTools':_0x2b8b38(0x102)+_0x2b8b38(0x118),'messageGeneratingAndroidProject':'Generating\x20Android\x20Project.','messageCheckSuccess':(_0x2eadc9,_0x4ce706)=>{const _0x594817=_0x2b8b38;return _0x594817(0xe7)+(0x0,colors_1['cyan'])(_0x2eadc9)+'\x20'+(_0x4ce706?_0x594817(0x100)+(0x0,colors_1[_0x594817(0xfe)])(_0x4ce706):'')+_0x594817(0xf7);},'errorMissingManifestParameter':'Missing\x20required\x20parameter\x20'+((0x0,colors_1[_0x2b8b38(0xfe)])(_0x2b8b38(0xd5))+_0x2b8b38(0x119)+(0x0,colors_1['cyan'])('--manifest')),'messageInitializingWebManifest':_0x2ede01=>{const _0x461d85=_0x2b8b38;return _0x461d85(0x10c)+(0x0,colors_1[_0x461d85(0xfe)])(_0x2ede01);},'messageInitializingLocalManifest':_0x10598a=>{const _0x5eb54a=_0x2b8b38;return _0x5eb54a(0xf0)+(0x0,colors_1[_0x5eb54a(0xfe)])(_0x10598a);},'messageInvalidIcon':_0x40a9b7=>{const _0x117acd=_0x2b8b38;return _0x117acd(0x111)+(0x0,colors_1[_0x117acd(0xfe)])(_0x40a9b7);},'errorStartUrlNotReachable':_0x7c1c69=>'URL\x20'+_0x7c1c69+'\x20can\x20not\x20be\x20accessible.'+_0x2b8b38(0xff),'warnFamilyPolicy':(0x0,colors_1[_0x2b8b38(0xde)])((0x0,colors_1[_0x2b8b38(0x11a)])(_0x2b8b38(0x116)))+_0x2b8b38(0x113)+_0x2b8b38(0xeb)+'\x20Check\x20out\x20the\x20Play\x20for'+_0x2b8b38(0x107)+(0x0,colors_1[_0x2b8b38(0xfe)])(_0x2b8b38(0xe8)),'promptIconUrl':_0x2b8b38(0xfb),'errorInvalidUrl':_0x27ab3a=>{return'Invalid\x20URL:\x20'+_0x27ab3a;},'errorUrlMustBeImage':_0x4e30f6=>{const _0x42f11d=_0x2b8b38;return _0x42f11d(0xfa)+_0x4e30f6+'.';},'promptVersionCode':_0x2b8b38(0x117),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1['underline'])('\x0aSigning\x20key\x20information\x20'+(0x0,colors_1[_0x2b8b38(0xee)])(_0x2b8b38(0xe0))),'messageProjectGeneratedSuccess':_0x2b8b38(0x10d),'messageSigningKeyCreation':(0x0,colors_1[_0x2b8b38(0xf3)])(_0x2b8b38(0x11b)),'messageSigningKeyNotFound':_0x3d9e8d=>{const _0x3866b6=_0x2b8b38;return _0x3866b6(0xdd)+_0x3d9e8d+_0x3866b6(0xe2);},'promptCreateKey':_0x2b8b38(0xfc),'promptKeyFullName':_0x2b8b38(0x109),'promptKeyOrganizationalUnit':_0x2b8b38(0xf5),'promptKeyOrganization':_0x2b8b38(0xe9),'promptKeyCountry':'Country\x20(2\x20letter\x20code):','promptKeystorePassword':_0x2b8b38(0x110),'promptKeyPassword':_0x2b8b38(0xf1),'messageBuildingApp':_0x2b8b38(0xe4),'messageEnterPasswords':(_0x5f4939,_0x1d5892)=>{const _0x2769f7=_0x2b8b38;return _0x2769f7(0xf8)+(0x0,colors_1[_0x2769f7(0xfe)])(_0x5f4939)+_0x2769f7(0x10f)+(0x0,colors_1[_0x2769f7(0xfe)])(_0x1d5892)+'.\x0a';},'errorMinLength':(_0x233a97,_0x7d0697)=>{const _0x30db73=_0x2b8b38;return _0x30db73(0xea)+_0x233a97+_0x30db73(0x104)+_0x7d0697+'.';},'errorMaxLength':(_0x4123be,_0x15dbe4)=>{const _0x22cfcb=_0x2b8b38;return _0x22cfcb(0x115)+_0x4123be+'\x20but\x20input\x20is\x20'+_0x15dbe4+'.';},'errorInvalidInteger':_0x195447=>{const _0x3c70b9=_0x2b8b38;return _0x3c70b9(0xe3)+_0x195447;},'messageApkSuccess':_0x5d410b=>{const _0x48afb6=_0x2b8b38;return _0x48afb6(0x101)+(0x0,colors_1[_0x48afb6(0xfe)])(_0x5d410b);},'missingUrlToCheck':_0x2b8b38(0x108)+(''+(0x0,colors_1[_0x2b8b38(0xfe)])(_0x2b8b38(0x10a)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x344c58=_0x50fb;function _0x2d99(){const _0x3530c7=['2819572vjZOah','5610983swxPft','6ySmWlu','5279256hdqBIJ','605422MFTYCv','defineProperty','11412378iLbLBJ','__esModule','305152bvZFZx','950245JUSGhL','pop','6jLGuEn','replace'];_0x2d99=function(){return _0x3530c7;};return _0x2d99();}function _0x50fb(_0x2e3adf,_0xa3708b){const _0x2d9994=_0x2d99();return _0x50fb=function(_0x50fbb7,_0x5a2483){_0x50fbb7=_0x50fbb7-0x150;let _0x4c6dab=_0x2d9994[_0x50fbb7];return _0x4c6dab;},_0x50fb(_0x2e3adf,_0xa3708b);}(function(_0x5adbd5,_0x338aee){const _0x1edb81=_0x50fb,_0x14d2b8=_0x5adbd5();while(!![]){try{const _0x3be69d=parseInt(_0x1edb81(0x15a))/0x1+parseInt(_0x1edb81(0x156))/0x2*(-parseInt(_0x1edb81(0x150))/0x3)+parseInt(_0x1edb81(0x152))/0x4+parseInt(_0x1edb81(0x15b))/0x5+-parseInt(_0x1edb81(0x154))/0x6*(parseInt(_0x1edb81(0x153))/0x7)+-parseInt(_0x1edb81(0x155))/0x8+parseInt(_0x1edb81(0x158))/0x9;if(_0x3be69d===_0x338aee)break;else _0x14d2b8['push'](_0x14d2b8['shift']());}catch(_0x3e4b5d){_0x14d2b8['push'](_0x14d2b8['shift']());}}}(_0x2d99,0x61f56));Object[_0x344c58(0x157)](exports,_0x344c58(0x159),{'value':!![]}),exports['parseRouter']=parseRouter;function parseRouter(_0x2cfb0b){const _0x1b9fec=_0x344c58;let _0x2c57d4=_0x2cfb0b['split']('/');_0x2c57d4[_0x1b9fec(0x15c)]();let _0x4357d6=_0x2c57d4['join']();while(_0x4357d6['indexOf'](',')>=0x0){_0x4357d6=_0x4357d6[_0x1b9fec(0x151)](',','/');}return _0x4357d6;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x324558=_0x1694;(function(_0x535098,_0x258fa3){const _0xa956f8=_0x1694,_0x1fa477=_0x535098();while(!![]){try{const _0x56bd84=-parseInt(_0xa956f8(0x164))/0x1*(-parseInt(_0xa956f8(0x16a))/0x2)+-parseInt(_0xa956f8(0x15e))/0x3+-parseInt(_0xa956f8(0x166))/0x4*(parseInt(_0xa956f8(0x163))/0x5)+-parseInt(_0xa956f8(0x15d))/0x6+-parseInt(_0xa956f8(0x175))/0x7+-parseInt(_0xa956f8(0x160))/0x8*(parseInt(_0xa956f8(0x170))/0x9)+parseInt(_0xa956f8(0x15b))/0xa*(parseInt(_0xa956f8(0x172))/0xb);if(_0x56bd84===_0x258fa3)break;else _0x1fa477['push'](_0x1fa477['shift']());}catch(_0x18c61e){_0x1fa477['push'](_0x1fa477['shift']());}}}(_0xf589,0xe200c));function _0x1694(_0x3947a0,_0x42ef05){const _0xf589e7=_0xf589();return _0x1694=function(_0x1694dc,_0x3c17b8){_0x1694dc=_0x1694dc-0x15b;let _0x11e0fb=_0xf589e7[_0x1694dc];return _0x11e0fb;},_0x1694(_0x3947a0,_0x42ef05);}function _0xf589(){const _0x1040e2=['write\x20project.pbxproj:\x20ok','2429097IgUbhh','log','uploadApp','4019099bCXPOH','archive','runWithSimulator','default','name','defineProperty','./xcrun','mkdirSync','/web-spatial.xcodeproj/project.pbxproj','190spQCwO','path','2152056AXHUPJ','4198734pEiJcq','../resource','2632rhUOBq','.ipa','existsSync','5SdOdKA','57793PpKbXc','upload','2275916cvdHjd','PROJECT_DIRECTORY','modify','PROJECT_EXPORT_DIRECTORY','38eOmfGH','XcodeManager','export','./xcodeproject','join','./xcodebuild','40122MeOXtl'];_0xf589=function(){return _0x1040e2;};return _0xf589();}Object[_0x324558(0x17a)](exports,'__esModule',{'value':!![]}),exports[_0x324558(0x16b)]=void 0x0;const fs=require('fs'),resource_1=require(_0x324558(0x15f)),xcodeproject_1=require(_0x324558(0x16d)),xcodebuild_1=require(_0x324558(0x16f)),xcrun_1=require(_0x324558(0x17b)),path_1=require(_0x324558(0x15c));class XcodeManager{static async['parseProject'](_0x5d4bed,_0x27c27a=![]){const _0x27e39e=_0x324558,_0x1ca38c=resource_1[_0x27e39e(0x167)]+_0x27e39e(0x17d);await xcodeproject_1[_0x27e39e(0x178)][_0x27e39e(0x168)](_0x1ca38c,_0x5d4bed,_0x27c27a),console[_0x27e39e(0x173)](_0x27e39e(0x171));!fs[_0x27e39e(0x162)](resource_1['PROJECT_EXPORT_DIRECTORY'])&&fs[_0x27e39e(0x17c)](resource_1[_0x27e39e(0x169)],{'recursive':!![]});if(!_0x27c27a)await xcodebuild_1['default'][_0x27e39e(0x176)](_0x5d4bed[_0x27e39e(0x16c)]);}static async[_0x324558(0x165)](_0x53a723,_0x48db1e){const _0x3fb72e=_0x324558;if(_0x53a723['u']&&_0x53a723['p'])xcrun_1['default']['uploadApp']((0x0,path_1[_0x3fb72e(0x16e)])(resource_1[_0x3fb72e(0x169)],_0x48db1e[_0x3fb72e(0x179)]+_0x3fb72e(0x161)),_0x53a723['u'],_0x53a723['p'],!![]);else _0x53a723['k']&&_0x53a723['i']&&xcrun_1['default'][_0x3fb72e(0x174)]((0x0,path_1['join'])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x48db1e[_0x3fb72e(0x179)]+_0x3fb72e(0x161)),_0x53a723['k'],_0x53a723['i'],![]);}static async[_0x324558(0x177)](_0x27a93f){const _0x5b8d08=_0x324558;await xcrun_1['default'][_0x5b8d08(0x177)](_0x27a93f);}}exports['XcodeManager']=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const manifestSwiftTemplate = "\nimport Foundation\n\nvar pwaManager = PWAManager()\n\nstruct PWAManager: Codable {\n var isLocal: Bool = false\n var start_url: String = \"START_URL\"\n var scope: String = \"SCOPE\"\n var id: String = \"AppID\"\n\n var name: String = \"AppName\"\n var short_name: String = \"name\"\n var description: String = \"Description\"\n\n var display: PWADisplayMode = .minimal\n var display_override: [PWADisplayMode] = []\n var protocol_handlers: [PWAProtocol] = [PWAProtocol(protocolValue: \"\", url: \"\")]\n var mainScene: WindowContainerOptions = .init(\n defaultSize: .init(\n width: SceneWidth,\n height: SceneHeight\n ),\n resizability: SceneResizability\n )\n var useMainScene: Bool = USE_MAIN_SCENE\n\n mutating func _init() {\n let urlType = start_url.split(separator: \"://\").first\n if !(urlType == \"http\" || urlType == \"https\") {\n
|
|
1
|
+
export declare const manifestSwiftTemplate = "\nimport Foundation\n\nvar pwaManager = PWAManager()\n\nstruct PWAManager: Codable {\n var isLocal: Bool = false\n var start_url: String = \"START_URL\"\n var scope: String = \"SCOPE\"\n var id: String = \"AppID\"\n\n var name: String = \"AppName\"\n var short_name: String = \"name\"\n var description: String = \"Description\"\n\n var display: PWADisplayMode = .minimal\n var display_override: [PWADisplayMode] = []\n var protocol_handlers: [PWAProtocol] = [PWAProtocol(protocolValue: \"\", url: \"\")]\n var mainScene: WindowContainerOptions = .init(\n defaultSize: .init(\n width: SceneWidth,\n height: SceneHeight\n ),\n resizability: SceneResizability\n )\n var useMainScene: Bool = USE_MAIN_SCENE\n\n mutating func _init() {\n let urlType = start_url.split(separator: \"://\").first\n if !(urlType == \"http\" || urlType == \"https\") {\n if scope == \"\" || scope == \"/\" {\n scope = \"./\"\n }\n let startUrl = Bundle.main.url(forResource: start_url, withExtension: \"\", subdirectory: \"\")\n start_url = startUrl!.absoluteString\n scope = URL(string: scope, relativeTo: startUrl)!.absoluteString\n isLocal = true\n }\n\n if display_override.count > 0 {\n display = display_override[0]\n }\n\n for i in 0 ... protocol_handlers.count - 1 {\n let item = protocol_handlers[i]\n protocol_handlers[i].updateUrl(scope + item.url)\n }\n }\n\n func checkInScope(url: String) -> Bool {\n return url.starts(with: scope)\n }\n\n // web+spatial://test\n func checkInDeeplink(url: String) -> String {\n var linkUrl: String = url\n for item in protocol_handlers {\n if linkUrl.starts(with: item.protocolValue) {\n let queryString: String = linkUrl.replacingOccurrences(of: item.protocolValue, with: \"\").addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!\n linkUrl = item.url.replacingOccurrences(of: \"%s\", with: item.protocolValue + queryString)\n }\n }\n logger.debug(linkUrl)\n return linkUrl\n }\n\n func getLocalResourceURL(url: String) -> String {\n let path = String(url.split(separator: \"file://\").first!.split(separator: \"?\").first!)\n let newUrl = URL(string: url)\n let fileManager = FileManager.default\n if fileManager.fileExists(atPath: newUrl!.path) {\n return url\n }\n var resource: String = Bundle.main.url(forResource: newUrl?.path, withExtension: \"\", subdirectory: \"\")?.absoluteString ?? \"\"\n if resource == \"\" {\n resource = Bundle.main.url(forResource: \"static-web\" + path, withExtension: \"\", subdirectory: \"\")?.absoluteString ?? \"\"\n }\n if resource == \"\" {\n return url\n }\n if newUrl?.query() != nil {\n resource += \"?\" + (newUrl?.query())!\n }\n if newUrl?.fragment() != nil {\n resource += \"#\" + (newUrl?.fragment())!\n }\n return resource\n }\n}\n\nenum PWADisplayMode: Codable {\n case minimal\n case standalone\n case fullscreen\n}\n\nstruct PWAProtocol: Codable {\n var protocolValue: String = \"\"\n var url: String = \"\"\n\n mutating func updateUrl(_ str: String) {\n url = str\n }\n}\n\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1bf8b6=_0x2842;(function(_0x134063,_0x57da9b){var _0x4004e1=_0x2842,_0x56e6be=_0x134063();while(!![]){try{var _0x4ee5ab=-parseInt(_0x4004e1(0x152))/0x1+-parseInt(_0x4004e1(0x14d))/0x2+-parseInt(_0x4004e1(0x148))/0x3+parseInt(_0x4004e1(0x14b))/0x4+-parseInt(_0x4004e1(0x150))/0x5*(-parseInt(_0x4004e1(0x146))/0x6)+-parseInt(_0x4004e1(0x145))/0x7*(parseInt(_0x4004e1(0x14f))/0x8)+-parseInt(_0x4004e1(0x147))/0x9*(-parseInt(_0x4004e1(0x151))/0xa);if(_0x4ee5ab===_0x57da9b)break;else _0x56e6be['push'](_0x56e6be['shift']());}catch(_0x2b621b){_0x56e6be['push'](_0x56e6be['shift']());}}}(_0x3ccb,0x846c3));function _0x2842(_0x414558,_0x26517f){var _0x3ccb79=_0x3ccb();return _0x2842=function(_0x2842b4,_0x4bacb6){_0x2842b4=_0x2842b4-0x145;var _0x2b20f3=_0x3ccb79[_0x2842b4];return _0x2b20f3;},_0x2842(_0x414558,_0x26517f);}function _0x3ccb(){var _0x35b2cb=['229621LzykDy','138zzrLBZ','26594613JKANFC','2675073OhVvqP','manifestSwiftTemplate','\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20USE_MAIN_SCENE\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20scope\x20==\x20\x22\x22\x20||\x20scope\x20==\x20\x22/\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22./\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20startUrl\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20startUrl!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20URL(string:\x20scope,\x20relativeTo:\x20startUrl)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20newUrl\x20=\x20URL(string:\x20url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20fileManager\x20=\x20FileManager.default\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20fileManager.fileExists(atPath:\x20newUrl!.path)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:\x20String\x20=\x20Bundle.main.url(forResource:\x20newUrl?.path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20newUrl?.query()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20(newUrl?.query())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20newUrl?.fragment()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22#\x22\x20+\x20(newUrl?.fragment())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a\x20\x20\x20\x20case\x20fullscreen\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a','972200qIWUBL','defineProperty','1706838KriEKC','__esModule','200cQFyWu','25055BxcWRc','10dXkmEn','205672PfMmne'];_0x3ccb=function(){return _0x35b2cb;};return _0x3ccb();}Object[_0x1bf8b6(0x14c)](exports,_0x1bf8b6(0x14e),{'value':!![]}),exports[_0x1bf8b6(0x149)]=void 0x0,exports[_0x1bf8b6(0x149)]=_0x1bf8b6(0x14a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x23fc74=_0x3009;(function(_0x482412,_0x47d587){const _0x179059=_0x3009,_0x3921cf=_0x482412();while(!![]){try{const _0x470799=parseInt(_0x179059(0x9f))/0x1*(-parseInt(_0x179059(0x8e))/0x2)+-parseInt(_0x179059(0x98))/0x3+parseInt(_0x179059(0x9b))/0x4+-parseInt(_0x179059(0xac))/0x5+-parseInt(_0x179059(0x94))/0x6*(-parseInt(_0x179059(0xab))/0x7)+-parseInt(_0x179059(0x96))/0x8*(-parseInt(_0x179059(0x87))/0x9)+-parseInt(_0x179059(0x9e))/0xa;if(_0x470799===_0x47d587)break;else _0x3921cf['push'](_0x3921cf['shift']());}catch(_0x5cf586){_0x3921cf['push'](_0x3921cf['shift']());}}}(_0x379a,0x8e78f));Object[_0x23fc74(0xae)](exports,_0x23fc74(0x8a),{'value':!![]}),exports[_0x23fc74(0xa1)]=void 0x0;const fs=require('fs'),path_1=require(_0x23fc74(0x7f)),resource_1=require(_0x23fc74(0x7e)),semver_1=require('semver'),file_1=require(_0x23fc74(0xad)),{execSync,exec}=require(_0x23fc74(0xaf));class Xcodebuild{static async[_0x23fc74(0xb1)](){const _0x10b1f0=_0x23fc74;try{await new Promise((_0x2706fd,_0x4017ea)=>{const _0x51783b=_0x3009,_0x522f62=resource_1[_0x51783b(0xa5)]+'/web-spatial.xcodeproj',_0x492a12=execSync(new XcodebuildCMD()[_0x51783b(0xb1)](_0x522f62)['list']()[_0x51783b(0x8c)]);console['log'](_0x492a12[_0x51783b(0x91)]()),_0x2706fd(_0x492a12);});}catch(_0xa040f6){console[_0x10b1f0(0xa2)](_0xa040f6);}}static async[_0x23fc74(0xa7)](){const _0x2fce21=_0x23fc74;try{await new Promise((_0x44c8b9,_0x232d75)=>{const _0x5f699b=_0x3009,_0x44c8be=resource_1[_0x5f699b(0xa5)]+'/web-spatial.xcodeproj',_0x11cecc=execSync(new XcodebuildCMD()[_0x5f699b(0xb1)](_0x44c8be)[_0x5f699b(0xa7)]()['line']);console['log'](_0x11cecc[_0x5f699b(0x91)]()),_0x44c8b9(_0x11cecc);});}catch(_0x48328e){console[_0x2fce21(0xa2)](_0x48328e);}}static async[_0x23fc74(0x92)](_0x2bce7e){const _0x440832=_0x23fc74;try{return console[_0x440832(0xa2)]('start\x20archive'),!fs[_0x440832(0x8b)](resource_1[_0x440832(0x99)])&&fs['mkdirSync'](resource_1[_0x440832(0x99)],{'recursive':!![]}),await new Promise((_0x400bff,_0x6bc5b3)=>{const _0x3f53bf=_0x440832,_0x22b387=resource_1['PROJECT_DIRECTORY']+_0x3f53bf(0x83),_0x38bf9e=execSync(new XcodebuildCMD()[_0x3f53bf(0xb1)](_0x22b387)['scheme'](_0x3f53bf(0xa6))[_0x3f53bf(0x92)]((0x0,path_1['join'])(resource_1[_0x3f53bf(0xb2)],_0x3f53bf(0xa9)))[_0x3f53bf(0xa8)]()['line']);let _0x23dd10=_0x38bf9e[_0x3f53bf(0x91)]();if(_0x23dd10[_0x3f53bf(0x9d)](_0x3f53bf(0xb3))>0x0){console['log'](_0x3f53bf(0x85)),console[_0x3f53bf(0xa2)]('start\x20export');const _0x501984=execSync(new XcodebuildCMD()[_0x3f53bf(0x80)]((0x0,path_1[_0x3f53bf(0x93)])(resource_1[_0x3f53bf(0xb2)],'pack.xcarchive'),resource_1[_0x3f53bf(0x99)],(0x0,path_1[_0x3f53bf(0x93)])(resource_1[_0x3f53bf(0xb2)],_0x3f53bf(0xa4)))['allowProvisioningUpdates']()[_0x3f53bf(0x8c)]);_0x23dd10=_0x501984[_0x3f53bf(0x91)]();if(_0x23dd10[_0x3f53bf(0x9d)](_0x3f53bf(0x9c))>0x0){const _0x6c1b2a=_0x2bce7e!==null&&_0x2bce7e!==void 0x0?_0x2bce7e:_0x3f53bf(0x97),_0x2f9004=(0x0,path_1[_0x3f53bf(0x93)])(process['cwd'](),_0x6c1b2a);!fs[_0x3f53bf(0x8b)](_0x2f9004)&&fs[_0x3f53bf(0x89)](_0x2f9004,{'recursive':!![]}),(0x0,file_1[_0x3f53bf(0x86)])(resource_1[_0x3f53bf(0x99)],_0x2f9004),console[_0x3f53bf(0xa2)](_0x3f53bf(0xaa)),_0x400bff(!![]);}(0x0,semver_1[_0x3f53bf(0xa8)])(resource_1[_0x3f53bf(0xb2)]);}_0x400bff(![]);});}catch(_0x25c41f){console[_0x440832(0xa2)](_0x25c41f);}}}function _0x3009(_0x3193bd,_0x5b95e3){const _0x379a3b=_0x379a();return _0x3009=function(_0x300990,_0x1bf636){_0x300990=_0x300990-0x7c;let _0x48702a=_0x379a3b[_0x300990];return _0x48702a;},_0x3009(_0x3193bd,_0x5b95e3);}function _0x379a(){const _0x3b0e94=['\x20archive','\x20-archivePath\x20','../resource','path','output','destination','\x20-exportPath\x20','/web-spatial.xcodeproj','\x20-exportOptionsPlist\x20','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','copyDir','203157OzKjEL','allowProvisioningUpdates','mkdirSync','__esModule','existsSync','line','\x20-destination\x20\x27','2uumEQQ','\x20-allowProvisioningUpdates','\x20-project\x20','toString','archive','join','5224806KtKXlM','scheme','136rkuNrR','./build','1923741TkGvrX','PROJECT_EXPORT_DIRECTORY','xcodebuild','3129972XEXvVs','EXPORT\x20SUCCEEDED','indexOf','2577060FUkxhB','343897HGiCEW','\x20clean','XcodebuildCMD','log','\x20-scheme\x20','ExportOptions.plist','PROJECT_DIRECTORY','web-spatial','list','clean','./pack','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','7dTVgnI','1053090UVdSXp','../resource/file','defineProperty','child_process','\x20-exportArchive\x20-archivePath\x20','project','PROJECT_BUILD_DIRECTORY','ARCHIVE\x20SUCCEEDED','default'];_0x379a=function(){return _0x3b0e94;};return _0x379a();}exports[_0x23fc74(0xb4)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x3baf50=_0x23fc74;this['line']=_0x3baf50(0x9a);}[_0x23fc74(0xb1)](_0x4f64ae){const _0x3fe995=_0x23fc74;return this[_0x3fe995(0x8c)]+=_0x3fe995(0x90)+_0x4f64ae,this;}['list'](){const _0x5aa7e3=_0x23fc74;return this[_0x5aa7e3(0x8c)]+='\x20-list',this;}[_0x23fc74(0x95)](_0x5021a0){const _0x13d07b=_0x23fc74;return this[_0x13d07b(0x8c)]+=_0x13d07b(0xa3)+_0x5021a0,this;}['archive'](_0xe05590){const _0x4fcf1e=_0x23fc74;return this[_0x4fcf1e(0x8c)]+=_0x4fcf1e(0x7d)+_0xe05590+_0x4fcf1e(0x7c),this;}[_0x23fc74(0x88)](){const _0x25c944=_0x23fc74;return this['line']+=_0x25c944(0x8f),this;}[_0x23fc74(0x81)](_0xea1726){const _0x1be76a=_0x23fc74;return this[_0x1be76a(0x8c)]+=_0x1be76a(0x8d)+_0xea1726+'\x27',this;}['output'](_0x5525a6,_0x6ceb77,_0x22d990){const _0x24d555=_0x23fc74;return this['line']+=_0x24d555(0xb0)+_0x5525a6+_0x24d555(0x82)+_0x6ceb77+_0x24d555(0x84)+_0x22d990,this;}[_0x23fc74(0xa8)](){const _0x17c52b=_0x23fc74;return this[_0x17c52b(0x8c)]+=_0x17c52b(0xa0),this;}}exports[_0x23fc74(0xa1)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x4d15(_0x3b0055,_0xafd1a6){const _0x39d909=_0x39d9();return _0x4d15=function(_0x4d1551,_0xfd2c87){_0x4d1551=_0x4d1551-0x9e;let _0x149d4b=_0x39d909[_0x4d1551];return _0x149d4b;},_0x4d15(_0x3b0055,_0xafd1a6);}function _0x39d9(){const _0x2f27cf=['USE_MAIN_SCENE','pbxTargetByName','defaultSize','fixProjectFunction','enterprise','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','\x22),','getMIME','objects','value','27159231fdYSVV','display','push','modify','AppID','test','manifestInfo','PROJECT_BUILD_DIRECTORY','Description','updateTeamId','1.0','log','<string>','__esModule','ExportOptions.plist','930377fiuMeu','<?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>','.minimal','version','teamId','\x22automatic\x22','protocol','updateExportOptions','3804310xExtUU','PWAProtocol(protocolValue:\x20\x22','loadJsonFromDisk','updateBuildProperty','height','1525880VjHyED','75LhvVPF','xcode','PROJECT_DIRECTORY','1280','writeAsync','mainScene','release-testing','length','buildSettings','utf-8','MIDDLE_APPICON_DIRECTORY','bindIcon','modifySwift','join','SCOPE','AppName','ImageHelper','description','pbxXCConfigurationList','BACK_APPICON_DIRECTORY','SceneResizability','SceneHeight','SceneWidth','YOURTEAMID','DEEPLINK','updateDeeplink','./web-spatial/libs/webView/manifest.swift','START_URL','4TgxnQR','bindManifestInfo','replace','BUILDTYPE','stringify','\x22,\x20url:\x20\x22','app-store-connect','DEVELOPMENT_TEAM','images','../resource','1123015cKVpSY','writeSync','PRODUCT_BUNDLE_IDENTIFIER','updateVersion','../resource/imageHelper','icon.','icon','minimal-ui','project','path','4005558GKYSaf','name','createImg','protocol_handlers','updateProductName','124882VenYze','false','32zvrIVl','buildConfigurations','image/','default','mkdirSync','buildType','Contents.json','manifestSwiftTemplate','includes','object','writeFileSync','parseSync','27XOvlaU','url'];_0x39d9=function(){return _0x2f27cf;};return _0x39d9();}const _0x209b24=_0x4d15;(function(_0x35fc7c,_0x480011){const _0x575b73=_0x4d15,_0x514896=_0x35fc7c();while(!![]){try{const _0x2ad635=parseInt(_0x575b73(0xe1))/0x1+parseInt(_0x575b73(0xab))/0x2*(parseInt(_0x575b73(0xe2))/0x3)+parseInt(_0x575b73(0xfe))/0x4*(parseInt(_0x575b73(0x108))/0x5)+-parseInt(_0x575b73(0xa6))/0x6+-parseInt(_0x575b73(0xd4))/0x7*(parseInt(_0x575b73(0xad))/0x8)+-parseInt(_0x575b73(0xb9))/0x9*(-parseInt(_0x575b73(0xdc))/0xa)+-parseInt(_0x575b73(0xc5))/0xb;if(_0x2ad635===_0x480011)break;else _0x514896['push'](_0x514896['shift']());}catch(_0x533e7a){_0x514896['push'](_0x514896['shift']());}}}(_0x39d9,0xbf89f));Object['defineProperty'](exports,_0x209b24(0xd2),{'value':!![]});const fs=require('fs'),resource_1=require(_0x209b24(0x107)),path_1=require(_0x209b24(0xa5)),load_1=require('../resource/load'),imageHelper_1=require(_0x209b24(0xa0)),manifestSwiftTemplate_1=require('./manifestSwiftTemplate'),xcode=require(_0x209b24(0xe3)),exportOptionsXML=_0x209b24(0xd5),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[_0x209b24(0xc8)](_0xb72b9,_0x452ff9,_0x2454e6=![]){const _0x3c3ec7=_0x209b24;let _0x5632c5=xcode[_0x3c3ec7(0xa4)](_0xb72b9);this[_0x3c3ec7(0xbe)](_0x5632c5),_0x5632c5[_0x3c3ec7(0xb8)]();let _0x29abb3=_0x452ff9[_0x3c3ec7(0xb2)];const _0x4e8a9e=[_0x3c3ec7(0xe8),_0x3c3ec7(0x104),'debugging',_0x3c3ec7(0xbf)];useExportOptionsXML=exportOptionsXML['replace'](_0x3c3ec7(0x101),_0x4e8a9e[_0x3c3ec7(0xb5)](_0x29abb3)?_0x29abb3:_0x3c3ec7(0xe8));_0x452ff9['teamId']&&this['updateTeamId'](_0x5632c5,_0x452ff9[_0x3c3ec7(0xd8)]);this['updateExportOptions']();if(_0x452ff9[_0x3c3ec7(0xa2)])await this[_0x3c3ec7(0xed)](_0x452ff9[_0x3c3ec7(0xa2)]);this['bindManifestInfo'](_0x5632c5,_0x452ff9[_0x3c3ec7(0xcb)]['json'],_0x2454e6);_0x452ff9[_0x3c3ec7(0xd7)]?this[_0x3c3ec7(0x9f)](_0x5632c5,_0x452ff9[_0x3c3ec7(0xd7)]):this['updateVersion'](_0x5632c5,_0x3c3ec7(0xcf));try{fs[_0x3c3ec7(0xb7)](_0xb72b9,_0x5632c5[_0x3c3ec7(0x109)]());}catch(_0x3eeede){console[_0x3c3ec7(0xd0)](_0x3eeede);}}static[_0x209b24(0xbe)](_0x3263f6){const _0x3ab928=_0x209b24;_0x3263f6['pbxGroupByName']=function(_0x448005){const _0x6a5f02=_0x4d15;var _0x17b4b1=this['hash'][_0x6a5f02(0xa4)][_0x6a5f02(0xc3)]['PBXGroup'],_0x5f48ce,_0x14393b;for(_0x5f48ce in _0x17b4b1){if(!/_comment$/[_0x6a5f02(0xca)](_0x5f48ce))continue;if(_0x17b4b1[_0x5f48ce]==_0x448005)return _0x14393b=_0x5f48ce['split'](/_comment$/)[0x0],_0x17b4b1[_0x14393b];}return![];},_0x3263f6[_0x3ab928(0xdf)]=function(_0x210c00,_0x3ab5d1,_0x1b3282,_0x4c5074){const _0x33ed41=_0x3ab928;let _0x29e403=[];const _0x34a08d=/_comment$/;if(_0x4c5074){const _0x27d87b=this[_0x33ed41(0xbc)](_0x4c5074),_0x551090=_0x27d87b&&_0x27d87b['buildConfigurationList'],_0x178ef3=this[_0x33ed41(0xf4)]();for(const _0x498e10 in _0x178ef3){if(!_0x34a08d[_0x33ed41(0xca)](_0x498e10)&&_0x551090===_0x498e10){const _0xc4bc13=_0x178ef3[_0x498e10][_0x33ed41(0xae)];for(const _0x58a360 of _0xc4bc13){_0x29e403[_0x33ed41(0xc7)](_0x58a360[_0x33ed41(0xc4)]);}break;}}}var _0x1fad4f=this['pbxXCBuildConfigurationSection']();for(var _0x38950a in _0x1fad4f){if(!_0x34a08d[_0x33ed41(0xca)](_0x38950a)){if(_0x4c5074&&!_0x29e403[_0x33ed41(0xb5)](_0x38950a))continue;var _0xeb73bb=_0x1fad4f[_0x38950a];(_0x1b3282&&_0xeb73bb[_0x33ed41(0xa7)]===_0x1b3282||!_0x1b3282)&&_0xeb73bb[_0x33ed41(0xea)][_0x210c00]&&(_0xeb73bb[_0x33ed41(0xea)][_0x210c00]=_0x3ab5d1);}}};}static async['bindIcon'](_0x428710){const _0x2a53a4=_0x209b24;if(_0x428710){const _0x14df27=(0x0,path_1['join'])(resource_1[_0x2a53a4(0xe4)],resource_1[_0x2a53a4(0xf5)]),_0x21b288=(0x0,path_1[_0x2a53a4(0xef)])(_0x14df27,_0x2a53a4(0xb3)),_0x5a7b3f=_0x2a53a4(0xa1)+_0x428710[_0x2a53a4(0xc2)]()[_0x2a53a4(0x100)](_0x2a53a4(0xaf),''),_0xe8527f=(0x0,path_1[_0x2a53a4(0xef)])(_0x14df27,_0x5a7b3f);let _0x687156=await(0x0,load_1[_0x2a53a4(0xde)])(_0x21b288);_0x687156[_0x2a53a4(0x106)][0x0]['filename']=_0x5a7b3f,await _0x428710['writeAsync'](_0xe8527f),await fs[_0x2a53a4(0xb7)](_0x21b288,JSON[_0x2a53a4(0x102)](_0x687156));const _0x3df5b6=(0x0,path_1[_0x2a53a4(0xef)])(resource_1[_0x2a53a4(0xe4)],resource_1[_0x2a53a4(0xec)]),_0x47d5c3=(0x0,path_1[_0x2a53a4(0xef)])(_0x3df5b6,'Contents.json'),_0x589baa='icon.png',_0x39aa27=(0x0,path_1[_0x2a53a4(0xef)])(_0x3df5b6,_0x589baa);let _0x2b2bd4=await(0x0,load_1[_0x2a53a4(0xde)])(_0x47d5c3),_0xa38040=imageHelper_1[_0x2a53a4(0xf2)][_0x2a53a4(0xa8)](0x200);_0x2b2bd4['images'][0x0]['filename']=_0x589baa,await _0xa38040[_0x2a53a4(0xe6)](_0x39aa27),await fs[_0x2a53a4(0xb7)](_0x47d5c3,JSON['stringify'](_0x2b2bd4));}}static[_0x209b24(0xce)](_0x24b734,_0x3547a7){const _0x4b9598=_0x209b24;_0x24b734[_0x4b9598(0xdf)](_0x4b9598(0x105),_0x3547a7),useExportOptionsXML=useExportOptionsXML['replace'](_0x4b9598(0xf9),_0x3547a7);}static[_0x209b24(0xdb)](){const _0x2b4121=_0x209b24;!fs['existsSync'](resource_1[_0x2b4121(0xcc)])&&fs[_0x2b4121(0xb1)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x2b4121(0xb7)]((0x0,path_1[_0x2b4121(0xef)])(resource_1[_0x2b4121(0xcc)],_0x2b4121(0xd3)),useExportOptionsXML);}static[_0x209b24(0xff)](_0x718e59,_0xecc872,_0x9a06ed=![]){const _0x343951=_0x209b24;var _0x47679a;_0x718e59[_0x343951(0xaa)](_0xecc872[_0x343951(0xa7)]),_0xecc872['id']&&!_0x9a06ed&&_0x718e59[_0x343951(0xdf)](_0x343951(0x9e),'\x22'+_0xecc872['id']+'\x22'),this['updateDeeplink']((_0x47679a=_0xecc872['protocol_handlers'])!==null&&_0x47679a!==void 0x0?_0x47679a:[]),this[_0x343951(0xee)](_0xecc872);}static[_0x209b24(0x9f)](_0x24fb0d,_0x26ce6a){const _0x58e922=_0x209b24;_0x24fb0d[_0x58e922(0xdf)]('CURRENT_PROJECT_VERSION',_0x26ce6a);}static[_0x209b24(0xfb)](_0x4f2afb){const _0x54a8b1=_0x209b24;let _0x38992a=(0x0,path_1[_0x54a8b1(0xef)])(resource_1[_0x54a8b1(0xe4)],'./web-spatial/Info.plist'),_0x1526ba='';for(let _0x533ec7=0x0;_0x533ec7<_0x4f2afb[_0x54a8b1(0xe9)];_0x533ec7++){_0x1526ba+=_0x54a8b1(0xd1)+_0x4f2afb[_0x533ec7][_0x54a8b1(0xda)]+'</string>';}const _0x438642=infoPlistXML[_0x54a8b1(0x100)](_0x54a8b1(0xfa),_0x1526ba);fs[_0x54a8b1(0xb7)](_0x38992a,_0x438642);}static[_0x209b24(0xee)](_0x4a6264){const _0x4fdc92=_0x209b24,_0x58f3ff=(0x0,path_1[_0x4fdc92(0xef)])(resource_1[_0x4fdc92(0xe4)],_0x4fdc92(0xfc));let _0x4a1059=manifestSwiftTemplate_1[_0x4fdc92(0xb4)];_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xfd),_0x4a6264['start_url']),_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xf0),_0x4a6264['scope']),_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xf1),_0x4a6264[_0x4fdc92(0xa7)]),_0x4a1059=_0x4a1059['replace'](_0x4fdc92(0xcd),_0x4a6264[_0x4fdc92(0xf3)]),_0x4a1059=_0x4a1059['replace'](_0x4fdc92(0xc9),_0x4a6264['id']),_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xd6),_0x4a6264['display']==_0x4fdc92(0xa3)?_0x4fdc92(0xd6):'.'+_0x4a6264[_0x4fdc92(0xc6)]);if(_0x4a6264[_0x4fdc92(0xa9)]){let _0x2fa7b9='';for(let _0x1dc875=0x0;_0x1dc875<_0x4a6264[_0x4fdc92(0xa9)][_0x4fdc92(0xe9)];_0x1dc875++){_0x2fa7b9+=_0x4fdc92(0xdd)+_0x4a6264['protocol_handlers'][_0x1dc875]['protocol']+_0x4fdc92(0x103)+_0x4a6264['protocol_handlers'][_0x1dc875][_0x4fdc92(0xba)]+_0x4fdc92(0xc1);}_0x4a1059=_0x4a1059['replace'](_0x4fdc92(0xc0),_0x2fa7b9);}typeof _0x4a6264[_0x4fdc92(0xe7)]===_0x4fdc92(0xb6)?(_0x4a1059=_0x4a1059[_0x4fdc92(0x100)]('SceneWidth',_0x4a6264[_0x4fdc92(0xe7)][_0x4fdc92(0xbd)]['width']),_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xf7),_0x4a6264[_0x4fdc92(0xe7)]['defaultSize'][_0x4fdc92(0xe0)]),_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xf6),'\x22'+_0x4a6264[_0x4fdc92(0xe7)]['resizability']+'\x22'),_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xbb),'true')):(_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xf8),_0x4fdc92(0xe5)),_0x4a1059=_0x4a1059['replace'](_0x4fdc92(0xf7),_0x4fdc92(0xe5)),_0x4a1059=_0x4a1059[_0x4fdc92(0x100)](_0x4fdc92(0xf6),_0x4fdc92(0xd9)),_0x4a1059=_0x4a1059['replace'](_0x4fdc92(0xbb),_0x4fdc92(0xac))),fs[_0x4fdc92(0xb7)](_0x58f3ff,_0x4a1059,_0x4fdc92(0xeb));}}exports[_0x209b24(0xb0)]=XcodeProject;
|
|
1
|
+
'use strict';const _0x1b1cc4=_0x31ae;function _0x2164(){const _0x4450c2=['ImageHelper','push','release-testing','SceneResizability','pbxGroupByName','<?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>','json','buildConfigurationList','BUILDTYPE','73195mnkvUr','images','display','2157900sWTizP','1280','icon','PBXGroup','version','updateBuildProperty','replace','existsSync','writeSync','protocol_handlers','bindIcon','__esModule','SCOPE','pbxTargetByName','width','bindManifestInfo','MIDDLE_APPICON_DIRECTORY','writeAsync','hash','<?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','fixProjectFunction','modify','./web-spatial/libs/webView/manifest.swift','13072936iQQoaT','resizability','length','loadJsonFromDisk','AppID','pbxXCBuildConfigurationSection','<string>','DEEPLINK','9mKIrmJ','debugging','AppName','CURRENT_PROJECT_VERSION','default','writeFileSync','566083FSRjes','updateExportOptions','buildType','./manifestSwiftTemplate','object','manifestInfo','pbxXCConfigurationList','buildSettings','.minimal','icon.png','updateProductName','212xvapCE','USE_MAIN_SCENE','Description','updateDeeplink','parseSync','YOURTEAMID','objects','includes','description','url','mkdirSync','SceneHeight','../resource/imageHelper','modifySwift','scope','./web-spatial/Info.plist','\x22),','../resource','DEVELOPMENT_TEAM','ExportOptions.plist','split','mainScene','315890MTjwDx','name','getMIME','defaultSize','filename','1.0','height','SceneWidth','2074317Gbhmxn','teamId','value','\x22automatic\x22','start_url','START_URL','Contents.json','\x22,\x20url:\x20\x22','../resource/load','test','updateVersion','stringify','PROJECT_BUILD_DIRECTORY','updateTeamId','join','project','PROJECT_DIRECTORY','PRODUCT_BUNDLE_IDENTIFIER','false','3566479DmlPMP'];_0x2164=function(){return _0x4450c2;};return _0x2164();}(function(_0x52c357,_0x423f9f){const _0x265274=_0x31ae,_0x14e018=_0x52c357();while(!![]){try{const _0x296e0e=parseInt(_0x265274(0x21d))/0x1+-parseInt(_0x265274(0x23e))/0x2+parseInt(_0x265274(0x246))/0x3+-parseInt(_0x265274(0x228))/0x4*(-parseInt(_0x265274(0x1f5))/0x5)+-parseInt(_0x265274(0x1f8))/0x6+parseInt(_0x265274(0x1eb))/0x7+parseInt(_0x265274(0x20f))/0x8*(-parseInt(_0x265274(0x217))/0x9);if(_0x296e0e===_0x423f9f)break;else _0x14e018['push'](_0x14e018['shift']());}catch(_0x563ea0){_0x14e018['push'](_0x14e018['shift']());}}}(_0x2164,0x5f806));Object['defineProperty'](exports,_0x1b1cc4(0x203),{'value':!![]});const fs=require('fs'),resource_1=require(_0x1b1cc4(0x239)),path_1=require('path'),load_1=require(_0x1b1cc4(0x24e)),imageHelper_1=require(_0x1b1cc4(0x234)),manifestSwiftTemplate_1=require(_0x1b1cc4(0x220)),xcode=require('xcode'),exportOptionsXML=_0x1b1cc4(0x1f1),infoPlistXML=_0x1b1cc4(0x20b);let useExportOptionsXML='';function _0x31ae(_0x448052,_0x42ddf3){const _0x216413=_0x2164();return _0x31ae=function(_0x31aeec,_0x39ae9c){_0x31aeec=_0x31aeec-0x1e8;let _0x37f676=_0x216413[_0x31aeec];return _0x37f676;},_0x31ae(_0x448052,_0x42ddf3);}class XcodeProject{static async[_0x1b1cc4(0x20d)](_0x17ee38,_0x643f6e,_0x36f140=![]){const _0x3858b8=_0x1b1cc4;let _0xa205cb=xcode['project'](_0x17ee38);this[_0x3858b8(0x20c)](_0xa205cb),_0xa205cb[_0x3858b8(0x22c)]();let _0x52b7d2=_0x643f6e[_0x3858b8(0x21f)];const _0x563aa2=[_0x3858b8(0x1ee),'app-store-connect',_0x3858b8(0x218),'enterprise'];useExportOptionsXML=exportOptionsXML[_0x3858b8(0x1fe)](_0x3858b8(0x1f4),_0x563aa2['includes'](_0x52b7d2)?_0x52b7d2:_0x3858b8(0x1ee));_0x643f6e[_0x3858b8(0x247)]&&this[_0x3858b8(0x253)](_0xa205cb,_0x643f6e['teamId']);this['updateExportOptions']();if(_0x643f6e[_0x3858b8(0x1fa)])await this[_0x3858b8(0x202)](_0x643f6e['icon']);this[_0x3858b8(0x207)](_0xa205cb,_0x643f6e[_0x3858b8(0x222)][_0x3858b8(0x1f2)],_0x36f140);_0x643f6e[_0x3858b8(0x1fc)]?this[_0x3858b8(0x250)](_0xa205cb,_0x643f6e['version']):this[_0x3858b8(0x250)](_0xa205cb,_0x3858b8(0x243));try{fs[_0x3858b8(0x21c)](_0x17ee38,_0xa205cb[_0x3858b8(0x200)]());}catch(_0x326c28){console['log'](_0x326c28);}}static[_0x1b1cc4(0x20c)](_0x44c0e2){const _0x4f0f6f=_0x1b1cc4;_0x44c0e2[_0x4f0f6f(0x1f0)]=function(_0x261833){const _0x597cc4=_0x4f0f6f;var _0x40ac84=this[_0x597cc4(0x20a)][_0x597cc4(0x255)][_0x597cc4(0x22e)][_0x597cc4(0x1fb)],_0x5a4bfb,_0x5965d5;for(_0x5a4bfb in _0x40ac84){if(!/_comment$/[_0x597cc4(0x24f)](_0x5a4bfb))continue;if(_0x40ac84[_0x5a4bfb]==_0x261833)return _0x5965d5=_0x5a4bfb[_0x597cc4(0x23c)](/_comment$/)[0x0],_0x40ac84[_0x5965d5];}return![];},_0x44c0e2[_0x4f0f6f(0x1fd)]=function(_0x4af637,_0x380d4d,_0x24b8d3,_0x2bdfd6){const _0x38a997=_0x4f0f6f;let _0x527e7b=[];const _0x1b87b3=/_comment$/;if(_0x2bdfd6){const _0x4c7994=this[_0x38a997(0x205)](_0x2bdfd6),_0x247936=_0x4c7994&&_0x4c7994[_0x38a997(0x1f3)],_0x12e424=this[_0x38a997(0x223)]();for(const _0x31f7e3 in _0x12e424){if(!_0x1b87b3[_0x38a997(0x24f)](_0x31f7e3)&&_0x247936===_0x31f7e3){const _0x469dc8=_0x12e424[_0x31f7e3]['buildConfigurations'];for(const _0x47fb2f of _0x469dc8){_0x527e7b[_0x38a997(0x1ed)](_0x47fb2f[_0x38a997(0x248)]);}break;}}}var _0x3d0563=this[_0x38a997(0x214)]();for(var _0x3ed5fd in _0x3d0563){if(!_0x1b87b3[_0x38a997(0x24f)](_0x3ed5fd)){if(_0x2bdfd6&&!_0x527e7b[_0x38a997(0x22f)](_0x3ed5fd))continue;var _0x570510=_0x3d0563[_0x3ed5fd];(_0x24b8d3&&_0x570510[_0x38a997(0x23f)]===_0x24b8d3||!_0x24b8d3)&&_0x570510['buildSettings'][_0x4af637]&&(_0x570510[_0x38a997(0x224)][_0x4af637]=_0x380d4d);}}};}static async[_0x1b1cc4(0x202)](_0x493151){const _0x541e58=_0x1b1cc4;if(_0x493151){const _0x1e2e97=(0x0,path_1[_0x541e58(0x254)])(resource_1['PROJECT_DIRECTORY'],resource_1['BACK_APPICON_DIRECTORY']),_0x176b4a=(0x0,path_1['join'])(_0x1e2e97,'Contents.json'),_0x3bfde4='icon.'+_0x493151[_0x541e58(0x240)]()[_0x541e58(0x1fe)]('image/',''),_0x41a9ab=(0x0,path_1[_0x541e58(0x254)])(_0x1e2e97,_0x3bfde4);let _0x24a57a=await(0x0,load_1[_0x541e58(0x212)])(_0x176b4a);_0x24a57a[_0x541e58(0x1f6)][0x0]['filename']=_0x3bfde4,await _0x493151[_0x541e58(0x209)](_0x41a9ab),await fs[_0x541e58(0x21c)](_0x176b4a,JSON[_0x541e58(0x251)](_0x24a57a));const _0x5e27a0=(0x0,path_1[_0x541e58(0x254)])(resource_1[_0x541e58(0x1e8)],resource_1[_0x541e58(0x208)]),_0x5a8e65=(0x0,path_1[_0x541e58(0x254)])(_0x5e27a0,_0x541e58(0x24c)),_0x32bbcf=_0x541e58(0x226),_0x3fa348=(0x0,path_1[_0x541e58(0x254)])(_0x5e27a0,_0x32bbcf);let _0x1c956e=await(0x0,load_1[_0x541e58(0x212)])(_0x5a8e65),_0x14b6d3=imageHelper_1[_0x541e58(0x1ec)]['createImg'](0x200);_0x1c956e['images'][0x0][_0x541e58(0x242)]=_0x32bbcf,await _0x14b6d3[_0x541e58(0x209)](_0x3fa348),await fs[_0x541e58(0x21c)](_0x5a8e65,JSON[_0x541e58(0x251)](_0x1c956e));}}static[_0x1b1cc4(0x253)](_0x4b1a5b,_0x5c75d3){const _0x224b82=_0x1b1cc4;_0x4b1a5b[_0x224b82(0x1fd)](_0x224b82(0x23a),_0x5c75d3),useExportOptionsXML=useExportOptionsXML[_0x224b82(0x1fe)](_0x224b82(0x22d),_0x5c75d3);}static[_0x1b1cc4(0x21e)](){const _0x159d97=_0x1b1cc4;!fs[_0x159d97(0x1ff)](resource_1[_0x159d97(0x252)])&&fs[_0x159d97(0x232)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x159d97(0x21c)]((0x0,path_1[_0x159d97(0x254)])(resource_1[_0x159d97(0x252)],_0x159d97(0x23b)),useExportOptionsXML);}static[_0x1b1cc4(0x207)](_0x516ff8,_0xcaf095,_0x50977e=![]){const _0x3879ef=_0x1b1cc4;var _0x3243d8;_0x516ff8[_0x3879ef(0x227)](_0xcaf095[_0x3879ef(0x23f)]),_0xcaf095['id']&&!_0x50977e&&_0x516ff8['updateBuildProperty'](_0x3879ef(0x1e9),'\x22'+_0xcaf095['id']+'\x22'),this['updateDeeplink']((_0x3243d8=_0xcaf095[_0x3879ef(0x201)])!==null&&_0x3243d8!==void 0x0?_0x3243d8:[]),this[_0x3879ef(0x235)](_0xcaf095);}static['updateVersion'](_0xa2c885,_0x4ce113){const _0x255f4f=_0x1b1cc4;_0xa2c885['updateBuildProperty'](_0x255f4f(0x21a),_0x4ce113);}static[_0x1b1cc4(0x22b)](_0x5896f0){const _0x5bc3db=_0x1b1cc4;let _0xa3d9e5=(0x0,path_1[_0x5bc3db(0x254)])(resource_1[_0x5bc3db(0x1e8)],_0x5bc3db(0x237)),_0x172281='';for(let _0x5d3451=0x0;_0x5d3451<_0x5896f0[_0x5bc3db(0x211)];_0x5d3451++){_0x172281+=_0x5bc3db(0x215)+_0x5896f0[_0x5d3451]['protocol']+'</string>';}const _0x42673f=infoPlistXML[_0x5bc3db(0x1fe)](_0x5bc3db(0x216),_0x172281);fs[_0x5bc3db(0x21c)](_0xa3d9e5,_0x42673f);}static[_0x1b1cc4(0x235)](_0x1a6522){const _0x3e5b7d=_0x1b1cc4,_0x51bbf9=(0x0,path_1[_0x3e5b7d(0x254)])(resource_1[_0x3e5b7d(0x1e8)],_0x3e5b7d(0x20e));let _0x1de2d2=manifestSwiftTemplate_1['manifestSwiftTemplate'];_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x24b),_0x1a6522[_0x3e5b7d(0x24a)]),_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x204),_0x1a6522[_0x3e5b7d(0x236)]),_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x219),_0x1a6522['name']),_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x22a),_0x1a6522[_0x3e5b7d(0x230)]),_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x213),_0x1a6522['id']),_0x1de2d2=_0x1de2d2['replace'](_0x3e5b7d(0x225),_0x1a6522[_0x3e5b7d(0x1f7)]=='minimal-ui'?_0x3e5b7d(0x225):'.'+_0x1a6522[_0x3e5b7d(0x1f7)]);if(_0x1a6522[_0x3e5b7d(0x201)]){let _0x2b60a8='';for(let _0x506741=0x0;_0x506741<_0x1a6522[_0x3e5b7d(0x201)][_0x3e5b7d(0x211)];_0x506741++){_0x2b60a8+='PWAProtocol(protocolValue:\x20\x22'+_0x1a6522[_0x3e5b7d(0x201)][_0x506741]['protocol']+_0x3e5b7d(0x24d)+_0x1a6522['protocol_handlers'][_0x506741][_0x3e5b7d(0x231)]+_0x3e5b7d(0x238);}_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x2b60a8);}typeof _0x1a6522[_0x3e5b7d(0x23d)]===_0x3e5b7d(0x221)?(_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x245),_0x1a6522[_0x3e5b7d(0x23d)][_0x3e5b7d(0x241)][_0x3e5b7d(0x206)]),_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x233),_0x1a6522[_0x3e5b7d(0x23d)][_0x3e5b7d(0x241)][_0x3e5b7d(0x244)]),_0x1de2d2=_0x1de2d2['replace'](_0x3e5b7d(0x1ef),'\x22'+_0x1a6522[_0x3e5b7d(0x23d)][_0x3e5b7d(0x210)]+'\x22'),_0x1de2d2=_0x1de2d2['replace']('USE_MAIN_SCENE','true')):(_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)]('SceneWidth',_0x3e5b7d(0x1f9)),_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x233),_0x3e5b7d(0x1f9)),_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)]('SceneResizability',_0x3e5b7d(0x249)),_0x1de2d2=_0x1de2d2[_0x3e5b7d(0x1fe)](_0x3e5b7d(0x229),_0x3e5b7d(0x1ea))),fs[_0x3e5b7d(0x21c)](_0x51bbf9,_0x1de2d2,'utf-8');}}exports[_0x1b1cc4(0x21b)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2b05dd=_0x6433;(function(_0x4fa0b8,_0x199c0f){const _0x741da=_0x6433,_0x3626d7=_0x4fa0b8();while(!![]){try{const _0x426cfe=-parseInt(_0x741da(0x1ab))/0x1*(-parseInt(_0x741da(0x197))/0x2)+-parseInt(_0x741da(0x1b3))/0x3+parseInt(_0x741da(0x1a5))/0x4+-parseInt(_0x741da(0x1ad))/0x5+parseInt(_0x741da(0x1df))/0x6+-parseInt(_0x741da(0x1ae))/0x7+parseInt(_0x741da(0x1e0))/0x8;if(_0x426cfe===_0x199c0f)break;else _0x3626d7['push'](_0x3626d7['shift']());}catch(_0x2c28a4){_0x3626d7['push'](_0x3626d7['shift']());}}}(_0x4ffd,0x5fc98));function _0x6433(_0x511af5,_0x46ec7b){const _0x4ffd00=_0x4ffd();return _0x6433=function(_0x6433d5,_0x235da8){_0x6433d5=_0x6433d5-0x194;let _0x1b10c0=_0x4ffd00[_0x6433d5];return _0x1b10c0;},_0x6433(_0x511af5,_0x46ec7b);}Object['defineProperty'](exports,_0x2b05dd(0x1e2),{'value':!![]});function _0x4ffd(){const _0x2b204d=['\x20launch\x20\x22','split','PROJECT_BUILD_DIRECTORY','log','1dcPWMw','\x20list\x20devices\x20\x22','1959295xvYCVM','3023405vnbnfx','Build/Products/Debug-xrsimulator/','install\x20success','boot','mkdirSync','1149354feXlUI','\x20--bundle-version\x20','Shutdown','--\x20','\x22\x20\x22','visionos','uploadApp','/web-spatial.xcodeproj','\x20--verbose','listDevices','start\x20building','trim','\x20-t\x20','path','child_process','launch','find\x20simulator:\x20','uploadPackage','/test','includes','state','project','\x20simctl','no\x20visionOS\x20simulator\x20found','\x20--apiIssuer\x20','\x20--upload-package\x20','line','toString','build\x20success','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','../resource/file','\x20--apiKey\x20','authApi','name','push','execSync','shutdown','--\x20visionOS','default','launch\x20app','validate','length','deviceId','parseListDevices','3333492GGIWdI','1605000hJaTzB','\x20boot\x20\x22','__esModule','./xcodebuild','clearDir','PROJECT_DIRECTORY','333286pBWTwk','\x20list','authAccount','../resource','simctl','.app','Apple\x20Vision\x20Pro','version','install','platform','\x20install\x20\x22','altool','list','existsSync','2705544RkRLdx','\x20-u\x20'];_0x4ffd=function(){return _0x2b204d;};return _0x4ffd();}const child_process_1=require(_0x2b05dd(0x1c1)),resource_1=require(_0x2b05dd(0x19a)),path_1=require(_0x2b05dd(0x1c0)),fs=require('fs'),xcodebuild_1=require(_0x2b05dd(0x194)),file_1=require(_0x2b05dd(0x1d1));class Xcrun{static async[_0x2b05dd(0x1db)](_0x17d941,_0x18c979,_0xf605be,_0xdb5944){const _0x3bdde9=_0x2b05dd,_0xec8d67=new XcrunCMD()[_0x3bdde9(0x1a2)]();_0xec8d67[_0x3bdde9(0x1db)](_0x17d941);_0xdb5944?_0xec8d67['authAccount'](_0x18c979,_0xf605be):_0xec8d67[_0x3bdde9(0x1d3)](_0x18c979,_0xf605be);_0xec8d67[_0x3bdde9(0x1a0)](_0x3bdde9(0x1b8));const _0x324ed9=(0x0,child_process_1['execSync'])(_0xec8d67[_0x3bdde9(0x1cd)]);return _0x324ed9['toString']();}static async[_0x2b05dd(0x1c4)](_0x5c5a61,_0x3af1e0,_0x2ed617,_0x53631e,_0x5247c6){const _0x53bcb5=_0x2b05dd,_0x4bffee=new XcrunCMD()[_0x53bcb5(0x1a2)]();_0x4bffee[_0x53bcb5(0x1c4)](_0x5c5a61);_0x5247c6?_0x4bffee[_0x53bcb5(0x199)](_0x3af1e0,_0x2ed617):_0x4bffee['authApi'](_0x3af1e0,_0x2ed617);_0x4bffee['platform'](_0x53bcb5(0x1b8)),_0x4bffee['appleId'](_0x53631e);const _0x3dd8f5=(0x0,child_process_1[_0x53bcb5(0x1d6)])(_0x4bffee['line']);return _0x3dd8f5[_0x53bcb5(0x1ce)]();}static async[_0x2b05dd(0x1b9)](_0x44e2ad,_0x8131a8,_0x2bd9e3,_0x590770){const _0x2cd43f=_0x2b05dd,_0x216e96=new XcrunCMD()[_0x2cd43f(0x1a2)]();_0x216e96[_0x2cd43f(0x1b9)](_0x44e2ad);_0x590770?_0x216e96[_0x2cd43f(0x199)](_0x8131a8,_0x2bd9e3):_0x216e96[_0x2cd43f(0x1d3)](_0x8131a8,_0x2bd9e3);_0x216e96[_0x2cd43f(0x1a0)](_0x2cd43f(0x1b8));const _0xc201fa=(0x0,child_process_1[_0x2cd43f(0x1d6)])(_0x216e96['line']);return _0xc201fa[_0x2cd43f(0x1ce)]();}static async['runWithSimulator'](_0x1844db){const _0xf1ff80=_0x2b05dd;let _0x321240=new XcrunCMD()[_0xf1ff80(0x19b)]();_0x321240['listDevices'](_0xf1ff80(0x19d));const _0x187f45=(0x0,child_process_1[_0xf1ff80(0x1d6)])(_0x321240['line']),_0x367c92=this[_0xf1ff80(0x1de)](_0x187f45[_0xf1ff80(0x1ce)]());if(_0x367c92[_0xf1ff80(0x1dc)]===0x0)throw new Error(_0xf1ff80(0x1ca));let _0x32b6bf=_0x367c92[0x0];for(let _0x380a5b=0x0;_0x380a5b<_0x367c92[_0xf1ff80(0x1dc)];_0x380a5b++){if(_0x367c92[_0x380a5b][_0xf1ff80(0x1c7)]==='Booted'){_0x32b6bf=_0x367c92[_0x380a5b];break;}}console[_0xf1ff80(0x1aa)](_0xf1ff80(0x1c3)+_0x32b6bf[_0xf1ff80(0x1dd)]);const _0x486c2c=resource_1[_0xf1ff80(0x196)]+_0xf1ff80(0x1ba),_0x66db2b=resource_1[_0xf1ff80(0x1a9)]+_0xf1ff80(0x1c5);!fs[_0xf1ff80(0x1a4)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0xf1ff80(0x1b2)](resource_1[_0xf1ff80(0x1a9)],{'recursive':!![]});!fs[_0xf1ff80(0x1a4)](_0x66db2b)&&fs['mkdirSync'](_0x66db2b,{'recursive':!![]});(0x0,file_1[_0xf1ff80(0x195)])(_0x66db2b);const _0x265083=new xcodebuild_1['XcodebuildCMD']()[_0xf1ff80(0x1c8)](_0x486c2c)['line']+(_0xf1ff80(0x1d0)+_0x32b6bf[_0xf1ff80(0x1dd)]+'\x27\x20-derivedDataPath\x20'+_0x66db2b);console['log'](_0xf1ff80(0x1bd)),(0x0,child_process_1['execSync'])(_0x265083),console[_0xf1ff80(0x1aa)](_0xf1ff80(0x1cf));_0x32b6bf[_0xf1ff80(0x1c7)]===_0xf1ff80(0x1b5)&&(_0x321240=new XcrunCMD()[_0xf1ff80(0x19b)](),_0x321240['boot'](_0x32b6bf[_0xf1ff80(0x1dd)]),(0x0,child_process_1[_0xf1ff80(0x1d6)])(_0x321240[_0xf1ff80(0x1cd)]));(0x0,child_process_1[_0xf1ff80(0x1d6)])('open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/'),console[_0xf1ff80(0x1aa)]('installing\x20app');const _0x2e585c=(0x0,path_1['join'])(_0x66db2b,_0xf1ff80(0x1af)+_0x1844db[_0xf1ff80(0x1d4)]+_0xf1ff80(0x19c));_0x321240=new XcrunCMD()['simctl'](),_0x321240[_0xf1ff80(0x19f)](_0x32b6bf[_0xf1ff80(0x1dd)],_0x2e585c),(0x0,child_process_1[_0xf1ff80(0x1d6)])(_0x321240[_0xf1ff80(0x1cd)]),console[_0xf1ff80(0x1aa)](_0xf1ff80(0x1b0)),console[_0xf1ff80(0x1aa)](_0xf1ff80(0x1da)),_0x321240=new XcrunCMD()['simctl'](),_0x321240[_0xf1ff80(0x1c2)](_0x32b6bf[_0xf1ff80(0x1dd)],_0x1844db['id']),(0x0,child_process_1[_0xf1ff80(0x1d6)])(_0x321240[_0xf1ff80(0x1cd)]);}static[_0x2b05dd(0x1de)](_0x203054){const _0x2e6b51=_0x2b05dd;let _0x5b9086=_0x203054[_0x2e6b51(0x1a8)]('\x0a'),_0x1a1705=[],_0x365486=-0x1;for(let _0x5ef5ff=0x0;_0x5ef5ff<_0x5b9086[_0x2e6b51(0x1dc)];_0x5ef5ff++){if(_0x5b9086[_0x5ef5ff]['includes'](_0x2e6b51(0x1d8)))_0x365486=_0x5ef5ff;else{if(_0x365486>0x0){if(_0x5b9086[_0x5ef5ff][_0x2e6b51(0x1c6)](_0x2e6b51(0x1b6)))break;if(_0x5b9086[_0x5ef5ff][_0x2e6b51(0x1dc)]>0x0){const _0x28082e=_0x5b9086[_0x5ef5ff][_0x2e6b51(0x1a8)]('('),_0x44eee1={'name':_0x28082e[0x0][_0x2e6b51(0x1be)](),'deviceId':_0x28082e[0x1][_0x2e6b51(0x1a8)](')')[0x0][_0x2e6b51(0x1be)](),'state':_0x28082e[0x2][_0x2e6b51(0x1a8)](')')[0x0][_0x2e6b51(0x1be)]()};_0x1a1705[_0x2e6b51(0x1d5)](_0x44eee1);}}}}return _0x1a1705;}}exports[_0x2b05dd(0x1d9)]=Xcrun;class XcrunCMD{constructor(){const _0x47dae7=_0x2b05dd;this[_0x47dae7(0x1cd)]='xcrun';}[_0x2b05dd(0x1a2)](){const _0x5aa27e=_0x2b05dd;return this[_0x5aa27e(0x1cd)]+='\x20altool',this;}[_0x2b05dd(0x19b)](){const _0x4b5a68=_0x2b05dd;return this['line']+=_0x4b5a68(0x1c9),this;}[_0x2b05dd(0x1a3)](){const _0x153e99=_0x2b05dd;return this[_0x153e99(0x1cd)]+=_0x153e99(0x198),this;}[_0x2b05dd(0x1bc)](_0xa84f63){const _0x5091a6=_0x2b05dd;return this[_0x5091a6(0x1cd)]+=_0x5091a6(0x1ac)+_0xa84f63+'\x22',this;}[_0x2b05dd(0x1db)](_0xf83fd4){const _0x4e9d9f=_0x2b05dd;return this[_0x4e9d9f(0x1cd)]+='\x20--validate-app\x20-f\x20'+_0xf83fd4,this;}[_0x2b05dd(0x1b9)](_0x375fc7){const _0x3e0a07=_0x2b05dd;return this[_0x3e0a07(0x1cd)]+='\x20--upload-app\x20-f\x20'+_0x375fc7,this;}[_0x2b05dd(0x1c4)](_0x3f04cc){const _0x476c83=_0x2b05dd;return this[_0x476c83(0x1cd)]+=_0x476c83(0x1cc)+_0x3f04cc,this;}[_0x2b05dd(0x199)](_0x553abf,_0x210483){const _0x148aa5=_0x2b05dd;return this[_0x148aa5(0x1cd)]+=_0x148aa5(0x1a6)+_0x553abf+'\x20-p\x20'+_0x210483,this;}[_0x2b05dd(0x1d3)](_0x1a57ec,_0x555adf){const _0x5866bd=_0x2b05dd;return this['line']+=_0x5866bd(0x1d2)+_0x1a57ec+_0x5866bd(0x1cb)+_0x555adf,this;}['appleId'](_0x24c405){const _0x108522=_0x2b05dd;return this[_0x108522(0x1cd)]+='\x20--apple-id\x20'+_0x24c405,this;}[_0x2b05dd(0x1a0)](_0x577601){const _0x43e6be=_0x2b05dd;return this[_0x43e6be(0x1cd)]+=_0x43e6be(0x1bf)+_0x577601,this;}[_0x2b05dd(0x19e)](_0x3d90bc){const _0x33a9e9=_0x2b05dd;return this['line']+=_0x33a9e9(0x1b4)+_0x3d90bc,this;}['verbose'](){const _0x57694e=_0x2b05dd;return this[_0x57694e(0x1cd)]+=_0x57694e(0x1bb),this;}[_0x2b05dd(0x1d7)](){const _0x261d18=_0x2b05dd;return this[_0x261d18(0x1cd)]+='\x20shutdown\x20booted',this;}[_0x2b05dd(0x1b1)](_0x176652){const _0x6ed9c0=_0x2b05dd;return this['line']+=_0x6ed9c0(0x1e1)+_0x176652+'\x22',this;}[_0x2b05dd(0x19f)](_0x319834,_0x52ff10){const _0x1e5eea=_0x2b05dd;return this['line']+=_0x1e5eea(0x1a1)+_0x319834+_0x1e5eea(0x1b7)+_0x52ff10+'\x22',this;}[_0x2b05dd(0x1c2)](_0xab34a2,_0x5992c1){const _0x2c2d28=_0x2b05dd;return this[_0x2c2d28(0x1cd)]+=_0x2c2d28(0x1a7)+_0xab34a2+_0x2c2d28(0x1b7)+_0x5992c1+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"sharp": "^0.33.5",
|
|
39
39
|
"valid-url": "^1.0.9",
|
|
40
40
|
"xcode": "^3.0.1",
|
|
41
|
-
"@webspatial/platform-visionos": "^0.1.
|
|
41
|
+
"@webspatial/platform-visionos": "^0.1.11"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@rollup/plugin-terser": "^0.4.3",
|