mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 00:03:28 +02:00
Limit VNC size by default.
This commit is contained in:
15
lib/cli.js
15
lib/cli.js
@@ -68,6 +68,10 @@ program
|
||||
, 'adb connect URL pattern'
|
||||
, String
|
||||
, '${publicIp}:${publicPort}')
|
||||
.option('--vnc-initial-size <size>'
|
||||
, 'initial VNC size'
|
||||
, cliutil.size
|
||||
, [600, 800])
|
||||
.option('--mute-master'
|
||||
, 'whether to mute master volume when devices are being used')
|
||||
.option('--lock-rotation'
|
||||
@@ -112,6 +116,7 @@ program
|
||||
, '--screen-ws-url-pattern', options.screenWsUrlPattern
|
||||
, '--connect-url-pattern', options.connectUrlPattern
|
||||
, '--heartbeat-interval', options.heartbeatInterval
|
||||
, '--vnc-initial-size', options.vncInitialSize.join('x')
|
||||
]
|
||||
.concat(options.muteMaster ? ['--mute-master'] : [])
|
||||
.concat(options.lockRotation ? ['--lock-rotation'] : []))
|
||||
@@ -146,6 +151,10 @@ program
|
||||
.option('--vnc-port <port>'
|
||||
, 'port allocated to vnc'
|
||||
, Number)
|
||||
.option('--vnc-initial-size <size>'
|
||||
, 'initial VNC size'
|
||||
, cliutil.size
|
||||
, [600, 800])
|
||||
.option('--connect-url-pattern <pattern>'
|
||||
, 'adb connect URL pattern'
|
||||
, String
|
||||
@@ -221,6 +230,7 @@ program
|
||||
, connectUrlPattern: options.connectUrlPattern
|
||||
, connectPort: options.connectPort
|
||||
, vncPort: options.vncPort
|
||||
, vncInitialSize: options.vncInitialSize
|
||||
, heartbeatInterval: options.heartbeatInterval
|
||||
, muteMaster: options.muteMaster
|
||||
, lockRotation: options.lockRotation
|
||||
@@ -954,6 +964,10 @@ program
|
||||
.option('--user-profile-url <url>'
|
||||
, 'URL to external user profile page'
|
||||
, String)
|
||||
.option('--vnc-initial-size <size>'
|
||||
, 'initial VNC size'
|
||||
, cliutil.size
|
||||
, [600, 800])
|
||||
.option('--mute-master'
|
||||
, 'whether to mute master volume when devices are being used')
|
||||
.option('--lock-rotation'
|
||||
@@ -1021,6 +1035,7 @@ program
|
||||
, util.format('http://localhost:%d/', options.poorxyPort)
|
||||
, '--adb-host', options.adbHost
|
||||
, '--adb-port', options.adbPort
|
||||
, '--vnc-initial-size', options.vncInitialSize.join('x')
|
||||
]
|
||||
.concat(options.allowRemote ? ['--allow-remote'] : [])
|
||||
.concat(options.muteMaster ? ['--mute-master'] : [])
|
||||
|
||||
Reference in New Issue
Block a user