@webspatial/builder 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/cmds/build.d.ts +4 -4
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.d.ts +2 -3
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/launch.js +1 -1
- package/dist/lib/cmds/shutdown.js +1 -1
- package/dist/lib/cmds/version.d.ts +1 -2
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.d.ts +4 -15
- 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.d.ts +2 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/types.d.ts +27 -0
- package/dist/lib/types.js +1 -0
- 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/history.d.ts +15 -0
- package/dist/lib/utils/history.js +1 -0
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.d.ts +2 -0
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.d.ts +3 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.d.ts +38 -3
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +4 -3
- package/dist/lib/Cli.d.ts +0 -5
- package/dist/lib/Cli.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5ae9b3=_0x2625;(function(_0x53317a,_0x17ad3f){const _0x108aa2=_0x2625,_0x29d444=_0x53317a();while(!![]){try{const _0x143543=-parseInt(_0x108aa2(0x15a))/0x1+-parseInt(_0x108aa2(0x13f))/0x2*(parseInt(_0x108aa2(0x15f))/0x3)+parseInt(_0x108aa2(0x159))/0x4*(-parseInt(_0x108aa2(0x174))/0x5)+-parseInt(_0x108aa2(0x175))/0x6+parseInt(_0x108aa2(0x16a))/0x7+-parseInt(_0x108aa2(0x140))/0x8*(-parseInt(_0x108aa2(0x148))/0x9)+parseInt(_0x108aa2(0x131))/0xa;if(_0x143543===_0x17ad3f)break;else _0x29d444['push'](_0x29d444['shift']());}catch(_0x431eda){_0x29d444['push'](_0x29d444['shift']());}}}(_0x335b,0xdfb62));function _0x2625(_0x1d8cd9,_0x4c863b){const _0x335ba3=_0x335b();return _0x2625=function(_0x26253e,_0xe58b99){_0x26253e=_0x26253e-0x12f;let _0x1a27f6=_0x335ba3[_0x26253e];return _0x1a27f6;},_0x2625(_0x1d8cd9,_0x4c863b);}function _0x335b(){const _0x4940cb=['manifest\x20path','configureHelp','build','__esModule','By\x20compiling\x20or\x20running\x20directly\x20on\x20the\x20simulator\x20the\x20WebSpatial\x20App','command','requiredOption','--manifest\x20<manifest>','Publish\x20WebSpatial\x20App','username','4211992NIZFDM','379904XQEeDq','name','store','setDecompressResponseBuffer','./lib/cmds/version','152049TKWyPq','defineProperty','Shutdown\x20Simulator','export\x20path','downloadFile','fetch','Command','manifest\x20url','app\x20version','bundle\x20id','./lib/cmds/build','5010936EwVPWB','--manifest-url\x20<manifestUrl>','option','./lib/cmds/shutdown','log','--base\x20<base>','-v,\x20--version','action','major','run','5bnUNuh','9072900LmBmzp','--tryWithoutBuild\x20<tryWithoutBuild>','run\x20without\x20build','--manifest-url\x20<manifest-url>','./lib/cmds/launch','setFetch','exports','--export\x20<export>','19087840mXSqcv','xr\x20platform','publish','team\x20id','decompressResponseBuffer','webspatial-builder','parseAsync','app\x20build\x20type','--u\x20<username>','launch','--teamId\x20<teamId>','./lib/utils/fetch','shutdown','base\x20path','12hozVSf','32jtiHjl','password','argv','--bundle-id\x20<bundleId>','setDownloadFile','--version\x20<version>','project\x20path','--platform\x20<platform>','3466890VZtSBD','description','--buildType\x20<buildType>','fetchUtils','node','Current\x20Node.js\x20version\x20is\x20','getVersion'];_0x335b=function(){return _0x4940cb;};return _0x335b();}Object[_0x5ae9b3(0x160)](exports,_0x5ae9b3(0x152),{'value':!![]});const commander_1=require('commander'),semver_1=require('semver'),FetchUtils_1_1=require('./lib/utils/FetchUtils-1'),build_1=require(_0x5ae9b3(0x169)),version_1=require(_0x5ae9b3(0x15e)),fetch_1=require(_0x5ae9b3(0x13c)),launch_1=require(_0x5ae9b3(0x179)),shutdown_1=require(_0x5ae9b3(0x16d));module[_0x5ae9b3(0x12f)]=async()=>{const _0x454c1e=_0x5ae9b3;if((0x0,semver_1[_0x454c1e(0x172)])(process['versions'][_0x454c1e(0x14c)])<0xe)throw new Error(_0x454c1e(0x14d)+process['versions'][_0x454c1e(0x14c)]+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');const _0x18d874=new commander_1[(_0x454c1e(0x165))]();FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x17a)](fetch_1[_0x454c1e(0x164)]),FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x144)](fetch_1[_0x454c1e(0x163)]),FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x15d)](fetch_1[_0x454c1e(0x135)]),await setupCommands(_0x18d874),await _0x18d874[_0x454c1e(0x137)](process[_0x454c1e(0x142)]);};async function setupCommands(_0x2dc774){const _0x2c67f6=_0x5ae9b3,_0x2343f3=await(0x0,version_1[_0x2c67f6(0x14e)])();_0x2dc774[_0x2c67f6(0x15b)](_0x2c67f6(0x136))[_0x2c67f6(0x149)]('WebSpatial\x20Builder\x20is\x20a\x20client-side\x20CLI\x20tool\x20used\x20to\x20generate\x20cross\x20platform\x20XRApp\x20projects.')['version'](_0x2343f3,_0x2c67f6(0x170))[_0x2c67f6(0x150)]({'showGlobalOptions':!![]}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x173))[_0x2c67f6(0x149)](_0x2c67f6(0x153))[_0x2c67f6(0x16c)](_0x2c67f6(0x156),'manifest\x20path')[_0x2c67f6(0x16c)]('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x16b),_0x2c67f6(0x166))[_0x2c67f6(0x16c)](_0x2c67f6(0x147),_0x2c67f6(0x132))[_0x2c67f6(0x16c)](_0x2c67f6(0x16f),_0x2c67f6(0x13e))[_0x2c67f6(0x16c)](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x16c)](_0x2c67f6(0x176),_0x2c67f6(0x177))['action'](async _0x1e054e=>{await(0x0,build_1['run'])(_0x1e054e);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x151))['description']('Build\x20WebSpatial\x20App')[_0x2c67f6(0x16c)]('--manifest\x20<manifest>',_0x2c67f6(0x14f))['option']('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x178),_0x2c67f6(0x166))['option']('--platform\x20<platform>',_0x2c67f6(0x132))[_0x2c67f6(0x16c)]('--version\x20<version>',_0x2c67f6(0x167))[_0x2c67f6(0x16c)](_0x2c67f6(0x14a),_0x2c67f6(0x138))['option'](_0x2c67f6(0x130),_0x2c67f6(0x162))['option'](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x155)]('--base\x20<base>',_0x2c67f6(0x13e))['requiredOption'](_0x2c67f6(0x13b),'team\x20id')[_0x2c67f6(0x171)](async _0x51413a=>{const _0x3bfac9=_0x2c67f6;console[_0x3bfac9(0x16e)](_0x51413a),await(0x0,build_1['build'])(_0x51413a);}),_0x2dc774['command'](_0x2c67f6(0x133))[_0x2c67f6(0x149)](_0x2c67f6(0x157))[_0x2c67f6(0x16c)](_0x2c67f6(0x156),_0x2c67f6(0x14f))['option']('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x16b),_0x2c67f6(0x166))['option'](_0x2c67f6(0x147),_0x2c67f6(0x132))['option'](_0x2c67f6(0x14a),_0x2c67f6(0x138))[_0x2c67f6(0x16c)](_0x2c67f6(0x130),_0x2c67f6(0x162))[_0x2c67f6(0x16c)](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x155)](_0x2c67f6(0x16f),_0x2c67f6(0x13e))[_0x2c67f6(0x155)](_0x2c67f6(0x13b),_0x2c67f6(0x134))[_0x2c67f6(0x155)](_0x2c67f6(0x145),'app\x20version')['requiredOption'](_0x2c67f6(0x139),_0x2c67f6(0x158))[_0x2c67f6(0x155)]('--p\x20<password>',_0x2c67f6(0x141))[_0x2c67f6(0x171)](async _0x21b237=>{const _0x4d8466=_0x2c67f6;console[_0x4d8466(0x16e)](_0x21b237),await(0x0,build_1[_0x4d8466(0x15c)])(_0x21b237);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x13a))[_0x2c67f6(0x149)]('Launch\x20WebSpatial\x20App')['option'](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x171)](async _0x453484=>{console['log'](_0x453484),await(0x0,launch_1['launch'])(_0x453484);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x13d))[_0x2c67f6(0x149)](_0x2c67f6(0x161))[_0x2c67f6(0x171)](async _0x24bbf6=>{const _0x104c48=_0x2c67f6;console[_0x104c48(0x16e)](_0x24bbf6),await(0x0,shutdown_1['shutdown'])(_0x24bbf6);});}
|
package/dist/lib/cmds/build.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function store(args:
|
|
4
|
-
export declare function run(args:
|
|
1
|
+
import { ManifestInfo } from '../types';
|
|
2
|
+
export declare function build(args: any): Promise<ManifestInfo>;
|
|
3
|
+
export declare function store(args: any): Promise<void>;
|
|
4
|
+
export declare function run(args: any): Promise<void>;
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x10fb9d=_0x17d5;(function(_0x37336b,_0x3f2ea4){const _0x2930c7=_0x17d5,_0x393f34=_0x37336b();while(!![]){try{const _0x4670fd=-parseInt(_0x2930c7(0x1fc))/0x1+parseInt(_0x2930c7(0x1fd))/0x2+parseInt(_0x2930c7(0x200))/0x3+-parseInt(_0x2930c7(0x210))/0x4+parseInt(_0x2930c7(0x20f))/0x5*(parseInt(_0x2930c7(0x20a))/0x6)+parseInt(_0x2930c7(0x20c))/0x7+parseInt(_0x2930c7(0x216))/0x8*(-parseInt(_0x2930c7(0x217))/0x9);if(_0x4670fd===_0x3f2ea4)break;else _0x393f34['push'](_0x393f34['shift']());}catch(_0x33c1de){_0x393f34['push'](_0x393f34['shift']());}}}(_0x38f7,0x9a77d));Object['defineProperty'](exports,_0x10fb9d(0x207),{'value':!![]}),exports[_0x10fb9d(0x1f7)]=build,exports['store']=store,exports[_0x10fb9d(0x20b)]=run;const pwa_1=require(_0x10fb9d(0x1f3)),resource_1=require(_0x10fb9d(0x219)),xcode_1=require(_0x10fb9d(0x1ff)),check_1=require(_0x10fb9d(0x21c)),history_1=require(_0x10fb9d(0x215));async function build(_0x4ac952){const _0xc59367=_0x10fb9d;var _0x34acd2;console[_0xc59367(0x21a)](_0xc59367(0x21b)),resource_1[_0xc59367(0x208)]['checkPlatformPath'](_0x4ac952[_0xc59367(0x1f8)]);const _0x4d50e7=await doPwa(_0x4ac952),_0x4dd485=await doReadyProject((_0x34acd2=_0x4ac952['project'])!==null&&_0x34acd2!==void 0x0?_0x34acd2:_0xc59367(0x1f5),_0x4d50e7);return await doXcode(_0x4ac952,_0x4dd485,_0x4d50e7),console[_0xc59367(0x21a)](_0xc59367(0x1fa)),await xcode_1[_0xc59367(0x206)][_0xc59367(0x1f7)](_0x4ac952['export']),_0x4d50e7;}async function store(_0x42a34b){const _0x8a0148=_0x10fb9d;resource_1['ResourceManager'][_0x8a0148(0x20e)](_0x42a34b['platform']),(0x0,check_1[_0x8a0148(0x212)])(_0x42a34b);let _0x4fff94={'name':_0x8a0148(0x1f4)};_0x42a34b['buildType']=_0x8a0148(0x203);if(_0x42a34b['name'])_0x4fff94[_0x8a0148(0x1f2)]=_0x42a34b[_0x8a0148(0x1f2)];else{const _0xb666df=await build(_0x42a34b);_0x4fff94[_0x8a0148(0x1f2)]=_0xb666df[_0x8a0148(0x211)][_0x8a0148(0x1f2)];}await xcode_1[_0x8a0148(0x206)][_0x8a0148(0x1fb)](_0x42a34b,_0x4fff94);}async function run(_0x793ffa){const _0x556d05=_0x10fb9d;var _0x29691a;const _0x19c40b=JSON[_0x556d05(0x1f9)](_0x793ffa);history_1[_0x556d05(0x213)]['init'](_0x19c40b),console[_0x556d05(0x21a)]('-------------------\x20parse\x20start\x20-------------------'),resource_1[_0x556d05(0x208)][_0x556d05(0x20e)](_0x793ffa['platform']);const _0x40ea72=await doPwa(_0x793ffa,!![]);history_1['default'][_0x556d05(0x1ef)](_0x40ea72[_0x556d05(0x211)]);if(_0x40ea72[_0x556d05(0x1f0)]||_0x793ffa[_0x556d05(0x204)]===_0x556d05(0x209)){if(history_1[_0x556d05(0x213)][_0x556d05(0x1f1)](_0x40ea72[_0x556d05(0x211)])){console[_0x556d05(0x21a)]('Same\x20as\x20the\x20previous\x20record'),await xcode_1['XcodeManager'][_0x556d05(0x1f6)]();return;}}const _0x3f0a76=await doReadyProject((_0x29691a=_0x793ffa[_0x556d05(0x214)])!==null&&_0x29691a!==void 0x0?_0x29691a:_0x556d05(0x1f5),_0x40ea72);await doXcode(_0x793ffa,_0x3f0a76,_0x40ea72,!![]),console[_0x556d05(0x21a)](_0x556d05(0x1fa)),await xcode_1[_0x556d05(0x206)]['runWithSimulator']();}function _0x17d5(_0x38942d,_0x4bebff){const _0x38f735=_0x38f7();return _0x17d5=function(_0x17d5c4,_0x2d024d){_0x17d5c4=_0x17d5c4-0x1ef;let _0x4a32b9=_0x38f735[_0x17d5c4];return _0x4a32b9;},_0x17d5(_0x38942d,_0x4bebff);}async function doPwa(_0x4a02ff,_0x84cc8c=![]){const _0x5a37cf=_0x10fb9d;return(0x0,check_1[_0x5a37cf(0x1fe)])(_0x4a02ff,_0x84cc8c),await pwa_1[_0x5a37cf(0x218)]['generator'](_0x4a02ff,_0x84cc8c);}async function doReadyProject(_0x545dd0,_0x4ba58b){const _0x534d6c=_0x10fb9d;return!_0x4ba58b['fromNet']&&(await resource_1[_0x534d6c(0x208)][_0x534d6c(0x205)](_0x545dd0),console[_0x534d6c(0x21a)]('move\x20web\x20project:\x20ok')),await resource_1[_0x534d6c(0x208)]['generateIcon'](_0x4ba58b);}function _0x38f7(){const _0x1f65c5=['2136252gJPnge','run','4589823YdpGAq','version','checkPlatformPath','15AfYjnJ','3112592NWbeLr','json','checkStoreParams','default','project','../utils/history','2221256obUEEa','18ozMoIx','PWAGenerator','../resource','log','-------------------\x20parse\x20start\x20-------------------','./check','recordManifest','fromNet','checkManifest','name','../pwa','WebSpatialTest','dist','runWithHistory','build','platform','stringify','-------------------\x20parse\x20end\x20-------------------','upload','192006mYgZaT','384898msRonp','checkBuildParams','../xcode','725715IOSYNH','export','parseProject','app-store-connect','tryWithoutBuild','moveProjectFrom','XcodeManager','__esModule','ResourceManager','true'];_0x38f7=function(){return _0x1f65c5;};return _0x38f7();}async function doXcode(_0x529c3c,_0x406792,_0xca4ca6,_0x30c78d=![]){const _0x3473d0=_0x10fb9d;await xcode_1['XcodeManager'][_0x3473d0(0x202)]({'icon':_0x406792,'manifestInfo':_0xca4ca6,'teamId':_0x529c3c['teamId'],'version':_0x529c3c[_0x3473d0(0x20d)],'buildType':_0x529c3c['buildType'],'export':_0x529c3c[_0x3473d0(0x201)]},_0x30c78d);}
|
package/dist/lib/cmds/check.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function checkStoreParams(args: ParsedArgs): void;
|
|
1
|
+
export declare function checkBuildParams(args: any, isDev?: boolean): void;
|
|
2
|
+
export declare function checkStoreParams(args: any): void;
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3fcb8c=_0x1b91;(function(_0xddda89,_0x2911e4){const _0x398225=_0x1b91,_0x14616f=_0xddda89();while(!![]){try{const _0x12a2b0=-parseInt(_0x398225(0x149))/0x1+parseInt(_0x398225(0x13f))/0x2*(parseInt(_0x398225(0x136))/0x3)+-parseInt(_0x398225(0x13e))/0x4*(-parseInt(_0x398225(0x12f))/0x5)+-parseInt(_0x398225(0x13b))/0x6+parseInt(_0x398225(0x134))/0x7+-parseInt(_0x398225(0x145))/0x8*(parseInt(_0x398225(0x138))/0x9)+-parseInt(_0x398225(0x147))/0xa*(-parseInt(_0x398225(0x140))/0xb);if(_0x12a2b0===_0x2911e4)break;else _0x14616f['push'](_0x14616f['shift']());}catch(_0x127022){_0x14616f['push'](_0x14616f['shift']());}}}(_0x2aa4,0x8609d));Object[_0x3fcb8c(0x146)](exports,_0x3fcb8c(0x13d),{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x3fcb8c(0x142)]=checkStoreParams;const validate_1=require(_0x3fcb8c(0x133));function _0x1b91(_0x2d9e36,_0x17f60f){const _0x2aa411=_0x2aa4();return _0x1b91=function(_0x1b91ca,_0x1a0ec5){_0x1b91ca=_0x1b91ca-0x12e;let _0x3c6ca9=_0x2aa411[_0x1b91ca];return _0x3c6ca9;},_0x1b91(_0x2d9e36,_0x17f60f);}function checkBuildParams(_0x1b4909,_0x128fb7=![]){const _0x16b114=_0x3fcb8c;if(_0x1b4909[_0x16b114(0x13a)]&&_0x1b4909[_0x16b114(0x141)])throw new Error(_0x16b114(0x13c));if(!_0x1b4909[_0x16b114(0x143)]&&!_0x128fb7)throw new Error(_0x16b114(0x132));if(_0x1b4909[_0x16b114(0x135)]){if((0x0,validate_1[_0x16b114(0x14a)])(_0x1b4909['base']))try{const _0x7296a5=new URL(_0x1b4909[_0x16b114(0x135)]);if(_0x7296a5[_0x16b114(0x144)]||_0x7296a5[_0x16b114(0x137)])throw new Error(_0x16b114(0x148));}catch(_0x4e912a){throw new Error('The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.');}else{const _0x20c580=/(\?.*|\.\w+|#.*)$/,_0x2d870f=_0x1b4909[_0x16b114(0x135)][_0x16b114(0x130)]('/')['pop']()||'';if(_0x20c580['test'](_0x2d870f))throw new Error(_0x16b114(0x148));}}}function checkStoreParams(_0x43a901){const _0xabc42b=_0x3fcb8c;if(!(_0x43a901['u']&&_0x43a901['p']))throw new Error(_0xabc42b(0x12e));if(!_0x43a901[_0xabc42b(0x131)])throw new Error(_0xabc42b(0x139));}function _0x2aa4(){const _0x25eadf=['1671285JsPzaK','base','21FtwOFy','hash','495KFbHOI','version\x20is\x20required','manifest','6535788GCgkWa','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','__esModule','969692PDowCf','98792gAjKtB','237303snsiDl','manifest-url','checkStoreParams','teamId','search','158968ozfdyX','defineProperty','890gCiJoy','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','258146SpWbRZ','validateURL','--u\x20and\x20--p\x20is\x20required','10NEpJAd','split','version','--teamId\x20is\x20required','../pwa/validate'];_0x2aa4=function(){return _0x25eadf;};return _0x2aa4();}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1a5403=_0x5d84;function _0x2a52(){const _0x210760=['webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','get','80628yBGINZ','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','help','133299ZUNzMK','../utils/Log','__esModule','562520mvIIzA','82046GPIpJf','6PyOiCw','main','322521AeWZtI','help\x20................\x20shows\x20this\x20menu','895993QEjTjm','publish','33220SQkrMH','Usage:','270aDatOo','join','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','dev','build','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','150XnsACm','8HycPhj','3540JtEsvU','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','info','ConsoleLog','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>','defineProperty'];_0x2a52=function(){return _0x210760;};return _0x2a52();}(function(_0x451022,_0x29c6bc){const _0xe8ab1f=_0x5d84,_0x2f67cd=_0x451022();while(!![]){try{const _0x4c8a44=-parseInt(_0xe8ab1f(0x108))/0x1+parseInt(_0xe8ab1f(0x109))/0x2*(-parseInt(_0xe8ab1f(0x10b))/0x3)+-parseInt(_0xe8ab1f(0x107))/0x4+-parseInt(_0xe8ab1f(0x117))/0x5*(-parseInt(_0xe8ab1f(0x121))/0x6)+parseInt(_0xe8ab1f(0x10d))/0x7*(-parseInt(_0xe8ab1f(0x118))/0x8)+-parseInt(_0xe8ab1f(0x104))/0x9*(parseInt(_0xe8ab1f(0x111))/0xa)+-parseInt(_0xe8ab1f(0x10f))/0xb*(-parseInt(_0xe8ab1f(0x119))/0xc);if(_0x4c8a44===_0x29c6bc)break;else _0x2f67cd['push'](_0x2f67cd['shift']());}catch(_0x5e0b26){_0x2f67cd['push'](_0x2f67cd['shift']());}}}(_0x2a52,0x35f13));function _0x5d84(_0x1e6edd,_0x187d7e){const _0x2a5288=_0x2a52();return _0x5d84=function(_0x5d846a,_0x2d862e){_0x5d846a=_0x5d846a-0x104;let _0x948243=_0x2a5288[_0x5d846a];return _0x948243;},_0x5d84(_0x1e6edd,_0x187d7e);}Object[_0x1a5403(0x11e)](exports,_0x1a5403(0x106),{'value':!![]}),exports[_0x1a5403(0x123)]=help;const Log_1=require(_0x1a5403(0x105)),HELP_MESSAGES=new Map([[_0x1a5403(0x10a),['webspatial\x20[command]\x20<options>','','',_0x1a5403(0x10c),_0x1a5403(0x116)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x115),[_0x1a5403(0x110),'','',_0x1a5403(0x122),'','','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x114),['Usage:','','',_0x1a5403(0x11f),'','','webspatial\x20dev\x20--manifest-url=<net-manifest-url>'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x10e),[_0x1a5403(0x110),'','',_0x1a5403(0x11d),'','',_0x1a5403(0x113),'','',_0x1a5403(0x11a)][_0x1a5403(0x112)]('\x0a')]]);async function help(_0x2fbe13,_0x5f1f54=new Log_1[(_0x1a5403(0x11c))]('help')){const _0x5c95ec=_0x1a5403,_0x17eca7=_0x2fbe13['_'][0x1],_0x396ca5=HELP_MESSAGES[_0x5c95ec(0x120)](_0x17eca7)||HELP_MESSAGES['get'](_0x5c95ec(0x10a));return _0x5f1f54[_0x5c95ec(0x11b)](_0x396ca5),!![];}
|
package/dist/lib/cmds/launch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x449074=_0x2236;(function(_0x4df0b4,_0x5b3849){const _0x16fe27=_0x2236,_0x5c3ee5=_0x4df0b4();while(!![]){try{const _0x391aee=parseInt(_0x16fe27(0x108))/0x1*(-parseInt(_0x16fe27(0x113))/0x2)+parseInt(_0x16fe27(0x110))/0x3*(parseInt(_0x16fe27(0x107))/0x4)+parseInt(_0x16fe27(0x109))/0x5+-parseInt(_0x16fe27(0x10c))/0x6*(-parseInt(_0x16fe27(0x10a))/0x7)+parseInt(_0x16fe27(0x10e))/0x8+parseInt(_0x16fe27(0x10b))/0x9+parseInt(_0x16fe27(0x10f))/0xa*(-parseInt(_0x16fe27(0x115))/0xb);if(_0x391aee===_0x5b3849)break;else _0x5c3ee5['push'](_0x5c3ee5['shift']());}catch(_0x3f36d6){_0x5c3ee5['push'](_0x5c3ee5['shift']());}}}(_0x331e,0x4ef00));function _0x331e(){const _0x245adb=['733545kzdgOj','1141DMRWTm','1321371FIJEvp','20766YcKteA','bundle-id','116648eigIri','873640cppsAh','20319xevPwR','launchWithSimulator','defineProperty','6850BClgvS','default','55UGcdVV','com.webspatial.test','../xcode/xcrun','__esModule','308JdLbZf','185UNdhtg'];_0x331e=function(){return _0x245adb;};return _0x331e();}function _0x2236(_0x365890,_0x137d2d){const _0x331e11=_0x331e();return _0x2236=function(_0x223690,_0x28ad4a){_0x223690=_0x223690-0x104;let _0x575b21=_0x331e11[_0x223690];return _0x575b21;},_0x2236(_0x365890,_0x137d2d);}Object[_0x449074(0x112)](exports,_0x449074(0x106),{'value':!![]}),exports['launch']=launch;const xcrun_1=require(_0x449074(0x105));async function launch(_0x2a5563){const _0x233263=_0x449074;var _0x5c8676;const _0x6361f4=(_0x5c8676=_0x2a5563[_0x233263(0x10d)])!==null&&_0x5c8676!==void 0x0?_0x5c8676:_0x233263(0x104),_0x368a08={'name':'','id':_0x6361f4};return xcrun_1[_0x233263(0x114)][_0x233263(0x111)](_0x368a08),!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x510643=_0x5356;(function(_0x39008f,_0x3567e3){const _0x486512=_0x5356,_0x360e21=_0x39008f();while(!![]){try{const _0x3f41ba=parseInt(_0x486512(0xc5))/0x1*(-parseInt(_0x486512(0xc2))/0x2)+parseInt(_0x486512(0xce))/0x3*(parseInt(_0x486512(0xcd))/0x4)+-parseInt(_0x486512(0xc9))/0x5+parseInt(_0x486512(0xc8))/0x6+parseInt(_0x486512(0xca))/0x7+-parseInt(_0x486512(0xc4))/0x8*(parseInt(_0x486512(0xcf))/0x9)+-parseInt(_0x486512(0xc3))/0xa*(-parseInt(_0x486512(0xc7))/0xb);if(_0x3f41ba===_0x3567e3)break;else _0x360e21['push'](_0x360e21['shift']());}catch(_0x16ba9f){_0x360e21['push'](_0x360e21['shift']());}}}(_0x35b0,0xf173f));function _0x5356(_0x33f143,_0x42c29d){const _0x35b0d3=_0x35b0();return _0x5356=function(_0x5356b2,_0x26e918){_0x5356b2=_0x5356b2-0xc2;let _0x449e7b=_0x35b0d3[_0x5356b2];return _0x449e7b;},_0x5356(_0x33f143,_0x42c29d);}Object[_0x510643(0xc6)](exports,_0x510643(0xd0),{'value':!![]}),exports[_0x510643(0xcb)]=shutdown;function _0x35b0(){const _0x878cc1=['6zZYnZD','72ZRemdI','__esModule','1182sofXeh','30nHmGNg','1349392gljxgL','1091qbxhqo','defineProperty','1473791cpWqph','5545950YdxfWz','4572385MXOxbi','7431543gWeBhz','shutdown','../xcode/xcrun','3019448WZFqGR'];_0x35b0=function(){return _0x878cc1;};return _0x35b0();}const xcrun_1=require(_0x510643(0xcc));async function shutdown(_0x3e9bda){return xcrun_1['default']['shutdownSimulator'](),!![];}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function version(log?: Log): Promise<boolean>;
|
|
1
|
+
export declare function getVersion(): Promise<string>;
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x69e615=_0x467d;(function(_0x57ccc1,_0x1d7cf1){const _0x33a591=_0x467d,_0x701f77=_0x57ccc1();while(!![]){try{const _0x39f3b5=parseInt(_0x33a591(0x12d))/0x1*(-parseInt(_0x33a591(0x138))/0x2)+parseInt(_0x33a591(0x12e))/0x3+parseInt(_0x33a591(0x132))/0x4*(-parseInt(_0x33a591(0x136))/0x5)+parseInt(_0x33a591(0x133))/0x6+parseInt(_0x33a591(0x135))/0x7*(parseInt(_0x33a591(0x130))/0x8)+-parseInt(_0x33a591(0x139))/0x9+-parseInt(_0x33a591(0x12f))/0xa;if(_0x39f3b5===_0x1d7cf1)break;else _0x701f77['push'](_0x701f77['shift']());}catch(_0x27a327){_0x701f77['push'](_0x701f77['shift']());}}}(_0x4598,0xc86db));Object[_0x69e615(0x134)](exports,_0x69e615(0x13b),{'value':!![]}),exports['getVersion']=getVersion;const fs=require('fs'),path=require(_0x69e615(0x12a));function _0x467d(_0x73639b,_0xc78254){const _0x4598c7=_0x4598();return _0x467d=function(_0x467d30,_0x347801){_0x467d30=_0x467d30-0x12a;let _0x3bb372=_0x4598c7[_0x467d30];return _0x3bb372;},_0x467d(_0x73639b,_0xc78254);}async function getVersion(){const _0x2ff6f0=_0x69e615,_0x41f172=path[_0x2ff6f0(0x137)](__dirname,_0x2ff6f0(0x13a)),_0x552f6d=await(await fs[_0x2ff6f0(0x12b)][_0x2ff6f0(0x12c)](_0x41f172))['toString'](),_0x5031d7=JSON['parse'](_0x552f6d);return _0x5031d7[_0x2ff6f0(0x131)];}function _0x4598(){const _0x313ced=['join','2jDYKGr','13057668cTlGKB','../../../package.json','__esModule','path','promises','readFile','89633TRjUiq','2631114BuuIWk','8377450LGlmdj','760rWznlF','version','27712cxJfKB','6698106GsOKBi','defineProperty','92932glveik','40THUBsc'];_0x4598=function(){return _0x313ced;};return _0x4598();}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5ddbb7=_0x2a3d;(function(_0x5aa333,_0x3e4c66){const _0x1564ef=_0x2a3d,_0x53ed58=_0x5aa333();while(!![]){try{const _0x25d156=parseInt(_0x1564ef(0x119))/0x1+-parseInt(_0x1564ef(0x160))/0x2+-parseInt(_0x1564ef(0x16d))/0x3+-parseInt(_0x1564ef(0x124))/0x4+-parseInt(_0x1564ef(0x13d))/0x5*(-parseInt(_0x1564ef(0x11d))/0x6)+-parseInt(_0x1564ef(0x146))/0x7*(-parseInt(_0x1564ef(0x12d))/0x8)+parseInt(_0x1564ef(0x167))/0x9*(parseInt(_0x1564ef(0x159))/0xa);if(_0x25d156===_0x3e4c66)break;else _0x53ed58['push'](_0x53ed58['shift']());}catch(_0x3446d6){_0x53ed58['push'](_0x53ed58['shift']());}}}(_0x40f0,0xa8a4a));Object[_0x5ddbb7(0x149)](exports,_0x5ddbb7(0x16a),{'value':!![]}),exports[_0x5ddbb7(0x13e)]=void 0x0,exports[_0x5ddbb7(0x134)]=configId,exports[_0x5ddbb7(0x12b)]=configStartUrl,exports[_0x5ddbb7(0x139)]=configScope,exports[_0x5ddbb7(0x164)]=configDisplay,exports['configMainScene']=configMainScene,exports[_0x5ddbb7(0x133)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require(_0x5ddbb7(0x12c)),path_1=require(_0x5ddbb7(0x162));function _0x40f0(){const _0x1fc3a5=['configStartUrl','./validate','8sJbEse','normalize','height','resolve','standalone','relative','configDeeplink','configId','href','includes','length','startsWith','configScope','sftp','xmpp','mode','1855585NygZQp','safelist','contentSize','parseRouter','width','scope','sip','url','host','620963LquMfm','irc','smsto','defineProperty','ircs','magnet','automatic','news','mms','webcal','mainScene','string','protocol_handlers','object','./static-web','reverse','sms','urn','ftps','88330GWjKpW','display','origin','display_override','indexOf','index','map','2722160rBqpoC','replace','path','ftp','configDisplay','join','split','765bLCSzr','defaultSize','mailto','__esModule','validateURL','contentMinSize','340920NzELev','wtai','web+','982260yztaJM','start_url','\x20\x20is\x20not\x20a\x20valid\x20url','openpgp4fpr','6efBzcU','splice','cwd','hash','sort','nntp','xr_main_scene','109636kfJkge','fullscreen','pathname','search','resizability','default_size','filter'];_0x40f0=function(){return _0x1fc3a5;};return _0x40f0();}function configId(_0x87cfef,_0x24a122){const _0x3894ac=_0x5ddbb7;if(_0x24a122)_0x87cfef['id']=_0x24a122;else try{const _0x19b4be=new URL(_0x87cfef['id']);let _0x6755db=_0x19b4be[_0x3894ac(0x145)][_0x3894ac(0x166)]('.')[_0x3894ac(0x155)]();_0x87cfef['id']=_0x6755db[_0x3894ac(0x165)]('.');}catch(_0x208ffe){throw new Error('id:'+_0x87cfef['id']+_0x3894ac(0x11b));}}function configStartUrl(_0x345577,_0x1d9ab4,_0x15fcfa,_0x4eee3c){const _0x25165f=_0x5ddbb7;var _0x149876;let _0x32c97b=(_0x149876=_0x345577['start_url'])!==null&&_0x149876!==void 0x0?_0x149876:'/';const _0x3cefe4=(0x0,validate_1['validateURL'])(_0x32c97b),_0x2efbb9=_0x1d9ab4[_0x25165f(0x137)]>0x0;if(_0x2efbb9){const _0x3572d6=(0x0,validate_1['validateURL'])(_0x1d9ab4);if(!_0x3cefe4&&!_0x3572d6){const _0xed8319=(0x0,path_1[_0x25165f(0x130)])(_0x25165f(0x154)),_0x49e09d=(0x0,path_1[_0x25165f(0x130)])(_0xed8319,_0x1d9ab4,_0x32c97b),_0x56582f=(0x0,path_1['normalize'])(_0x49e09d),_0x4068dd=(0x0,path_1['join'])(_0xed8319,_0x56582f);_0x32c97b=(0x0,path_1['relative'])(process[_0x25165f(0x11f)](),_0x4068dd)[_0x25165f(0x161)](/^(\.\.\/)+/,'./')[_0x25165f(0x161)](/\/$/,'');}else{if(_0x3cefe4&&!_0x3572d6){const _0x1ac2f2=new URL(_0x32c97b),_0x100a86=_0x1ac2f2[_0x25165f(0x126)]+_0x1ac2f2['search']+_0x1ac2f2[_0x25165f(0x120)];let _0x4ae894=new URL(_0x1d9ab4,_0x1ac2f2['origin']);_0x32c97b=new URL(_0x100a86,_0x4ae894)[_0x25165f(0x135)];}else{if(!_0x3cefe4&&_0x3572d6){if(_0x32c97b[_0x25165f(0x138)]('/')){const _0x2c1069=new URL(_0x1d9ab4);_0x32c97b=_0x2c1069[_0x25165f(0x15b)]+(0x0,path_1[_0x25165f(0x165)])(_0x2c1069[_0x25165f(0x126)],_0x32c97b);}else _0x32c97b=new URL(_0x32c97b,_0x1d9ab4)['href'];}else{if(_0x3cefe4&&_0x3572d6){const _0x4daffe=new URL(_0x32c97b),_0x678de2=new URL(_0x1d9ab4),_0x225920=_0x4daffe[_0x25165f(0x126)]+_0x4daffe[_0x25165f(0x127)]+_0x4daffe[_0x25165f(0x120)];_0x32c97b=new URL(_0x225920,_0x678de2['origin']+_0x678de2['pathname'])[_0x25165f(0x135)];}}}}}else{if(_0x4eee3c){const _0x4501c7=new URL(_0x15fcfa);if(!_0x3cefe4){const _0x5cc720=new URL(_0x32c97b,_0x4501c7['origin']);_0x32c97b=_0x5cc720[_0x25165f(0x135)];}else{const _0x38fd51=new URL(_0x32c97b);_0x32c97b=_0x4501c7[_0x25165f(0x15b)]+_0x38fd51[_0x25165f(0x126)]+_0x38fd51['search']+_0x38fd51[_0x25165f(0x120)];}}else{if(!_0x3cefe4){const _0x5898a2=(0x0,path_1[_0x25165f(0x130)])(_0x25165f(0x154)),_0x3db9b0=(0x0,path_1[_0x25165f(0x130)])(_0x5898a2,_0x32c97b),_0x4d8479=(0x0,path_1[_0x25165f(0x12e)])(_0x3db9b0),_0x1b9326=(0x0,path_1[_0x25165f(0x165)])(_0x5898a2,_0x4d8479);_0x32c97b=(0x0,path_1[_0x25165f(0x132)])(process['cwd'](),_0x1b9326)[_0x25165f(0x161)](/^(\.\.\/)+/,'./')[_0x25165f(0x161)](/\/$/,'');}}}return _0x32c97b;}function _0x2a3d(_0xea70f5,_0x490d68){const _0x40f0c6=_0x40f0();return _0x2a3d=function(_0x2a3d84,_0x28464f){_0x2a3d84=_0x2a3d84-0x117;let _0xa1e030=_0x40f0c6[_0x2a3d84];return _0xa1e030;},_0x2a3d(_0xea70f5,_0x490d68);}function configScope(_0x1196c9){const _0x8ea497=_0x5ddbb7;var _0x1d7312;let _0x440459=(_0x1d7312=_0x1196c9['scope'])!==null&&_0x1d7312!==void 0x0?_0x1d7312:'/';const _0x2ef073=(0x0,validate_1[_0x8ea497(0x16b)])(_0x1196c9['start_url']),_0x73abda=(0x0,validate_1[_0x8ea497(0x16b)])(_0x440459);if(_0x2ef073&&_0x73abda){const _0xefe19a=new URL(_0x440459),_0x3dbf98=new URL(_0x1196c9['start_url']);(_0xefe19a[_0x8ea497(0x145)]!==_0x3dbf98['host']||_0x1196c9[_0x8ea497(0x11a)][_0x8ea497(0x15d)](_0x440459)!==0x0)&&(_0x440459=(0x0,utils_1[_0x8ea497(0x140)])(_0x1196c9[_0x8ea497(0x11a)]));}else{if(_0x2ef073&&!_0x73abda)_0x440459=new URL(_0x440459,_0x1196c9[_0x8ea497(0x11a)])[_0x8ea497(0x135)];else{if(!_0x2ef073&&_0x73abda){const _0xb05cb7=_0x1196c9[_0x8ea497(0x11a)]['replace'](/\/[^\/]+$/,'');_0x440459=(0x0,path_1['normalize'])(_0xb05cb7+'/');}else _0x440459=(0x0,path_1[_0x8ea497(0x165)])((0x0,utils_1[_0x8ea497(0x140)])(_0x1196c9[_0x8ea497(0x11a)]),_0x440459);}}_0x1196c9['scope']=_0x440459;}function configDisplay(_0xac2bc){const _0x1e5b45=_0x5ddbb7;let _0xb9a576=_0xac2bc['display'];const _0x2569c1=['minimal-ui',_0x1e5b45(0x131),_0x1e5b45(0x125)];!_0x2569c1[_0x1e5b45(0x136)](_0xb9a576)&&(_0xb9a576=_0x1e5b45(0x131));if(_0xac2bc['display_override']&&_0xac2bc[_0x1e5b45(0x15c)][_0x1e5b45(0x137)]>0x0){const _0x16f1a0=_0xac2bc['display_override'][_0x1e5b45(0x15f)]((_0x40cabe,_0x4a3add)=>({'mode':_0x40cabe,'index':_0x4a3add}))[_0x1e5b45(0x12a)](({mode:_0x489f28})=>_0x2569c1[_0x1e5b45(0x136)](_0x489f28))[_0x1e5b45(0x121)]((_0x4fa230,_0xf99863)=>_0x4fa230[_0x1e5b45(0x15e)]-_0xf99863['index']);_0x16f1a0['length']>0x0&&(_0xb9a576=_0x16f1a0[0x0][_0x1e5b45(0x13c)]);}_0xac2bc[_0x1e5b45(0x15a)]=_0xb9a576;}function configMainScene(_0x28e81f){const _0x20def4=_0x5ddbb7;var _0x2f05f5,_0x391056;const _0x15703c=['automatic',_0x20def4(0x16c),_0x20def4(0x13f)];let _0x454fd1={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x20def4(0x14c)};if(_0x28e81f[_0x20def4(0x123)]){if(typeof _0x28e81f[_0x20def4(0x123)]===_0x20def4(0x153))_0x454fd1[_0x20def4(0x168)][_0x20def4(0x141)]=Number((_0x2f05f5=_0x28e81f['xr_main_scene'][_0x20def4(0x129)])===null||_0x2f05f5===void 0x0?void 0x0:_0x2f05f5[_0x20def4(0x141)])>0x0?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)][_0x20def4(0x141)]:0x500,_0x454fd1['defaultSize'][_0x20def4(0x12f)]=Number((_0x391056=_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)])===null||_0x391056===void 0x0?void 0x0:_0x391056[_0x20def4(0x12f)])>0x0?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)][_0x20def4(0x12f)]:0x500,_0x454fd1[_0x20def4(0x128)]=_0x15703c['includes'](_0x28e81f[_0x20def4(0x123)][_0x20def4(0x128)])?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x128)]:'automatic',_0x28e81f[_0x20def4(0x150)]=_0x454fd1;else typeof _0x28e81f[_0x20def4(0x123)]===_0x20def4(0x151)&&(_0x28e81f['mainScene']='dynamic');}}function configDeeplink(_0x303196){const _0x57f591=_0x5ddbb7;if(_0x303196[_0x57f591(0x152)]&&_0x303196[_0x57f591(0x152)][_0x57f591(0x137)]>0x0)for(var _0x42d30c=0x0;_0x42d30c<_0x303196[_0x57f591(0x152)][_0x57f591(0x137)];_0x42d30c++){const _0x212dca=_0x303196[_0x57f591(0x152)][_0x42d30c];if(_0x212dca['protocol']&&(exports[_0x57f591(0x13e)][_0x57f591(0x136)](_0x212dca['protocol'])||_0x212dca['protocol'][_0x57f591(0x15d)](_0x57f591(0x118))===0x0)){if(!((0x0,validate_1[_0x57f591(0x16b)])(_0x212dca[_0x57f591(0x144)])&&_0x212dca[_0x57f591(0x144)][_0x57f591(0x15d)](_0x303196[_0x57f591(0x142)])<0x0))continue;}_0x303196[_0x57f591(0x152)][_0x57f591(0x11e)](_0x42d30c,0x1),_0x42d30c--;}}exports[_0x5ddbb7(0x13e)]=['bitcoin',_0x5ddbb7(0x163),_0x5ddbb7(0x158),'geo','im',_0x5ddbb7(0x147),_0x5ddbb7(0x14a),_0x5ddbb7(0x14b),_0x5ddbb7(0x169),'matrix',_0x5ddbb7(0x14e),_0x5ddbb7(0x14d),_0x5ddbb7(0x122),_0x5ddbb7(0x11c),_0x5ddbb7(0x13a),_0x5ddbb7(0x143),_0x5ddbb7(0x156),_0x5ddbb7(0x148),'ssh','tel',_0x5ddbb7(0x157),_0x5ddbb7(0x14f),_0x5ddbb7(0x117),_0x5ddbb7(0x13b)];
|
package/dist/lib/pwa/index.d.ts
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
'manifest-url'?: string;
|
|
3
|
-
manifest?: string;
|
|
4
|
-
project?: string;
|
|
5
|
-
base: string;
|
|
6
|
-
'bundle-id'?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ManifestInfo {
|
|
9
|
-
json: Record<string, any>;
|
|
10
|
-
url: string;
|
|
11
|
-
fromNet: boolean;
|
|
12
|
-
}
|
|
1
|
+
import { ManifestInfo, PWAInitArgs } from '../types';
|
|
13
2
|
export declare class PWAGenerator {
|
|
14
3
|
static DisplayModes: string[];
|
|
15
4
|
private static defaultBundleId;
|
|
16
5
|
private static defaultManifestJson;
|
|
17
6
|
private static useDefaultManifestJson;
|
|
18
|
-
static generator(args:
|
|
19
|
-
static validate(args:
|
|
20
|
-
static config(manifestInfo: ManifestInfo, args:
|
|
7
|
+
static generator(args: PWAInitArgs, isDev?: boolean): Promise<ManifestInfo>;
|
|
8
|
+
static validate(args: PWAInitArgs, isDev?: boolean): Promise<ManifestInfo>;
|
|
9
|
+
static config(manifestInfo: ManifestInfo, args: PWAInitArgs, isDev: boolean): void;
|
|
21
10
|
}
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x22dc(){const _0x35e558=['4433MtlrXc','configId','checkManifestJson','loadJsonFromNet','__esModule','check\x20manifest.json:\x20ok','1048576tvGDYn','configDisplay','configMainScene','join','8427430OikYWV','com.webspatial.test','public/manifest.webmanifest','54NskXND','8WqQmKS','standalone','configScope','minimal-ui','manifest','bundle-id','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','json','useDefaultManifestJson','PWAGenerator','52vbRcjH','manifest-url','6UjpOaK','35678bIWGVn','../utils/utils','configDeeplink','reset\x20manifest.json:\x20ok','13848hsXJDR','./validate','existsSync','defaultBundleId','log','config','../resource/load','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found','start_url','public/manifest.json','validate','1037232MHkbgU','cwd','1313367TOGNmh','checkId','3729995EyMtjN','generator'];_0x22dc=function(){return _0x35e558;};return _0x22dc();}const _0x50f9ba=_0x1736;(function(_0x52e308,_0x1cd2a8){const _0x537d3f=_0x1736,_0x189a89=_0x52e308();while(!![]){try{const _0x196049=-parseInt(_0x537d3f(0x17d))/0x1*(-parseInt(_0x537d3f(0x180))/0x2)+parseInt(_0x537d3f(0x161))/0x3*(parseInt(_0x537d3f(0x173))/0x4)+parseInt(_0x537d3f(0x163))/0x5*(-parseInt(_0x537d3f(0x17f))/0x6)+-parseInt(_0x537d3f(0x15f))/0x7+parseInt(_0x537d3f(0x16b))/0x8*(-parseInt(_0x537d3f(0x172))/0x9)+parseInt(_0x537d3f(0x16f))/0xa+parseInt(_0x537d3f(0x165))/0xb*(-parseInt(_0x537d3f(0x184))/0xc);if(_0x196049===_0x1cd2a8)break;else _0x189a89['push'](_0x189a89['shift']());}catch(_0x389b09){_0x189a89['push'](_0x189a89['shift']());}}}(_0x22dc,0x7a238));Object['defineProperty'](exports,_0x50f9ba(0x169),{'value':!![]}),exports[_0x50f9ba(0x17c)]=void 0x0;const path_1=require('path'),config_1=require('./config'),load_1=require(_0x50f9ba(0x15a)),validate_1=require(_0x50f9ba(0x155)),fs=require('fs'),utils_1=require(_0x50f9ba(0x181));function _0x1736(_0x5505c2,_0x313ce1){const _0x22dc15=_0x22dc();return _0x1736=function(_0x173652,_0x340cf8){_0x173652=_0x173652-0x155;let _0xd7035=_0x22dc15[_0x173652];return _0xd7035;},_0x1736(_0x5505c2,_0x313ce1);}class PWAGenerator{static async[_0x50f9ba(0x164)](_0x426c07,_0x2a839d=![]){const _0x562780=_0x50f9ba;let _0x193b0d=await this[_0x562780(0x15e)](_0x426c07,_0x2a839d);return console['log'](_0x562780(0x16a)),await this['config'](_0x193b0d,_0x426c07,_0x2a839d),console[_0x562780(0x158)](_0x562780(0x183)),_0x193b0d;}static async[_0x50f9ba(0x15e)](_0x3b217c,_0x22b51a=![]){const _0x54f723=_0x50f9ba;var _0x526b1f,_0x570250;let _0x20905f={},_0xef61ca='',_0x576cfc=![],_0xd25c54=![];if(_0x3b217c[_0x54f723(0x17e)])_0xef61ca=_0x3b217c[_0x54f723(0x17e)],_0x576cfc=!![],_0x20905f=await(0x0,load_1[_0x54f723(0x168)])(_0x3b217c[_0x54f723(0x17e)]);else{_0x3b217c[_0x54f723(0x177)]?_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process[_0x54f723(0x160)](),_0x3b217c['manifest']):(_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process['cwd'](),_0x54f723(0x15d)),!fs[_0x54f723(0x156)](_0xef61ca)&&(_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process[_0x54f723(0x160)](),_0x54f723(0x171))));if(!fs[_0x54f723(0x156)](_0xef61ca)){if(_0x22b51a)_0xd25c54=!![],utils_1['CliLog']['warn'](_0x54f723(0x179));else throw new Error(_0x54f723(0x15b));}_0x20905f=_0xd25c54?this['defaultManifestJson']:await(0x0,load_1['loadJsonFromDisk'])(_0xef61ca),this[_0x54f723(0x17b)]=_0xd25c54;}(0x0,validate_1[_0x54f723(0x167)])(_0x20905f,_0x22b51a);let _0x28e325=(0x0,config_1['configStartUrl'])(_0x20905f,(_0x526b1f=_0x3b217c['base'])!==null&&_0x526b1f!==void 0x0?_0x526b1f:'',_0xef61ca,_0x576cfc);var _0x1efd2f=(0x0,validate_1['checkStartUrl'])(_0x28e325,_0xef61ca,_0x576cfc,_0x22b51a);_0x20905f[_0x54f723(0x15c)]=_0x28e325;if(!_0x22b51a)(0x0,validate_1[_0x54f723(0x162)])(_0x20905f,(_0x570250=_0x3b217c[_0x54f723(0x178)])!==null&&_0x570250!==void 0x0?_0x570250:'');return await(0x0,validate_1['checkIcons'])(_0x20905f,_0xef61ca,_0x22b51a),{'json':_0x20905f,'url':_0xef61ca,'fromNet':_0x1efd2f};}static[_0x50f9ba(0x159)](_0x28c6c0,_0x54c77b,_0x5c0299){const _0x3b998b=_0x50f9ba;var _0x3d7095;let _0x1e5198=(_0x3d7095=_0x54c77b[_0x3b998b(0x178)])!==null&&_0x3d7095!==void 0x0?_0x3d7095:'';_0x5c0299&&!_0x28c6c0[_0x3b998b(0x17a)]['id']&&(_0x1e5198=this[_0x3b998b(0x157)]),(0x0,config_1[_0x3b998b(0x166)])(_0x28c6c0[_0x3b998b(0x17a)],_0x1e5198),(0x0,config_1[_0x3b998b(0x175)])(_0x28c6c0[_0x3b998b(0x17a)]),(0x0,config_1[_0x3b998b(0x16c)])(_0x28c6c0['json']),(0x0,config_1[_0x3b998b(0x182)])(_0x28c6c0['json']),(0x0,config_1[_0x3b998b(0x16d)])(_0x28c6c0['json']);}}exports[_0x50f9ba(0x17c)]=PWAGenerator,PWAGenerator['DisplayModes']=[_0x50f9ba(0x174),_0x50f9ba(0x176)],PWAGenerator[_0x50f9ba(0x157)]=_0x50f9ba(0x170),PWAGenerator['defaultManifestJson']={'name':'WebSpatialTest','display':_0x50f9ba(0x176),'start_url':'/','scope':'/'},PWAGenerator[_0x50f9ba(0x17b)]=![];
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5346c4=_0x5f77;(function(_0x5311bd,_0x1d2c3b){const _0x46357d=_0x5f77,_0x3c1cb9=_0x5311bd();while(!![]){try{const _0x3e7e3f=parseInt(_0x46357d(0x11f))/0x1*(-parseInt(_0x46357d(0x125))/0x2)+-parseInt(_0x46357d(0x11a))/0x3+parseInt(_0x46357d(0x102))/0x4*(parseInt(_0x46357d(0xf6))/0x5)+parseInt(_0x46357d(0x109))/0x6*(-parseInt(_0x46357d(0x10a))/0x7)+parseInt(_0x46357d(0xf8))/0x8+parseInt(_0x46357d(0x10f))/0x9+-parseInt(_0x46357d(0x103))/0xa;if(_0x3e7e3f===_0x1d2c3b)break;else _0x3c1cb9['push'](_0x3c1cb9['shift']());}catch(_0x362429){_0x3c1cb9['push'](_0x3c1cb9['shift']());}}}(_0x26f8,0xd26b2));Object[_0x5346c4(0x100)](exports,_0x5346c4(0x10d),{'value':!![]}),exports[_0x5346c4(0xf9)]=checkManifestJson,exports[_0x5346c4(0x101)]=checkStartUrl,exports[_0x5346c4(0x112)]=checkIcons,exports[_0x5346c4(0x121)]=checkId,exports[_0x5346c4(0x120)]=validateBundleId,exports[_0x5346c4(0x104)]=validateURL;const path_1=require(_0x5346c4(0x117)),CustomError_1=require(_0x5346c4(0x124)),utils_1=require(_0x5346c4(0xfc)),imageHelper_1=require('../resource/imageHelper'),load_1=require(_0x5346c4(0x119)),utils_2=require('../utils/utils');function _0x5f77(_0x4e54a1,_0x53b549){const _0x26f8d7=_0x26f8();return _0x5f77=function(_0x5f77bb,_0x5c7943){_0x5f77bb=_0x5f77bb-0xf4;let _0x270ec4=_0x26f8d7[_0x5f77bb];return _0x270ec4;},_0x5f77(_0x4e54a1,_0x53b549);}function _0x26f8(){const _0x28b3f5=['In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','1243128nqUgSq','checkManifestJson','src','icons','../utils/utils','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','http','forEach','defineProperty','checkStartUrl','531644wMokVd','11750230AqbiwD','validateURL','getWidth','purpose','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','../../assets/icon-default.png','348FwSboB','16765ZGTCsF','CliLog','split','__esModule','start_url','8935299GFCoTe','join','startsWith','checkIcons','getHeight','loadImageFromDisk','sizes','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','path','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','../resource/load','899205nxeRXk','indexOf','maskable','warn','1024x1024','134681kZtARP','validateBundleId','checkId','name','CustomError','../utils/CustomError','2OsvWKH','length','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','Local\x20manifest\x20cannot\x20package\x20network\x20project','https://','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','loadImageFromNet','test','http://','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','push','55WCiCSp'];_0x26f8=function(){return _0x28b3f5;};return _0x26f8();}function checkManifestJson(_0x4dedd9,_0x2cd5ae=![]){const _0x4c197e=_0x5346c4;var _0xdaff02;const _0x9f925=[];!_0x4dedd9[_0x4c197e(0x122)]&&!_0x4dedd9['short_name']&&!_0x2cd5ae&&_0x9f925['push']({'code':0xbbe,'message':_0x4c197e(0x127),'message_staring_params':{}});!((_0xdaff02=_0x4dedd9[_0x4c197e(0xfb)])===null||_0xdaff02===void 0x0?void 0x0:_0xdaff02['length'])&&!_0x2cd5ae&&_0x9f925[_0x4c197e(0xf5)]({'code':0xbbf,'message':_0x4c197e(0x107),'message_staring_params':{}});!_0x4dedd9[_0x4c197e(0x10e)]&&!_0x2cd5ae&&_0x9f925[_0x4c197e(0xf5)]({'code':0xbc0,'message':_0x4c197e(0xf7),'message_staring_params':{}});if(_0x9f925[_0x4c197e(0x126)])throw new CustomError_1[(_0x4c197e(0x123))](_0x9f925);}function checkStartUrl(_0x312a27,_0x13ba4d,_0x32ed8a,_0x368149=![]){const _0x411759=_0x5346c4;var _0x35cb38=![];if(_0x368149)return _0x312a27[_0x411759(0x111)](_0x411759(0x129))||_0x312a27[_0x411759(0x111)](_0x411759(0x12d));if(_0x32ed8a){if(_0x312a27[_0x411759(0x111)](_0x411759(0x129))){const _0x1d4fc2=new URL(_0x312a27),_0x2575c8=new URL(_0x13ba4d);if(_0x1d4fc2['host']!==_0x2575c8['host'])throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':'In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','message_staring_params':{}});}else{if(_0x312a27['startsWith'](_0x411759(0x12d)))throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':_0x411759(0x116),'message_staring_params':{}});}}else{if(_0x312a27[_0x411759(0x111)](_0x411759(0x129))||_0x312a27['startsWith'](_0x411759(0x12d)))throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':_0x411759(0x128),'message_staring_params':{}});}return _0x35cb38;}async function checkIcons(_0x115018,_0x567841,_0x29dce6=![]){const _0x1640ac=_0x5346c4;var _0x1e33aa,_0x3ec758;if(!((_0x1e33aa=_0x115018[_0x1640ac(0xfb)])===null||_0x1e33aa===void 0x0?void 0x0:_0x1e33aa[_0x1640ac(0x126)])&&_0x29dce6){_0x115018['icons']=[{'src':(0x0,path_1[_0x1640ac(0x110)])(__dirname,_0x1640ac(0x108)),'sizes':'1024x1024','purpose':_0x1640ac(0x11c)}],utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0xfd));return;}const _0x3d8e10=(0x0,utils_1['parseRouter'])(_0x567841);let _0x55b0cd,_0x20e777,_0x44c9f1,_0xfba592=0x0;for(var _0x112223=0x0;_0x112223<_0x115018[_0x1640ac(0xfb)][_0x1640ac(0x126)];_0x112223++){const _0x2074df=_0x115018[_0x1640ac(0xfb)][_0x112223];let _0x569bfc=((_0x3ec758=_0x2074df['purpose'])===null||_0x3ec758===void 0x0?void 0x0:_0x3ec758[_0x1640ac(0x11b)]('maskable'))>=0x0;if(!_0x569bfc)continue;let _0xe59e82=![],_0xa3fd0c=_0x2074df[_0x1640ac(0xfa)],_0x1b5c0b,_0x488523=0x0;!validateURL(_0xa3fd0c)&&(_0xa3fd0c=(0x0,path_1[_0x1640ac(0x110)])(_0x3d8e10,_0xa3fd0c));if(_0x2074df[_0x1640ac(0x115)]){const _0x55a2a6=_0x2074df[_0x1640ac(0x115)][_0x1640ac(0x10c)]('\x20');_0x55a2a6[_0x1640ac(0xff)](_0x5a20e2=>{const _0x18d11e=_0x1640ac;let _0x2af879=_0x5a20e2[_0x18d11e(0x10c)]('x');Number(_0x2af879[0x0])>=0x400&&Number(_0x2af879[0x1])>=0x400&&(_0xe59e82=!![],Number(_0x2af879[0x0])>_0x488523&&(_0x488523=Number(_0x2af879[0x0])));});}else _0x1b5c0b=!_0xa3fd0c[_0x1640ac(0x111)](_0x1640ac(0xfe))?await(0x0,load_1[_0x1640ac(0x114)])(_0xa3fd0c):await(0x0,load_1[_0x1640ac(0x12b)])(_0xa3fd0c),_0x1b5c0b[_0x1640ac(0x105)]()>=0x400&&_0x1b5c0b[_0x1640ac(0x113)]()>=0x400&&(_0xe59e82=!![],_0x1b5c0b[_0x1640ac(0x105)]()>_0x488523&&(_0x488523=_0x1b5c0b[_0x1640ac(0x105)]()));_0xe59e82&&_0x569bfc&&(_0x488523>_0xfba592&&(_0xfba592=_0x488523,_0x55b0cd=_0x1b5c0b,_0x20e777=_0xa3fd0c,_0x44c9f1=_0x2074df[_0x1640ac(0x106)]));}if(_0xfba592===0x0){if(_0x29dce6){_0x115018[_0x1640ac(0xfb)]=[{'src':(0x0,path_1['join'])(__dirname,'../../assets/icon-default.png'),'sizes':_0x1640ac(0x11e),'purpose':'maskable'}],utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0x12a)),utils_2[_0x1640ac(0x10b)]['warn']('icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode');return;}throw new CustomError_1[(_0x1640ac(0x123))]({'code':0xfa0,'message':_0x1640ac(0x12a),'message_staring_params':{}});}else _0x20e777&&(_0x55b0cd=!_0x20e777['startsWith'](_0x1640ac(0xfe))?await(0x0,load_1[_0x1640ac(0x114)])(_0x20e777):await(0x0,load_1[_0x1640ac(0x12b)])(_0x20e777));if(_0x55b0cd&&!imageHelper_1['ImageHelper']['isFullyOpaque'](_0x55b0cd)){if(_0x29dce6){utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0x12a));return;}throw new CustomError_1[(_0x1640ac(0x123))]({'code':0xfa0,'message':_0x1640ac(0x118),'message_staring_params':{}});}_0x115018[_0x1640ac(0xfb)]=[{'src':_0x20e777,'sizes':_0xfba592+'x'+_0xfba592,'purpose':_0x44c9f1}];}function checkId(_0x4cdb5d,_0x43cb19){const _0x2d381c=_0x5346c4;if(_0x43cb19){if(!validateBundleId(_0x43cb19))throw new CustomError_1[(_0x2d381c(0x123))]({'code':0xfa0,'message':'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','message_staring_params':{}});return;}!_0x4cdb5d['id']&&(_0x4cdb5d['id']=_0x4cdb5d[_0x2d381c(0x10e)]);if(!validateURL(_0x4cdb5d['id'])&&!_0x43cb19)throw new CustomError_1[(_0x2d381c(0x123))]({'code':0xfa0,'message':_0x2d381c(0xf4),'message_staring_params':{}});}function validateBundleId(_0x4eaff4){const _0x551765=_0x5346c4,_0x3c6ffc=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x3c6ffc[_0x551765(0x12c)](_0x4eaff4);}function validateURL(_0x48da53){try{return new URL(_0x48da53),!![];}catch(_0x2158ee){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4e20f6=_0x2392;(function(_0x5eee80,_0x179f7e){const _0x324bc4=_0x2392,_0x594d65=_0x5eee80();while(!![]){try{const _0x4048d2=-parseInt(_0x324bc4(0x18c))/0x1*(-parseInt(_0x324bc4(0x18f))/0x2)+parseInt(_0x324bc4(0x182))/0x3+parseInt(_0x324bc4(0x18b))/0x4*(-parseInt(_0x324bc4(0x185))/0x5)+-parseInt(_0x324bc4(0x197))/0x6*(parseInt(_0x324bc4(0x184))/0x7)+-parseInt(_0x324bc4(0x190))/0x8+parseInt(_0x324bc4(0x191))/0x9+-parseInt(_0x324bc4(0x17f))/0xa*(-parseInt(_0x324bc4(0x196))/0xb);if(_0x4048d2===_0x179f7e)break;else _0x594d65['push'](_0x594d65['shift']());}catch(_0x40bd44){_0x594d65['push'](_0x594d65['shift']());}}}(_0x59a8,0x70d97));function _0x2392(_0xcb2c1d,_0x2afd09){const _0x59a8d8=_0x59a8();return _0x2392=function(_0x239216,_0xfc6d67){_0x239216=_0x239216-0x17f;let _0x4531eb=_0x59a8d8[_0x239216];return _0x4531eb;},_0x2392(_0xcb2c1d,_0x2afd09);}Object['defineProperty'](exports,_0x4e20f6(0x194),{'value':!![]}),exports[_0x4e20f6(0x188)]=copyDir,exports[_0x4e20f6(0x193)]=clearDir;function _0x59a8(){const _0x428a95=['isDirectory','4216652TAaoFH','2208GNrGff','10BEfFsF','forEach','statSync','2018490fFtzcv','unlinkSync','12131YiDogk','119445zVzDtt','mkdirSync','readFileSync','copyDir','existsSync','readdirSync','16gytTHr','1zNxqGH','isFile','writeFileSync','532994fHPGnF','6449880RLhvJQ','6111963yFTWek','log','clearDir','__esModule'];_0x59a8=function(){return _0x428a95;};return _0x59a8();}const fs=require('fs');function copyDir(_0x37c266,_0x3b1700){const _0x41cf24=_0x4e20f6,_0x5926c4=fs[_0x41cf24(0x18a)](_0x37c266);_0x5926c4[_0x41cf24(0x180)](_0x17c51c=>{const _0x3850d4=_0x41cf24,_0x2269f7=_0x37c266+'/'+_0x17c51c,_0x40868d=_0x3b1700+'/'+_0x17c51c,_0x41bd04=fs['statSync'](_0x2269f7);if(_0x41bd04[_0x3850d4(0x18d)]())try{fs[_0x3850d4(0x18e)](_0x40868d,fs[_0x3850d4(0x187)](_0x2269f7));}catch(_0x540ac2){console[_0x3850d4(0x192)](_0x540ac2);}else _0x41bd04['isDirectory']()&&(!fs[_0x3850d4(0x189)](_0x40868d)&&fs[_0x3850d4(0x186)](_0x40868d,{'recursive':!![]}),copyDir(_0x2269f7,_0x40868d));});}function clearDir(_0x47097a){const _0x3ec8d3=_0x4e20f6,_0x2d8101=fs[_0x3ec8d3(0x18a)](_0x47097a);_0x2d8101[_0x3ec8d3(0x180)](_0x2fbee2=>{const _0x426d5d=_0x3ec8d3,_0x57a024=_0x47097a+'/'+_0x2fbee2,_0x15eee2=fs[_0x426d5d(0x181)](_0x57a024);if(_0x15eee2[_0x426d5d(0x18d)]())try{fs[_0x426d5d(0x183)](_0x57a024);}catch(_0xfe6062){console['log'](_0xfe6062);}else _0x15eee2[_0x426d5d(0x195)]()&&clearDir(_0x57a024);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0xaaff49=_0x9632;function _0x4051(){const _0x288280=['3288324uTrqEW','svg2img','bitmap','defineProperty','3429920MOrZnj','getWidth','__esModule','1745160HhfACE','createImg','jimp','ImageHelper','getHeight','isFullyOpaque','webp2PngBuffer','data','1861644LRGmiC','@resvg/resvg-js','sharp','width','toFormat','42166MsQreG','2360721GBGgCl','asPng','14XlsdeU','2uCgwNY','Resvg','png','16286490ULZqVu'];_0x4051=function(){return _0x288280;};return _0x4051();}(function(_0xa1c1fb,_0x28d130){const _0x494928=_0x9632,_0x4f808e=_0xa1c1fb();while(!![]){try{const _0x16e2d5=parseInt(_0x494928(0x184))/0x1+-parseInt(_0x494928(0x16c))/0x2*(parseInt(_0x494928(0x185))/0x3)+parseInt(_0x494928(0x170))/0x4+-parseInt(_0x494928(0x174))/0x5+-parseInt(_0x494928(0x17f))/0x6+-parseInt(_0x494928(0x187))/0x7*(parseInt(_0x494928(0x177))/0x8)+parseInt(_0x494928(0x16f))/0x9;if(_0x16e2d5===_0x28d130)break;else _0x4f808e['push'](_0x4f808e['shift']());}catch(_0x3ef674){_0x4f808e['push'](_0x4f808e['shift']());}}}(_0x4051,0x6ef02));function _0x9632(_0x1d103f,_0x422567){const _0x40512d=_0x4051();return _0x9632=function(_0x96325f,_0x53d8ad){_0x96325f=_0x96325f-0x16c;let _0x4ace38=_0x40512d[_0x96325f];return _0x4ace38;},_0x9632(_0x1d103f,_0x422567);}Object[_0xaaff49(0x173)](exports,_0xaaff49(0x176),{'value':!![]}),exports['ImageHelper']=void 0x0;const Jimp=require(_0xaaff49(0x179)),sharp=require(_0xaaff49(0x181)),resvg_js_1=require(_0xaaff49(0x180));class ImageHelper{static[_0xaaff49(0x178)](_0x49b7bd){return new Jimp(_0x49b7bd,_0x49b7bd,0x0);}static async[_0xaaff49(0x17d)](_0x4fecba){const _0x5e7190=_0xaaff49;return await sharp(_0x4fecba)[_0x5e7190(0x183)](_0x5e7190(0x16e))['toBuffer']();}static async[_0xaaff49(0x171)](_0x42b25a){const _0x46c661=_0xaaff49,_0x2f5f9f={'fitTo':{'mode':_0x46c661(0x182),'value':0x400}},_0x2e05e9=new resvg_js_1[(_0x46c661(0x16d))](_0x42b25a,_0x2f5f9f),_0x3cce55=_0x2e05e9['render'](),_0x596c2e=_0x3cce55[_0x46c661(0x186)]();return _0x596c2e;}static[_0xaaff49(0x17c)](_0x19b990){const _0x1cb519=_0xaaff49,_0x4f2380=_0x19b990[_0x1cb519(0x175)]()*_0x19b990[_0x1cb519(0x17b)]();for(var _0x1b2543=0x0;_0x1b2543<_0x4f2380;_0x1b2543++){const _0x16b233=_0x1b2543*0x4+0x3;if(_0x19b990[_0x1cb519(0x172)][_0x1cb519(0x17e)][_0x16b233]<0xff)return![];}return!![];}}exports[_0xaaff49(0x17a)]=ImageHelper;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ManifestInfo } from '../
|
|
1
|
+
import { ManifestInfo } from '../types';
|
|
2
2
|
import * as Jimp from 'jimp';
|
|
3
3
|
export declare let PROJECT_DIRECTORY: string;
|
|
4
4
|
export declare let PROJECT_BUILD_DIRECTORY: string;
|
|
5
5
|
export declare let PROJECT_EXPORT_DIRECTORY: string;
|
|
6
|
+
export declare let PROJECT_TEST_DIRECTORY: string;
|
|
6
7
|
export declare const WEB_PROJECT_DIRECTORY = "web-spatial/static-web";
|
|
7
8
|
export declare const ASSET_DIRECTORY = "web-spatial/Assets.xcassets";
|
|
8
9
|
export declare const BACK_APPICON_DIRECTORY: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4d263e=_0x54ab;function _0x54ab(_0x29cc91,_0x2bb464){const _0xe703f3=_0xe703();return _0x54ab=function(_0x54ab81,_0x5077df){_0x54ab81=_0x54ab81-0x98;let _0x5340e0=_0xe703f3[_0x54ab81];return _0x5340e0;},_0x54ab(_0x29cc91,_0x2bb464);}(function(_0x1884c5,_0xd4716d){const _0x3f49bd=_0x54ab,_0x2bcb0d=_0x1884c5();while(!![]){try{const _0x49315c=-parseInt(_0x3f49bd(0xb9))/0x1*(parseInt(_0x3f49bd(0x9c))/0x2)+parseInt(_0x3f49bd(0xae))/0x3*(parseInt(_0x3f49bd(0xad))/0x4)+parseInt(_0x3f49bd(0xa0))/0x5+-parseInt(_0x3f49bd(0xc9))/0x6*(parseInt(_0x3f49bd(0xaf))/0x7)+parseInt(_0x3f49bd(0xa2))/0x8*(parseInt(_0x3f49bd(0xba))/0x9)+-parseInt(_0x3f49bd(0xaa))/0xa+parseInt(_0x3f49bd(0xc4))/0xb;if(_0x49315c===_0xd4716d)break;else _0x2bcb0d['push'](_0x2bcb0d['shift']());}catch(_0x19b824){_0x2bcb0d['push'](_0x2bcb0d['shift']());}}}(_0xe703,0x79b04));Object[_0x4d263e(0xbb)](exports,_0x4d263e(0xc2),{'value':!![]}),exports[_0x4d263e(0xa5)]=exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x4d263e(0xc8)]=exports[_0x4d263e(0x9e)]=exports[_0x4d263e(0xb4)]=exports['PROJECT_TEST_DIRECTORY']=exports['PROJECT_EXPORT_DIRECTORY']=exports[_0x4d263e(0xca)]=exports[_0x4d263e(0xa6)]=void 0x0;const fs=require('fs'),path_1=require('path'),file_1=require(_0x4d263e(0xac)),load_1=require(_0x4d263e(0xa9)),child_process_1=require(_0x4d263e(0xb8));function _0xe703(){const _0x21d4b2=['resize','ASSET_DIRECTORY','checkPlatformPath','3646010aWlYJd','generateIcon','26776CaCJge','copyDir','json','ResourceManager','PROJECT_DIRECTORY','icons','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','./load','8719480RLrDfR','loadImageFromNet','./file','428MZViBA','8082gdhFXM','36071GxorMt','../../../','moveProjectFrom','web-spatial/Assets.xcassets',',\x20now\x20WebSpatial\x20only\x20support\x20','WEB_PROJECT_DIRECTORY','PROJECT_TEST_DIRECTORY','PROJECT_EXPORT_DIRECTORY','existsSync','child_process','97511gpLUtn','1377SPwrqd','defineProperty','loadImageFromDisk','not\x20support\x20platform\x20','cwd','includes','rm\x20-rf\x20','execSync','__esModule','web-spatial/static-web','15947382FjTZyf','join','mkdirSync','visionos','BACK_APPICON_DIRECTORY','738SQWYhT','PROJECT_BUILD_DIRECTORY','log','startsWith','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','./build','cd\x20','node_modules/@webspatial/platform-','platform-','20iYjkDR'];_0xe703=function(){return _0x21d4b2;};return _0xe703();}exports['PROJECT_DIRECTORY']='',exports[_0x4d263e(0xca)]='',exports['PROJECT_EXPORT_DIRECTORY']='',exports[_0x4d263e(0xb5)]='',exports[_0x4d263e(0xb4)]=_0x4d263e(0xc3),exports[_0x4d263e(0x9e)]=_0x4d263e(0xb2),exports[_0x4d263e(0xc8)]=exports[_0x4d263e(0x9e)]+_0x4d263e(0xa8),exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x4d263e(0x9e)]+'/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset';const supportPlatform=[_0x4d263e(0xc7)];class ResourceManager{static async[_0x4d263e(0xb1)](_0x4e3c16){const _0x25c98d=_0x4d263e,_0x1b3cc0=(0x0,path_1[_0x25c98d(0xc5)])(process[_0x25c98d(0xbe)](),_0x4e3c16),_0x2c2cab=(0x0,path_1[_0x25c98d(0xc5)])(exports[_0x25c98d(0xa6)],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x25c98d(0xb7)](_0x2c2cab)?fs[_0x25c98d(0xc6)](_0x2c2cab,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0x2c2cab);try{(0x0,file_1[_0x25c98d(0xa3)])(_0x1b3cc0,_0x2c2cab);}catch(_0x5b2739){console[_0x25c98d(0xcb)](_0x5b2739);}}static async[_0x4d263e(0xa1)](_0x134b36){const _0x130ec5=_0x4d263e,_0x1f17d1=_0x134b36[_0x130ec5(0xa4)],_0x3d12ff=_0x1f17d1[_0x130ec5(0xa7)][0x0]['src'],_0x3a95d1=!_0x3d12ff[_0x130ec5(0xcc)]('http')?await(0x0,load_1[_0x130ec5(0xbc)])(_0x3d12ff):await(0x0,load_1[_0x130ec5(0xab)])(_0x3d12ff);return _0x3a95d1[_0x130ec5(0x9d)](0x400,0x400),_0x3a95d1;}static[_0x4d263e(0x9f)](_0x283074){const _0x53afcb=_0x4d263e,_0x901326=_0x283074!==null&&_0x283074!==void 0x0?_0x283074:supportPlatform[0x0];if(!supportPlatform[_0x53afcb(0xbf)](_0x901326))throw new Error(_0x53afcb(0xbd)+_0x901326+_0x53afcb(0xb3)+supportPlatform['join'](','));let _0x3cb872=(0x0,path_1[_0x53afcb(0xc5)])(process['cwd'](),_0x53afcb(0x9a)+_0x901326);!fs['existsSync'](_0x3cb872)&&(_0x3cb872=(0x0,path_1[_0x53afcb(0xc5)])(__dirname,'../../../node_modules/@webspatial/platform-'+_0x901326));const _0x5071c8=fs[_0x53afcb(0xb7)](_0x3cb872);!_0x5071c8&&(0x0,child_process_1['execSync'])(_0x53afcb(0x99)+(0x0,path_1['join'])(__dirname,_0x53afcb(0xb0))+_0x53afcb(0xcd)+_0x901326);let _0x359211=(0x0,path_1[_0x53afcb(0xc5)])(__dirname,'../../temp'),_0x2bae05=(0x0,path_1['join'])(_0x359211,_0x53afcb(0x9b)+_0x901326);fs[_0x53afcb(0xb7)](_0x359211)&&(0x0,child_process_1[_0x53afcb(0xc1)])(_0x53afcb(0xc0)+_0x359211),fs[_0x53afcb(0xc6)](_0x359211),fs[_0x53afcb(0xc6)](_0x2bae05),(0x0,file_1['copyDir'])(_0x3cb872,_0x2bae05),exports['PROJECT_DIRECTORY']=_0x2bae05,exports[_0x53afcb(0xca)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xa6)],_0x53afcb(0x98)),exports[_0x53afcb(0xb6)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xa6)],'./export'),exports[_0x53afcb(0xb5)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xca)],'./test');}}exports[_0x4d263e(0xa5)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x412202=_0x2a20;(function(_0x1d5120,_0x242393){const _0x43d2c2=_0x2a20,_0x4450f5=_0x1d5120();while(!![]){try{const _0x350e05=-parseInt(_0x43d2c2(0x11e))/0x1+-parseInt(_0x43d2c2(0x122))/0x2+-parseInt(_0x43d2c2(0x131))/0x3*(-parseInt(_0x43d2c2(0x121))/0x4)+-parseInt(_0x43d2c2(0x130))/0x5+parseInt(_0x43d2c2(0x12b))/0x6*(-parseInt(_0x43d2c2(0x11f))/0x7)+parseInt(_0x43d2c2(0x128))/0x8+parseInt(_0x43d2c2(0x11b))/0x9;if(_0x350e05===_0x242393)break;else _0x4450f5['push'](_0x4450f5['shift']());}catch(_0x392f8e){_0x4450f5['push'](_0x4450f5['shift']());}}}(_0x595c,0xe8bb9));Object[_0x412202(0x12d)](exports,_0x412202(0x10f),{'value':!![]}),exports[_0x412202(0x125)]=loadJsonFromNet,exports[_0x412202(0x117)]=loadJsonFromDisk,exports[_0x412202(0x10a)]=loadImageFromNet,exports[_0x412202(0x124)]=loadImageFromDisk,exports[_0x412202(0x127)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require('../utils/FetchUtils-1'),CustomError_1=require('../utils/CustomError'),Jimp=require(_0x412202(0x123)),imageHelper_1=require(_0x412202(0x120));function _0x2a20(_0x52aa64,_0x381d2c){const _0x595ced=_0x595c();return _0x2a20=function(_0x2a2014,_0x4f51a7){_0x2a2014=_0x2a2014-0x10a;let _0x5ceec3=_0x595ced[_0x2a2014];return _0x5ceec3;},_0x2a20(_0x52aa64,_0x381d2c);}async function loadJsonFromNet(_0xe33a4){const _0x280977=_0x412202,_0x169b62=await FetchUtils_1_1['fetchUtils'][_0x280977(0x113)](_0xe33a4,{'encoding':_0x280977(0x132)});if(_0x169b62[_0x280977(0x111)]!==0xc8)throw new CustomError_1[(_0x280977(0x11a))]({'code':0xbbc,'message':'Failed\x20to\x20download\x20Web\x20Manifest\x20'+_0xe33a4+'.'+(_0x280977(0x10e)+_0x169b62[_0x280977(0x111)]+_0x280977(0x12a)),'message_staring_params':{'web_manifest_url':_0xe33a4,'status':_0x169b62['status']}});try{let _0xefdf8;return _0x169b62[_0x280977(0x114)]?_0xefdf8=await _0x169b62[_0x280977(0x114)]():[_0x280977(0x10d),'deflate','br'][_0x280977(0x118)](_0x169b62[_0x280977(0x11c)][_0x280977(0x10c)])?_0xefdf8=FetchUtils_1_1[_0x280977(0x13a)]['decompressResponseBuffer'](Buffer[_0x280977(0x137)](_0x169b62[_0x280977(0x135)],_0x280977(0x132)),_0x169b62[_0x280977(0x11c)][_0x280977(0x10c)])['toString']():_0xefdf8=Buffer[_0x280977(0x137)](_0x169b62['data'],'binary')['toString'](),JSON[_0x280977(0x134)](_0xefdf8[_0x280977(0x12f)]());}catch(_0x3a0641){throw new CustomError_1['CustomError']({'code':0xbbd,'message':_0x280977(0x12e),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x5b4445){const _0x384d52=_0x412202,_0x18aac7=await loadFileString(_0x5b4445[_0x384d52(0x126)]());return JSON[_0x384d52(0x134)](_0x18aac7);}async function loadImageFromNet(_0x5915c7){const _0x34e16e=_0x412202,_0x5dcc2b=await FetchUtils_1_1[_0x34e16e(0x13a)][_0x34e16e(0x113)](_0x5915c7,{'encoding':_0x34e16e(0x132)});if(_0x5dcc2b[_0x34e16e(0x111)]!==0xc8)throw new CustomError_1[(_0x34e16e(0x11a))]({'code':0x7d2,'message':_0x34e16e(0x115)+_0x5dcc2b['status'],'message_staring_params':{'icon_url':_0x5915c7,'status':_0x5dcc2b[_0x34e16e(0x111)]}});const _0x3880f7=_0x5dcc2b[_0x34e16e(0x11c)]['get']?_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x11d)](_0x34e16e(0x110)):_0x5dcc2b['headers']['content-type'];if(!(_0x3880f7===null||_0x3880f7===void 0x0?void 0x0:_0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x139))))throw new CustomError_1[(_0x34e16e(0x11a))]({'code':0x7d3,'message':_0x34e16e(0x129)+(_0x34e16e(0x138)+_0x3880f7+'\x22'),'message_staring_params':{'icon_url':_0x5915c7,'contentType':_0x3880f7}});let _0x4ceeb1;_0x5dcc2b['arrayBuffer']?_0x4ceeb1=await _0x5dcc2b['arrayBuffer']():[_0x34e16e(0x10d),_0x34e16e(0x10b),'br'][_0x34e16e(0x118)](_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x10c)])?_0x4ceeb1=FetchUtils_1_1[_0x34e16e(0x13a)][_0x34e16e(0x12c)](Buffer[_0x34e16e(0x137)](_0x5dcc2b[_0x34e16e(0x135)],_0x34e16e(0x132)),_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x10c)]):_0x4ceeb1=Buffer[_0x34e16e(0x137)](_0x5dcc2b[_0x34e16e(0x135)],'binary');if(_0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x133))){const _0x45ba99=new TextDecoder();try{_0x4ceeb1=await imageHelper_1[_0x34e16e(0x112)]['svg2img'](_0x45ba99['decode'](_0x4ceeb1));}catch(_0x2fa5b9){throw new CustomError_1['CustomError']({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x5915c7+':\x20'+_0x2fa5b9,'message_staring_params':{'icon_url':_0x5915c7,'error':_0x2fa5b9}});}}return _0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x116))&&(_0x4ceeb1=await imageHelper_1['ImageHelper']['webp2PngBuffer'](_0x4ceeb1)),await Jimp[_0x34e16e(0x136)](Buffer[_0x34e16e(0x137)](_0x4ceeb1));}function _0x595c(){const _0x4b29fc=['loadImageFromDisk','loadJsonFromNet','toString','loadFileString','1900624LlZzZN','Received\x20icon\x20with\x20invalid\x20Content-Type.',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','12XpDace','decompressResponseBuffer','defineProperty','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','trim','1925080fdftlV','6rWZElU','binary','image/svg','parse','data','read','from','\x20Responded\x20with\x20Content-Type\x20\x22','image/','fetchUtils','loadImageFromNet','deflate','content-encoding','gzip','The\x20response\x20status\x20is\x20','__esModule','content-type','status','ImageHelper','fetch','text','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','image/webp','loadJsonFromDisk','includes','startsWith','CustomError','30371058dOVEKD','headers','get','633421wflrlG','5036591zowQhe','./imageHelper','2272476RSfbmK','2675284KKVZUr','jimp'];_0x595c=function(){return _0x4b29fc;};return _0x595c();}async function loadImageFromDisk(_0x1362b5){const _0x15ef22=_0x412202;return await Jimp[_0x15ef22(0x136)](_0x1362b5);}async function loadFileString(_0x4c44cb){const _0x28d6ea=_0x412202;let _0x4e24d4=await fs['promises']['readFile'](_0x4c44cb['toString']());return _0x4e24d4[_0x28d6ea(0x126)]();}
|