@webspatial/builder 0.1.11 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -52
- package/dist/index.js +1 -1
- package/dist/lib/cmds/build.d.ts +4 -4
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.d.ts +2 -3
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/launch.d.ts +2 -0
- package/dist/lib/cmds/launch.js +1 -0
- package/dist/lib/cmds/shutdown.d.ts +2 -0
- package/dist/lib/cmds/shutdown.js +1 -0
- package/dist/lib/cmds/version.d.ts +1 -2
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.d.ts +5 -15
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.js +1 -1
- package/dist/lib/resource/file.js +1 -1
- package/dist/lib/resource/imageHelper.js +1 -1
- package/dist/lib/resource/index.d.ts +2 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/types.d.ts +27 -0
- package/dist/lib/types.js +1 -0
- package/dist/lib/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/history.d.ts +15 -0
- package/dist/lib/utils/history.js +1 -0
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.d.ts +2 -0
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.d.ts +3 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.d.ts +42 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +4 -3
- package/dist/lib/Cli.d.ts +0 -5
- package/dist/lib/Cli.js +0 -1
|
@@ -1,7 +1,48 @@
|
|
|
1
|
+
import { BasicAppInfo, SimulatorInfo } from '../types';
|
|
1
2
|
export default class Xcrun {
|
|
2
3
|
static validate(path: string, key1: string, key2: string, useAccount: boolean): Promise<string>;
|
|
3
4
|
static uploadPackage(path: string, key1: string, key2: string, appleId: string, useAccount: boolean): Promise<string>;
|
|
4
5
|
static uploadApp(path: string, key1: string, key2: string, useAccount: boolean): Promise<string>;
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @description
|
|
8
|
+
* Find suitable simulator device
|
|
9
|
+
* Attempt to build a testing app
|
|
10
|
+
* Try running the test app on the simulator
|
|
11
|
+
*/
|
|
12
|
+
static runWithSimulator(): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* @description
|
|
15
|
+
* Attempt to launch the app using information from the history
|
|
16
|
+
*/
|
|
17
|
+
static runWithHistory(): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @description
|
|
20
|
+
* Find a simulator with the given deviceId
|
|
21
|
+
* If no deviceId is provided, find the first available simulator
|
|
22
|
+
* If no simulator is found, create a new simulator
|
|
23
|
+
* @param deviceId The deviceId of the simulator to find, defaulting to the first available simulator
|
|
24
|
+
* @param appInfo
|
|
25
|
+
* appInfo.name is used for installing applications
|
|
26
|
+
* appInfo.id is used to launch the application
|
|
27
|
+
* @returns The simulator device uuid
|
|
28
|
+
*/
|
|
29
|
+
static launchWithSimulator(appInfo: BasicAppInfo, deviceId?: string, needInstall?: boolean, needFind?: boolean): string;
|
|
30
|
+
static shutdownSimulator(): Promise<void>;
|
|
31
|
+
private static launchSimulator;
|
|
32
|
+
private static buildTestApp;
|
|
33
|
+
private static installApp;
|
|
34
|
+
private static launchApp;
|
|
35
|
+
private static parseDestinationDevices;
|
|
36
|
+
private static parseSupportDevices;
|
|
37
|
+
private static parseSupportRuntimes;
|
|
6
38
|
private static parseListDevices;
|
|
39
|
+
private static parseDeviceInfo;
|
|
40
|
+
static findSimulator(deviceId?: string): SimulatorInfo[];
|
|
41
|
+
private static searchSimulator;
|
|
42
|
+
static createSimulator(): {
|
|
43
|
+
name: string;
|
|
44
|
+
deviceId: string;
|
|
45
|
+
state: string;
|
|
46
|
+
};
|
|
47
|
+
private static listSimulator;
|
|
7
48
|
}
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2b05dd=_0x6433;(function(_0x4fa0b8,_0x199c0f){const _0x741da=_0x6433,_0x3626d7=_0x4fa0b8();while(!![]){try{const _0x426cfe=-parseInt(_0x741da(0x1ab))/0x1*(-parseInt(_0x741da(0x197))/0x2)+-parseInt(_0x741da(0x1b3))/0x3+parseInt(_0x741da(0x1a5))/0x4+-parseInt(_0x741da(0x1ad))/0x5+parseInt(_0x741da(0x1df))/0x6+-parseInt(_0x741da(0x1ae))/0x7+parseInt(_0x741da(0x1e0))/0x8;if(_0x426cfe===_0x199c0f)break;else _0x3626d7['push'](_0x3626d7['shift']());}catch(_0x2c28a4){_0x3626d7['push'](_0x3626d7['shift']());}}}(_0x4ffd,0x5fc98));function _0x6433(_0x511af5,_0x46ec7b){const _0x4ffd00=_0x4ffd();return _0x6433=function(_0x6433d5,_0x235da8){_0x6433d5=_0x6433d5-0x194;let _0x1b10c0=_0x4ffd00[_0x6433d5];return _0x1b10c0;},_0x6433(_0x511af5,_0x46ec7b);}Object['defineProperty'](exports,_0x2b05dd(0x1e2),{'value':!![]});function _0x4ffd(){const _0x2b204d=['\x20launch\x20\x22','split','PROJECT_BUILD_DIRECTORY','log','1dcPWMw','\x20list\x20devices\x20\x22','1959295xvYCVM','3023405vnbnfx','Build/Products/Debug-xrsimulator/','install\x20success','boot','mkdirSync','1149354feXlUI','\x20--bundle-version\x20','Shutdown','--\x20','\x22\x20\x22','visionos','uploadApp','/web-spatial.xcodeproj','\x20--verbose','listDevices','start\x20building','trim','\x20-t\x20','path','child_process','launch','find\x20simulator:\x20','uploadPackage','/test','includes','state','project','\x20simctl','no\x20visionOS\x20simulator\x20found','\x20--apiIssuer\x20','\x20--upload-package\x20','line','toString','build\x20success','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','../resource/file','\x20--apiKey\x20','authApi','name','push','execSync','shutdown','--\x20visionOS','default','launch\x20app','validate','length','deviceId','parseListDevices','3333492GGIWdI','1605000hJaTzB','\x20boot\x20\x22','__esModule','./xcodebuild','clearDir','PROJECT_DIRECTORY','333286pBWTwk','\x20list','authAccount','../resource','simctl','.app','Apple\x20Vision\x20Pro','version','install','platform','\x20install\x20\x22','altool','list','existsSync','2705544RkRLdx','\x20-u\x20'];_0x4ffd=function(){return _0x2b204d;};return _0x4ffd();}const child_process_1=require(_0x2b05dd(0x1c1)),resource_1=require(_0x2b05dd(0x19a)),path_1=require(_0x2b05dd(0x1c0)),fs=require('fs'),xcodebuild_1=require(_0x2b05dd(0x194)),file_1=require(_0x2b05dd(0x1d1));class Xcrun{static async[_0x2b05dd(0x1db)](_0x17d941,_0x18c979,_0xf605be,_0xdb5944){const _0x3bdde9=_0x2b05dd,_0xec8d67=new XcrunCMD()[_0x3bdde9(0x1a2)]();_0xec8d67[_0x3bdde9(0x1db)](_0x17d941);_0xdb5944?_0xec8d67['authAccount'](_0x18c979,_0xf605be):_0xec8d67[_0x3bdde9(0x1d3)](_0x18c979,_0xf605be);_0xec8d67[_0x3bdde9(0x1a0)](_0x3bdde9(0x1b8));const _0x324ed9=(0x0,child_process_1['execSync'])(_0xec8d67[_0x3bdde9(0x1cd)]);return _0x324ed9['toString']();}static async[_0x2b05dd(0x1c4)](_0x5c5a61,_0x3af1e0,_0x2ed617,_0x53631e,_0x5247c6){const _0x53bcb5=_0x2b05dd,_0x4bffee=new XcrunCMD()[_0x53bcb5(0x1a2)]();_0x4bffee[_0x53bcb5(0x1c4)](_0x5c5a61);_0x5247c6?_0x4bffee[_0x53bcb5(0x199)](_0x3af1e0,_0x2ed617):_0x4bffee['authApi'](_0x3af1e0,_0x2ed617);_0x4bffee['platform'](_0x53bcb5(0x1b8)),_0x4bffee['appleId'](_0x53631e);const _0x3dd8f5=(0x0,child_process_1[_0x53bcb5(0x1d6)])(_0x4bffee['line']);return _0x3dd8f5[_0x53bcb5(0x1ce)]();}static async[_0x2b05dd(0x1b9)](_0x44e2ad,_0x8131a8,_0x2bd9e3,_0x590770){const _0x2cd43f=_0x2b05dd,_0x216e96=new XcrunCMD()[_0x2cd43f(0x1a2)]();_0x216e96[_0x2cd43f(0x1b9)](_0x44e2ad);_0x590770?_0x216e96[_0x2cd43f(0x199)](_0x8131a8,_0x2bd9e3):_0x216e96[_0x2cd43f(0x1d3)](_0x8131a8,_0x2bd9e3);_0x216e96[_0x2cd43f(0x1a0)](_0x2cd43f(0x1b8));const _0xc201fa=(0x0,child_process_1[_0x2cd43f(0x1d6)])(_0x216e96['line']);return _0xc201fa[_0x2cd43f(0x1ce)]();}static async['runWithSimulator'](_0x1844db){const _0xf1ff80=_0x2b05dd;let _0x321240=new XcrunCMD()[_0xf1ff80(0x19b)]();_0x321240['listDevices'](_0xf1ff80(0x19d));const _0x187f45=(0x0,child_process_1[_0xf1ff80(0x1d6)])(_0x321240['line']),_0x367c92=this[_0xf1ff80(0x1de)](_0x187f45[_0xf1ff80(0x1ce)]());if(_0x367c92[_0xf1ff80(0x1dc)]===0x0)throw new Error(_0xf1ff80(0x1ca));let _0x32b6bf=_0x367c92[0x0];for(let _0x380a5b=0x0;_0x380a5b<_0x367c92[_0xf1ff80(0x1dc)];_0x380a5b++){if(_0x367c92[_0x380a5b][_0xf1ff80(0x1c7)]==='Booted'){_0x32b6bf=_0x367c92[_0x380a5b];break;}}console[_0xf1ff80(0x1aa)](_0xf1ff80(0x1c3)+_0x32b6bf[_0xf1ff80(0x1dd)]);const _0x486c2c=resource_1[_0xf1ff80(0x196)]+_0xf1ff80(0x1ba),_0x66db2b=resource_1[_0xf1ff80(0x1a9)]+_0xf1ff80(0x1c5);!fs[_0xf1ff80(0x1a4)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0xf1ff80(0x1b2)](resource_1[_0xf1ff80(0x1a9)],{'recursive':!![]});!fs[_0xf1ff80(0x1a4)](_0x66db2b)&&fs['mkdirSync'](_0x66db2b,{'recursive':!![]});(0x0,file_1[_0xf1ff80(0x195)])(_0x66db2b);const _0x265083=new xcodebuild_1['XcodebuildCMD']()[_0xf1ff80(0x1c8)](_0x486c2c)['line']+(_0xf1ff80(0x1d0)+_0x32b6bf[_0xf1ff80(0x1dd)]+'\x27\x20-derivedDataPath\x20'+_0x66db2b);console['log'](_0xf1ff80(0x1bd)),(0x0,child_process_1['execSync'])(_0x265083),console[_0xf1ff80(0x1aa)](_0xf1ff80(0x1cf));_0x32b6bf[_0xf1ff80(0x1c7)]===_0xf1ff80(0x1b5)&&(_0x321240=new XcrunCMD()[_0xf1ff80(0x19b)](),_0x321240['boot'](_0x32b6bf[_0xf1ff80(0x1dd)]),(0x0,child_process_1[_0xf1ff80(0x1d6)])(_0x321240[_0xf1ff80(0x1cd)]));(0x0,child_process_1[_0xf1ff80(0x1d6)])('open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/'),console[_0xf1ff80(0x1aa)]('installing\x20app');const _0x2e585c=(0x0,path_1['join'])(_0x66db2b,_0xf1ff80(0x1af)+_0x1844db[_0xf1ff80(0x1d4)]+_0xf1ff80(0x19c));_0x321240=new XcrunCMD()['simctl'](),_0x321240[_0xf1ff80(0x19f)](_0x32b6bf[_0xf1ff80(0x1dd)],_0x2e585c),(0x0,child_process_1[_0xf1ff80(0x1d6)])(_0x321240[_0xf1ff80(0x1cd)]),console[_0xf1ff80(0x1aa)](_0xf1ff80(0x1b0)),console[_0xf1ff80(0x1aa)](_0xf1ff80(0x1da)),_0x321240=new XcrunCMD()['simctl'](),_0x321240[_0xf1ff80(0x1c2)](_0x32b6bf[_0xf1ff80(0x1dd)],_0x1844db['id']),(0x0,child_process_1[_0xf1ff80(0x1d6)])(_0x321240[_0xf1ff80(0x1cd)]);}static[_0x2b05dd(0x1de)](_0x203054){const _0x2e6b51=_0x2b05dd;let _0x5b9086=_0x203054[_0x2e6b51(0x1a8)]('\x0a'),_0x1a1705=[],_0x365486=-0x1;for(let _0x5ef5ff=0x0;_0x5ef5ff<_0x5b9086[_0x2e6b51(0x1dc)];_0x5ef5ff++){if(_0x5b9086[_0x5ef5ff]['includes'](_0x2e6b51(0x1d8)))_0x365486=_0x5ef5ff;else{if(_0x365486>0x0){if(_0x5b9086[_0x5ef5ff][_0x2e6b51(0x1c6)](_0x2e6b51(0x1b6)))break;if(_0x5b9086[_0x5ef5ff][_0x2e6b51(0x1dc)]>0x0){const _0x28082e=_0x5b9086[_0x5ef5ff][_0x2e6b51(0x1a8)]('('),_0x44eee1={'name':_0x28082e[0x0][_0x2e6b51(0x1be)](),'deviceId':_0x28082e[0x1][_0x2e6b51(0x1a8)](')')[0x0][_0x2e6b51(0x1be)](),'state':_0x28082e[0x2][_0x2e6b51(0x1a8)](')')[0x0][_0x2e6b51(0x1be)]()};_0x1a1705[_0x2e6b51(0x1d5)](_0x44eee1);}}}}return _0x1a1705;}}exports[_0x2b05dd(0x1d9)]=Xcrun;class XcrunCMD{constructor(){const _0x47dae7=_0x2b05dd;this[_0x47dae7(0x1cd)]='xcrun';}[_0x2b05dd(0x1a2)](){const _0x5aa27e=_0x2b05dd;return this[_0x5aa27e(0x1cd)]+='\x20altool',this;}[_0x2b05dd(0x19b)](){const _0x4b5a68=_0x2b05dd;return this['line']+=_0x4b5a68(0x1c9),this;}[_0x2b05dd(0x1a3)](){const _0x153e99=_0x2b05dd;return this[_0x153e99(0x1cd)]+=_0x153e99(0x198),this;}[_0x2b05dd(0x1bc)](_0xa84f63){const _0x5091a6=_0x2b05dd;return this[_0x5091a6(0x1cd)]+=_0x5091a6(0x1ac)+_0xa84f63+'\x22',this;}[_0x2b05dd(0x1db)](_0xf83fd4){const _0x4e9d9f=_0x2b05dd;return this[_0x4e9d9f(0x1cd)]+='\x20--validate-app\x20-f\x20'+_0xf83fd4,this;}[_0x2b05dd(0x1b9)](_0x375fc7){const _0x3e0a07=_0x2b05dd;return this[_0x3e0a07(0x1cd)]+='\x20--upload-app\x20-f\x20'+_0x375fc7,this;}[_0x2b05dd(0x1c4)](_0x3f04cc){const _0x476c83=_0x2b05dd;return this[_0x476c83(0x1cd)]+=_0x476c83(0x1cc)+_0x3f04cc,this;}[_0x2b05dd(0x199)](_0x553abf,_0x210483){const _0x148aa5=_0x2b05dd;return this[_0x148aa5(0x1cd)]+=_0x148aa5(0x1a6)+_0x553abf+'\x20-p\x20'+_0x210483,this;}[_0x2b05dd(0x1d3)](_0x1a57ec,_0x555adf){const _0x5866bd=_0x2b05dd;return this['line']+=_0x5866bd(0x1d2)+_0x1a57ec+_0x5866bd(0x1cb)+_0x555adf,this;}['appleId'](_0x24c405){const _0x108522=_0x2b05dd;return this[_0x108522(0x1cd)]+='\x20--apple-id\x20'+_0x24c405,this;}[_0x2b05dd(0x1a0)](_0x577601){const _0x43e6be=_0x2b05dd;return this[_0x43e6be(0x1cd)]+=_0x43e6be(0x1bf)+_0x577601,this;}[_0x2b05dd(0x19e)](_0x3d90bc){const _0x33a9e9=_0x2b05dd;return this['line']+=_0x33a9e9(0x1b4)+_0x3d90bc,this;}['verbose'](){const _0x57694e=_0x2b05dd;return this[_0x57694e(0x1cd)]+=_0x57694e(0x1bb),this;}[_0x2b05dd(0x1d7)](){const _0x261d18=_0x2b05dd;return this[_0x261d18(0x1cd)]+='\x20shutdown\x20booted',this;}[_0x2b05dd(0x1b1)](_0x176652){const _0x6ed9c0=_0x2b05dd;return this['line']+=_0x6ed9c0(0x1e1)+_0x176652+'\x22',this;}[_0x2b05dd(0x19f)](_0x319834,_0x52ff10){const _0x1e5eea=_0x2b05dd;return this['line']+=_0x1e5eea(0x1a1)+_0x319834+_0x1e5eea(0x1b7)+_0x52ff10+'\x22',this;}[_0x2b05dd(0x1c2)](_0xab34a2,_0x5992c1){const _0x2c2d28=_0x2b05dd;return this[_0x2c2d28(0x1cd)]+=_0x2c2d28(0x1a7)+_0xab34a2+_0x2c2d28(0x1b7)+_0x5992c1+'\x22',this;}}
|
|
1
|
+
'use strict';const _0xf1c517=_0x1511;(function(_0x119008,_0x1e3ec5){const _0x551256=_0x1511,_0x448a81=_0x119008();while(!![]){try{const _0x6ead40=-parseInt(_0x551256(0x1b4))/0x1+-parseInt(_0x551256(0x1c5))/0x2+parseInt(_0x551256(0x16e))/0x3*(-parseInt(_0x551256(0x198))/0x4)+parseInt(_0x551256(0x1bf))/0x5+parseInt(_0x551256(0x1bb))/0x6*(parseInt(_0x551256(0x171))/0x7)+parseInt(_0x551256(0x1c2))/0x8*(-parseInt(_0x551256(0x167))/0x9)+-parseInt(_0x551256(0x149))/0xa*(-parseInt(_0x551256(0x19e))/0xb);if(_0x6ead40===_0x1e3ec5)break;else _0x448a81['push'](_0x448a81['shift']());}catch(_0x576628){_0x448a81['push'](_0x448a81['shift']());}}}(_0x52e0,0xc37c1));function _0x52e0(){const _0x5c7ca1=['../utils/utils','listSimulator','no\x20visionOS\x20simulator\x20found','\x20--validate-app\x20-f\x20','launchWithSimulator','\x27\x20-derivedDataPath\x20','973350JKgMLD','shutdownSimulator','write','verbose','parseSupportRuntimes','\x20--apiKey\x20','listDeviceTypes','3030uLvTWV','listDevices','No\x20visionOS\x20rumtime\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','replace','7860585WNXOBh','project','create\x20visionOS\x20simulator:\x20','24MZDxVQ','\x20and\x20','No\x20Apple\x20Vision\x20Pro\x20simulator\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','1438258bljeDf','Shutdown','visionos','\x20&&\x20xcodebuild\x20-showdestinations\x20-scheme\x20web-spatial','\x20--verbose','state','terminate','listRuntimes','\x20--bundle-version\x20','\x20--apiIssuer\x20','validate','../utils/history','\x20simctl','buildTestApp','line','find\x20simulators:','\x20boot\x20\x22','shutdown','15009020aXqHTu','install','uploadApp','altool','no\x20simulator\x20available','execSync','../resource','mkdirSync','cd\x20','appleId',',\x20try\x20next\x20device','getSimulatorHistory','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','runWithSimulator','createSimulator','xcrun','--\x20','findSimulator','__esModule','parseDeviceInfo','com','version','installApp','PROJECT_DIRECTORY','authApi','log','\x22\x20\x22','create','info','simctl','1106514atgaHU','**\x20BUILD\x20FAILED\x20**','error','runWithHistory','uploadPackage','split','indexOf','23367oWvjHa','\x20launch\x20\x22','PROJECT_BUILD_DIRECTORY','4417iDizCk','try\x20create\x20a\x20visionOS\x20simulator','\x20to\x20create\x20visionOS\x20simulator','\x20list\x20runtimes','installing\x20app','platform','includes','PROJECT_TEST_DIRECTORY','test','platform:visionOS\x20Simulator','join','----\x20build\x20start\x20on\x20','existsSync','trim','Build/Products/Debug-xrsimulator/','--\x20visionOS','install\x20success',',\x20name','launchApp','authAccount','toString','length','deviceId','default','launch','push','parseDestinationDevices','-------------------\x20build\x20end\x20-------------------','\x20list','visionOS','launchSimulator','id:','warn','../resource/file','find\x20simulator:\x20','getAppInfoRecord','parseListDevices','open\x20-a\x20Simulator\x20--args\x20-CurrentDeviceUDID\x20','\x20--apple-id\x20','272lKcAOl','\x20-p\x20','/web-spatial.xcodeproj','sleep\x2010','Apple\x20Vision\x20Pro','XcodebuildCMD','11NOmpUD','use\x20','\x20--upload-app\x20-f\x20','list','parseSupportDevices','CliLog','recordSimulator','simulator\x20is\x20already\x20shutdown','find\x20destination\x20device:\x20','.app','slice','use\x20simulator:\x20','boot','\x20----','./xcodebuild','name'];_0x52e0=function(){return _0x5c7ca1;};return _0x52e0();}Object['defineProperty'](exports,_0xf1c517(0x15b),{'value':!![]});const child_process_1=require('child_process'),resource_1=require(_0xf1c517(0x14f)),path_1=require('path'),fs=require('fs'),xcodebuild_1=require(_0xf1c517(0x1ac)),file_1=require(_0xf1c517(0x192)),utils_1=require(_0xf1c517(0x1ae)),history_1=require(_0xf1c517(0x1d0));function _0x1511(_0x135d46,_0x1f8d86){const _0x52e075=_0x52e0();return _0x1511=function(_0x1511a6,_0x2760ca){_0x1511a6=_0x1511a6-0x144;let _0x70a3d5=_0x52e075[_0x1511a6];return _0x70a3d5;},_0x1511(_0x135d46,_0x1f8d86);}class Xcrun{static async['validate'](_0x22c531,_0x1c4fb3,_0x7f3d71,_0x28616f){const _0x1650d1=_0xf1c517,_0x1f2519=new XcrunCMD()[_0x1650d1(0x14c)]();_0x1f2519[_0x1650d1(0x1cf)](_0x22c531);_0x28616f?_0x1f2519[_0x1650d1(0x184)](_0x1c4fb3,_0x7f3d71):_0x1f2519[_0x1650d1(0x161)](_0x1c4fb3,_0x7f3d71);_0x1f2519[_0x1650d1(0x176)](_0x1650d1(0x1c7));const _0x3af795=(0x0,child_process_1[_0x1650d1(0x14e)])(_0x1f2519[_0x1650d1(0x145)]);return _0x3af795['toString']();}static async[_0xf1c517(0x16b)](_0x5bd2f1,_0x3cc021,_0x5eb053,_0x5b5684,_0x394e42){const _0x2e5391=_0xf1c517,_0x59fcb7=new XcrunCMD()[_0x2e5391(0x14c)]();_0x59fcb7['uploadPackage'](_0x5bd2f1);_0x394e42?_0x59fcb7['authAccount'](_0x3cc021,_0x5eb053):_0x59fcb7[_0x2e5391(0x161)](_0x3cc021,_0x5eb053);_0x59fcb7['platform'](_0x2e5391(0x1c7)),_0x59fcb7['appleId'](_0x5b5684);const _0x2390a4=(0x0,child_process_1[_0x2e5391(0x14e)])(_0x59fcb7['line']);return _0x2390a4[_0x2e5391(0x185)]();}static async[_0xf1c517(0x14b)](_0x3aa21c,_0x4030b0,_0x42a358,_0x22f0f4){const _0xa311c9=_0xf1c517,_0x52ad94=new XcrunCMD()[_0xa311c9(0x14c)]();_0x52ad94[_0xa311c9(0x14b)](_0x3aa21c);_0x22f0f4?_0x52ad94[_0xa311c9(0x184)](_0x4030b0,_0x42a358):_0x52ad94[_0xa311c9(0x161)](_0x4030b0,_0x42a358);_0x52ad94[_0xa311c9(0x176)](_0xa311c9(0x1c7));const _0x160758=(0x0,child_process_1['execSync'])(_0x52ad94[_0xa311c9(0x145)]);return _0x160758[_0xa311c9(0x185)]();}static async[_0xf1c517(0x156)](){const _0x13b494=_0xf1c517;let _0x1d52e7=this['findSimulator']();!_0x1d52e7[0x0]&&(_0x1d52e7=[this[_0x13b494(0x157)]()]);const _0x9d4d04=history_1[_0x13b494(0x188)][_0x13b494(0x194)]();for(var _0x51488d=0x0;_0x51488d<_0x1d52e7[_0x13b494(0x186)];_0x51488d++){if(this[_0x13b494(0x144)](_0x1d52e7[_0x51488d][_0x13b494(0x187)])){const _0x260f04=this[_0x13b494(0x1b2)](_0x9d4d04,_0x1d52e7[_0x51488d][_0x13b494(0x187)],!![],![]);history_1[_0x13b494(0x188)][_0x13b494(0x1a4)](_0x260f04),history_1[_0x13b494(0x188)][_0x13b494(0x1b6)]();return;}else utils_1[_0x13b494(0x1a3)][_0x13b494(0x169)]('build\x20failed\x20on\x20'+_0x1d52e7[_0x51488d][_0x13b494(0x187)]+_0x13b494(0x153));}utils_1[_0x13b494(0x1a3)][_0x13b494(0x169)](_0x13b494(0x14d));}static async[_0xf1c517(0x16a)](){const _0x2b5e0d=_0xf1c517,_0x299a4a=history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x154)](),_0x1b03a4=history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x194)](),_0x3456ec=this['launchWithSimulator'](_0x1b03a4,_0x299a4a);history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x1a4)](_0x3456ec),history_1['default'][_0x2b5e0d(0x1b6)]();}static[_0xf1c517(0x1b2)](_0xb67382,_0x3512b5='',_0x556fe2=![],_0x12224f=!![]){const _0x41b0d2=_0xf1c517;let _0x104607,_0x1a11c0=![];return _0x12224f?_0x104607=this[_0x41b0d2(0x15a)](_0x3512b5)[0x0]:_0x104607=this['searchSimulator'](_0x3512b5),(!_0x104607||_0x104607[_0x41b0d2(0x187)]==='')&&(_0x104607=this[_0x41b0d2(0x157)](),_0x1a11c0=!![]),console[_0x41b0d2(0x162)](_0x41b0d2(0x1a9)+_0x104607[_0x41b0d2(0x187)]),this[_0x41b0d2(0x18f)](_0x104607),(_0x556fe2||_0x1a11c0)&&(console[_0x41b0d2(0x162)](_0x41b0d2(0x175)),this[_0x41b0d2(0x15f)](resource_1[_0x41b0d2(0x178)],_0x104607[_0x41b0d2(0x187)],_0xb67382[_0x41b0d2(0x1ad)]),console['log'](_0x41b0d2(0x181))),console[_0x41b0d2(0x162)]('launch\x20app'),this[_0x41b0d2(0x183)](_0x104607[_0x41b0d2(0x187)],_0xb67382['id']),_0x104607['deviceId'];}static async[_0xf1c517(0x1b5)](){const _0x33401f=_0xf1c517;let _0x43ec5c=this[_0x33401f(0x15a)]()[0x0];console[_0x33401f(0x162)](_0x33401f(0x193)+_0x43ec5c[_0x33401f(0x187)]);if(_0x43ec5c[_0x33401f(0x1ca)]!==_0x33401f(0x1c6)){let _0x3aa323=new XcrunCMD()[_0x33401f(0x166)]();_0x3aa323[_0x33401f(0x148)](_0x43ec5c[_0x33401f(0x187)]),(0x0,child_process_1['execSync'])(_0x3aa323[_0x33401f(0x145)]);}else console[_0x33401f(0x162)](_0x33401f(0x1a5));}static[_0xf1c517(0x18f)](_0x32adfe){const _0x19210=_0xf1c517;if(_0x32adfe[_0x19210(0x1ca)]===_0x19210(0x1c6)){let _0x269bbc=new XcrunCMD()[_0x19210(0x166)]();_0x269bbc[_0x19210(0x1aa)](_0x32adfe[_0x19210(0x187)]),(0x0,child_process_1[_0x19210(0x14e)])(_0x269bbc[_0x19210(0x145)]),(0x0,child_process_1[_0x19210(0x14e)])(_0x19210(0x19b));}(0x0,child_process_1[_0x19210(0x14e)])(_0x19210(0x196)+_0x32adfe['deviceId']);}static['buildTestApp'](_0x9d1286){const _0x51f320=_0xf1c517,_0xe49ee4=resource_1[_0x51f320(0x160)]+_0x51f320(0x19a);!fs[_0x51f320(0x17d)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x51f320(0x150)](resource_1[_0x51f320(0x170)],{'recursive':!![]});!fs[_0x51f320(0x17d)](resource_1['PROJECT_TEST_DIRECTORY'])&&fs[_0x51f320(0x150)](resource_1[_0x51f320(0x178)],{'recursive':!![]});(0x0,file_1['clearDir'])(resource_1[_0x51f320(0x178)]);const _0x234c57=new xcodebuild_1[(_0x51f320(0x19d))]()[_0x51f320(0x1c0)](_0xe49ee4)[_0x51f320(0x145)]+(_0x51f320(0x155)+_0x9d1286+_0x51f320(0x1b3)+resource_1['PROJECT_TEST_DIRECTORY']);console[_0x51f320(0x162)](_0x51f320(0x17c)+_0x9d1286+_0x51f320(0x1ab));try{const _0x5ad480=(0x0,child_process_1[_0x51f320(0x14e)])(_0x234c57);if(_0x5ad480['toString']()['includes'](_0x51f320(0x168)))return![];}catch(_0x4fc10e){}return console[_0x51f320(0x162)](_0x51f320(0x18c)),!![];}static[_0xf1c517(0x15f)](_0xe8043c,_0x46614a,_0x42d219){const _0x33179a=_0xf1c517,_0x26783c=(0x0,path_1[_0x33179a(0x17b)])(_0xe8043c,_0x33179a(0x17f)+_0x42d219+_0x33179a(0x1a7));let _0x1b644a=new XcrunCMD()[_0x33179a(0x166)]();_0x1b644a[_0x33179a(0x14a)](_0x46614a,_0x26783c),(0x0,child_process_1[_0x33179a(0x14e)])(_0x1b644a[_0x33179a(0x145)]);}static['launchApp'](_0x19c0af,_0x3ec0be){const _0x4774d4=_0xf1c517;try{(0x0,child_process_1[_0x4774d4(0x14e)])(new XcrunCMD()[_0x4774d4(0x166)]()[_0x4774d4(0x1cb)](_0x19c0af,_0x3ec0be)[_0x4774d4(0x145)]);}catch(_0x55d8b9){}(0x0,child_process_1[_0x4774d4(0x14e)])(new XcrunCMD()[_0x4774d4(0x166)]()[_0x4774d4(0x189)](_0x19c0af,_0x3ec0be)[_0x4774d4(0x145)]);}static[_0xf1c517(0x18b)](_0x172394){const _0x11be7b=_0xf1c517;let _0x2982f8=_0x172394['split']('\x0a');const _0x77cef=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/;let _0x433108=[];for(let _0x426ae4=0x0;_0x426ae4<_0x2982f8[_0x11be7b(0x186)];_0x426ae4++){if(_0x2982f8[_0x426ae4][_0x11be7b(0x177)](_0x11be7b(0x17a))){const _0x489d68=_0x2982f8[_0x426ae4][_0x11be7b(0x1a8)](_0x2982f8[_0x426ae4][_0x11be7b(0x16d)](_0x11be7b(0x190))+0x3,_0x2982f8[_0x426ae4][_0x11be7b(0x16d)](_0x11be7b(0x182)));_0x77cef[_0x11be7b(0x179)](_0x489d68)&&(_0x433108['push'](_0x489d68),console[_0x11be7b(0x162)](_0x11be7b(0x1a6)+_0x2982f8[_0x426ae4]+')'));}}return _0x433108;}static[_0xf1c517(0x1a2)](_0x3104ca){const _0x31a8d0=_0xf1c517;let _0xb1d50e=_0x3104ca[_0x31a8d0(0x16c)]('\x0a');for(let _0x4b06a6=0x0;_0x4b06a6<_0xb1d50e[_0x31a8d0(0x186)];_0x4b06a6++){if(_0xb1d50e[_0x4b06a6][_0x31a8d0(0x177)](_0x31a8d0(0x19c)))return _0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)](_0x31a8d0(0x19c),'')['trim'](),_0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)]('(',''),_0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)](')',''),_0xb1d50e[_0x4b06a6];}throw new Error(_0x31a8d0(0x1c4));}static['parseSupportRuntimes'](_0x5bb450){const _0x34b5d0=_0xf1c517;let _0x119094=_0x5bb450[_0x34b5d0(0x16c)]('\x0a');for(let _0x4e79d2=0x0;_0x4e79d2<_0x119094[_0x34b5d0(0x186)];_0x4e79d2++){if(_0x119094[_0x4e79d2][_0x34b5d0(0x177)](_0x34b5d0(0x18e)))return _0x119094[_0x4e79d2][_0x34b5d0(0x1a8)](_0x119094[_0x4e79d2]['indexOf'](_0x34b5d0(0x15d)))[_0x34b5d0(0x17e)]();}throw new Error(_0x34b5d0(0x1bd));}static[_0xf1c517(0x195)](_0x487406){const _0x3d4022=_0xf1c517;let _0x18cda3=_0x487406[_0x3d4022(0x16c)]('\x0a'),_0x44a587=[],_0x1c6eae=-0x1;for(let _0x10417b=0x0;_0x10417b<_0x18cda3[_0x3d4022(0x186)];_0x10417b++){if(_0x18cda3[_0x10417b][_0x3d4022(0x177)](_0x3d4022(0x180)))_0x1c6eae=_0x10417b;else{if(_0x1c6eae>0x0){if(_0x18cda3[_0x10417b][_0x3d4022(0x177)](_0x3d4022(0x159)))break;_0x18cda3[_0x10417b]['length']>0x0&&_0x44a587[_0x3d4022(0x18a)](this[_0x3d4022(0x15c)](_0x18cda3[_0x10417b]));}}}return _0x44a587;}static['parseDeviceInfo'](_0x2f1d78){const _0x5c23b7=_0xf1c517,_0x40ff26=_0x2f1d78[_0x5c23b7(0x16c)]('('),_0x2da8aa={'name':_0x40ff26[0x0]['trim'](),'deviceId':_0x40ff26[0x1]['split'](')')[0x0]['trim'](),'state':_0x40ff26[0x2][_0x5c23b7(0x16c)](')')[0x0]['trim']()};return _0x2da8aa;}static[_0xf1c517(0x15a)](_0x23cd3c){const _0x2fb24f=_0xf1c517;let _0x5c17fd=[_0x23cd3c!==null&&_0x23cd3c!==void 0x0?_0x23cd3c:''];const _0x56bb91=(0x0,child_process_1[_0x2fb24f(0x14e)])(_0x2fb24f(0x151)+resource_1[_0x2fb24f(0x160)]+_0x2fb24f(0x1c8)),_0x54cb70=this['parseDestinationDevices'](_0x56bb91[_0x2fb24f(0x185)]());_0x5c17fd=[..._0x5c17fd,..._0x54cb70];let _0x24dbba=this['listSimulator']();return _0x24dbba['sort']((_0x9c0a45,_0x54d16c)=>{const _0xfcf420=_0x2fb24f,_0x1a3432=_0x5c17fd['indexOf'](_0x9c0a45[_0xfcf420(0x187)]),_0x4f6829=_0x5c17fd[_0xfcf420(0x16d)](_0x54d16c[_0xfcf420(0x187)]);if(_0x1a3432!==-0x1&&_0x4f6829!==-0x1)return _0x1a3432-_0x4f6829;else{if(_0x1a3432!==-0x1)return-0x1;else{if(_0x4f6829!==-0x1)return 0x1;}}return 0x0;}),console[_0x2fb24f(0x162)](_0x2fb24f(0x146)),console[_0x2fb24f(0x162)](_0x24dbba),_0x24dbba;}static['searchSimulator'](_0x1eed75){const _0x3f78e2=_0xf1c517,_0x4d917a=new XcrunCMD()[_0x3f78e2(0x166)]()[_0x3f78e2(0x1bc)]('Apple\x20Vision\x20Pro')['line']+('\x20|\x20grep\x20'+_0x1eed75);console['log'](_0x4d917a);let _0x579921=(0x0,child_process_1['execSync'])(_0x4d917a);return console[_0x3f78e2(0x162)](_0x579921['toString']()),this[_0x3f78e2(0x15c)](_0x579921[_0x3f78e2(0x185)]());}static['createSimulator'](){const _0x340206=_0xf1c517;utils_1[_0x340206(0x1a3)][_0x340206(0x191)](_0x340206(0x1b0)),utils_1[_0x340206(0x1a3)]['warn'](_0x340206(0x172));let _0x444bb8=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x340206(0x166)]()['listDeviceTypes']()[_0x340206(0x145)]);const _0x3a599b=this[_0x340206(0x1a2)](_0x444bb8['toString']());_0x444bb8=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x340206(0x166)]()[_0x340206(0x1cc)]()[_0x340206(0x145)]);const _0x351dec=this[_0x340206(0x1b8)](_0x444bb8[_0x340206(0x185)]());utils_1[_0x340206(0x1a3)][_0x340206(0x165)](_0x340206(0x19f)+_0x3a599b+_0x340206(0x1c3)+_0x351dec+_0x340206(0x173)),_0x444bb8=(0x0,child_process_1[_0x340206(0x14e)])(new XcrunCMD()[_0x340206(0x166)]()[_0x340206(0x164)](_0x3a599b,_0x351dec)[_0x340206(0x145)]);const _0x221837=_0x444bb8[_0x340206(0x185)]()[_0x340206(0x17e)]();return console['log'](_0x340206(0x1c1)+_0x221837),{'name':'WebSpatial\x20Simulator','deviceId':_0x221837,'state':'Shutdown'};}static[_0xf1c517(0x1af)](){const _0x3f38ff=_0xf1c517;let _0x3540bb=(0x0,child_process_1[_0x3f38ff(0x14e)])(new XcrunCMD()[_0x3f38ff(0x166)]()[_0x3f38ff(0x1bc)](_0x3f38ff(0x19c))['line']);return this[_0x3f38ff(0x195)](_0x3540bb[_0x3f38ff(0x185)]());}}exports['default']=Xcrun;class XcrunCMD{constructor(){const _0x169df3=_0xf1c517;this[_0x169df3(0x145)]=_0x169df3(0x158);}[_0xf1c517(0x14c)](){const _0x29ebcb=_0xf1c517;return this[_0x29ebcb(0x145)]+='\x20altool',this;}[_0xf1c517(0x166)](){const _0x3be64a=_0xf1c517;return this[_0x3be64a(0x145)]+=_0x3be64a(0x1d1),this;}[_0xf1c517(0x1a1)](){const _0x3dd623=_0xf1c517;return this[_0x3dd623(0x145)]+=_0x3dd623(0x18d),this;}[_0xf1c517(0x1bc)](_0x10eef8){const _0x1eb56c=_0xf1c517;return this[_0x1eb56c(0x145)]+='\x20list\x20devices\x20\x22'+_0x10eef8+'\x22',this;}[_0xf1c517(0x1ba)](){return this['line']+='\x20list\x20devicetypes',this;}[_0xf1c517(0x1cc)](){const _0x15f3e3=_0xf1c517;return this[_0x15f3e3(0x145)]+=_0x15f3e3(0x174),this;}[_0xf1c517(0x1cf)](_0x519a56){const _0x186071=_0xf1c517;return this['line']+=_0x186071(0x1b1)+_0x519a56,this;}['uploadApp'](_0x4f7451){const _0x3c7512=_0xf1c517;return this[_0x3c7512(0x145)]+=_0x3c7512(0x1a0)+_0x4f7451,this;}['uploadPackage'](_0x2a9cb){const _0x128198=_0xf1c517;return this[_0x128198(0x145)]+='\x20--upload-package\x20'+_0x2a9cb,this;}[_0xf1c517(0x184)](_0x214381,_0x83a9f8){const _0x82c84a=_0xf1c517;return this[_0x82c84a(0x145)]+='\x20-u\x20'+_0x214381+_0x82c84a(0x199)+_0x83a9f8,this;}[_0xf1c517(0x161)](_0x1d5243,_0x457f73){const _0x4e6a2b=_0xf1c517;return this[_0x4e6a2b(0x145)]+=_0x4e6a2b(0x1b9)+_0x1d5243+_0x4e6a2b(0x1ce)+_0x457f73,this;}[_0xf1c517(0x152)](_0x420d1e){const _0x1dda06=_0xf1c517;return this[_0x1dda06(0x145)]+=_0x1dda06(0x197)+_0x420d1e,this;}[_0xf1c517(0x176)](_0x88dfc2){const _0x1a9dc7=_0xf1c517;return this[_0x1a9dc7(0x145)]+='\x20-t\x20'+_0x88dfc2,this;}[_0xf1c517(0x15e)](_0x35b3e7){const _0x1dc932=_0xf1c517;return this['line']+=_0x1dc932(0x1cd)+_0x35b3e7,this;}[_0xf1c517(0x1b7)](){const _0x4fcd47=_0xf1c517;return this['line']+=_0x4fcd47(0x1c9),this;}['create'](_0x2453b6,_0x155f69){const _0x1b5d5a=_0xf1c517;return this['line']+='\x20create\x20\x22WebSpatialSimulator\x22\x20\x22'+_0x2453b6+_0x1b5d5a(0x163)+_0x155f69+'\x22',this;}[_0xf1c517(0x148)](_0x5329e7){const _0xaa1361=_0xf1c517;return this[_0xaa1361(0x145)]+='\x20shutdown\x20\x22'+_0x5329e7+'\x22',this;}['boot'](_0x33e5ba){const _0x1aea0c=_0xf1c517;return this[_0x1aea0c(0x145)]+=_0x1aea0c(0x147)+_0x33e5ba+'\x22',this;}[_0xf1c517(0x14a)](_0xe30f1e,_0x5b91ca){const _0x5d2fb5=_0xf1c517;return this[_0x5d2fb5(0x145)]+='\x20install\x20\x22'+_0xe30f1e+_0x5d2fb5(0x163)+_0x5b91ca+'\x22',this;}['launch'](_0x595049,_0x51ed4b){const _0x4b9a1e=_0xf1c517;return this['line']+=_0x4b9a1e(0x16f)+_0x595049+_0x4b9a1e(0x163)+_0x51ed4b+'\x22',this;}[_0xf1c517(0x1cb)](_0x100995,_0x437d0a){const _0x1c23d7=_0xf1c517;return this[_0x1c23d7(0x145)]+='\x20terminate\x20\x22'+_0x100995+_0x1c23d7(0x163)+_0x437d0a+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@resvg/resvg-js": "^2.6.2",
|
|
29
29
|
"cli-progress": "^3.8.2",
|
|
30
30
|
"colors": "^1.4.0",
|
|
31
|
+
"commander": "^13.1.0",
|
|
31
32
|
"fetch-h2": "^2.5.1",
|
|
32
33
|
"inquirer": "^8.2.4",
|
|
33
34
|
"jimp": "^0.22.7",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"sharp": "^0.33.5",
|
|
39
40
|
"valid-url": "^1.0.9",
|
|
40
41
|
"xcode": "^3.0.1",
|
|
41
|
-
"@webspatial/platform-visionos": "^0.1.
|
|
42
|
+
"@webspatial/platform-visionos": "^0.1.14"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@rollup/plugin-terser": "^0.4.3",
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"test1": "npm run build && bin/bundlepwa.js build --manifest=../testLocal/manifest.json --project=../testLocal --export=./export --version=1.0 --teamId=teamId",
|
|
67
68
|
"test2": "npm run build && bin/bundlepwa.js publish --manifest=../pack-test/pwa_test.json --project=../pack-test --version=1.0 --teamId=teamId --u=username --p=password",
|
|
68
69
|
"test3": "npm run build && bin/bundlepwa.js publish --name=webspatial --version=1.0 --u=username --p=password",
|
|
69
|
-
"test4": "npm run build && bin/bundlepwa.js run",
|
|
70
|
+
"test4": "npm run build && bin/bundlepwa.js run --tryWithoutBuild=true",
|
|
70
71
|
"obfuscate": "node obfuscate.js",
|
|
71
72
|
"build": "tsc && npm run obfuscate && npm run copy-assets",
|
|
72
73
|
"build1": "rollup -c ./rollup.config.js",
|
package/dist/lib/Cli.d.ts
DELETED
package/dist/lib/Cli.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';function _0x4ab2(){const _0x133218=['ConsoleLog','build','./utils/FetchUtils-1','67880DxnGlt','1381880YDIVKx','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','1683154WYQZRT','479952JrrvTx','__esModule','decompressResponseBuffer','setDecompressResponseBuffer','fetch','320373qngtkK','length','versions','Current\x20Node.js\x20version\x20is\x20','629870DSBXeb','log','../lib/utils/Log','Cli','216AnUxzp','downloadFile','semver','7364BYbSqV','start','minimist','version','run','help','webspatial-builder','node','setDownloadFile','setFetch','2VeLOFD','18eoSjzE','defineProperty','./utils/fetch','./cmds/build','5000foKUJF','./cmds/help','fetchUtils'];_0x4ab2=function(){return _0x133218;};return _0x4ab2();}function _0x4671(_0x142623,_0x13d982){const _0x4ab252=_0x4ab2();return _0x4671=function(_0x4671d0,_0x1fd9a6){_0x4671d0=_0x4671d0-0x12e;let _0x1b44fc=_0x4ab252[_0x4671d0];return _0x1b44fc;},_0x4671(_0x142623,_0x13d982);}const _0x5c0cfa=_0x4671;(function(_0x1e7f71,_0x46ce25){const _0x1bb12c=_0x4671,_0x5e9779=_0x1e7f71();while(!![]){try{const _0x27a4f0=-parseInt(_0x1bb12c(0x14b))/0x1+-parseInt(_0x1bb12c(0x133))/0x2*(parseInt(_0x1bb12c(0x147))/0x3)+-parseInt(_0x1bb12c(0x142))/0x4+-parseInt(_0x1bb12c(0x13e))/0x5*(-parseInt(_0x1bb12c(0x14f))/0x6)+parseInt(_0x1bb12c(0x152))/0x7*(parseInt(_0x1bb12c(0x138))/0x8)+-parseInt(_0x1bb12c(0x134))/0x9*(-parseInt(_0x1bb12c(0x13f))/0xa)+-parseInt(_0x1bb12c(0x141))/0xb;if(_0x27a4f0===_0x46ce25)break;else _0x5e9779['push'](_0x5e9779['shift']());}catch(_0x4b8766){_0x5e9779['push'](_0x5e9779['shift']());}}}(_0x4ab2,0x64d15));Object[_0x5c0cfa(0x135)](exports,_0x5c0cfa(0x143),{'value':!![]}),exports[_0x5c0cfa(0x14e)]=void 0x0;const minimist=require(_0x5c0cfa(0x154)),semver_1=require(_0x5c0cfa(0x151)),Log_1=require(_0x5c0cfa(0x14d)),FetchUtils_1_1=require(_0x5c0cfa(0x13d)),help_1=require(_0x5c0cfa(0x139)),build_1=require(_0x5c0cfa(0x137)),version_1=require('./cmds/version'),fetch_1=require(_0x5c0cfa(0x136));class Cli{async[_0x5c0cfa(0x156)](_0x4fae4a){const _0x25db67=_0x5c0cfa;if((0x0,semver_1['major'])(process[_0x25db67(0x149)][_0x25db67(0x130)])<0xe)throw new Error(_0x25db67(0x14a)+process[_0x25db67(0x149)][_0x25db67(0x130)]+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');FetchUtils_1_1['fetchUtils'][_0x25db67(0x132)](fetch_1[_0x25db67(0x146)]),FetchUtils_1_1[_0x25db67(0x13a)][_0x25db67(0x131)](fetch_1[_0x25db67(0x150)]),FetchUtils_1_1[_0x25db67(0x13a)][_0x25db67(0x145)](fetch_1[_0x25db67(0x144)]);const _0x3273d4=minimist(_0x4fae4a);let _0x3409a1=undefined;if(_0x3273d4['_'][_0x25db67(0x148)]===0x0){if(_0x3273d4[_0x25db67(0x155)])_0x3409a1=_0x25db67(0x155);else _0x3273d4['help']&&(_0x3409a1=_0x25db67(0x12e));}else _0x3409a1=_0x3273d4['_'][0x0];!_0x3409a1&&(_0x3409a1=_0x25db67(0x12e));switch(_0x3409a1){case _0x25db67(0x12e):case'h':return await(0x0,help_1[_0x25db67(0x12e)])(_0x3273d4);case _0x25db67(0x13c):return await(0x0,build_1[_0x25db67(0x153)])(_0x3273d4);case'publish':return await(0x0,build_1['store'])(_0x3273d4);case _0x25db67(0x156):return await(0x0,build_1[_0x25db67(0x156)])(_0x3273d4);case _0x25db67(0x155):{return await(0x0,version_1[_0x25db67(0x155)])();}default:throw new Error('\x22'+_0x3409a1+_0x25db67(0x140));}}}exports[_0x5c0cfa(0x14e)]=Cli,Cli[_0x5c0cfa(0x14c)]=new Log_1[(_0x5c0cfa(0x13b))](_0x5c0cfa(0x12f));
|