@webspatial/builder 0.0.1 → 0.0.2
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.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/Cli.d.ts +3 -0
- package/dist/lib/Cli.js +1 -0
- package/dist/lib/cmds/build.d.ts +4 -0
- package/dist/lib/cmds/build.js +1 -0
- package/dist/lib/cmds/check.d.ts +3 -0
- package/dist/lib/cmds/check.js +1 -0
- package/dist/lib/cmds/help.d.ts +3 -0
- package/dist/lib/cmds/help.js +1 -0
- package/dist/lib/cmds/version.d.ts +2 -0
- package/dist/lib/cmds/version.js +1 -0
- package/dist/lib/pwa/config.d.ts +7 -0
- package/dist/lib/pwa/config.js +1 -0
- package/dist/lib/pwa/index.d.ts +16 -0
- package/dist/lib/pwa/index.js +1 -0
- package/dist/lib/pwa/validate.d.ts +4 -0
- package/dist/lib/pwa/validate.js +1 -0
- package/dist/lib/resource/file.d.ts +2 -0
- package/dist/lib/resource/file.js +1 -0
- package/dist/lib/resource/imageHelper.d.ts +7 -0
- package/dist/lib/resource/imageHelper.js +1 -0
- package/dist/lib/resource/index.d.ts +13 -0
- package/dist/lib/resource/index.js +1 -0
- package/dist/lib/resource/load.d.ts +6 -0
- package/dist/lib/resource/load.js +1 -0
- package/dist/lib/utils/CustomError.d.ts +13 -0
- package/dist/lib/utils/CustomError.js +1 -0
- package/dist/lib/utils/FetchUtils-1.d.ts +12 -0
- package/dist/lib/utils/FetchUtils-1.js +1 -0
- package/dist/lib/utils/Log.d.ts +88 -0
- package/dist/lib/utils/Log.js +1 -0
- package/dist/lib/utils/fetch.d.ts +5 -0
- package/dist/lib/utils/fetch.js +1 -0
- package/dist/lib/utils/messages.d.ts +50 -0
- package/dist/lib/utils/messages.js +1 -0
- package/dist/lib/utils/utils.d.ts +1 -0
- package/dist/lib/utils/utils.js +1 -0
- package/dist/lib/xcode/index.d.ts +5 -0
- package/dist/lib/xcode/index.js +1 -0
- package/dist/lib/xcode/manifestSwiftTemplate.d.ts +1 -0
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -0
- package/dist/lib/xcode/xcodebuild.d.ts +16 -0
- package/dist/lib/xcode/xcodebuild.js +1 -0
- package/dist/lib/xcode/xcodeproject.d.ts +11 -0
- package/dist/lib/xcode/xcodeproject.js +1 -0
- package/dist/lib/xcode/xcrun.d.ts +7 -0
- package/dist/lib/xcode/xcrun.js +1 -0
- package/package.json +2 -1
- package/template/visionOSApp/Packages/RealityKitContent/.build/workspace-state.json +7 -0
- package/template/visionOSApp/Packages/RealityKitContent/.swiftpm/xcode/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/ProjectData/main.json +11 -0
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/SceneMetadataList.json +112 -0
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/Settings.rcprojectdata +17 -0
- package/template/visionOSApp/Packages/RealityKitContent/Package.swift +27 -0
- package/template/visionOSApp/Packages/RealityKitContent/README.md +3 -0
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda +50 -0
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Materials/GridMaterial.usda +216 -0
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda +59 -0
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.swift +4 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Contents.json +17 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/Info.plist +33 -0
- package/template/visionOSApp/web-spatial/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/libs/EventEmitter.swift +32 -0
- package/template/visionOSApp/web-spatial/libs/SpatialComponent.swift +31 -0
- package/template/visionOSApp/web-spatial/libs/SpatialEntity.swift +179 -0
- package/template/visionOSApp/web-spatial/libs/SpatialInputComponent.swift +26 -0
- package/template/visionOSApp/web-spatial/libs/SpatialMeshResource.swift +19 -0
- package/template/visionOSApp/web-spatial/libs/SpatialModel3DComponent.swift +51 -0
- package/template/visionOSApp/web-spatial/libs/SpatialModelComponent.swift +32 -0
- package/template/visionOSApp/web-spatial/libs/SpatialObject.swift +144 -0
- package/template/visionOSApp/web-spatial/libs/SpatialPhysicallyBasedMaterial.swift +19 -0
- package/template/visionOSApp/web-spatial/libs/SpatialViewComponent.swift +15 -0
- package/template/visionOSApp/web-spatial/libs/SpatialWindowComponent.swift +420 -0
- package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +132 -0
- package/template/visionOSApp/web-spatial/libs/Utils/CommandManager.swift +799 -0
- package/template/visionOSApp/web-spatial/libs/Utils/Logger.swift +36 -0
- package/template/visionOSApp/web-spatial/libs/Utils/SceneManager.swift +108 -0
- package/template/visionOSApp/web-spatial/libs/Utils/WindowContainerMgr.swift +113 -0
- package/template/visionOSApp/web-spatial/libs/json/JsonParser.swift +52 -0
- package/template/visionOSApp/web-spatial/libs/uiKitDelegate/Window.swift +34 -0
- package/template/visionOSApp/web-spatial/libs/webView/UpdateSystem.swift +33 -0
- package/template/visionOSApp/web-spatial/libs/webView/backend/NativeWebView.swift +319 -0
- package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +91 -0
- package/template/visionOSApp/web-spatial/static-web/index.html +9 -0
- package/template/visionOSApp/web-spatial/views/HideViewModifier.swift +17 -0
- package/template/visionOSApp/web-spatial/views/ImmersiveView.swift +24 -0
- package/template/visionOSApp/web-spatial/views/LoadingView.swift +25 -0
- package/template/visionOSApp/web-spatial/views/MaterialWithBorderCornerModifier.swift +82 -0
- package/template/visionOSApp/web-spatial/views/OpenDismissHandlerUI.swift +52 -0
- package/template/visionOSApp/web-spatial/views/PlainWindowContainerView.swift +84 -0
- package/template/visionOSApp/web-spatial/views/SpatialModel3DView.swift +193 -0
- package/template/visionOSApp/web-spatial/views/SpatialViewUI.swift +168 -0
- package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +187 -0
- package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +34 -0
- package/template/visionOSApp/web-spatial/views/ui/NavView.swift +88 -0
- package/template/visionOSApp/web-spatial/web_spatialApp.swift +134 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.pbxproj +686 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +5 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/WorkspaceSettings.xcsettings +14 -0
- package/template/visionOSApp/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme +115 -0
- package/template/visionOSApp/web-spatial.xcodeproj/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +27 -0
- package/template/visionOSApp/web-spatialTests/web_spatialTests.swift +34 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x56ff(){const _0x2df8e5=['defineProperty','customMessage','42ByUiuP','./lib/utils/Log','__esModule','55017nHunmH','3317048jAjPti','232082SRwukz','exports','./lib/Cli','177170TexYwC','ConsoleLog','run','exit','5iVXsRU','1370aGlFBj','cli','Cli','code','forEach','2297724GYtzUA','message','2829540daxLXT','3091193SMnDoe','error'];_0x56ff=function(){return _0x2df8e5;};return _0x56ff();}const _0x1bceca=_0x1a9e;(function(_0x321699,_0xeb5a13){const _0x424c0f=_0x1a9e,_0x46559f=_0x321699();while(!![]){try{const _0x287fd7=parseInt(_0x424c0f(0x15c))/0x1*(-parseInt(_0x424c0f(0x16e))/0x2)+-parseInt(_0x424c0f(0x162))/0x3+parseInt(_0x424c0f(0x164))/0x4+-parseInt(_0x424c0f(0x171))/0x5*(-parseInt(_0x424c0f(0x169))/0x6)+-parseInt(_0x424c0f(0x165))/0x7+parseInt(_0x424c0f(0x16d))/0x8+-parseInt(_0x424c0f(0x16c))/0x9*(-parseInt(_0x424c0f(0x15d))/0xa);if(_0x287fd7===_0xeb5a13)break;else _0x46559f['push'](_0x46559f['shift']());}catch(_0x5f40ad){_0x46559f['push'](_0x46559f['shift']());}}}(_0x56ff,0x667ef));function _0x1a9e(_0x447242,_0x41507c){const _0x56ff74=_0x56ff();return _0x1a9e=function(_0x1a9ea4,_0xa66594){_0x1a9ea4=_0x1a9ea4-0x159;let _0x30bc03=_0x56ff74[_0x1a9ea4];return _0x30bc03;},_0x1a9e(_0x447242,_0x41507c);}Object[_0x1bceca(0x167)](exports,_0x1bceca(0x16b),{'value':!![]});const Cli_1=require(_0x1bceca(0x170)),Log_1=require(_0x1bceca(0x16a)),CustomError_1=require('./lib/utils/CustomError');module[_0x1bceca(0x16f)]=async()=>{const _0x2beb9a=_0x1bceca,_0x5bb551=new Cli_1[(_0x2beb9a(0x15f))](),_0x404e10=new Log_1[(_0x2beb9a(0x159))](_0x2beb9a(0x15e)),_0x2e0d5e=process['argv']['slice'](0x2);let _0x3c809c;try{_0x3c809c=await _0x5bb551[_0x2beb9a(0x15a)](_0x2e0d5e);}catch(_0x3d1c56){if(_0x3d1c56 instanceof CustomError_1['CustomError']){const _0x27aafb=_0x3d1c56[_0x2beb9a(0x168)];Array['isArray'](_0x27aafb)?_0x27aafb[_0x2beb9a(0x161)](_0x5c8c89=>{const _0x3887d0=_0x2beb9a;_0x404e10[_0x3887d0(0x166)](_0x5c8c89[_0x3887d0(0x160)]+':\x20'+_0x5c8c89['message']);}):_0x404e10[_0x2beb9a(0x166)](_0x27aafb[_0x2beb9a(0x160)]+':\x20'+_0x27aafb[_0x2beb9a(0x163)]);}else _0x404e10[_0x2beb9a(0x166)](_0x3d1c56[_0x2beb9a(0x163)]);_0x3c809c=![];}!_0x3c809c?process['exit'](0x1):process[_0x2beb9a(0x15b)](0x0);};
|
package/dist/lib/Cli.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0xe81230=_0x4a3a;(function(_0x14e0ff,_0x13af97){const _0x40528d=_0x4a3a,_0x4b8e8b=_0x14e0ff();while(!![]){try{const _0x1b8787=-parseInt(_0x40528d(0xb3))/0x1*(parseInt(_0x40528d(0xa5))/0x2)+parseInt(_0x40528d(0xa1))/0x3+parseInt(_0x40528d(0xb0))/0x4+-parseInt(_0x40528d(0xa9))/0x5+-parseInt(_0x40528d(0xb4))/0x6+-parseInt(_0x40528d(0x9f))/0x7*(-parseInt(_0x40528d(0xa3))/0x8)+parseInt(_0x40528d(0xab))/0x9*(parseInt(_0x40528d(0xac))/0xa);if(_0x1b8787===_0x13af97)break;else _0x4b8e8b['push'](_0x4b8e8b['shift']());}catch(_0x552aa7){_0x4b8e8b['push'](_0x4b8e8b['shift']());}}}(_0x39fb,0x531b1));Object[_0xe81230(0x9a)](exports,'__esModule',{'value':!![]}),exports['Cli']=void 0x0;function _0x4a3a(_0x2cfe93,_0x161cdc){const _0x39fb7a=_0x39fb();return _0x4a3a=function(_0x4a3ae0,_0x708b75){_0x4a3ae0=_0x4a3ae0-0x97;let _0x49d6ff=_0x39fb7a[_0x4a3ae0];return _0x49d6ff;},_0x4a3a(_0x2cfe93,_0x161cdc);}const minimist=require('minimist'),semver_1=require('semver'),FetchUtils_1_1=require(_0xe81230(0xa0)),help_1=require(_0xe81230(0xb8)),build_1=require(_0xe81230(0x97)),version_1=require('./cmds/version'),fetch_1=require(_0xe81230(0xa2));function _0x39fb(){const _0x115feb=['80McihLc','start','2LlnYGK','versions','setDecompressResponseBuffer','decompressResponseBuffer','3327065dHXqks','help','81yHhBTr','1264840VIHMib','setFetch','store','node','346892sPTjmz','dev','downloadFile','634076enZCUD','3549288DJdQTY','length','fetchUtils','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','./cmds/help','version','./cmds/build','setDownloadFile','Current\x20Node.js\x20version\x20is\x20','defineProperty','build','run','publish','fetch','420658XbSsQV','./utils/FetchUtils-1','1216257csmQmP','./utils/fetch'];_0x39fb=function(){return _0x115feb;};return _0x39fb();}class Cli{async[_0xe81230(0x9c)](_0x20d732){const _0x23175a=_0xe81230;if((0x0,semver_1['major'])(process[_0x23175a(0xa6)][_0x23175a(0xaf)])<0xe)throw new Error(_0x23175a(0x99)+process['versions']['node']+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');FetchUtils_1_1[_0x23175a(0xb6)][_0x23175a(0xad)](fetch_1[_0x23175a(0x9e)]),FetchUtils_1_1[_0x23175a(0xb6)][_0x23175a(0x98)](fetch_1[_0x23175a(0xb2)]),FetchUtils_1_1[_0x23175a(0xb6)][_0x23175a(0xa7)](fetch_1[_0x23175a(0xa8)]);const _0x669cd5=minimist(_0x20d732);let _0x1165dc=undefined;if(_0x669cd5['_'][_0x23175a(0xb5)]===0x0){if(_0x669cd5[_0x23175a(0xb9)])_0x1165dc='version';else _0x669cd5[_0x23175a(0xaa)]&&(_0x1165dc=_0x23175a(0xaa));}else _0x1165dc=_0x669cd5['_'][0x0];!_0x1165dc&&(_0x1165dc='help');switch(_0x1165dc){case _0x23175a(0xaa):case'h':return await(0x0,help_1[_0x23175a(0xaa)])(_0x669cd5);case _0x23175a(0x9b):return await(0x0,build_1[_0x23175a(0xa4)])(_0x669cd5);case _0x23175a(0x9d):return await(0x0,build_1[_0x23175a(0xae)])(_0x669cd5);case'dev':return await(0x0,build_1[_0x23175a(0xb1)])(_0x669cd5);case'version':{return await(0x0,version_1[_0x23175a(0xb9)])();}default:throw new Error('\x22'+_0x1165dc+_0x23175a(0xb7));}}}exports['Cli']=Cli;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x221e0e=_0x56ce;(function(_0x231468,_0x5a4f8f){const _0x578507=_0x56ce,_0x504ffa=_0x231468();while(!![]){try{const _0x2f1a40=-parseInt(_0x578507(0x1f8))/0x1*(parseInt(_0x578507(0x1ef))/0x2)+parseInt(_0x578507(0x1fa))/0x3*(parseInt(_0x578507(0x1e1))/0x4)+parseInt(_0x578507(0x1f2))/0x5*(-parseInt(_0x578507(0x1f5))/0x6)+-parseInt(_0x578507(0x1f0))/0x7+-parseInt(_0x578507(0x1dc))/0x8+-parseInt(_0x578507(0x1f4))/0x9*(parseInt(_0x578507(0x1df))/0xa)+parseInt(_0x578507(0x1f7))/0xb;if(_0x2f1a40===_0x5a4f8f)break;else _0x504ffa['push'](_0x504ffa['shift']());}catch(_0x545557){_0x504ffa['push'](_0x504ffa['shift']());}}}(_0x3abf,0xde40b));Object['defineProperty'](exports,_0x221e0e(0x1de),{'value':!![]}),exports[_0x221e0e(0x1e6)]=start,exports[_0x221e0e(0x1e7)]=store,exports['dev']=dev;const pwa_1=require('../pwa'),resource_1=require('../resource'),xcode_1=require(_0x221e0e(0x1e0)),check_1=require(_0x221e0e(0x1e5));function _0x3abf(){const _0x585570=['move\x20web\x20project:\x20ok','__esModule','370HywdQu','../xcode','2754124WOgSId','SpatialWebTest','moveProjectFrom','upload','./check','start','store','com.SpatialWeb.test','ResourceManager','runWithSimulator','teamId','generator','checkStoreParams','XcodeManager','9158teybIu','12213208tqMXgk','parseProject','7679305kTSrDK','json','164979BCpKaO','6JVmwmy','version','75435998lCXUbp','246NfvPns','buildType','3Ezxmkz','log','name','fromNet','generateIcon','12405728sREhxK'];_0x3abf=function(){return _0x585570;};return _0x3abf();}async function start(_0x29ea65,_0x3732c1=![]){const _0x185442=_0x221e0e;(0x0,check_1['checkBuildParams'])(_0x29ea65,_0x3732c1),console[_0x185442(0x1fb)]('-------------------\x20build\x20start\x20-------------------');let _0x1ec108=await pwa_1['PWAGenerator'][_0x185442(0x1ec)](_0x29ea65);!_0x1ec108[_0x185442(0x1da)]&&(await resource_1[_0x185442(0x1e9)][_0x185442(0x1e3)](_0x29ea65['project']),console[_0x185442(0x1fb)](_0x185442(0x1dd)));const _0xe5cead=await resource_1[_0x185442(0x1e9)][_0x185442(0x1db)](_0x1ec108);return console[_0x185442(0x1fb)]('generate\x20icon:\x20ok'),await xcode_1['XcodeManager'][_0x185442(0x1f1)]({'icon':_0xe5cead,'manifestInfo':_0x1ec108,'teamId':_0x29ea65[_0x185442(0x1eb)],'version':_0x29ea65[_0x185442(0x1f6)],'buildType':_0x29ea65[_0x185442(0x1f9)]},_0x3732c1),console['log']('-------------------\x20build\x20end\x20-------------------'),_0x1ec108;}function _0x56ce(_0x4a6116,_0x44c4c7){const _0x3abf83=_0x3abf();return _0x56ce=function(_0x56ceb8,_0x525e4d){_0x56ceb8=_0x56ceb8-0x1d9;let _0x568a55=_0x3abf83[_0x56ceb8];return _0x568a55;},_0x56ce(_0x4a6116,_0x44c4c7);}async function store(_0x22b58e){const _0x3ed6dd=_0x221e0e;(0x0,check_1[_0x3ed6dd(0x1ed)])(_0x22b58e);let _0x11fd28={'name':_0x3ed6dd(0x1e2)};_0x22b58e['buildType']='app-store-connect';if(_0x22b58e[_0x3ed6dd(0x1d9)])_0x11fd28[_0x3ed6dd(0x1d9)]=_0x22b58e[_0x3ed6dd(0x1d9)];else{const _0x19f0ea=await start(_0x22b58e);if(!_0x19f0ea)return![];_0x11fd28['name']=_0x19f0ea[_0x3ed6dd(0x1f3)][_0x3ed6dd(0x1d9)];}return await xcode_1[_0x3ed6dd(0x1ee)][_0x3ed6dd(0x1e4)](_0x22b58e,_0x11fd28),!![];}async function dev(_0x143ccc){const _0xfe816f=_0x221e0e;let _0x477276={'name':_0xfe816f(0x1e2),'id':_0xfe816f(0x1e8)};const _0x9e5d06=await start(_0x143ccc,!![]);if(!_0x9e5d06)return![];return _0x477276[_0xfe816f(0x1d9)]=_0x9e5d06['json']['name'],_0x477276['id']=_0x9e5d06[_0xfe816f(0x1f3)]['id'],await xcode_1['XcodeManager'][_0xfe816f(0x1ea)](_0x477276),!![];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x138c(){var _0x1dc7dc=['manifest\x20or\x20manifest-url\x20is\x20required','1459835vrgiSg','437386cdtcnt','version\x20is\x20required','4540452eKSfoE','manifest','553134eqqGqC','408100QkHBic','54LZsjJg','checkStoreParams','1598548qhjkni','defineProperty','1tkwySA','44gPXpCy','manifest-url','teamId','u\x20and\x20p\x20or\x20k\x20and\x20i\x20is\x20required','4BXEatn','503024qdNFuR','6EDnOov'];_0x138c=function(){return _0x1dc7dc;};return _0x138c();}var _0x280ef2=_0x29e3;(function(_0x6e6f40,_0x5b45dd){var _0x2cb8cf=_0x29e3,_0x442408=_0x6e6f40();while(!![]){try{var _0x34d737=-parseInt(_0x2cb8cf(0xe6))/0x1*(parseInt(_0x2cb8cf(0xf0))/0x2)+parseInt(_0x2cb8cf(0xe0))/0x3*(parseInt(_0x2cb8cf(0xeb))/0x4)+parseInt(_0x2cb8cf(0xef))/0x5*(parseInt(_0x2cb8cf(0xed))/0x6)+-parseInt(_0x2cb8cf(0xe4))/0x7+parseInt(_0x2cb8cf(0xec))/0x8*(-parseInt(_0x2cb8cf(0xe2))/0x9)+parseInt(_0x2cb8cf(0xe1))/0xa*(parseInt(_0x2cb8cf(0xe7))/0xb)+parseInt(_0x2cb8cf(0xf2))/0xc;if(_0x34d737===_0x5b45dd)break;else _0x442408['push'](_0x442408['shift']());}catch(_0x4fe057){_0x442408['push'](_0x442408['shift']());}}}(_0x138c,0x2f45f));Object[_0x280ef2(0xe5)](exports,'__esModule',{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x280ef2(0xe3)]=checkStoreParams;function checkBuildParams(_0x2a4457,_0x4a5ef2=![]){var _0x121e4c=_0x280ef2;if(!_0x2a4457[_0x121e4c(0xf3)]&&!_0x2a4457[_0x121e4c(0xe8)])throw new Error(_0x121e4c(0xee));if(_0x2a4457[_0x121e4c(0xf3)]&&_0x2a4457[_0x121e4c(0xe8)])throw new Error('manifest\x20and\x20manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time');if(!_0x2a4457[_0x121e4c(0xe9)]&&!_0x4a5ef2)throw new Error('teamId\x20is\x20required');}function _0x29e3(_0xd54124,_0x4a1bde){var _0x138c85=_0x138c();return _0x29e3=function(_0x29e3e0,_0x41c271){_0x29e3e0=_0x29e3e0-0xe0;var _0x42e772=_0x138c85[_0x29e3e0];return _0x42e772;},_0x29e3(_0xd54124,_0x4a1bde);}function checkStoreParams(_0x28ccd9){var _0x125c90=_0x280ef2;if(!(_0x28ccd9['u']&&_0x28ccd9['p'])&&!(_0x28ccd9['k']&&_0x28ccd9['i']))throw new Error(_0x125c90(0xea));if(!_0x28ccd9['version'])throw new Error(_0x125c90(0xf1));}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x2430(){const _0x242717=['__esModule','55nRwygJ','Usage:','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','defineProperty','54YRRqZQ','ConsoleLog','help','2464314ffasOI','56371EcrBTN','904tDZCDY','webspatial\x20[command]\x20<options>','dev\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','24OgLxLs','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','355610nQoiBI','join','9263672kklYlX','help\x20................\x20shows\x20this\x20menu','6EeFknO','info','110742CpPXAj','build','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','main','dev','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>','publish','413572JhASEo','get','1240238HXqilP','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]'];_0x2430=function(){return _0x242717;};return _0x2430();}const _0x28ce7d=_0x1c29;(function(_0x4b274,_0x4df256){const _0x71385f=_0x1c29,_0x251d8c=_0x4b274();while(!![]){try{const _0x29c1d7=-parseInt(_0x71385f(0xd2))/0x1+-parseInt(_0x71385f(0xc7))/0x2*(parseInt(_0x71385f(0xc9))/0x3)+parseInt(_0x71385f(0xd0))/0x4*(-parseInt(_0x71385f(0xd5))/0x5)+parseInt(_0x71385f(0xbb))/0x6+parseInt(_0x71385f(0xbc))/0x7*(parseInt(_0x71385f(0xbd))/0x8)+-parseInt(_0x71385f(0xd9))/0x9*(-parseInt(_0x71385f(0xc3))/0xa)+parseInt(_0x71385f(0xc5))/0xb*(parseInt(_0x71385f(0xc0))/0xc);if(_0x29c1d7===_0x4df256)break;else _0x251d8c['push'](_0x251d8c['shift']());}catch(_0x227721){_0x251d8c['push'](_0x251d8c['shift']());}}}(_0x2430,0xb23db));function _0x1c29(_0x13624f,_0x465d0d){const _0x2430c4=_0x2430();return _0x1c29=function(_0x1c29fb,_0x3e91a8){_0x1c29fb=_0x1c29fb-0xb9;let _0x111063=_0x2430c4[_0x1c29fb];return _0x111063;},_0x1c29(_0x13624f,_0x465d0d);}Object[_0x28ce7d(0xd8)](exports,_0x28ce7d(0xd4),{'value':!![]}),exports[_0x28ce7d(0xba)]=help;const Log_1=require('../utils/Log'),HELP_MESSAGES=new Map([['main',[_0x28ce7d(0xbe),'','',_0x28ce7d(0xc6),_0x28ce7d(0xc1)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project',_0x28ce7d(0xbf),'publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect'][_0x28ce7d(0xc4)]('\x0a')],[_0x28ce7d(0xca),[_0x28ce7d(0xd6),'','',_0x28ce7d(0xcb),'','',_0x28ce7d(0xd3)][_0x28ce7d(0xc4)]('\x0a')],[_0x28ce7d(0xcd),['Usage:','','','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','','',_0x28ce7d(0xc2)]['join']('\x0a')],[_0x28ce7d(0xcf),[_0x28ce7d(0xd6),'','',_0x28ce7d(0xce),'','',_0x28ce7d(0xd7),'','','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>'][_0x28ce7d(0xc4)]('\x0a')]]);async function help(_0x440132,_0x26db36=new Log_1[(_0x28ce7d(0xb9))](_0x28ce7d(0xba))){const _0x16de18=_0x28ce7d,_0x50f29d=_0x440132['_'][0x1],_0xe24335=HELP_MESSAGES[_0x16de18(0xd1)](_0x50f29d)||HELP_MESSAGES[_0x16de18(0xd1)](_0x16de18(0xcc));return _0x26db36[_0x16de18(0xc8)](_0xe24335),!![];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x112b01=_0x4251;(function(_0x4c21d4,_0x4cf203){const _0x3b916a=_0x4251,_0x212d2b=_0x4c21d4();while(!![]){try{const _0x24b397=-parseInt(_0x3b916a(0x15c))/0x1*(parseInt(_0x3b916a(0x165))/0x2)+parseInt(_0x3b916a(0x16e))/0x3*(-parseInt(_0x3b916a(0x16a))/0x4)+parseInt(_0x3b916a(0x169))/0x5+-parseInt(_0x3b916a(0x168))/0x6*(parseInt(_0x3b916a(0x16b))/0x7)+-parseInt(_0x3b916a(0x163))/0x8+parseInt(_0x3b916a(0x16c))/0x9+parseInt(_0x3b916a(0x161))/0xa;if(_0x24b397===_0x4cf203)break;else _0x212d2b['push'](_0x212d2b['shift']());}catch(_0x5edbef){_0x212d2b['push'](_0x212d2b['shift']());}}}(_0x50c7,0x3b6fe));function _0x50c7(){const _0x12539b=['209632wTlRwp','ConsoleLog','2KoyxVG','info','version','12olLTWR','1493040xsQStM','20ciweNy','1503173lnACSA','2810394NgvPqu','toString','190857lkAbUY','join','5934QruUbq','../../../package.json','readFile','../utils/Log','defineProperty','4122910nKLUlE','parse'];_0x50c7=function(){return _0x12539b;};return _0x50c7();}function _0x4251(_0xcc59a6,_0x3ccc49){const _0x50c7c0=_0x50c7();return _0x4251=function(_0x425107,_0x4e4261){_0x425107=_0x425107-0x15c;let _0x47c895=_0x50c7c0[_0x425107];return _0x47c895;},_0x4251(_0xcc59a6,_0x3ccc49);}Object[_0x112b01(0x160)](exports,'__esModule',{'value':!![]}),exports[_0x112b01(0x167)]=version;const fs=require('fs'),path=require('path'),Log_1=require(_0x112b01(0x15f));async function version(_0x33d9d7=new Log_1[(_0x112b01(0x164))]('version')){const _0x24f5da=_0x112b01,_0x2d3aca=path[_0x24f5da(0x16f)](__dirname,_0x24f5da(0x15d)),_0x353b08=await(await fs['promises'][_0x24f5da(0x15e)](_0x2d3aca))[_0x24f5da(0x16d)](),_0x460744=JSON[_0x24f5da(0x162)](_0x353b08);return _0x33d9d7[_0x24f5da(0x166)](_0x460744[_0x24f5da(0x167)]),!![];}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function configId(manifestJson: Record<string, any>): void;
|
|
2
|
+
export declare function configStartUrl(manifestJson: Record<string, any>, manifestUrl: string, fromNet: boolean): void;
|
|
3
|
+
export declare function configScope(manifestJson: Record<string, any>, fromNet: boolean): void;
|
|
4
|
+
export declare function configDisplay(manifestJson: Record<string, any>): void;
|
|
5
|
+
export declare function configMainScene(manifestJson: Record<string, any>): void;
|
|
6
|
+
export declare function configDeeplink(manifestJson: Record<string, any>): void;
|
|
7
|
+
export declare const safelist: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x3f37(_0x5be98f,_0x2bb53a){const _0x4321cc=_0x4321();return _0x3f37=function(_0x3f3700,_0x142230){_0x3f3700=_0x3f3700-0xe3;let _0x3a7508=_0x4321cc[_0x3f3700];return _0x3a7508;},_0x3f37(_0x5be98f,_0x2bb53a);}const _0x3033b0=_0x3f37;(function(_0x5e3899,_0xbcf15c){const _0x2f5e05=_0x3f37,_0x439f22=_0x5e3899();while(!![]){try{const _0x551875=-parseInt(_0x2f5e05(0xfc))/0x1*(-parseInt(_0x2f5e05(0xe5))/0x2)+-parseInt(_0x2f5e05(0xee))/0x3*(-parseInt(_0x2f5e05(0x114))/0x4)+parseInt(_0x2f5e05(0xfe))/0x5+parseInt(_0x2f5e05(0x11f))/0x6*(-parseInt(_0x2f5e05(0xe6))/0x7)+parseInt(_0x2f5e05(0xf3))/0x8+parseInt(_0x2f5e05(0x11b))/0x9+-parseInt(_0x2f5e05(0xfb))/0xa*(parseInt(_0x2f5e05(0x10b))/0xb);if(_0x551875===_0xbcf15c)break;else _0x439f22['push'](_0x439f22['shift']());}catch(_0x5bbb44){_0x439f22['push'](_0x439f22['shift']());}}}(_0x4321,0x9acff));Object[_0x3033b0(0xe8)](exports,_0x3033b0(0xea),{'value':!![]}),exports[_0x3033b0(0x101)]=void 0x0,exports['configId']=configId,exports[_0x3033b0(0x11d)]=configStartUrl,exports[_0x3033b0(0x112)]=configScope,exports[_0x3033b0(0xf0)]=configDisplay,exports['configMainScene']=configMainScene,exports['configDeeplink']=configDeeplink;const utils_1=require(_0x3033b0(0xe9)),validate_1=require('./validate'),path_1=require(_0x3033b0(0x117));function configId(_0x360b83){const _0x1d2a83=_0x3033b0;!_0x360b83['id']&&(_0x360b83['id']=_0x360b83[_0x1d2a83(0x10c)]);}function configStartUrl(_0x28c486,_0x5ce9dc,_0x4e6bfd){const _0x500e55=_0x3033b0,_0x1f913c=(0x0,validate_1[_0x500e55(0x110)])(_0x28c486[_0x500e55(0x10c)]);let _0x990e8a=_0x28c486[_0x500e55(0x10c)];_0x4e6bfd?!_0x1f913c&&(_0x990e8a=(0x0,path_1[_0x500e55(0x11e)])((0x0,utils_1[_0x500e55(0x11c)])(_0x5ce9dc),_0x28c486[_0x500e55(0x10c)])):!_0x1f913c&&(_0x990e8a=(0x0,path_1[_0x500e55(0x11e)])(_0x500e55(0xff),_0x28c486['start_url'])),_0x28c486[_0x500e55(0x10c)]=_0x990e8a;}function configScope(_0x4ff689,_0x3b5191){const _0x17db82=_0x3033b0;let _0x1f181e='';const _0x258456=(0x0,validate_1[_0x17db82(0x110)])(_0x4ff689[_0x17db82(0x123)]);if(_0x3b5191&&_0x258456){const _0x3b372d=new URL(_0x4ff689[_0x17db82(0x123)]),_0x4fff9f=new URL(_0x4ff689[_0x17db82(0x10c)]);(_0x3b372d[_0x17db82(0xf2)]!==_0x4fff9f[_0x17db82(0xf2)]||_0x4ff689[_0x17db82(0x10c)]['indexOf'](_0x1f181e)!==0x0)&&(_0x1f181e=(0x0,utils_1['parseRouter'])(_0x4ff689['start_url']));}else _0x1f181e=(0x0,path_1[_0x17db82(0x11e)])((0x0,utils_1[_0x17db82(0x11c)])(_0x4ff689['start_url']),_0x4ff689['scope']);_0x4ff689[_0x17db82(0x123)]=_0x1f181e;}function configDisplay(_0x8cc084){const _0x303a74=_0x3033b0;let _0x418f97=_0x8cc084[_0x303a74(0x121)];_0x418f97!==_0x303a74(0x10e)&&_0x418f97!==_0x303a74(0xe4)&&(_0x418f97=_0x303a74(0xe4));if(_0x8cc084[_0x303a74(0x113)]&&_0x8cc084[_0x303a74(0x113)][_0x303a74(0x106)]>0x0){const _0x1bc787=_0x8cc084[_0x303a74(0x113)][_0x303a74(0xef)](_0x303a74(0x10e)),_0x16c7d8=_0x8cc084['display_override'][_0x303a74(0xef)](_0x303a74(0xe4));if(_0x1bc787>=0x0&&_0x16c7d8>=0x0)_0x418f97=_0x16c7d8>_0x1bc787?'standalone':_0x303a74(0x10e);else{if(_0x1bc787>=0x0)_0x418f97=_0x303a74(0x10e);else _0x16c7d8>=0x0&&(_0x418f97=_0x303a74(0xe4));}}}function configMainScene(_0x40f703){const _0x20728b=_0x3033b0;var _0x205b76,_0xc03e27;const _0x4c1d3b=[_0x20728b(0xe3),_0x20728b(0x11a),_0x20728b(0x103)];let _0x306684={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x20728b(0xe3)};_0x40f703[_0x20728b(0xf1)]&&(_0x306684['defaultSize'][_0x20728b(0xed)]=Number((_0x205b76=_0x40f703['mainScene'][_0x20728b(0xf6)])===null||_0x205b76===void 0x0?void 0x0:_0x205b76[_0x20728b(0xed)])>0x0?_0x40f703['mainScene'][_0x20728b(0xf6)][_0x20728b(0xed)]:0x500,_0x306684[_0x20728b(0xf6)][_0x20728b(0xe7)]=Number((_0xc03e27=_0x40f703[_0x20728b(0xf1)][_0x20728b(0xf6)])===null||_0xc03e27===void 0x0?void 0x0:_0xc03e27['height'])>0x0?_0x40f703[_0x20728b(0xf1)][_0x20728b(0xf6)][_0x20728b(0xe7)]:0x500,_0x306684[_0x20728b(0x119)]=_0x4c1d3b[_0x20728b(0x105)](_0x40f703[_0x20728b(0xf1)][_0x20728b(0x119)])?_0x40f703[_0x20728b(0xf1)][_0x20728b(0x119)]:_0x20728b(0xe3)),_0x40f703[_0x20728b(0xf1)]=_0x306684;}function configDeeplink(_0x4f14b8){const _0x309a84=_0x3033b0;if(_0x4f14b8[_0x309a84(0xf4)]&&_0x4f14b8[_0x309a84(0xf4)]['length']>0x0)for(var _0x34a888=0x0;_0x34a888<_0x4f14b8[_0x309a84(0xf4)][_0x309a84(0x106)];_0x34a888++){const _0x742c70=_0x4f14b8['protocol_handlers'][_0x34a888];if(_0x742c70[_0x309a84(0x102)]&&(exports[_0x309a84(0x101)][_0x309a84(0x105)](_0x742c70['protocol'])||_0x742c70['protocol'][_0x309a84(0xef)](_0x309a84(0x120))===0x0)){if(!((0x0,validate_1[_0x309a84(0x110)])(_0x742c70['url'])&&_0x742c70[_0x309a84(0xfa)][_0x309a84(0xef)](_0x4f14b8[_0x309a84(0x123)])<0x0))continue;}_0x4f14b8['protocol_handlers'][_0x309a84(0x10d)](_0x34a888,0x1),_0x34a888--;}}function _0x4321(){const _0x1a1cd3=['sftp','configScope','display_override','4wSuYWr','sip','geo','path','tel','resizability','contentMinSize','4300092GJAVGs','parseRouter','configStartUrl','join','3217542AmkQFK','web+','display','irc','scope','bitcoin','smsto','mms','automatic','standalone','1676yGrKpt','7hcKNBR','height','defineProperty','../utils/utils','__esModule','ssh','urn','width','3714276Irgdcl','indexOf','configDisplay','mainScene','host','7122776bpTanr','protocol_handlers','ftp','defaultSize','nntp','webcal','ftps','url','50fOaXPP','1130TiuwTQ','ircs','1662630GJaeRW','./static-web','magnet','safelist','protocol','contentSize','news','includes','length','openpgp4fpr','wtai','sms','mailto','5973715kznMKq','start_url','splice','minimal-ui','matrix','validateURL'];_0x4321=function(){return _0x1a1cd3;};return _0x4321();}exports[_0x3033b0(0x101)]=[_0x3033b0(0x124),_0x3033b0(0xf5),_0x3033b0(0xf9),_0x3033b0(0x116),'im',_0x3033b0(0x122),_0x3033b0(0xfd),_0x3033b0(0x100),_0x3033b0(0x10a),_0x3033b0(0x10f),_0x3033b0(0x126),_0x3033b0(0x104),_0x3033b0(0xf7),_0x3033b0(0x107),_0x3033b0(0x111),_0x3033b0(0x115),_0x3033b0(0x109),_0x3033b0(0x125),_0x3033b0(0xeb),_0x3033b0(0x118),_0x3033b0(0xec),_0x3033b0(0xf8),_0x3033b0(0x108),'xmpp'];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface InitArgs {
|
|
2
|
+
'manifest-url'?: string;
|
|
3
|
+
manifest?: string;
|
|
4
|
+
project?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ManifestInfo {
|
|
7
|
+
json: Record<string, any>;
|
|
8
|
+
url: string;
|
|
9
|
+
fromNet: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class PWAGenerator {
|
|
12
|
+
static DisplayModes: string[];
|
|
13
|
+
static generator(args: InitArgs): Promise<ManifestInfo>;
|
|
14
|
+
static validate(args: InitArgs): Promise<ManifestInfo>;
|
|
15
|
+
static config(manifestInfo: ManifestInfo): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x57aa47=_0x4497;(function(_0x14939d,_0x5e1d7b){const _0x2f375b=_0x4497,_0x11d0ba=_0x14939d();while(!![]){try{const _0x3bb52a=-parseInt(_0x2f375b(0x13e))/0x1*(parseInt(_0x2f375b(0x137))/0x2)+-parseInt(_0x2f375b(0x128))/0x3+parseInt(_0x2f375b(0x141))/0x4*(parseInt(_0x2f375b(0x138))/0x5)+parseInt(_0x2f375b(0x12e))/0x6*(parseInt(_0x2f375b(0x130))/0x7)+-parseInt(_0x2f375b(0x126))/0x8*(-parseInt(_0x2f375b(0x11e))/0x9)+parseInt(_0x2f375b(0x129))/0xa*(-parseInt(_0x2f375b(0x12f))/0xb)+parseInt(_0x2f375b(0x143))/0xc;if(_0x3bb52a===_0x5e1d7b)break;else _0x11d0ba['push'](_0x11d0ba['shift']());}catch(_0x1e36fc){_0x11d0ba['push'](_0x11d0ba['shift']());}}}(_0x5d38,0x9e99a));function _0x5d38(){const _0x73ba88=['1225AHbHMs','configDeeplink','../resource/load','log','generator','configMainScene','1abJpws','path','checkIcons','284haZAFd','configStartUrl','3895152RvINRM','minimal-ui','11179341hLhjwP','loadJsonFromNet','configDisplay','manifest','checkStartUrl','reset\x20manifest.json:\x20ok','./validate','defineProperty','8VDQpxb','check\x20manifest.json:\x20ok','1327413AKsNOj','2213390TMGNOT','validate','config','./config','DisplayModes','60IcdOkP','22vcBehP','717367TPOFNX','PWAGenerator','json','configScope','configId','checkManifestJson','fromNet','2148350AjJbxj'];_0x5d38=function(){return _0x73ba88;};return _0x5d38();}Object[_0x57aa47(0x125)](exports,'__esModule',{'value':!![]}),exports[_0x57aa47(0x131)]=void 0x0;const path_1=require(_0x57aa47(0x13f)),config_1=require(_0x57aa47(0x12c)),load_1=require(_0x57aa47(0x13a)),validate_1=require(_0x57aa47(0x124));class PWAGenerator{static async[_0x57aa47(0x13c)](_0x2e833b){const _0x3a6bf4=_0x57aa47;let _0x28ecb5=await this[_0x3a6bf4(0x12a)](_0x2e833b);return console[_0x3a6bf4(0x13b)](_0x3a6bf4(0x127)),await this['config'](_0x28ecb5),console[_0x3a6bf4(0x13b)](_0x3a6bf4(0x123)),_0x28ecb5;}static async['validate'](_0x470038){const _0x8d40ee=_0x57aa47;let _0x493bb8={},_0x25c0e1='',_0x339607=![];if(_0x470038['manifest-url'])_0x25c0e1=_0x470038['manifest-url'],_0x339607=!![],_0x493bb8=await(0x0,load_1[_0x8d40ee(0x11f)])(_0x470038['manifest-url']);else _0x470038[_0x8d40ee(0x121)]&&(_0x25c0e1=(0x0,path_1['join'])(process['cwd'](),_0x470038[_0x8d40ee(0x121)]),_0x493bb8=await(0x0,load_1['loadJsonFromDisk'])(_0x470038[_0x8d40ee(0x121)]));return(0x0,validate_1[_0x8d40ee(0x135)])(_0x493bb8),(0x0,validate_1[_0x8d40ee(0x122)])(_0x493bb8,_0x25c0e1,_0x339607),await(0x0,validate_1[_0x8d40ee(0x140)])(_0x493bb8,_0x25c0e1),{'json':_0x493bb8,'url':_0x25c0e1,'fromNet':_0x339607};}static[_0x57aa47(0x12b)](_0x179bb9){const _0x4d5e77=_0x57aa47;(0x0,config_1[_0x4d5e77(0x142)])(_0x179bb9[_0x4d5e77(0x132)],_0x179bb9['url'],_0x179bb9[_0x4d5e77(0x136)]),(0x0,config_1[_0x4d5e77(0x134)])(_0x179bb9[_0x4d5e77(0x132)]),(0x0,config_1[_0x4d5e77(0x133)])(_0x179bb9[_0x4d5e77(0x132)],_0x179bb9[_0x4d5e77(0x136)]),(0x0,config_1[_0x4d5e77(0x120)])(_0x179bb9[_0x4d5e77(0x132)]),(0x0,config_1[_0x4d5e77(0x139)])(_0x179bb9[_0x4d5e77(0x132)]),(0x0,config_1[_0x4d5e77(0x13d)])(_0x179bb9[_0x4d5e77(0x132)]);}}function _0x4497(_0xb80ddc,_0x266b8b){const _0x5d3891=_0x5d38();return _0x4497=function(_0x449706,_0x395cc9){_0x449706=_0x449706-0x11d;let _0x2f5cfd=_0x5d3891[_0x449706];return _0x2f5cfd;},_0x4497(_0xb80ddc,_0x266b8b);}exports[_0x57aa47(0x131)]=PWAGenerator,PWAGenerator[_0x57aa47(0x12d)]=['standalone',_0x57aa47(0x11d)];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function checkManifestJson(manifestJson: Record<string, any>): void;
|
|
2
|
+
export declare function checkStartUrl(manifest: Record<string, any>, manifestUrl: string, isNet: boolean): void;
|
|
3
|
+
export declare function checkIcons(manifest: Record<string, any>, manifestUrl: string): Promise<void>;
|
|
4
|
+
export declare function validateURL(url: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x3957(){const _0x4156ff=['2587167ABSJae','7675150SwBKKi','maskable','purpose','loadImageFromNet','src','__esModule','getWidth','path','icons','108900OridXk','parseRouter','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','isFullyOpaque','push','checkIcons','2629xzMeol','65IcSlfb','checkStartUrl','indexOf','validateURL','sizes','\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20','http','start_url','2UJTjQi','http://','https://','PWAGenerator','split','30pKYCqa','DisplayModes','short_name','display','5786152iJEORw','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','In\x20the\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','964825ZIzEyt','7GNQHNM','loadImageFromDisk','../utils/utils','defineProperty','name','length','103512oAmWTL','413742DGmWBK','forEach','startsWith','getHeight','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','CustomError','host','../utils/CustomError'];_0x3957=function(){return _0x4156ff;};return _0x3957();}function _0x2d5b(_0x32f012,_0x5b1a45){const _0x39572a=_0x3957();return _0x2d5b=function(_0x2d5bfd,_0x1e5621){_0x2d5bfd=_0x2d5bfd-0xd9;let _0x5e93e8=_0x39572a[_0x2d5bfd];return _0x5e93e8;},_0x2d5b(_0x32f012,_0x5b1a45);}const _0x35d392=_0x2d5b;(function(_0x132453,_0x5ba42d){const _0x308dbf=_0x2d5b,_0x44cdf9=_0x132453();while(!![]){try{const _0x205fff=parseInt(_0x308dbf(0xdb))/0x1*(parseInt(_0x308dbf(0x104))/0x2)+-parseInt(_0x308dbf(0x109))/0x3*(parseInt(_0x308dbf(0xf5))/0x4)+-parseInt(_0x308dbf(0xfc))/0x5*(parseInt(_0x308dbf(0xe3))/0x6)+-parseInt(_0x308dbf(0xdc))/0x7*(parseInt(_0x308dbf(0x10d))/0x8)+parseInt(_0x308dbf(0xeb))/0x9+-parseInt(_0x308dbf(0xec))/0xa+parseInt(_0x308dbf(0xfb))/0xb*(parseInt(_0x308dbf(0xe2))/0xc);if(_0x205fff===_0x5ba42d)break;else _0x44cdf9['push'](_0x44cdf9['shift']());}catch(_0x2c225b){_0x44cdf9['push'](_0x44cdf9['shift']());}}}(_0x3957,0x9fc5b));Object[_0x35d392(0xdf)](exports,_0x35d392(0xf1),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x35d392(0xfd)]=checkStartUrl,exports[_0x35d392(0xfa)]=checkIcons,exports[_0x35d392(0xff)]=validateURL;const path_1=require(_0x35d392(0xf3)),_1=require('.'),CustomError_1=require(_0x35d392(0xea)),utils_1=require(_0x35d392(0xde)),imageHelper_1=require('../resource/imageHelper'),load_1=require('../resource/load');function checkManifestJson(_0xf46d4){const _0x3cb845=_0x35d392;var _0x5eb594;const _0xa5a829=[];!_0xf46d4[_0x3cb845(0xe0)]&&!_0xf46d4[_0x3cb845(0x10b)]&&_0xa5a829[_0x3cb845(0xf9)]({'code':0xbbe,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x5eb594=_0xf46d4['icons'])===null||_0x5eb594===void 0x0?void 0x0:_0x5eb594[_0x3cb845(0xe1)])&&_0xa5a829[_0x3cb845(0xf9)]({'code':0xbbf,'message':_0x3cb845(0xe7),'message_staring_params':{}});!_0xf46d4[_0x3cb845(0x103)]&&_0xa5a829['push']({'code':0xbc0,'message':_0x3cb845(0xd9),'message_staring_params':{}});!_1[_0x3cb845(0x107)][_0x3cb845(0x10a)]['includes'](_0xf46d4[_0x3cb845(0x10c)])&&_0xa5a829[_0x3cb845(0xf9)]({'code':0xbc1,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value'+(_0x3cb845(0x101)+_0xf46d4[_0x3cb845(0x10c)]+')'),'message_staring_params':{'display':_0xf46d4['display']}});if(_0xa5a829[_0x3cb845(0xe1)])throw new CustomError_1[(_0x3cb845(0xe8))](_0xa5a829);}function checkStartUrl(_0x56a7de,_0x370533,_0x46a04a){const _0x588d43=_0x35d392;if(_0x46a04a){if(_0x56a7de[_0x588d43(0x103)][_0x588d43(0xfe)](_0x588d43(0x106))==0x0){const _0x358b97=new URL(_0x56a7de[_0x588d43(0x103)]),_0x3eb6b3=new URL(_0x370533);if(_0x358b97[_0x588d43(0xe9)]!==_0x3eb6b3[_0x588d43(0xe9)])throw new CustomError_1[(_0x588d43(0xe8))]({'code':0xfa0,'message':'In\x20the\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','message_staring_params':{}});}else{if(_0x56a7de['start_url'][_0x588d43(0xfe)](_0x588d43(0x105))==0x0)throw new CustomError_1[(_0x588d43(0xe8))]({'code':0xfa0,'message':_0x588d43(0xda),'message_staring_params':{}});}}}async function checkIcons(_0x1dfa9d,_0x4425e5){const _0x3dcbe4=_0x35d392;var _0x19a172;const _0x3fc714=(0x0,utils_1[_0x3dcbe4(0xf6)])(_0x4425e5);let _0x1b7964,_0x43432f,_0x5a6f65,_0x381627=0x0;for(var _0x23140a=0x0;_0x23140a<_0x1dfa9d['icons'][_0x3dcbe4(0xe1)];_0x23140a++){const _0x437936=_0x1dfa9d[_0x3dcbe4(0xf4)][_0x23140a];let _0x1d6290=((_0x19a172=_0x437936[_0x3dcbe4(0xee)])===null||_0x19a172===void 0x0?void 0x0:_0x19a172[_0x3dcbe4(0xfe)](_0x3dcbe4(0xed)))>=0x0;if(!_0x1d6290)continue;let _0x380d4a=![],_0x27753b=_0x437936[_0x3dcbe4(0xf0)],_0x39dd6f,_0x238239=0x0;!validateURL(_0x27753b)&&(_0x27753b=(0x0,path_1['join'])(_0x3fc714,_0x27753b));if(_0x437936[_0x3dcbe4(0x100)]){const _0x1a62c5=_0x437936[_0x3dcbe4(0x100)][_0x3dcbe4(0x108)]('\x20');_0x1a62c5[_0x3dcbe4(0xe4)](_0xd30bef=>{const _0x1ecb97=_0x3dcbe4;let _0x15d1af=_0xd30bef[_0x1ecb97(0x108)]('x');Number(_0x15d1af[0x0])>=0x400&&Number(_0x15d1af[0x1])>=0x400&&(_0x380d4a=!![],Number(_0x15d1af[0x0])>_0x238239&&(_0x238239=Number(_0x15d1af[0x0])));});}else _0x39dd6f=!_0x27753b[_0x3dcbe4(0xe5)](_0x3dcbe4(0x102))?await(0x0,load_1[_0x3dcbe4(0xdd)])(_0x27753b):await(0x0,load_1[_0x3dcbe4(0xef)])(_0x27753b),_0x39dd6f[_0x3dcbe4(0xf2)]()>=0x400&&_0x39dd6f[_0x3dcbe4(0xe6)]()>=0x400&&(_0x380d4a=!![],_0x39dd6f['getWidth']()>_0x238239&&(_0x238239=_0x39dd6f['getWidth']()));_0x380d4a&&_0x1d6290&&(_0x238239>_0x381627&&(_0x381627=_0x238239,_0x1b7964=_0x39dd6f,_0x43432f=_0x27753b,_0x5a6f65=_0x437936[_0x3dcbe4(0xee)]));}if(_0x381627===0x0)throw new CustomError_1[(_0x3dcbe4(0xe8))]({'code':0xfa0,'message':_0x3dcbe4(0xf7),'message_staring_params':{}});else _0x43432f&&(_0x1b7964=!_0x43432f['startsWith'](_0x3dcbe4(0x102))?await(0x0,load_1[_0x3dcbe4(0xdd)])(_0x43432f):await(0x0,load_1[_0x3dcbe4(0xef)])(_0x43432f));if(_0x1b7964&&!imageHelper_1['ImageHelper'][_0x3dcbe4(0xf8)](_0x1b7964))throw new CustomError_1[(_0x3dcbe4(0xe8))]({'code':0xfa0,'message':'In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','message_staring_params':{}});_0x1dfa9d[_0x3dcbe4(0xf4)]=[{'src':_0x43432f,'sizes':_0x381627+'x'+_0x381627,'purpose':_0x5a6f65}];}function validateURL(_0x3c7d2b){try{return new URL(_0x3c7d2b),!![];}catch(_0xe4e21d){return![];}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0xa548(){const _0xcffa12=['defineProperty','copyDir','38574CJpZIx','205ebCtZQ','9dLoFSu','120cZgasZ','isDirectory','455676ftKNGb','__esModule','existsSync','forEach','unlinkSync','readdirSync','6zQGFDD','151051YYxZfZ','statSync','25696LUQtZz','935348htyNuF','isFile','791950bIQbOL','81011muNWkE','11xsAfti','writeFileSync','readFileSync','mkdirSync'];_0xa548=function(){return _0xcffa12;};return _0xa548();}const _0x5a089e=_0x3ebf;(function(_0x4f8925,_0x3f62da){const _0x92454e=_0x3ebf,_0x5f510e=_0x4f8925();while(!![]){try{const _0x4afeab=-parseInt(_0x92454e(0x1c7))/0x1+parseInt(_0x92454e(0x1c9))/0x2*(parseInt(_0x92454e(0x1c6))/0x3)+parseInt(_0x92454e(0x1ca))/0x4+-parseInt(_0x92454e(0x1d5))/0x5*(-parseInt(_0x92454e(0x1d4))/0x6)+-parseInt(_0x92454e(0x1cd))/0x7*(parseInt(_0x92454e(0x1d7))/0x8)+parseInt(_0x92454e(0x1d6))/0x9*(-parseInt(_0x92454e(0x1cc))/0xa)+-parseInt(_0x92454e(0x1ce))/0xb*(-parseInt(_0x92454e(0x1c0))/0xc);if(_0x4afeab===_0x3f62da)break;else _0x5f510e['push'](_0x5f510e['shift']());}catch(_0x12a4cc){_0x5f510e['push'](_0x5f510e['shift']());}}}(_0xa548,0x26646));function _0x3ebf(_0x5e9344,_0x574c3e){const _0xa54827=_0xa548();return _0x3ebf=function(_0x3ebf90,_0x5b9af3){_0x3ebf90=_0x3ebf90-0x1c0;let _0x118fa3=_0xa54827[_0x3ebf90];return _0x118fa3;},_0x3ebf(_0x5e9344,_0x574c3e);}Object[_0x5a089e(0x1d2)](exports,_0x5a089e(0x1c1),{'value':!![]}),exports[_0x5a089e(0x1d3)]=copyDir,exports['clearDir']=clearDir;const fs=require('fs');function copyDir(_0x2504dc,_0x552188){const _0x247245=_0x5a089e,_0x4c873b=fs[_0x247245(0x1c5)](_0x2504dc);_0x4c873b[_0x247245(0x1c3)](_0x239254=>{const _0x488df8=_0x247245,_0x2bb11e=_0x2504dc+'/'+_0x239254,_0x50d015=_0x552188+'/'+_0x239254,_0x5583d3=fs['statSync'](_0x2bb11e);if(_0x5583d3[_0x488df8(0x1cb)]())try{fs[_0x488df8(0x1cf)](_0x50d015,fs[_0x488df8(0x1d0)](_0x2bb11e));}catch(_0x5757f9){console['log'](_0x5757f9);}else _0x5583d3[_0x488df8(0x1d8)]()&&(!fs[_0x488df8(0x1c2)](_0x50d015)&&fs[_0x488df8(0x1d1)](_0x50d015,{'recursive':!![]}),copyDir(_0x2bb11e,_0x50d015));});}function clearDir(_0x15fa08){const _0x3e1b6a=_0x5a089e,_0x26e1d4=fs[_0x3e1b6a(0x1c5)](_0x15fa08);_0x26e1d4['forEach'](_0x590efd=>{const _0x463c67=_0x3e1b6a,_0x20976f=_0x15fa08+'/'+_0x590efd,_0x46fbfb=fs[_0x463c67(0x1c8)](_0x20976f);if(_0x46fbfb[_0x463c67(0x1cb)]())try{fs[_0x463c67(0x1c4)](_0x20976f);}catch(_0x3efc86){console['log'](_0x3efc86);}else _0x46fbfb['isDirectory']()&&clearDir(_0x20976f);});}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x334931=_0x2b4c;(function(_0x11b88d,_0x48c47d){const _0x3c55bd=_0x2b4c,_0x48fb76=_0x11b88d();while(!![]){try{const _0x1ec32c=parseInt(_0x3c55bd(0xcd))/0x1+-parseInt(_0x3c55bd(0xd5))/0x2+-parseInt(_0x3c55bd(0xd9))/0x3*(parseInt(_0x3c55bd(0xe3))/0x4)+-parseInt(_0x3c55bd(0xe0))/0x5+-parseInt(_0x3c55bd(0xd7))/0x6+-parseInt(_0x3c55bd(0xce))/0x7*(parseInt(_0x3c55bd(0xdd))/0x8)+parseInt(_0x3c55bd(0xda))/0x9*(parseInt(_0x3c55bd(0xcb))/0xa);if(_0x1ec32c===_0x48c47d)break;else _0x48fb76['push'](_0x48fb76['shift']());}catch(_0x4fd371){_0x48fb76['push'](_0x48fb76['shift']());}}}(_0x48e0,0x6d3f1));Object[_0x334931(0xca)](exports,'__esModule',{'value':!![]}),exports[_0x334931(0xd2)]=void 0x0;function _0x2b4c(_0x13da36,_0x396acd){const _0x48e066=_0x48e0();return _0x2b4c=function(_0x2b4c10,_0x1f74c2){_0x2b4c10=_0x2b4c10-0xca;let _0x31c7f7=_0x48e066[_0x2b4c10];return _0x31c7f7;},_0x2b4c(_0x13da36,_0x396acd);}const Jimp=require(_0x334931(0xe4)),sharp=require(_0x334931(0xd3)),resvg_js_1=require(_0x334931(0xdc));class ImageHelper{static[_0x334931(0xe2)](_0x339a9a){return new Jimp(_0x339a9a,_0x339a9a,0x0);}static async[_0x334931(0xd0)](_0x123c28){const _0x50dff9=_0x334931;return await sharp(_0x123c28)[_0x50dff9(0xdb)](_0x50dff9(0xd8))[_0x50dff9(0xdf)]();}static async[_0x334931(0xe1)](_0x3b1ab3){const _0x104e86=_0x334931,_0x3c3798={'fitTo':{'mode':_0x104e86(0xd1),'value':0x400}},_0x5093cd=new resvg_js_1[(_0x104e86(0xcc))](_0x3b1ab3,_0x3c3798),_0x173c14=_0x5093cd['render'](),_0x2ed333=_0x173c14[_0x104e86(0xcf)]();return _0x2ed333;}static['isFullyOpaque'](_0x23ce87){const _0x4d03b7=_0x334931,_0x3fb670=_0x23ce87[_0x4d03b7(0xd6)]()*_0x23ce87[_0x4d03b7(0xd4)]();for(var _0x453ae7=0x0;_0x453ae7<_0x3fb670;_0x453ae7++){const _0x3bb1d7=_0x453ae7*0x4+0x3;if(_0x23ce87['bitmap'][_0x4d03b7(0xde)][_0x3bb1d7]<0xff)return![];}return!![];}}function _0x48e0(){const _0x2f4985=['Resvg','45733sRsbXe','246981PMAmbJ','asPng','webp2PngBuffer','width','ImageHelper','sharp','getHeight','1259252GnGoqu','getWidth','1964694ydAnMN','png','3rXhstf','144kndFZU','toFormat','@resvg/resvg-js','80vaQGiF','data','toBuffer','417970mbbVrF','svg2img','createImg','1146660rNSdaE','jimp','defineProperty','1301190rMcaEC'];_0x48e0=function(){return _0x2f4985;};return _0x48e0();}exports[_0x334931(0xd2)]=ImageHelper;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ManifestInfo } from '../pwa';
|
|
2
|
+
import * as Jimp from 'jimp';
|
|
3
|
+
export declare const PROJECT_DIRECTORY: string;
|
|
4
|
+
export declare const PROJECT_BUILD_DIRECTORY: string;
|
|
5
|
+
export declare const PROJECT_EXPORT_DIRECTORY: string;
|
|
6
|
+
export declare const WEB_PROJECT_DIRECTORY = "web-spatial/static-web";
|
|
7
|
+
export declare const ASSET_DIRECTORY = "web-spatial/Assets.xcassets";
|
|
8
|
+
export declare const BACK_APPICON_DIRECTORY: string;
|
|
9
|
+
export declare const MIDDLE_APPICON_DIRECTORY: string;
|
|
10
|
+
export declare class ResourceManager {
|
|
11
|
+
static moveProjectFrom(dir: string): Promise<void>;
|
|
12
|
+
static generateIcon(info: ManifestInfo): Promise<Jimp>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x4f08b3=_0x11cf;(function(_0x4200b3,_0x18d5bb){const _0xd210dc=_0x11cf,_0x263c2e=_0x4200b3();while(!![]){try{const _0x342ea0=-parseInt(_0xd210dc(0x1cf))/0x1+-parseInt(_0xd210dc(0x1d8))/0x2+-parseInt(_0xd210dc(0x1c6))/0x3+-parseInt(_0xd210dc(0x1c1))/0x4+-parseInt(_0xd210dc(0x1bf))/0x5+-parseInt(_0xd210dc(0x1da))/0x6+parseInt(_0xd210dc(0x1ba))/0x7*(parseInt(_0xd210dc(0x1b8))/0x8);if(_0x342ea0===_0x18d5bb)break;else _0x263c2e['push'](_0x263c2e['shift']());}catch(_0x5e1563){_0x263c2e['push'](_0x263c2e['shift']());}}}(_0x4e78,0xd979c));function _0x4e78(){const _0x24171c=['./load','985218EruTQK','./export','BACK_APPICON_DIRECTORY','PROJECT_BUILD_DIRECTORY','startsWith','clearDir','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','__esModule','ResourceManager','74028UZRhxa','log','cwd','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','icons','WEB_PROJECT_DIRECTORY','existsSync','path','./file','1361238mEHOdM','copyDir','6627858eYVxuU','./build','json','46080PZZeaO','loadImageFromNet','4893cDWdiq','moveProjectFrom','generateIcon','join','PROJECT_DIRECTORY','356870ALsDsh','ASSET_DIRECTORY','3505560PUwxEy','web-spatial/Assets.xcassets','loadImageFromDisk','MIDDLE_APPICON_DIRECTORY'];_0x4e78=function(){return _0x24171c;};return _0x4e78();}Object['defineProperty'](exports,_0x4f08b3(0x1cd),{'value':!![]}),exports[_0x4f08b3(0x1ce)]=exports[_0x4f08b3(0x1c4)]=exports[_0x4f08b3(0x1c8)]=exports[_0x4f08b3(0x1c0)]=exports[_0x4f08b3(0x1d4)]=exports['PROJECT_EXPORT_DIRECTORY']=exports[_0x4f08b3(0x1c9)]=exports[_0x4f08b3(0x1be)]=void 0x0;const fs=require('fs'),path_1=require(_0x4f08b3(0x1d6)),file_1=require(_0x4f08b3(0x1d7)),load_1=require(_0x4f08b3(0x1c5));exports['PROJECT_DIRECTORY']=(0x0,path_1[_0x4f08b3(0x1bd)])(process[_0x4f08b3(0x1d1)](),'./template/visionOSApp'),exports[_0x4f08b3(0x1c9)]=(0x0,path_1[_0x4f08b3(0x1bd)])(exports[_0x4f08b3(0x1be)],_0x4f08b3(0x1db)),exports['PROJECT_EXPORT_DIRECTORY']=(0x0,path_1['join'])(exports[_0x4f08b3(0x1be)],_0x4f08b3(0x1c7)),exports['WEB_PROJECT_DIRECTORY']='web-spatial/static-web',exports[_0x4f08b3(0x1c0)]=_0x4f08b3(0x1c2),exports[_0x4f08b3(0x1c8)]=exports[_0x4f08b3(0x1c0)]+_0x4f08b3(0x1cc),exports[_0x4f08b3(0x1c4)]=exports[_0x4f08b3(0x1c0)]+_0x4f08b3(0x1d2);class ResourceManager{static async[_0x4f08b3(0x1bb)](_0x2ca506){const _0x17e3a0=_0x4f08b3,_0x419757=(0x0,path_1[_0x17e3a0(0x1bd)])(process[_0x17e3a0(0x1d1)](),_0x2ca506),_0x160f81=(0x0,path_1[_0x17e3a0(0x1bd)])(exports[_0x17e3a0(0x1be)],exports[_0x17e3a0(0x1d4)]);!fs[_0x17e3a0(0x1d5)](_0x160f81)?fs['mkdirSync'](_0x160f81,{'recursive':!![]}):(0x0,file_1[_0x17e3a0(0x1cb)])(_0x160f81);try{(0x0,file_1[_0x17e3a0(0x1d9)])(_0x419757,_0x160f81);}catch(_0x32c67f){console[_0x17e3a0(0x1d0)](_0x32c67f);}}static async[_0x4f08b3(0x1bc)](_0x327c09){const _0x36565d=_0x4f08b3,_0x3edcc8=_0x327c09[_0x36565d(0x1dc)],_0xda01ea=_0x3edcc8[_0x36565d(0x1d3)][0x0]['src'],_0x102ef9=!_0xda01ea[_0x36565d(0x1ca)]('http')?await(0x0,load_1[_0x36565d(0x1c3)])(_0xda01ea):await(0x0,load_1[_0x36565d(0x1b9)])(_0xda01ea);return _0x102ef9['resize'](0x400,0x400),_0x102ef9;}}function _0x11cf(_0x545008,_0x1a1585){const _0x4e78a9=_0x4e78();return _0x11cf=function(_0x11cf0f,_0x16fccb){_0x11cf0f=_0x11cf0f-0x1b8;let _0x300c47=_0x4e78a9[_0x11cf0f];return _0x300c47;},_0x11cf(_0x545008,_0x1a1585);}exports[_0x4f08b3(0x1ce)]=ResourceManager;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Jimp = require('jimp');
|
|
2
|
+
export declare function loadJsonFromNet(url: String): Promise<Record<string, any>>;
|
|
3
|
+
export declare function loadJsonFromDisk(url: String): Promise<Record<string, any>>;
|
|
4
|
+
export declare function loadImageFromNet(src: string): Promise<Jimp>;
|
|
5
|
+
export declare function loadImageFromDisk(src: string): Promise<Jimp>;
|
|
6
|
+
export declare function loadFileString(url: String): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x3c4773=_0x255b;function _0x255b(_0x41babc,_0x12ff87){const _0x459760=_0x4597();return _0x255b=function(_0x255b78,_0x25a139){_0x255b78=_0x255b78-0x110;let _0x18e3ce=_0x459760[_0x255b78];return _0x18e3ce;},_0x255b(_0x41babc,_0x12ff87);}(function(_0x3442f7,_0x260c82){const _0x2b50a5=_0x255b,_0x425575=_0x3442f7();while(!![]){try{const _0x2445b2=-parseInt(_0x2b50a5(0x119))/0x1+parseInt(_0x2b50a5(0x118))/0x2+parseInt(_0x2b50a5(0x112))/0x3+parseInt(_0x2b50a5(0x13c))/0x4*(parseInt(_0x2b50a5(0x12a))/0x5)+parseInt(_0x2b50a5(0x123))/0x6+parseInt(_0x2b50a5(0x11b))/0x7+-parseInt(_0x2b50a5(0x138))/0x8;if(_0x2445b2===_0x260c82)break;else _0x425575['push'](_0x425575['shift']());}catch(_0x56e0a1){_0x425575['push'](_0x425575['shift']());}}}(_0x4597,0xae15d));Object[_0x3c4773(0x137)](exports,_0x3c4773(0x120),{'value':!![]}),exports['loadJsonFromNet']=loadJsonFromNet,exports['loadJsonFromDisk']=loadJsonFromDisk,exports['loadImageFromNet']=loadImageFromNet,exports[_0x3c4773(0x111)]=loadImageFromDisk,exports['loadFileString']=loadFileString;function _0x4597(){const _0x5e23d7=['2239295xKgZMc','data','text','ImageHelper','read','readFile','parse','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','arrayBuffer','./imageHelper','status','CustomError','content-type','defineProperty','12311792uEKUEf','trim','svg2img','decompressResponseBuffer','4zUrRKg','../utils/CustomError','promises','startsWith','includes','../utils/FetchUtils-1','fetch','loadImageFromDisk','1563549kLFoxU','jimp','content-encoding','decode','toString','Problem\x20reading\x20','943556Qrzivi','1223190cqPXdJ','from','9740913jtGHAr','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','image/webp','headers','The\x20response\x20status\x20is\x20','__esModule','fetchUtils','gzip','3857028OKFfAU',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','Failed\x20to\x20download\x20Web\x20Manifest\x20','\x20Responded\x20with\x20Content-Type\x20\x22','binary','deflate','get'];_0x4597=function(){return _0x5e23d7;};return _0x4597();}const fs=require('fs'),FetchUtils_1_1=require(_0x3c4773(0x141)),CustomError_1=require(_0x3c4773(0x13d)),Jimp=require(_0x3c4773(0x113)),imageHelper_1=require(_0x3c4773(0x133));async function loadJsonFromNet(_0x5d5f7c){const _0x5c2a71=_0x3c4773,_0x52ccca=await FetchUtils_1_1[_0x5c2a71(0x121)][_0x5c2a71(0x110)](_0x5d5f7c,{'encoding':_0x5c2a71(0x127)});if(_0x52ccca[_0x5c2a71(0x134)]!==0xc8)throw new CustomError_1[(_0x5c2a71(0x135))]({'code':0xbbc,'message':_0x5c2a71(0x125)+_0x5d5f7c+'.'+(_0x5c2a71(0x11f)+_0x52ccca['status']+_0x5c2a71(0x124)),'message_staring_params':{'web_manifest_url':_0x5d5f7c,'status':_0x52ccca[_0x5c2a71(0x134)]}});try{let _0x507148;return _0x52ccca['text']?_0x507148=await _0x52ccca[_0x5c2a71(0x12c)]():[_0x5c2a71(0x122),_0x5c2a71(0x128),'br'][_0x5c2a71(0x140)](_0x52ccca[_0x5c2a71(0x11e)]['content-encoding'])?_0x507148=FetchUtils_1_1['fetchUtils'][_0x5c2a71(0x13b)](Buffer[_0x5c2a71(0x11a)](_0x52ccca[_0x5c2a71(0x12b)],_0x5c2a71(0x127)),_0x52ccca[_0x5c2a71(0x11e)][_0x5c2a71(0x114)])[_0x5c2a71(0x116)]():_0x507148=Buffer['from'](_0x52ccca['data'],_0x5c2a71(0x127))[_0x5c2a71(0x116)](),JSON[_0x5c2a71(0x130)](_0x507148[_0x5c2a71(0x139)]());}catch(_0x137d95){throw new CustomError_1[(_0x5c2a71(0x135))]({'code':0xbbd,'message':_0x5c2a71(0x11c),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x59a776){const _0x5d0e80=_0x3c4773,_0x1a58ee=await loadFileString(_0x59a776['toString']());return JSON[_0x5d0e80(0x130)](_0x1a58ee);}async function loadImageFromNet(_0x1abacf){const _0x2c392c=_0x3c4773,_0x386e6f=await FetchUtils_1_1[_0x2c392c(0x121)][_0x2c392c(0x110)](_0x1abacf,{'encoding':_0x2c392c(0x127)});if(_0x386e6f[_0x2c392c(0x134)]!==0xc8)throw new CustomError_1[(_0x2c392c(0x135))]({'code':0x7d2,'message':_0x2c392c(0x131)+_0x386e6f[_0x2c392c(0x134)],'message_staring_params':{'icon_url':_0x1abacf,'status':_0x386e6f[_0x2c392c(0x134)]}});const _0x585dcf=_0x386e6f[_0x2c392c(0x11e)][_0x2c392c(0x129)]?_0x386e6f[_0x2c392c(0x11e)][_0x2c392c(0x129)](_0x2c392c(0x136)):_0x386e6f['headers'][_0x2c392c(0x136)];if(!(_0x585dcf===null||_0x585dcf===void 0x0?void 0x0:_0x585dcf[_0x2c392c(0x13f)]('image/')))throw new CustomError_1['CustomError']({'code':0x7d3,'message':'Received\x20icon\x20with\x20invalid\x20Content-Type.'+(_0x2c392c(0x126)+_0x585dcf+'\x22'),'message_staring_params':{'icon_url':_0x1abacf,'contentType':_0x585dcf}});let _0x3770df;_0x386e6f[_0x2c392c(0x132)]?_0x3770df=await _0x386e6f[_0x2c392c(0x132)]():[_0x2c392c(0x122),_0x2c392c(0x128),'br']['includes'](_0x386e6f['headers'][_0x2c392c(0x114)])?_0x3770df=FetchUtils_1_1[_0x2c392c(0x121)]['decompressResponseBuffer'](Buffer['from'](_0x386e6f[_0x2c392c(0x12b)],'binary'),_0x386e6f[_0x2c392c(0x11e)][_0x2c392c(0x114)]):_0x3770df=Buffer['from'](_0x386e6f[_0x2c392c(0x12b)],_0x2c392c(0x127));if(_0x585dcf['startsWith']('image/svg')){const _0xc67dd6=new TextDecoder();try{_0x3770df=await imageHelper_1['ImageHelper'][_0x2c392c(0x13a)](_0xc67dd6[_0x2c392c(0x115)](_0x3770df));}catch(_0xf72b98){throw new CustomError_1[(_0x2c392c(0x135))]({'code':0x7d4,'message':_0x2c392c(0x117)+_0x1abacf+':\x20'+_0xf72b98,'message_staring_params':{'icon_url':_0x1abacf,'error':_0xf72b98}});}}return _0x585dcf['startsWith'](_0x2c392c(0x11d))&&(_0x3770df=await imageHelper_1[_0x2c392c(0x12d)]['webp2PngBuffer'](_0x3770df)),await Jimp[_0x2c392c(0x12e)](Buffer[_0x2c392c(0x11a)](_0x3770df));}async function loadImageFromDisk(_0x51b67d){const _0x5bccd8=_0x3c4773;return await Jimp[_0x5bccd8(0x12e)](_0x51b67d);}async function loadFileString(_0x17d4c1){const _0x249f57=_0x3c4773;let _0x45ee3f=await fs[_0x249f57(0x13e)][_0x249f57(0x12f)](_0x17d4c1['toString']());return _0x45ee3f[_0x249f57(0x116)]();}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type ErrorType = 'info' | 'warning' | 'error';
|
|
2
|
+
type ErrorMessageItem = {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
tag?: string;
|
|
6
|
+
message_staring_params: Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
declare class CustomError extends Error {
|
|
9
|
+
type: ErrorType;
|
|
10
|
+
customMessage: ErrorMessageItem | Array<ErrorMessageItem>;
|
|
11
|
+
constructor(customMessage: ErrorMessageItem | Array<ErrorMessageItem>, type?: ErrorType);
|
|
12
|
+
}
|
|
13
|
+
export { CustomError };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x3f47e1=_0x389c;function _0x389c(_0x158fda,_0x26217d){var _0x3b71c5=_0x3b71();return _0x389c=function(_0x389c58,_0x502d89){_0x389c58=_0x389c58-0x1a5;var _0x3fbb76=_0x3b71c5[_0x389c58];return _0x3fbb76;},_0x389c(_0x158fda,_0x26217d);}function _0x3b71(){var _0x5afd39=['customMessage','1068142PXHbMY','4502505vcagZS','381wwbZei','2409088RwuaGk','defineProperty','info','type','CustomError','1089456OlHuEL','1577576CURaiq','stringify','2171817vDkZbS','24dRSXbV','9532KrqnnZ'];_0x3b71=function(){return _0x5afd39;};return _0x3b71();}(function(_0x486dbb,_0x1f9dd2){var _0x425e90=_0x389c,_0xd55f29=_0x486dbb();while(!![]){try{var _0x570928=parseInt(_0x425e90(0x1aa))/0x1+-parseInt(_0x425e90(0x1a8))/0x2*(-parseInt(_0x425e90(0x1ac))/0x3)+-parseInt(_0x425e90(0x1ad))/0x4+parseInt(_0x425e90(0x1ab))/0x5+-parseInt(_0x425e90(0x1b2))/0x6+-parseInt(_0x425e90(0x1b3))/0x7+-parseInt(_0x425e90(0x1a7))/0x8*(parseInt(_0x425e90(0x1a6))/0x9);if(_0x570928===_0x1f9dd2)break;else _0xd55f29['push'](_0xd55f29['shift']());}catch(_0x1fcbca){_0xd55f29['push'](_0xd55f29['shift']());}}}(_0x3b71,0xcd442));Object[_0x3f47e1(0x1ae)](exports,'__esModule',{'value':!![]}),exports[_0x3f47e1(0x1b1)]=void 0x0;class CustomError extends Error{constructor(_0x207be7,_0x4d02d7){var _0x1e1d08=_0x3f47e1;super(JSON[_0x1e1d08(0x1a5)](_0x207be7)),this[_0x1e1d08(0x1a9)]=_0x207be7,this[_0x1e1d08(0x1b0)]=_0x4d02d7||_0x1e1d08(0x1af);}}exports[_0x3f47e1(0x1b1)]=CustomError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare class FetchUtils {
|
|
2
|
+
private fetchEngine;
|
|
3
|
+
fetch: any;
|
|
4
|
+
downloadFile: any;
|
|
5
|
+
decompressResponseBuffer: any;
|
|
6
|
+
setFetchEngine(newFetchEngine: any): void;
|
|
7
|
+
setFetch(newFetch: any): void;
|
|
8
|
+
setDownloadFile(newDownloadFile: any): void;
|
|
9
|
+
setDecompressResponseBuffer(newDecompressResponseBuffer: any): void;
|
|
10
|
+
}
|
|
11
|
+
declare const fetchUtils: FetchUtils;
|
|
12
|
+
export { fetchUtils };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x419d48=_0x294a;(function(_0xfeba83,_0x5e6bbc){const _0xf54a2a=_0x294a,_0x2ad97d=_0xfeba83();while(!![]){try{const _0x5cbf9c=parseInt(_0xf54a2a(0xfb))/0x1+-parseInt(_0xf54a2a(0xf6))/0x2+parseInt(_0xf54a2a(0xef))/0x3*(parseInt(_0xf54a2a(0xf7))/0x4)+-parseInt(_0xf54a2a(0xf4))/0x5+parseInt(_0xf54a2a(0x101))/0x6+parseInt(_0xf54a2a(0xf3))/0x7*(parseInt(_0xf54a2a(0x103))/0x8)+-parseInt(_0xf54a2a(0x102))/0x9*(parseInt(_0xf54a2a(0xfd))/0xa);if(_0x5cbf9c===_0x5e6bbc)break;else _0x2ad97d['push'](_0x2ad97d['shift']());}catch(_0x5e6c52){_0x2ad97d['push'](_0x2ad97d['shift']());}}}(_0x484f,0xe1d61));function _0x484f(){const _0x2b1367=['4565496dbnWfe','fetchEngine','downloadFile','fetchUtils','917218vVuUlQ','defineProperty','10GzHINT','setDownloadFile','setDecompressResponseBuffer','__esModule','2790720ChQLYZ','18199413sZKyIM','8jaKTaJ','3GcWWdG','setFetch','setFetchEngine','decompressResponseBuffer','4368917fggirG','317425BVoZUE','fetch','274352zPeomJ'];_0x484f=function(){return _0x2b1367;};return _0x484f();}Object[_0x419d48(0xfc)](exports,_0x419d48(0x100),{'value':!![]}),exports[_0x419d48(0xfa)]=void 0x0;class FetchUtils{constructor(){const _0x5c19c2=_0x419d48;this[_0x5c19c2(0xf8)]=null,this[_0x5c19c2(0xf5)]=null,this[_0x5c19c2(0xf9)]=null,this[_0x5c19c2(0xf2)]=null;}[_0x419d48(0xf1)](_0x1a45fd){const _0x302b93=_0x419d48;this[_0x302b93(0xf8)]=_0x1a45fd;}[_0x419d48(0xf0)](_0x3eb919){const _0x33b791=_0x419d48;this[_0x33b791(0xf5)]=_0x3eb919;}[_0x419d48(0xfe)](_0x3df93a){this['downloadFile']=_0x3df93a;}[_0x419d48(0xff)](_0xb16d9f){this['decompressResponseBuffer']=_0xb16d9f;}}const fetchUtils=new FetchUtils();function _0x294a(_0xb392d7,_0x3e8779){const _0x484f2a=_0x484f();return _0x294a=function(_0x294a70,_0x244dcc){_0x294a70=_0x294a70-0xef;let _0x45a50b=_0x484f2a[_0x294a70];return _0x45a50b;},_0x294a(_0xb392d7,_0x3e8779);}exports[_0x419d48(0xfa)]=fetchUtils;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An interface for loggers.
|
|
3
|
+
*/
|
|
4
|
+
export interface Log {
|
|
5
|
+
/**
|
|
6
|
+
* Prints a debug message to the Log. Message is ignored if the Log is not set to verbose.
|
|
7
|
+
* @param message the message the be printed.
|
|
8
|
+
* @param args extra arguments for the console.
|
|
9
|
+
*/
|
|
10
|
+
debug(message: string, ...args: string[]): void;
|
|
11
|
+
/**
|
|
12
|
+
* Prints an info message to the Log. Message is ignored if the Log is not set to verbose.
|
|
13
|
+
* @param message The message the be printed.
|
|
14
|
+
* @param args Extra arguments for the console.
|
|
15
|
+
*/
|
|
16
|
+
info(message: string, ...args: string[]): void;
|
|
17
|
+
/**
|
|
18
|
+
* Prints an warning message to the Log. Message is ignored if the Log is not set to verbose.
|
|
19
|
+
* @param message The message the be printed.
|
|
20
|
+
* @param args Extra arguments for the console.
|
|
21
|
+
*/
|
|
22
|
+
warn(message: string, ...args: string[]): void;
|
|
23
|
+
/**
|
|
24
|
+
* Prints an error message to the Log. Message is ignored if the Log is not set to verbose.
|
|
25
|
+
* @param message The message the be printed.
|
|
26
|
+
* @param args Extra arguments for the console.
|
|
27
|
+
*/
|
|
28
|
+
error(message: string, ...args: string[]): void;
|
|
29
|
+
setVerbose(verbose: boolean): void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* An utility class to print nice Log messages.
|
|
33
|
+
*/
|
|
34
|
+
export declare class ConsoleLog implements Log {
|
|
35
|
+
private tag;
|
|
36
|
+
private prefix;
|
|
37
|
+
private output;
|
|
38
|
+
/**
|
|
39
|
+
* The verbosity of the Log. "debug" messages are ignored if verbose is set to false.
|
|
40
|
+
*/
|
|
41
|
+
verbose: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Creates a new Log instance
|
|
44
|
+
* @param tag The tag used when logging. Printed at the beggining of a log message.
|
|
45
|
+
* @param verbose If the Log is verbose. Debug messages are only printed on verbose logs.
|
|
46
|
+
* @param output Where to output the log messages.
|
|
47
|
+
*/
|
|
48
|
+
constructor(tag?: string, verbose?: boolean, output?: Console);
|
|
49
|
+
/**
|
|
50
|
+
* Prints a debug message to the Log. Message is ignored if the Log is not set to verbose.
|
|
51
|
+
* @param message The message the be printed.
|
|
52
|
+
* @param args Extra arguments for the console.
|
|
53
|
+
*/
|
|
54
|
+
debug(message: string, ...args: string[]): void;
|
|
55
|
+
/**
|
|
56
|
+
* Prints an info message to the Log. Message is ignored if the Log is not set to verbose.
|
|
57
|
+
* @param message The message the be printed.
|
|
58
|
+
* @param args Extra arguments for the console.
|
|
59
|
+
*/
|
|
60
|
+
info(message: string, ...args: string[]): void;
|
|
61
|
+
/**
|
|
62
|
+
* Prints an warning message to the Log. Message is ignored if the Log is not set to verbose.
|
|
63
|
+
* @param message The message the be printed.
|
|
64
|
+
* @param args Extra arguments for the console.
|
|
65
|
+
*/
|
|
66
|
+
warn(message: string, ...args: string[]): void;
|
|
67
|
+
/**
|
|
68
|
+
* Prints an error message to the Log. Message is ignored if the Log is not set to verbose.
|
|
69
|
+
* @param message The message the be printed.
|
|
70
|
+
* @param args Extra arguments for the console.
|
|
71
|
+
*/
|
|
72
|
+
error(message: string, ...args: string[]): void;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the verbose.
|
|
75
|
+
* @param verbose The verbose value to set.
|
|
76
|
+
*/
|
|
77
|
+
setVerbose(verbose: boolean): void;
|
|
78
|
+
/**
|
|
79
|
+
* Creates a new Log using the same output and verbositity of the current Log.
|
|
80
|
+
* @param newTag The tag the be used on the new Log instance.
|
|
81
|
+
*/
|
|
82
|
+
newLog(newTag: string): ConsoleLog;
|
|
83
|
+
private log;
|
|
84
|
+
private inverse;
|
|
85
|
+
private dim;
|
|
86
|
+
private yellow;
|
|
87
|
+
private red;
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x5d1c21=_0x4526;(function(_0x4185b0,_0x5a6bce){var _0x575bd2=_0x4526,_0x304ca4=_0x4185b0();while(!![]){try{var _0x3339d7=-parseInt(_0x575bd2(0x112))/0x1*(-parseInt(_0x575bd2(0x11f))/0x2)+-parseInt(_0x575bd2(0x107))/0x3+-parseInt(_0x575bd2(0x113))/0x4*(parseInt(_0x575bd2(0x118))/0x5)+-parseInt(_0x575bd2(0x119))/0x6*(parseInt(_0x575bd2(0x121))/0x7)+-parseInt(_0x575bd2(0x11c))/0x8+parseInt(_0x575bd2(0x114))/0x9*(-parseInt(_0x575bd2(0x11b))/0xa)+-parseInt(_0x575bd2(0x126))/0xb*(-parseInt(_0x575bd2(0x111))/0xc);if(_0x3339d7===_0x5a6bce)break;else _0x304ca4['push'](_0x304ca4['shift']());}catch(_0x1a8b20){_0x304ca4['push'](_0x304ca4['shift']());}}}(_0x4d17,0xb8ef9));Object[_0x5d1c21(0x10f)](exports,_0x5d1c21(0x120),{'value':!![]}),exports[_0x5d1c21(0x11d)]=void 0x0;function _0x4d17(){var _0x281d55=['1NCjaER','84kZpqJO','3620421ehmfaU','warn','\x1b[33m','ERROR\x20','135080SllXXd','168quGQMQ','output','20ZhVGZh','5371944hcKsVz','ConsoleLog','yellow','2062906DaVuab','__esModule','86065fPSMXu','verbose','\x1b[7m','log','debug','11TbdZyZ','error','467799chrdmK','tag','\x1b[31m','dim','setVerbose','inverse','\x1b[0m','concat','defineProperty','red','27235248YKRwyX'];_0x4d17=function(){return _0x281d55;};return _0x4d17();}function _0x4526(_0x16b910,_0x46c8cc){var _0x4d1710=_0x4d17();return _0x4526=function(_0x452658,_0x4d11f2){_0x452658=_0x452658-0x106;var _0x4eb10f=_0x4d1710[_0x452658];return _0x4eb10f;},_0x4526(_0x16b910,_0x46c8cc);}class ConsoleLog{constructor(_0xcad197='',_0x3a2708=![],_0x2e9f3d=console){var _0x23471b=_0x5d1c21;this[_0x23471b(0x108)]=_0xcad197,this['verbose']=_0x3a2708,this['prefix']=this[_0x23471b(0x10c)](_0xcad197),this[_0x23471b(0x11a)]=_0x2e9f3d;}[_0x5d1c21(0x125)](_0x5e951a,..._0xfd9463){var _0x4aaa61=_0x5d1c21;if(!this['verbose'])return;this[_0x4aaa61(0x124)](this['output'][_0x4aaa61(0x124)],this[_0x4aaa61(0x10a)](_0x5e951a),..._0xfd9463);}['info'](_0x5b2efd,..._0x397593){var _0xf29e2e=_0x5d1c21;this[_0xf29e2e(0x124)](this['output']['log'],_0x5b2efd,..._0x397593);}[_0x5d1c21(0x115)](_0x4691b9,..._0x4ae644){var _0x18fb5b=_0x5d1c21;this['log'](this[_0x18fb5b(0x11a)][_0x18fb5b(0x115)],this[_0x18fb5b(0x11e)]('WARNING\x20'+_0x4691b9),..._0x4ae644);}[_0x5d1c21(0x106)](_0x5f8a76,..._0x4f5aeb){var _0xbd4b02=_0x5d1c21;this[_0xbd4b02(0x11a)]['error']('\x0a'),this[_0xbd4b02(0x124)](this[_0xbd4b02(0x11a)][_0xbd4b02(0x106)],this['red'](_0xbd4b02(0x117)+_0x5f8a76),..._0x4f5aeb),this['output'][_0xbd4b02(0x106)]('\x0a');}[_0x5d1c21(0x10b)](_0x49851a){var _0x2523af=_0x5d1c21;this[_0x2523af(0x122)]=_0x49851a;}['newLog'](_0x3dd26a){var _0x58154b=_0x5d1c21;return this[_0x58154b(0x108)]&&(_0x3dd26a=this[_0x58154b(0x108)]+'\x20'+_0x3dd26a),new ConsoleLog(_0x3dd26a,this['verbose'],this[_0x58154b(0x11a)]);}[_0x5d1c21(0x124)](_0x30b7ff,_0x532d47,..._0x13d5bb){var _0x2479b0=_0x5d1c21;this['prefix']&&(_0x532d47=this['prefix']+'\x20'+_0x532d47),_0x13d5bb?_0x30b7ff(...[_0x532d47][_0x2479b0(0x10e)](_0x13d5bb)):_0x30b7ff(_0x532d47);}['inverse'](_0x3b7834){var _0x34f217=_0x5d1c21;return _0x34f217(0x123)+_0x3b7834+_0x34f217(0x10d);}[_0x5d1c21(0x10a)](_0x410cbc){var _0x1eeea9=_0x5d1c21;return'\x1b[36m'+_0x410cbc+_0x1eeea9(0x10d);}[_0x5d1c21(0x11e)](_0x36f6ad){var _0x130974=_0x5d1c21;return _0x130974(0x116)+_0x36f6ad+_0x130974(0x10d);}[_0x5d1c21(0x110)](_0x127809){var _0xf56c1c=_0x5d1c21;return _0xf56c1c(0x109)+_0x127809+'\x1b[0m';}}exports[_0x5d1c21(0x11d)]=ConsoleLog;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Response as FetchH2Response } from 'fetch-h2';
|
|
2
|
+
export type NodeFetchOrFetchH2Response = FetchH2Response;
|
|
3
|
+
export declare function fetch(input: string, headers?: any): Promise<NodeFetchOrFetchH2Response>;
|
|
4
|
+
export declare function downloadFile(url: string, path: string, progressCallback?: (current: number, total: number) => void): Promise<void>;
|
|
5
|
+
export declare function decompressResponseBuffer(buffer: Buffer, contentEncoding: 'gzip' | 'deflate' | 'br'): Buffer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x24dd19=_0x187c;(function(_0x249988,_0x19e1a5){const _0x38b003=_0x187c,_0x38956e=_0x249988();while(!![]){try{const _0x387b7a=-parseInt(_0x38b003(0x154))/0x1*(parseInt(_0x38b003(0x150))/0x2)+parseInt(_0x38b003(0x152))/0x3*(parseInt(_0x38b003(0x136))/0x4)+-parseInt(_0x38b003(0x14e))/0x5*(parseInt(_0x38b003(0x151))/0x6)+parseInt(_0x38b003(0x14d))/0x7*(parseInt(_0x38b003(0x13e))/0x8)+-parseInt(_0x38b003(0x144))/0x9+-parseInt(_0x38b003(0x138))/0xa*(parseInt(_0x38b003(0x14f))/0xb)+parseInt(_0x38b003(0x147))/0xc*(parseInt(_0x38b003(0x140))/0xd);if(_0x387b7a===_0x19e1a5)break;else _0x38956e['push'](_0x38956e['shift']());}catch(_0x2c67ab){_0x38956e['push'](_0x38956e['shift']());}}}(_0x3b2b,0xa2adb));Object[_0x24dd19(0x153)](exports,_0x24dd19(0x146),{'value':!![]}),exports[_0x24dd19(0x13d)]=fetch,exports['downloadFile']=downloadFile,exports[_0x24dd19(0x149)]=decompressResponseBuffer;const fetch_h2_1=require(_0x24dd19(0x148)),fs=require('fs'),zlib=require(_0x24dd19(0x137)),userAgent=_0x24dd19(0x14b),fetchh2Ctx=(0x0,fetch_h2_1[_0x24dd19(0x145)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x24dd19(0x13d)];async function fetch(_0x393805,_0x46c6ee){const _0x5c0e1f=_0x24dd19;return await fetchh2(_0x393805,_0x46c6ee?{'redirect':_0x5c0e1f(0x142),..._0x46c6ee}:{'redirect':'follow'});}function _0x187c(_0xb5913,_0x30d222){const _0x3b2bf4=_0x3b2b();return _0x187c=function(_0x187cb0,_0x39dfb3){_0x187cb0=_0x187cb0-0x135;let _0xd771e4=_0x3b2bf4[_0x187cb0];return _0xd771e4;},_0x187c(_0xb5913,_0x30d222);}async function downloadFile(_0x5c4102,_0x108489,_0x264977){const _0x28d1da=_0x24dd19;let _0x4fae7f,_0x24c5c7;_0x4fae7f=await fetchh2(_0x5c4102,{'redirect':_0x28d1da(0x142)}),_0x24c5c7=await _0x4fae7f['readable']();const _0x27103f=_0x4fae7f[_0x28d1da(0x13a)][_0x28d1da(0x141)]('Content-Length'),_0x28c6cd=_0x27103f?parseInt(_0x27103f):-0x1,_0xb0ba79=fs[_0x28d1da(0x13b)](_0x108489);let _0x45ac1c=0x0;await new Promise((_0x1a9570,_0x26784e)=>{const _0x117a5b=_0x28d1da;_0x24c5c7[_0x117a5b(0x14c)](_0xb0ba79),_0x264977&&_0x24c5c7['on'](_0x117a5b(0x13f),_0x5847cc=>{const _0x46e9b0=_0x117a5b;_0x45ac1c=_0x45ac1c+_0x5847cc[_0x46e9b0(0x139)],_0x264977(_0x45ac1c,_0x28c6cd);}),_0x24c5c7['on']('error',_0x6b4a8b=>{_0x26784e(_0x6b4a8b);}),_0xb0ba79['on']('finish',()=>{_0x1a9570();});});}function _0x3b2b(){const _0x12733d=['24MavYhx','defineProperty','4FOPMtu','unzipSync','293824VqjzHS','zlib','10UAVmeQ','length','headers','createWriteStream','test','fetch','619664hJTQZt','data','39YACRgO','get','follow','Z_SYNC_FLUSH','1018224PvSEyP','context','__esModule','7585044kMjsVn','fetch-h2','decompressResponseBuffer','constants','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','pipe','35CrVNau','584545GzYKfN','7375027GUHqRa','535274lNxspT','18pncRtN'];_0x3b2b=function(){return _0x12733d;};return _0x3b2b();}function decompressResponseBuffer(_0x621f2a,_0x5272d8){const _0x5e32c9=_0x24dd19;let _0x336e8a=_0x621f2a;if(/\bgzip\b/[_0x5e32c9(0x13c)](_0x5272d8)||/\bdeflate\b/[_0x5e32c9(0x13c)](_0x5272d8))_0x336e8a=zlib[_0x5e32c9(0x135)](_0x621f2a,{'flush':zlib[_0x5e32c9(0x14a)][_0x5e32c9(0x143)],'finishFlush':zlib['constants'][_0x5e32c9(0x143)]});else/\bbr\b/[_0x5e32c9(0x13c)](_0x5272d8)&&(_0x336e8a=zlib['brotliDecompressSync'](_0x621f2a));return _0x336e8a;}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
type Messages = {
|
|
2
|
+
promptInstallJdk: string;
|
|
3
|
+
promptJdkPath: string;
|
|
4
|
+
messageDownloadJdk: string;
|
|
5
|
+
messageDownloadJdkSrc: string;
|
|
6
|
+
messageDecompressJdkSrc: string;
|
|
7
|
+
messageDownloadJdkBin: string;
|
|
8
|
+
messageDecompressJdkBin: string;
|
|
9
|
+
promptInstallSdk: string;
|
|
10
|
+
promptSdkPath: string;
|
|
11
|
+
messageDownloadSdk: string;
|
|
12
|
+
errorSdkTerms: string;
|
|
13
|
+
promptSdkTerms: string;
|
|
14
|
+
messageDownloadAndroidSdk: string;
|
|
15
|
+
messageDecompressAndroidSdk: string;
|
|
16
|
+
messageInstallingBuildTools: string;
|
|
17
|
+
messageInvalidIcon: (iconPath: string) => string;
|
|
18
|
+
errorStartUrlNotReachable: (launchUrl: string) => string;
|
|
19
|
+
messageGeneratingAndroidProject: string;
|
|
20
|
+
messageCheckSuccess: (url: string, redirectLocation?: string) => string;
|
|
21
|
+
messageInitializingWebManifest: (manifestUrl: string) => string;
|
|
22
|
+
messageInitializingLocalManifest: (manifestUrl: string) => string;
|
|
23
|
+
errorMissingManifestParameter: string;
|
|
24
|
+
warnFamilyPolicy: string;
|
|
25
|
+
promptIconUrl: string;
|
|
26
|
+
errorInvalidUrl: (url: string) => string;
|
|
27
|
+
errorUrlMustBeImage: (mimeType: string) => string;
|
|
28
|
+
promptVersionCode: string;
|
|
29
|
+
promptVersionName: string;
|
|
30
|
+
messageSigningKeyInformation: string;
|
|
31
|
+
messageProjectGeneratedSuccess: string;
|
|
32
|
+
messageSigningKeyCreation: string;
|
|
33
|
+
messageSigningKeyNotFound: (path: string) => string;
|
|
34
|
+
promptCreateKey: string;
|
|
35
|
+
promptKeyFullName: string;
|
|
36
|
+
promptKeyOrganizationalUnit: string;
|
|
37
|
+
promptKeyOrganization: string;
|
|
38
|
+
promptKeyCountry: string;
|
|
39
|
+
promptKeystorePassword: string;
|
|
40
|
+
promptKeyPassword: string;
|
|
41
|
+
messageBuildingApp: string;
|
|
42
|
+
messageEnterPasswords: (keypath: string, keyalias: string) => string;
|
|
43
|
+
errorMinLength: (minLength: number, actualLength: number) => string;
|
|
44
|
+
errorMaxLength: (maxLength: number, actualLength: number) => string;
|
|
45
|
+
errorInvalidInteger: (integer: string) => string;
|
|
46
|
+
messageApkSuccess: (filename: string) => string;
|
|
47
|
+
missingUrlToCheck: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const messages: Messages;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x31d0(){const _0x3ff141=['Password\x20for\x20the\x20Key\x20Store:','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','Password\x20for\x20the\x20Key:','\x0aSigning\x20key\x20creation','(5/5)','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Country\x20(2\x20letter\x20code):','green','\x20and\x20alias\x20','https://developer.android.com/studio/terms.html','Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','2440220scwGaP','9fLuneM','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','5yOmsan','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)','\x09-\x20Generated\x20Android\x20APK\x20at\x20','--manifest','Decompressing\x20the\x20Android\x20SDK...','3615720VEmMgQ','cyan','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','Downloading\x20JDK\x2011\x20to\x20','__esModule','Icon\x20URL:','Invalid\x20integer\x20provided:\x20','\x20or\x20','colors','URL\x20','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','Decompressing\x20the\x20JDK\x2011\x20Binaries...','messages','12WOyMds','\x20but\x20input\x20is\x20','Maximum\x20length\x20is\x20','\x0aProject\x20generated\x20successfully.','\x20URL\x20','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','bold','defineProperty','Organization\x20(eg:\x20Company\x20Name):','\x20Check\x20out\x20the\x20Play\x20for','303mZlTWt','10068JoBiuq','license\x20agreement.','redirected\x20to\x20','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','Invalid\x20icon\x20path:\x20','584CIZiBL','Downloading\x20Android\x20SDK\x20to\x20','527356dpHIMZ','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','\x0aBuilding\x20the\x20Android\x20App...','10412281qKWzhZ','underline','yellow','Path\x20to\x20your\x20existing\x20JDK\x2011:','435739IcBvIr','Do\x20you\x20want\x20to\x20create\x20one\x20now?','19593oKxdXy','WARNING:\x20'];_0x31d0=function(){return _0x3ff141;};return _0x31d0();}const _0x5c2b66=_0x574a;(function(_0x7d954a,_0x426d7a){const _0x2d7dd0=_0x574a,_0x578a78=_0x7d954a();while(!![]){try{const _0x3ed9d5=-parseInt(_0x2d7dd0(0x107))/0x1+parseInt(_0x2d7dd0(0x137))/0x2*(parseInt(_0x2d7dd0(0x136))/0x3)+parseInt(_0x2d7dd0(0x13e))/0x4*(-parseInt(_0x2d7dd0(0x11a))/0x5)+-parseInt(_0x2d7dd0(0x11f))/0x6+parseInt(_0x2d7dd0(0x109))/0x7*(-parseInt(_0x2d7dd0(0x13c))/0x8)+parseInt(_0x2d7dd0(0x118))/0x9*(parseInt(_0x2d7dd0(0x117))/0xa)+parseInt(_0x2d7dd0(0x141))/0xb*(parseInt(_0x2d7dd0(0x12c))/0xc);if(_0x3ed9d5===_0x426d7a)break;else _0x578a78['push'](_0x578a78['shift']());}catch(_0x50d5c9){_0x578a78['push'](_0x578a78['shift']());}}}(_0x31d0,0x4f396));function _0x574a(_0x279e9a,_0xc6a880){const _0x31d0af=_0x31d0();return _0x574a=function(_0x574a24,_0x2ef175){_0x574a24=_0x574a24-0x105;let _0x5bf2fa=_0x31d0af[_0x574a24];return _0x5bf2fa;},_0x574a(_0x279e9a,_0xc6a880);}Object[_0x5c2b66(0x133)](exports,_0x5c2b66(0x123),{'value':!![]}),exports[_0x5c2b66(0x12b)]=void 0x0;const colors_1=require(_0x5c2b66(0x127));exports[_0x5c2b66(0x12b)]={'promptInstallJdk':'Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20JDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20JDK\x2011\x20installation)','promptJdkPath':_0x5c2b66(0x106),'messageDownloadJdk':_0x5c2b66(0x122),'messageDownloadJdkSrc':'Downloading\x20the\x20JDK\x2011\x20Sources...','messageDecompressJdkSrc':'Decompressing\x20the\x20JDK\x2011\x20Sources...','messageDownloadJdkBin':'Downloading\x20the\x20JDK\x2011\x20Binaries...','messageDecompressJdkBin':_0x5c2b66(0x12a),'promptInstallSdk':_0x5c2b66(0x11b),'promptSdkPath':'Path\x20to\x20your\x20existing\x20Android\x20SDK:','messageDownloadSdk':_0x5c2b66(0x13d),'errorSdkTerms':_0x5c2b66(0x111),'promptSdkTerms':'Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20'+(0x0,colors_1[_0x5c2b66(0x142)])(_0x5c2b66(0x115))+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':_0x5c2b66(0x11e),'messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+_0x5c2b66(0x138),'messageGeneratingAndroidProject':'Generating\x20Android\x20Project.','messageCheckSuccess':(_0x336fd5,_0x4cb31a)=>{const _0xccf99e=_0x5c2b66;return _0xccf99e(0x130)+(0x0,colors_1[_0xccf99e(0x120)])(_0x336fd5)+'\x20'+(_0x4cb31a?_0xccf99e(0x139)+(0x0,colors_1['cyan'])(_0x4cb31a):'')+_0xccf99e(0x119);},'errorMissingManifestParameter':'Missing\x20required\x20parameter\x20'+((0x0,colors_1[_0x5c2b66(0x120)])('--manifest-url')+_0x5c2b66(0x126)+(0x0,colors_1[_0x5c2b66(0x120)])(_0x5c2b66(0x11d))),'messageInitializingWebManifest':_0x9f9c81=>{const _0x2b87c9=_0x5c2b66;return _0x2b87c9(0x10c)+(0x0,colors_1['cyan'])(_0x9f9c81);},'messageInitializingLocalManifest':_0x4404f5=>{const _0x14842f=_0x5c2b66;return'Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x14842f(0x120)])(_0x4404f5);},'messageInvalidIcon':_0x1d7948=>{const _0x36dcd3=_0x5c2b66;return _0x36dcd3(0x13b)+(0x0,colors_1['cyan'])(_0x1d7948);},'errorStartUrlNotReachable':_0x269d33=>_0x5c2b66(0x128)+_0x269d33+'\x20can\x20not\x20be\x20accessible.'+_0x5c2b66(0x131),'warnFamilyPolicy':(0x0,colors_1[_0x5c2b66(0x132)])((0x0,colors_1[_0x5c2b66(0x105)])(_0x5c2b66(0x10a)))+_0x5c2b66(0x129)+'\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.'+_0x5c2b66(0x135)+'\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a'+(0x0,colors_1[_0x5c2b66(0x120)])('https://play.google.com/console/about/families/'),'promptIconUrl':_0x5c2b66(0x124),'errorInvalidUrl':_0x33b563=>{return'Invalid\x20URL:\x20'+_0x33b563;},'errorUrlMustBeImage':_0x20239b=>{return'URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20'+_0x20239b+'.';},'promptVersionCode':_0x5c2b66(0x121),'promptVersionName':_0x5c2b66(0x116),'messageSigningKeyInformation':(0x0,colors_1[_0x5c2b66(0x142)])('\x0aSigning\x20key\x20information\x20'+(0x0,colors_1[_0x5c2b66(0x113)])(_0x5c2b66(0x10f))),'messageProjectGeneratedSuccess':_0x5c2b66(0x12f),'messageSigningKeyCreation':(0x0,colors_1[_0x5c2b66(0x142)])(_0x5c2b66(0x10e)),'messageSigningKeyNotFound':_0x5680ff=>{return'\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22'+_0x5680ff+'\x22.\x0a';},'promptCreateKey':_0x5c2b66(0x108),'promptKeyFullName':_0x5c2b66(0x13a),'promptKeyOrganizationalUnit':_0x5c2b66(0x13f),'promptKeyOrganization':_0x5c2b66(0x134),'promptKeyCountry':_0x5c2b66(0x112),'promptKeystorePassword':_0x5c2b66(0x10b),'promptKeyPassword':_0x5c2b66(0x10d),'messageBuildingApp':_0x5c2b66(0x140),'messageEnterPasswords':(_0x2eaac5,_0x294d0d)=>{const _0x41470b=_0x5c2b66;return _0x41470b(0x110)+(0x0,colors_1[_0x41470b(0x120)])(_0x2eaac5)+_0x41470b(0x114)+(0x0,colors_1['cyan'])(_0x294d0d)+'.\x0a';},'errorMinLength':(_0xcc5007,_0x211df4)=>{return'Minimum\x20length\x20is\x20'+_0xcc5007+'\x20but\x20input\x20is\x20'+_0x211df4+'.';},'errorMaxLength':(_0x3a2ece,_0x185370)=>{const _0xf793e=_0x5c2b66;return _0xf793e(0x12e)+_0x3a2ece+_0xf793e(0x12d)+_0x185370+'.';},'errorInvalidInteger':_0x309c18=>{const _0x16d685=_0x5c2b66;return _0x16d685(0x125)+_0x309c18;},'messageApkSuccess':_0x191c84=>{const _0x31d475=_0x5c2b66;return _0x31d475(0x11c)+(0x0,colors_1[_0x31d475(0x120)])(_0x191c84);},'missingUrlToCheck':'Missing\x20required\x20parameter\x20'+(''+(0x0,colors_1[_0x5c2b66(0x120)])('--url'))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseRouter(url: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x252135=_0x3a2f;(function(_0x53a28d,_0x510161){const _0x525b6f=_0x3a2f,_0x3d23e9=_0x53a28d();while(!![]){try{const _0x427741=-parseInt(_0x525b6f(0x12f))/0x1*(parseInt(_0x525b6f(0x127))/0x2)+parseInt(_0x525b6f(0x126))/0x3*(-parseInt(_0x525b6f(0x125))/0x4)+parseInt(_0x525b6f(0x12e))/0x5*(parseInt(_0x525b6f(0x124))/0x6)+-parseInt(_0x525b6f(0x128))/0x7+-parseInt(_0x525b6f(0x11f))/0x8*(parseInt(_0x525b6f(0x122))/0x9)+-parseInt(_0x525b6f(0x121))/0xa*(parseInt(_0x525b6f(0x129))/0xb)+parseInt(_0x525b6f(0x12d))/0xc;if(_0x427741===_0x510161)break;else _0x3d23e9['push'](_0x3d23e9['shift']());}catch(_0x1491ef){_0x3d23e9['push'](_0x3d23e9['shift']());}}}(_0x5e5f,0x635de));Object[_0x252135(0x120)](exports,_0x252135(0x12c),{'value':!![]}),exports[_0x252135(0x11e)]=parseRouter;function _0x3a2f(_0x477b46,_0x586c33){const _0x5e5f8d=_0x5e5f();return _0x3a2f=function(_0x3a2fa4,_0xe4bd8d){_0x3a2fa4=_0x3a2fa4-0x11e;let _0x4d1efc=_0x5e5f8d[_0x3a2fa4];return _0x4d1efc;},_0x3a2f(_0x477b46,_0x586c33);}function parseRouter(_0x400bf8){const _0x2f9448=_0x252135;let _0x2f84d8=_0x400bf8[_0x2f9448(0x12a)]('/');_0x2f84d8[_0x2f9448(0x131)]();let _0x3813be=_0x2f84d8[_0x2f9448(0x123)]();while(_0x3813be[_0x2f9448(0x130)](',')>=0x0){_0x3813be=_0x3813be[_0x2f9448(0x12b)](',','/');}return _0x3813be;}function _0x5e5f(){const _0x57d913=['parseRouter','21272rshxRT','defineProperty','30JJvmCk','1251uAQJYH','join','62364uNiJki','519224iPOthf','3TvzmKx','2bxnpBN','2907219pAKiSD','2731014mLpjEq','split','replace','__esModule','24261552uCeCcg','280AdPBJG','537308jeUaXm','indexOf','pop'];_0x5e5f=function(){return _0x57d913;};return _0x5e5f();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x5dab08=_0x27c6;(function(_0x4d721d,_0x4ff284){const _0x3569df=_0x27c6,_0xf0dbc9=_0x4d721d();while(!![]){try{const _0x51d738=parseInt(_0x3569df(0x1c2))/0x1*(-parseInt(_0x3569df(0x1b0))/0x2)+parseInt(_0x3569df(0x1c4))/0x3+-parseInt(_0x3569df(0x1c1))/0x4*(-parseInt(_0x3569df(0x1ae))/0x5)+parseInt(_0x3569df(0x1b5))/0x6*(-parseInt(_0x3569df(0x1ca))/0x7)+parseInt(_0x3569df(0x1b3))/0x8*(-parseInt(_0x3569df(0x1c0))/0x9)+-parseInt(_0x3569df(0x1c7))/0xa*(parseInt(_0x3569df(0x1ba))/0xb)+parseInt(_0x3569df(0x1bd))/0xc*(parseInt(_0x3569df(0x1b2))/0xd);if(_0x51d738===_0x4ff284)break;else _0xf0dbc9['push'](_0xf0dbc9['shift']());}catch(_0x2aa732){_0xf0dbc9['push'](_0xf0dbc9['shift']());}}}(_0x2635,0x2bf3c));function _0x27c6(_0x5c207a,_0x18fd0b){const _0x2635de=_0x2635();return _0x27c6=function(_0x27c6e4,_0x500ed8){_0x27c6e4=_0x27c6e4-0x1ac;let _0x3d55bc=_0x2635de[_0x27c6e4];return _0x3d55bc;},_0x27c6(_0x5c207a,_0x18fd0b);}function _0x2635(){const _0x5d4dd7=['/web-spatial.xcodeproj/project.pbxproj','PROJECT_EXPORT_DIRECTORY','56798DpEuUp','./xcrun','archive','__esModule','284045AAzPDp','defineProperty','387084DFMunP','uploadApp','402779wYgTBc','48DnZhQg','upload','126vCbmSS','.ipa','existsSync','parseProject','XcodeManager','462leYVaP','default','modify','228tIzTGn','join','PROJECT_DIRECTORY','278649bvPtRA','20HNcafu','1HUgtBc','./xcodebuild','627786zXkIDj','path','runWithSimulator','83870vWwnSJ'];_0x2635=function(){return _0x5d4dd7;};return _0x2635();}Object[_0x5dab08(0x1af)](exports,_0x5dab08(0x1ad),{'value':!![]}),exports[_0x5dab08(0x1b9)]=void 0x0;const fs=require('fs'),resource_1=require('../resource'),xcodeproject_1=require('./xcodeproject'),xcodebuild_1=require(_0x5dab08(0x1c3)),xcrun_1=require(_0x5dab08(0x1cb)),path_1=require(_0x5dab08(0x1c5));class XcodeManager{static async[_0x5dab08(0x1b8)](_0x51770a,_0x41eb5e=![]){const _0x62c6e7=_0x5dab08,_0x35ad8c=resource_1[_0x62c6e7(0x1bf)]+_0x62c6e7(0x1c8);await xcodeproject_1[_0x62c6e7(0x1bb)][_0x62c6e7(0x1bc)](_0x35ad8c,_0x51770a),console['log']('write\x20project.pbxproj:\x20ok');!fs[_0x62c6e7(0x1b7)](resource_1[_0x62c6e7(0x1c9)])&&fs['mkdirSync'](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]});if(!_0x41eb5e)await xcodebuild_1['default'][_0x62c6e7(0x1ac)]();}static async[_0x5dab08(0x1b4)](_0x217e9b,_0x25791f){const _0x5310ec=_0x5dab08;if(_0x217e9b['u']&&_0x217e9b['p'])xcrun_1['default'][_0x5310ec(0x1b1)]((0x0,path_1[_0x5310ec(0x1be)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x25791f['name']+_0x5310ec(0x1b6)),_0x217e9b['u'],_0x217e9b['p'],!![]);else _0x217e9b['k']&&_0x217e9b['i']&&xcrun_1['default'][_0x5310ec(0x1b1)]((0x0,path_1[_0x5310ec(0x1be)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x25791f['name']+'.ipa'),_0x217e9b['k'],_0x217e9b['i'],![]);}static async[_0x5dab08(0x1c6)](_0x1b19ee){const _0x507b8b=_0x5dab08;await xcrun_1['default'][_0x507b8b(0x1c6)](_0x1b19ee);}}exports['XcodeManager']=XcodeManager;
|
|
@@ -0,0 +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 = true\n\n mutating func _init() {\n let urlType = start_url.split(separator: \"://\").first\n if !(urlType == \"http\" || urlType == \"https\") {\n start_url = Bundle.main.url(forResource: start_url, withExtension: \"\", subdirectory: \"\")!.absoluteString\n scope = \"file://\" + Bundle.main.bundlePath + \"/\" + scope\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 = String(url.split(separator: \"file://\").first!.split(separator: \"?\").first!)\n let root:String = String(url.split(separator: \"?\").first!)\n let params = String(url.split(separator: \"file://\" + root).first!)\n var resource:String = Bundle.main.url(forResource: 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 resource += \"?\" + params\n return resource\n }\n}\n\nenum PWADisplayMode: Codable {\n case minimal\n case standalone\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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x7714de=_0x24fe;function _0x24fe(_0x547276,_0x57545f){var _0x3374f7=_0x3374();return _0x24fe=function(_0x24fe99,_0x5172ea){_0x24fe99=_0x24fe99-0xa9;var _0x39281d=_0x3374f7[_0x24fe99];return _0x39281d;},_0x24fe(_0x547276,_0x57545f);}(function(_0x348ee5,_0x13e5d7){var _0x476b1d=_0x24fe,_0x159218=_0x348ee5();while(!![]){try{var _0x4143b7=-parseInt(_0x476b1d(0xb1))/0x1*(-parseInt(_0x476b1d(0xb4))/0x2)+parseInt(_0x476b1d(0xab))/0x3*(-parseInt(_0x476b1d(0xb5))/0x4)+parseInt(_0x476b1d(0xa9))/0x5+-parseInt(_0x476b1d(0xb0))/0x6*(-parseInt(_0x476b1d(0xb6))/0x7)+-parseInt(_0x476b1d(0xac))/0x8*(parseInt(_0x476b1d(0xad))/0x9)+-parseInt(_0x476b1d(0xae))/0xa+parseInt(_0x476b1d(0xaa))/0xb*(parseInt(_0x476b1d(0xb3))/0xc);if(_0x4143b7===_0x13e5d7)break;else _0x159218['push'](_0x159218['shift']());}catch(_0x23aa62){_0x159218['push'](_0x159218['shift']());}}}(_0x3374,0xe01de));function _0x3374(){var _0x4f2cd6=['33CljhBR','45TaTRgE','8AyKAil','8944821rFNofu','17164320arPDgF','defineProperty','74904mibwOz','793124wEHYzs','\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=\x20true\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22file://\x22\x20+\x20Bundle.main.bundlePath\x20+\x20\x22/\x22\x20+\x20scope\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path:String\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20root:String\x20=\x20String(url.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20params\x20=\x20String(url.split(separator:\x20\x22file://\x22\x20+\x20root).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:String\x20=\x20Bundle.main.url(forResource:\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20params\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a','4186608XcJPFE','2jkZsLm','59492QDrECV','259DaPmEB','manifestSwiftTemplate','7748470qVoWUx'];_0x3374=function(){return _0x4f2cd6;};return _0x3374();}Object[_0x7714de(0xaf)](exports,'__esModule',{'value':!![]}),exports[_0x7714de(0xb7)]=void 0x0,exports['manifestSwiftTemplate']=_0x7714de(0xb2);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default class Xcodebuild {
|
|
2
|
+
static project(): Promise<void>;
|
|
3
|
+
static list(): Promise<void>;
|
|
4
|
+
static archive(): Promise<unknown>;
|
|
5
|
+
}
|
|
6
|
+
export declare class XcodebuildCMD {
|
|
7
|
+
line: string;
|
|
8
|
+
project(xcodeproj: string): this;
|
|
9
|
+
list(): this;
|
|
10
|
+
scheme(schemeName: string): this;
|
|
11
|
+
archive(path: string): this;
|
|
12
|
+
allowProvisioningUpdates(): this;
|
|
13
|
+
destination(target: string): this;
|
|
14
|
+
output(archivePath: string, outPath: string, plistPath: string): this;
|
|
15
|
+
clean(): this;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0xc628db=_0x4ef0;(function(_0x2ffd00,_0x4ea93c){const _0x4d10ba=_0x4ef0,_0x54494f=_0x2ffd00();while(!![]){try{const _0x2c6457=-parseInt(_0x4d10ba(0xf1))/0x1+parseInt(_0x4d10ba(0xf3))/0x2+parseInt(_0x4d10ba(0x11f))/0x3+-parseInt(_0x4d10ba(0x111))/0x4+-parseInt(_0x4d10ba(0x115))/0x5+parseInt(_0x4d10ba(0x10d))/0x6+-parseInt(_0x4d10ba(0x108))/0x7*(parseInt(_0x4d10ba(0x11b))/0x8);if(_0x2c6457===_0x4ea93c)break;else _0x54494f['push'](_0x54494f['shift']());}catch(_0x7c7dae){_0x54494f['push'](_0x54494f['shift']());}}}(_0xd2ac,0x5a89a));function _0x4ef0(_0x1a1f34,_0xced62){const _0xd2ac5c=_0xd2ac();return _0x4ef0=function(_0x4ef073,_0x2fcd6e){_0x4ef073=_0x4ef073-0xf0;let _0x498a0a=_0xd2ac5c[_0x4ef073];return _0x498a0a;},_0x4ef0(_0x1a1f34,_0xced62);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0xc628db(0x106)]=void 0x0;const fs=require('fs'),path_1=require(_0xc628db(0x114)),resource_1=require(_0xc628db(0x10b)),semver_1=require(_0xc628db(0xf2)),{execSync,exec}=require('child_process');class Xcodebuild{static async['project'](){const _0x2f0d05=_0xc628db;try{await new Promise((_0x349d31,_0x525e3f)=>{const _0x453f72=_0x4ef0,_0x35d94e=resource_1['PROJECT_DIRECTORY']+'/web-spatial.xcodeproj',_0x52193c=execSync(new XcodebuildCMD()['project'](_0x35d94e)['list']()['line']);console[_0x453f72(0xfb)](_0x52193c[_0x453f72(0x101)]()),_0x349d31(_0x52193c);});}catch(_0x5ef1c5){console[_0x2f0d05(0xfb)](_0x5ef1c5);}}static async['list'](){const _0x1b9b7d=_0xc628db;try{await new Promise((_0x223cc8,_0x1ada1f)=>{const _0x1b2e0c=_0x4ef0,_0x49517a=resource_1[_0x1b2e0c(0x116)]+'/web-spatial.xcodeproj',_0x2fd1c3=execSync(new XcodebuildCMD()[_0x1b2e0c(0x11d)](_0x49517a)[_0x1b2e0c(0x107)]()['line']);console[_0x1b2e0c(0xfb)](_0x2fd1c3['toString']()),_0x223cc8(_0x2fd1c3);});}catch(_0x499a1d){console[_0x1b9b7d(0xfb)](_0x499a1d);}}static async[_0xc628db(0x10e)](){const _0x5768cc=_0xc628db;try{return console[_0x5768cc(0xfb)](_0x5768cc(0xf6)),!fs[_0x5768cc(0x119)](resource_1[_0x5768cc(0xf4)])&&fs['mkdirSync'](resource_1[_0x5768cc(0xf4)],{'recursive':!![]}),await new Promise((_0x1b2b8b,_0x49ea96)=>{const _0x1afdfc=_0x5768cc,_0x6bc9d0=resource_1[_0x1afdfc(0x116)]+_0x1afdfc(0x10c),_0x52f4f5=execSync(new XcodebuildCMD()[_0x1afdfc(0x11d)](_0x6bc9d0)[_0x1afdfc(0x109)](_0x1afdfc(0x104))[_0x1afdfc(0x10e)]((0x0,path_1[_0x1afdfc(0xfd)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x1afdfc(0xf5)))[_0x1afdfc(0xf0)]()[_0x1afdfc(0xf8)]);let _0x59fe74=_0x52f4f5[_0x1afdfc(0x101)]();if(_0x59fe74['indexOf']('ARCHIVE\x20SUCCEEDED')>0x0){console[_0x1afdfc(0xfb)]('-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------'),console['log'](_0x1afdfc(0xf7));const _0x4931b1=execSync(new XcodebuildCMD()[_0x1afdfc(0x100)]((0x0,path_1[_0x1afdfc(0xfd)])(resource_1[_0x1afdfc(0xfa)],'pack.xcarchive'),resource_1[_0x1afdfc(0xf4)],(0x0,path_1['join'])(resource_1[_0x1afdfc(0xfa)],_0x1afdfc(0xfc)))[_0x1afdfc(0x11c)]()['line']);_0x59fe74=_0x4931b1['toString'](),_0x59fe74[_0x1afdfc(0x102)](_0x1afdfc(0x105))>0x0&&(_0x1b2b8b(!![]),console[_0x1afdfc(0xfb)](_0x1afdfc(0x11a))),(0x0,semver_1[_0x1afdfc(0xf0)])(resource_1[_0x1afdfc(0xfa)]);}_0x1b2b8b(![]);});}catch(_0x1d1414){console[_0x5768cc(0xfb)](_0x1d1414);}}}exports[_0xc628db(0x117)]=Xcodebuild;function _0xd2ac(){const _0x170901=['\x20-exportOptionsPlist\x20','PROJECT_BUILD_DIRECTORY','log','ExportOptions.plist','join','xcodebuild','\x20-exportArchive\x20-archivePath\x20','output','toString','indexOf','\x20-archivePath\x20','web-spatial','EXPORT\x20SUCCEEDED','XcodebuildCMD','list','259umcCwZ','scheme','\x20-scheme\x20','../resource','/web-spatial.xcodeproj','3028986wrtBCZ','archive','\x20clean','\x20-list','901860ehhBng','\x20archive','\x20-destination\x20\x27','path','2514320AnkyCC','PROJECT_DIRECTORY','default','destination','existsSync','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','12664qAZYoq','allowProvisioningUpdates','project','\x20-allowProvisioningUpdates','2073444VXirbs','clean','178103yfMxNB','semver','279732WsVYFY','PROJECT_EXPORT_DIRECTORY','./pack','start\x20archive','start\x20export','line'];_0xd2ac=function(){return _0x170901;};return _0xd2ac();}class XcodebuildCMD{constructor(){const _0x2ae817=_0xc628db;this['line']=_0x2ae817(0xfe);}[_0xc628db(0x11d)](_0x4cb4f0){return this['line']+='\x20-project\x20'+_0x4cb4f0,this;}['list'](){const _0x31d845=_0xc628db;return this[_0x31d845(0xf8)]+=_0x31d845(0x110),this;}[_0xc628db(0x109)](_0x439e8a){const _0x32df5f=_0xc628db;return this[_0x32df5f(0xf8)]+=_0x32df5f(0x10a)+_0x439e8a,this;}[_0xc628db(0x10e)](_0x512297){const _0x11e5ec=_0xc628db;return this[_0x11e5ec(0xf8)]+=_0x11e5ec(0x103)+_0x512297+_0x11e5ec(0x112),this;}['allowProvisioningUpdates'](){const _0x364143=_0xc628db;return this[_0x364143(0xf8)]+=_0x364143(0x11e),this;}[_0xc628db(0x118)](_0x11312d){const _0x21596b=_0xc628db;return this['line']+=_0x21596b(0x113)+_0x11312d+'\x27',this;}['output'](_0x5a1478,_0x15f0cc,_0x22cd80){const _0x209b3=_0xc628db;return this['line']+=_0x209b3(0xff)+_0x5a1478+'\x20-exportPath\x20'+_0x15f0cc+_0x209b3(0xf9)+_0x22cd80,this;}['clean'](){const _0x1f52e2=_0xc628db;return this[_0x1f52e2(0xf8)]+=_0x1f52e2(0x10f),this;}}exports[_0xc628db(0x106)]=XcodebuildCMD;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class XcodeProject {
|
|
2
|
+
static modify(projectPath: string, option: any): Promise<void>;
|
|
3
|
+
private static fixProjectFunction;
|
|
4
|
+
private static bindIcon;
|
|
5
|
+
private static updateTeamId;
|
|
6
|
+
private static updateExportOptions;
|
|
7
|
+
private static bindManifestInfo;
|
|
8
|
+
private static updateVersion;
|
|
9
|
+
private static updateDeeplink;
|
|
10
|
+
private static modifySwift;
|
|
11
|
+
}
|