@dcl/sdk-commands 7.8.6-14664638926.commit-7bb4ee2 → 7.8.6-14838162030.commit-80768eb
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/commands/start/explorer-alpha.js +14 -3
- package/dist/commands/start/explorer-alpha.js.map +1 -1
- package/dist/commands/start/index.d.ts +2 -3
- package/dist/commands/start/index.js +28 -48
- package/dist/commands/start/index.js.map +1 -1
- package/package.json +5 -6
- package/dist/logic/dao-explorer.d.ts +0 -3
- package/dist/logic/dao-explorer.js +0 -156
- package/dist/logic/dao-explorer.js.map +0 -1
@@ -17,11 +17,22 @@ async function runApp(components, { cwd, realm: realmValue, baseCoords, isHub, a
|
|
17
17
|
const localScene = args['--local-scene'] ?? true;
|
18
18
|
const debug = args['--debug'] ?? true;
|
19
19
|
const dclenv = args['--dclenv'] ?? 'org';
|
20
|
+
const skipAuthScreen = args['--skip-auth-screen'] ?? true;
|
21
|
+
const landscapeTerrainEnabled = args['--landscape-terrain-enabled'] ?? true;
|
20
22
|
try {
|
21
|
-
const
|
22
|
-
|
23
|
+
const queryParams = [
|
24
|
+
`realm=${realm}`,
|
25
|
+
`position=${position}`,
|
26
|
+
`local-scene=${localScene}`,
|
27
|
+
`debug=${debug}`,
|
28
|
+
`hub=${isHub}`,
|
29
|
+
`dclenv=${dclenv}`,
|
30
|
+
`skip-auth-screen=${skipAuthScreen}`,
|
31
|
+
`landscape-terrain-enabled=${landscapeTerrainEnabled}`
|
32
|
+
].join('&');
|
33
|
+
const app = `decentraland://"${queryParams}"`;
|
23
34
|
await components.spawner.exec(cwd, cmd, [app], { silent: true });
|
24
|
-
components.logger.info(`Desktop client: decentraland://${
|
35
|
+
components.logger.info(`Desktop client: decentraland://${queryParams}\n`);
|
25
36
|
return true;
|
26
37
|
}
|
27
38
|
catch (e) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"explorer-alpha.js","sourceRoot":"","sources":["../../../src/commands/start/explorer-alpha.ts"],"names":[],"mappings":";;;AAIA,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;AAExC,KAAK,UAAU,gBAAgB,CACpC,UAAyB,EACzB,IAMC;IAED,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IAE9C,IAAI,MAAM,MAAM,CAAC,UAAU,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE;QAChF,OAAM;KACP;IAED,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,wFAAwF,CAAC,CAAA;AACjH,CAAC;AAjBD,4CAiBC;AAED,KAAK,UAAU,MAAM,CACnB,UAAyB,EACzB,EACE,GAAG,EACH,KAAK,EAAE,UAAU,EACjB,UAAU,EACV,KAAK,EACL,IAAI,EAOL;IAED,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAA;IACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,GAAG,UAAU,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,EAAE,CAAA;IACxE,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,UAAU,CAAA;IAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAA;IAChD,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAA;IACrC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,CAAA;
|
1
|
+
{"version":3,"file":"explorer-alpha.js","sourceRoot":"","sources":["../../../src/commands/start/explorer-alpha.ts"],"names":[],"mappings":";;;AAIA,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,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E;YAC3B,SAAS,KAAK,EAAE;YAChB,OAAO,KAAK,EAAE;YACd,UAAU,MAAM,EAAE;YAClB,oBAAoB,cAAc,EAAE;YACpC,6BAA6B,uBAAuB,EAAE;SACvD,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAEX,MAAM,GAAG,GAAG,mBAAmB,WAAW,GAAG,CAAA;QAC7C,MAAM,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;QAChE,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,WAAW,IAAI,CAAC,CAAA;QACzE,OAAO,IAAI,CAAA;KACZ;IAAC,OAAO,CAAM,EAAE;QACf,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,2CAA2C,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;QAC/E,OAAO,KAAK,CAAA;KACb;AACH,CAAC"}
|
@@ -20,10 +20,7 @@ export declare const args: {
|
|
20
20
|
'-b': string;
|
21
21
|
'-w': string;
|
22
22
|
'--skip-build': BooleanConstructor;
|
23
|
-
'--no-dao-explorer': BooleanConstructor;
|
24
23
|
'--data-layer': BooleanConstructor;
|
25
|
-
'-e': string;
|
26
|
-
'--customEntryPoint': BooleanConstructor;
|
27
24
|
'--explorer-alpha': BooleanConstructor;
|
28
25
|
'--hub': BooleanConstructor;
|
29
26
|
'--debug': BooleanConstructor;
|
@@ -31,6 +28,8 @@ export declare const args: {
|
|
31
28
|
'--realm': StringConstructor;
|
32
29
|
'--local-scene': StringConstructor;
|
33
30
|
'--position': StringConstructor;
|
31
|
+
'--skip-auth-screen': BooleanConstructor;
|
32
|
+
'--landscape-terrain-enabled': BooleanConstructor;
|
34
33
|
};
|
35
34
|
export declare function help(options: Options): Promise<void>;
|
36
35
|
export declare function main(options: Options): Promise<void>;
|
@@ -51,7 +51,6 @@ const exit_signal_1 = require("../../components/exit-signal");
|
|
51
51
|
const workspace_validations_1 = require("../../logic/workspace-validations");
|
52
52
|
const beautiful_logs_1 = require("../../logic/beautiful-logs");
|
53
53
|
const project_validations_1 = require("../../logic/project-validations");
|
54
|
-
const dao_explorer_1 = require("../../logic/dao-explorer");
|
55
54
|
const explorer_alpha_1 = require("./explorer-alpha");
|
56
55
|
exports.args = (0, args_1.declareArgs)({
|
57
56
|
'--dir': String,
|
@@ -69,10 +68,7 @@ exports.args = (0, args_1.declareArgs)({
|
|
69
68
|
'-b': '--no-browser',
|
70
69
|
'-w': '--no-watch',
|
71
70
|
'--skip-build': Boolean,
|
72
|
-
'--no-dao-explorer': Boolean,
|
73
71
|
'--data-layer': Boolean,
|
74
|
-
'-e': '--no-dao-explorer',
|
75
|
-
'--customEntryPoint': Boolean,
|
76
72
|
'--explorer-alpha': Boolean,
|
77
73
|
'--hub': Boolean,
|
78
74
|
// Params related to the explorer-alpha
|
@@ -80,7 +76,9 @@ exports.args = (0, args_1.declareArgs)({
|
|
80
76
|
'--dclenv': String,
|
81
77
|
'--realm': String,
|
82
78
|
'--local-scene': String,
|
83
|
-
'--position': String
|
79
|
+
'--position': String,
|
80
|
+
'--skip-auth-screen': Boolean,
|
81
|
+
'--landscape-terrain-enabled': Boolean
|
84
82
|
});
|
85
83
|
async function help(options) {
|
86
84
|
options.components.logger.log(`
|
@@ -88,20 +86,21 @@ async function help(options) {
|
|
88
86
|
|
89
87
|
Options:
|
90
88
|
|
91
|
-
-h, --help
|
92
|
-
-p, --port [port]
|
93
|
-
-d, --no-debug
|
94
|
-
-b, --no-browser
|
95
|
-
-w, --no-watch
|
96
|
-
-c, --ci
|
97
|
-
--web3
|
98
|
-
--skip-build
|
99
|
-
--
|
100
|
-
--
|
101
|
-
--
|
102
|
-
--
|
103
|
-
--
|
104
|
-
--
|
89
|
+
-h, --help Displays complete help
|
90
|
+
-p, --port [port] Select a custom port for the development server
|
91
|
+
-d, --no-debug Disable debugging panel
|
92
|
+
-b, --no-browser Do not open a new browser window
|
93
|
+
-w, --no-watch Do not open watch for filesystem changes
|
94
|
+
-c, --ci Run the parcel previewer on a remote unix server
|
95
|
+
--web3 Connects preview to browser wallet to use the associated avatar and account
|
96
|
+
--skip-build Skip build and only serve the files in preview mode
|
97
|
+
--debug Enables Debug panel mode inside DCL Explorer (default=true)
|
98
|
+
--dclenv Decentraland Environment. Which environment to use for the content. This determines the catalyst server used, asset-bundles, etc. Possible values: org, zone, today. (default=org)
|
99
|
+
--realm Realm used to serve the content. (default=Localhost)
|
100
|
+
--local-scene Enable local scene development.
|
101
|
+
--position Initial Position to start the explorer. (default=position defined at scene.json)
|
102
|
+
--skip-auth-screen Skip the auth screen.
|
103
|
+
--landscape-terrain-enabled Enable landscape terrain.
|
105
104
|
|
106
105
|
|
107
106
|
Examples:
|
@@ -121,8 +120,7 @@ async function main(options) {
|
|
121
120
|
const workingDirectory = path.resolve(process.cwd(), options.args['--dir'] || '.');
|
122
121
|
const isCi = options.args['--ci'] || process.env.CI || false;
|
123
122
|
const debug = !options.args['--no-debug'] && !isCi;
|
124
|
-
const
|
125
|
-
const openBrowser = (!experimentalDaoExplorer || !options.args['--no-browser']) && !isCi && !experimentalDaoExplorer;
|
123
|
+
const openBrowser = !options.args['--no-browser'] && !isCi;
|
126
124
|
const build = !options.args['--skip-build'];
|
127
125
|
const watch = !options.args['--no-watch'];
|
128
126
|
const withDataLayer = options.args['--data-layer'];
|
@@ -131,9 +129,6 @@ async function main(options) {
|
|
131
129
|
const isHub = !!options.args['--hub'];
|
132
130
|
let hasSmartWearable = false;
|
133
131
|
const workspace = await (0, workspace_validations_1.getValidWorkspace)(options.components, workingDirectory);
|
134
|
-
if (experimentalDaoExplorer) {
|
135
|
-
await (0, dao_explorer_1.ensureDaoExplorer)(options.components, workspace.rootWorkingDirectory);
|
136
|
-
}
|
137
132
|
/* istanbul ignore if */
|
138
133
|
if (workspace.projects.length > 1)
|
139
134
|
(0, beautiful_logs_1.printWarning)(options.components.logger, 'Support for multiple projects is still experimental.');
|
@@ -145,15 +140,7 @@ async function main(options) {
|
|
145
140
|
// first run `npm run build`, this can be disabled with --skip-build
|
146
141
|
// then start the embedded compiler, this can be disabled with --no-watch
|
147
142
|
if (watch || build) {
|
148
|
-
await (0, build_1.buildScene)({
|
149
|
-
...options,
|
150
|
-
args: {
|
151
|
-
'--dir': project.workingDirectory,
|
152
|
-
'--watch': watch,
|
153
|
-
_: [],
|
154
|
-
'--customEntryPoint': !!options.args['--customEntryPoint']
|
155
|
-
}
|
156
|
-
}, project);
|
143
|
+
await (0, build_1.buildScene)({ ...options, args: { '--dir': project.workingDirectory, '--watch': watch, _: [] } }, project);
|
157
144
|
await (0, project_validations_1.startValidations)(options.components, project.workingDirectory);
|
158
145
|
}
|
159
146
|
// track the event
|
@@ -226,45 +213,38 @@ async function main(options) {
|
|
226
213
|
(networkInterfaces[dev] || []).forEach((details) => {
|
227
214
|
if (details.family === 'IPv4') {
|
228
215
|
const oldBackpack = 'DISABLE_backpack_editor_v2=&ENABLE_backpack_editor_v1';
|
229
|
-
|
230
|
-
let url = `${baseUrl}?position=${baseCoords.x}%2C${baseCoords.y}&${oldBackpack}`;
|
216
|
+
let addr = `http://${details.address}:${port}?position=${baseCoords.x}%2C${baseCoords.y}&${oldBackpack}`;
|
231
217
|
if (debug) {
|
232
|
-
|
218
|
+
addr = `${addr}&SCENE_DEBUG_PANEL`;
|
233
219
|
}
|
234
220
|
if (enableWeb3 || hasSmartWearable) {
|
235
|
-
|
221
|
+
addr = `${addr}&ENABLE_WEB3`;
|
236
222
|
}
|
237
|
-
availableURLs.push(
|
223
|
+
availableURLs.push(addr);
|
238
224
|
}
|
239
225
|
});
|
240
226
|
});
|
241
227
|
// Push localhost and 127.0.0.1 at top
|
242
228
|
const sortedURLs = availableURLs.sort((a, _b) => {
|
243
|
-
return a.
|
244
|
-
? -1
|
245
|
-
: 1;
|
229
|
+
return a.toLowerCase().includes('localhost') || a.includes('127.0.0.1') || a.includes('0.0.0.0') ? -1 : 1;
|
246
230
|
});
|
247
231
|
if (!explorerAlpha) {
|
248
232
|
for (const addr of sortedURLs) {
|
249
|
-
components.logger.log(` ${addr
|
233
|
+
components.logger.log(` ${addr}`);
|
250
234
|
}
|
251
235
|
}
|
252
236
|
if (!explorerAlpha) {
|
253
237
|
components.logger.log('\n Details:\n');
|
254
238
|
}
|
255
239
|
components.logger.log('\nPress CTRL+C to exit\n');
|
256
|
-
if (experimentalDaoExplorer && sortedURLs.length) {
|
257
|
-
(0, dao_explorer_1.runDaoExplorer)(components, sortedURLs[0].base, `${baseCoords.x},${baseCoords.y}`, workingDirectory);
|
258
|
-
}
|
259
|
-
// Open preferably localhost/127.0.0.1
|
260
240
|
if (explorerAlpha) {
|
261
|
-
const realm = new URL(sortedURLs[0]
|
241
|
+
const realm = new URL(sortedURLs[0]).origin;
|
262
242
|
await (0, explorer_alpha_1.runExplorerAlpha)(components, { cwd: workingDirectory, realm, baseCoords, isHub, args: options.args });
|
263
243
|
}
|
264
244
|
// Open preferably localhost/127.0.0.1
|
265
245
|
if (!explorerAlpha && openBrowser && sortedURLs.length) {
|
266
246
|
try {
|
267
|
-
await (0, open_1.default)(sortedURLs[0]
|
247
|
+
await (0, open_1.default)(sortedURLs[0]);
|
268
248
|
}
|
269
249
|
catch (_) {
|
270
250
|
components.logger.warn('Unable to open browser automatically.');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/start/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,2CAA4B;AAC5B,gDAAuB;AAGvB,oCAAqC;AACrC,2CAA8C;AAC9C,qEAA6D;AAC7D,6DAAmD;AAEnD,4DAA2E;AAC3E,kEAA6D;AAC7D,oFAAwF;AACxF,+DAAwF;AACxF,oEAA0E;AAC1E,0DAAyE;AACzE,8CAAuD;AACvD,8CAA4D;AAC5D,sEAA0E;AAC1E,4CAA4C;AAC5C,oCAA+C;AA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,gBAAgB,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;aAC5G;YAED,sCAAsC;YACtC,IAAI,CAAC,aAAa,IAAI,WAAW,IAAI,UAAU,CAAC,MAAM,EAAE;gBACtD,IAAI;oBACF,MAAM,IAAA,cAAI,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;iBAC1B;gBAAC,OAAO,CAAC,EAAE;oBACV,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAA;iBAChE;aACF;QACH,CAAC;KACF,CAAC,CAAA;IAEF,mEAAmE;IACnE,8EAA8E;IAC9E,UAAU;IACV,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAA;AACjD,CAAC;AA7JD,oBA6JC"}
|
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk-commands",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.8.6-
|
4
|
+
"version": "7.8.6-14838162030.commit-80768eb",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"bin": {
|
7
7
|
"sdk-commands": "./dist/index.js"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
10
|
"@dcl/crypto": "^3.4.4",
|
11
|
-
"@dcl/ecs": "7.8.6-
|
11
|
+
"@dcl/ecs": "7.8.6-14838162030.commit-80768eb",
|
12
12
|
"@dcl/hashing": "1.1.3",
|
13
|
-
"@dcl/inspector": "7.8.6-
|
13
|
+
"@dcl/inspector": "7.8.6-14838162030.commit-80768eb",
|
14
14
|
"@dcl/linker-dapp": "^0.14.2",
|
15
15
|
"@dcl/mini-comms": "1.0.1-20230216163137.commit-a4c75be",
|
16
|
-
"@dcl/protocol": "1.0.0-
|
16
|
+
"@dcl/protocol": "1.0.0-14033082444.commit-84b403d",
|
17
17
|
"@dcl/quests-client": "^1.0.3",
|
18
18
|
"@dcl/quests-manager": "^0.1.4",
|
19
19
|
"@dcl/rpc": "^1.1.1",
|
@@ -38,7 +38,6 @@
|
|
38
38
|
"open": "^8.4.0",
|
39
39
|
"portfinder": "^1.0.32",
|
40
40
|
"prompts": "^2.4.2",
|
41
|
-
"tar": "^7.1.0",
|
42
41
|
"typescript": "^5.0.2",
|
43
42
|
"undici": "^5.19.1",
|
44
43
|
"uuid": "^9.0.1"
|
@@ -74,5 +73,5 @@
|
|
74
73
|
"displayName": "SDK",
|
75
74
|
"tsconfig": "./tsconfig.json"
|
76
75
|
},
|
77
|
-
"commit": "
|
76
|
+
"commit": "80768eb73a57c2cce3ea3a07ffc513eb622e7962"
|
78
77
|
}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { CliComponents } from '../components';
|
2
|
-
export declare function ensureDaoExplorer(components: Pick<CliComponents, 'logger' | 'fs' | 'fetch'>, workingDirectory: string): Promise<void>;
|
3
|
-
export declare function runDaoExplorer(components: Pick<CliComponents, 'logger' | 'fs' | 'fetch'>, realmUrl: string, locationCoords: string, workingDirectory: string): void;
|
@@ -1,156 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
-
};
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.runDaoExplorer = exports.ensureDaoExplorer = void 0;
|
30
|
-
const fs_1 = require("./fs");
|
31
|
-
const path_1 = __importDefault(require("path"));
|
32
|
-
const os_1 = require("os");
|
33
|
-
const error_1 = require("./error");
|
34
|
-
const beautiful_logs_1 = require("./beautiful-logs");
|
35
|
-
const tar = __importStar(require("tar"));
|
36
|
-
const child_process_1 = __importDefault(require("child_process"));
|
37
|
-
var SupportedPlatform;
|
38
|
-
(function (SupportedPlatform) {
|
39
|
-
SupportedPlatform[SupportedPlatform["SP_MACOS_ARM64"] = 0] = "SP_MACOS_ARM64";
|
40
|
-
SupportedPlatform[SupportedPlatform["SP_LINUX_X64"] = 1] = "SP_LINUX_X64";
|
41
|
-
SupportedPlatform[SupportedPlatform["SP_WINDOWS_X64"] = 2] = "SP_WINDOWS_X64";
|
42
|
-
SupportedPlatform[SupportedPlatform["SP_UNSUPPORTED"] = 3] = "SP_UNSUPPORTED";
|
43
|
-
})(SupportedPlatform || (SupportedPlatform = {}));
|
44
|
-
const BEVY_BASE_URL = 'https://github.com/decentraland/bevy-explorer/releases/download/alpha-2025-01-27-14-56-57/bevy-explorer-2025-01-27-14-56-57';
|
45
|
-
const BEVY_URL_PLATFORM_SUFFIX = {
|
46
|
-
[SupportedPlatform.SP_LINUX_X64]: 'linux-x86_64.tar.gz',
|
47
|
-
[SupportedPlatform.SP_MACOS_ARM64]: 'macos-m1m2.zip',
|
48
|
-
[SupportedPlatform.SP_WINDOWS_X64]: 'windows-x86_64.zip',
|
49
|
-
[SupportedPlatform.SP_UNSUPPORTED]: 'empty'
|
50
|
-
};
|
51
|
-
function getPlatform() {
|
52
|
-
const os = (0, os_1.platform)();
|
53
|
-
const arch = process.arch;
|
54
|
-
switch (os) {
|
55
|
-
case 'darwin':
|
56
|
-
if (arch === 'arm64') {
|
57
|
-
return SupportedPlatform.SP_MACOS_ARM64;
|
58
|
-
}
|
59
|
-
else {
|
60
|
-
return SupportedPlatform.SP_UNSUPPORTED;
|
61
|
-
}
|
62
|
-
case 'win32':
|
63
|
-
if (arch === 'x64') {
|
64
|
-
return SupportedPlatform.SP_WINDOWS_X64;
|
65
|
-
}
|
66
|
-
else {
|
67
|
-
return SupportedPlatform.SP_UNSUPPORTED;
|
68
|
-
}
|
69
|
-
case 'linux':
|
70
|
-
if (arch === 'x64') {
|
71
|
-
return SupportedPlatform.SP_LINUX_X64;
|
72
|
-
}
|
73
|
-
else {
|
74
|
-
return SupportedPlatform.SP_UNSUPPORTED;
|
75
|
-
}
|
76
|
-
default:
|
77
|
-
return SupportedPlatform.SP_UNSUPPORTED;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
function getDaoExplorerPath(workingDirectory) {
|
81
|
-
// Reliable way to get the path to get the first active node_module folder
|
82
|
-
const sdkPath = require.resolve('@dcl/sdk');
|
83
|
-
if (sdkPath !== null) {
|
84
|
-
// SDK-path is something like /node_modules/@dcl/sdk/index.js
|
85
|
-
return path_1.default.resolve(sdkPath, '..', '..', '..', '.bin', 'dao-explorer');
|
86
|
-
}
|
87
|
-
return path_1.default.resolve(workingDirectory, 'node_modules', '.bin', 'dao-explorer');
|
88
|
-
}
|
89
|
-
function getDaoExplorerExecutablePath(workingDirectory) {
|
90
|
-
const platform = getPlatform();
|
91
|
-
if (platform === SupportedPlatform.SP_UNSUPPORTED) {
|
92
|
-
throw new error_1.CliError('This platform is not supported to run the DAO Explorers.');
|
93
|
-
}
|
94
|
-
if (platform === SupportedPlatform.SP_WINDOWS_X64) {
|
95
|
-
return path_1.default.resolve(getDaoExplorerPath(workingDirectory), 'decentra-bevy.exe');
|
96
|
-
}
|
97
|
-
if (platform === SupportedPlatform.SP_MACOS_ARM64) {
|
98
|
-
return path_1.default.resolve(getDaoExplorerPath(workingDirectory), 'DecentralandBevyExplorer.app/Contents/MacOS/DecentralandBevyExplorer');
|
99
|
-
}
|
100
|
-
return path_1.default.resolve(getDaoExplorerPath(workingDirectory), 'decentra-bevy');
|
101
|
-
}
|
102
|
-
async function ensureDaoExplorer(components, workingDirectory) {
|
103
|
-
const daoExplorerFolderPath = getDaoExplorerPath(workingDirectory);
|
104
|
-
const platform = getPlatform();
|
105
|
-
if (platform === SupportedPlatform.SP_UNSUPPORTED) {
|
106
|
-
throw new error_1.CliError('This platform is not supported to run the DAO Explorers.');
|
107
|
-
}
|
108
|
-
const url = `${BEVY_BASE_URL}-${BEVY_URL_PLATFORM_SUFFIX[platform]}`;
|
109
|
-
const versionFilePath = path_1.default.resolve(daoExplorerFolderPath, 'version');
|
110
|
-
if (await components.fs.fileExists(versionFilePath)) {
|
111
|
-
const versionContent = await components.fs.readFile(versionFilePath, 'utf-8');
|
112
|
-
if (versionContent === url) {
|
113
|
-
return;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
const tempPackagePath = path_1.default.resolve(daoExplorerFolderPath, BEVY_URL_PLATFORM_SUFFIX[platform]);
|
117
|
-
(0, beautiful_logs_1.printProgressInfo)(components.logger, `Downloading DAO Explorer ${BEVY_URL_PLATFORM_SUFFIX[platform]} from ${url}`);
|
118
|
-
if (await components.fs.directoryExists(daoExplorerFolderPath)) {
|
119
|
-
await components.fs.rm(daoExplorerFolderPath, { recursive: true, force: true });
|
120
|
-
}
|
121
|
-
await components.fs.mkdir(daoExplorerFolderPath, { recursive: true });
|
122
|
-
await (0, fs_1.download)(components, url, tempPackagePath);
|
123
|
-
if (tempPackagePath.endsWith('.zip')) {
|
124
|
-
await (0, fs_1.extract)(tempPackagePath, daoExplorerFolderPath);
|
125
|
-
}
|
126
|
-
else if (tempPackagePath.endsWith('.tar.gz') || tempPackagePath.endsWith('.tgz')) {
|
127
|
-
await tar.extract({
|
128
|
-
C: daoExplorerFolderPath,
|
129
|
-
f: tempPackagePath
|
130
|
-
});
|
131
|
-
}
|
132
|
-
await components.fs.writeFile(versionFilePath, url);
|
133
|
-
}
|
134
|
-
exports.ensureDaoExplorer = ensureDaoExplorer;
|
135
|
-
function runDaoExplorer(components, realmUrl, locationCoords, workingDirectory) {
|
136
|
-
const daoExplorerFolderPath = getDaoExplorerPath(workingDirectory);
|
137
|
-
const executablePath = getDaoExplorerExecutablePath(workingDirectory);
|
138
|
-
executablePath;
|
139
|
-
const ts = child_process_1.default.spawn(executablePath, ['--preview', '--server', realmUrl, '--location', locationCoords], {
|
140
|
-
env: process.env,
|
141
|
-
cwd: daoExplorerFolderPath
|
142
|
-
});
|
143
|
-
ts.on('close', (code) => {
|
144
|
-
/* istanbul ignore else */
|
145
|
-
if (code === 0) {
|
146
|
-
(0, beautiful_logs_1.printProgressInfo)(components.logger, `Type checking completed without errors`);
|
147
|
-
}
|
148
|
-
else {
|
149
|
-
return;
|
150
|
-
}
|
151
|
-
});
|
152
|
-
ts.stdout.pipe(process.stdout);
|
153
|
-
ts.stderr.pipe(process.stderr);
|
154
|
-
}
|
155
|
-
exports.runDaoExplorer = runDaoExplorer;
|
156
|
-
//# sourceMappingURL=dao-explorer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dao-explorer.js","sourceRoot":"","sources":["../../src/logic/dao-explorer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6BAAwC;AACxC,gDAAuB;AACvB,2BAA6B;AAC7B,mCAAkC;AAClC,qDAAoD;AACpD,yCAA0B;AAC1B,kEAAyC;AAEzC,IAAK,iBAKJ;AALD,WAAK,iBAAiB;IACpB,6EAAc,CAAA;IACd,yEAAY,CAAA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