Skip to content

Commit 10c1e3a

Browse files
committed
add skip-auth-screen & landscape-terrain-enabled options for preview
1 parent eb8a147 commit 10c1e3a

File tree

2 files changed

+33
-17
lines changed

2 files changed

+33
-17
lines changed

packages/@dcl/sdk-commands/src/commands/start/explorer-alpha.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,24 @@ async function runApp(
4545
const localScene = args['--local-scene'] ?? true
4646
const debug = args['--debug'] ?? true
4747
const dclenv = args['--dclenv'] ?? 'org'
48+
const skipAuthScreen = args['--skip-auth-screen'] ?? true
49+
const landscapeTerrainEnabled = args['--landscape-terrain-enabled'] ?? true
4850

4951
try {
50-
const params = `realm=${realm}&position=${position}&local-scene=${localScene}&debug=${debug}&hub=${isHub}&dclenv=${dclenv}`
51-
const app = `decentraland://"${params}"`
52+
const queryParams = [
53+
`realm=${realm}`,
54+
`position=${position}`,
55+
`local-scene=${localScene}`,
56+
`debug=${debug}`,
57+
`hub=${isHub}`,
58+
`dclenv=${dclenv}`,
59+
`skip-auth-screen=${skipAuthScreen}`,
60+
`landscape-terrain-enabled=${landscapeTerrainEnabled}`
61+
].join('&')
62+
63+
const app = `decentraland://"${queryParams}"`
5264
await components.spawner.exec(cwd, cmd, [app], { silent: true })
53-
components.logger.info(`Desktop client: decentraland://${params}\n`)
65+
components.logger.info(`Desktop client: decentraland://${queryParams}\n`)
5466
return true
5567
} catch (e: any) {
5668
components.logger.error('Decentraland Desktop Client failed with: ', e.message)

packages/@dcl/sdk-commands/src/commands/start/index.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ export const args = declareArgs({
5757
'--dclenv': String,
5858
'--realm': String,
5959
'--local-scene': String,
60-
'--position': String
60+
'--position': String,
61+
'--skip-auth-screen': Boolean,
62+
'--landscape-terrain-enabled': Boolean
6163
})
6264

6365
export async function help(options: Options) {
@@ -66,19 +68,21 @@ export async function help(options: Options) {
6668
6769
Options:
6870
69-
-h, --help Displays complete help
70-
-p, --port [port] Select a custom port for the development server
71-
-d, --no-debug Disable debugging panel
72-
-b, --no-browser Do not open a new browser window
73-
-w, --no-watch Do not open watch for filesystem changes
74-
-c, --ci Run the parcel previewer on a remote unix server
75-
--web3 Connects preview to browser wallet to use the associated avatar and account
76-
--skip-build Skip build and only serve the files in preview mode
77-
--debug Enables Debug panel mode inside DCL Explorer (default=true)
78-
--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)
79-
--realm Realm used to serve the content. (default=Localhost)
80-
--local-scene Enable local scene development.
81-
--position Initial Position to start the explorer. (default=position defined at scene.json)
71+
-h, --help Displays complete help
72+
-p, --port [port] Select a custom port for the development server
73+
-d, --no-debug Disable debugging panel
74+
-b, --no-browser Do not open a new browser window
75+
-w, --no-watch Do not open watch for filesystem changes
76+
-c, --ci Run the parcel previewer on a remote unix server
77+
--web3 Connects preview to browser wallet to use the associated avatar and account
78+
--skip-build Skip build and only serve the files in preview mode
79+
--debug Enables Debug panel mode inside DCL Explorer (default=true)
80+
--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)
81+
--realm Realm used to serve the content. (default=Localhost)
82+
--local-scene Enable local scene development.
83+
--position Initial Position to start the explorer. (default=position defined at scene.json)
84+
--skip-auth-screen Skip the auth screen.
85+
--landscape-terrain-enabled Enable landscape terrain.
8286
8387
8488
Examples:

0 commit comments

Comments
 (0)