Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.8 #91

Merged
merged 25 commits into from
May 11, 2021
Merged

Version 0.8 #91

merged 25 commits into from
May 11, 2021

Conversation

drauggres
Copy link
Collaborator

@drauggres drauggres commented Apr 22, 2021

Everything below is temporary and will change before this PR is merged.

BUILD

Build configuration depends on environment variables:

  • INCLUDE_APPL - build server with ios tracker
  • INCLUDE_GOOG - build server with android tracker, xterm.js and "remote devtools"
    i.e. to build complete version you need to run:

export INCLUDE_APPL=1 INCLUDE_GOOG=1 npm run dist:dev

npm run dist has only INCLUDE_GOOG=1

RUN

iOS

To be able to stream screen from ios-devices build ws-qvh. Make sure ws-qvh binary is available on your PATH.

Remote trackers

To provide URLs for remote device trackers you need to specify path to configuration file in WS_SCRCPY_CONFIG environment variable, e.g.:

WS_SCRCPY_CONFIG='/Users/myname/ws-scrcpy/config.json'

Configuration file format:

export interface HostItem {
type: 'android' | 'ios';
secure: boolean;
hostname: string;
port: number;
useProxy?: boolean;
}
export interface Configuration {
runApplTracker?: boolean;
announceApplTracker?: boolean;
runGoogTracker?: boolean;
announceGoogTracker?: boolean;
hostList?: HostItem[];
}

@drauggres drauggres marked this pull request as draft April 24, 2021 10:17
@krishtoautomate
Copy link

[QvhackRunner][udid: c96e4f4016966c6b50c39e1168f5535ee1988f40] failed to spawn process.
Error: spawn /Users/$USER/ws-qvh EACCES
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
events.js:292
throw er; // Unhandled 'error' event
^

Error: spawn /Users/$USER/ws-qvh EACCES
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event at:
at t.e.emit (/Users/$USER/ws-scrcpy/dist/index.js:1:3642)
at ChildProcess. (/Users/$USER/ws-scrcpy/dist/index.js:1:58420)
at ChildProcess.emit (events.js:315:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -13,
code: 'EACCES',
syscall: 'spawn /Users/$USER/ws-qvh',
path: '/Users/$USER/ws-qvh',
spawnargs: [ '127.0.0.1:8001' ]
}

@drauggres
Copy link
Collaborator Author

Error: spawn /Users/$USER/ws-qvh EACCES

@tulasikrishan89
Previously in WS_QVH_PATH you must specify path including binary name.

Now you don't need to WS_QVH_PATH at all, just make sure ws-qvh is available on PATH.
Better to build a new ws-qvh from develop), old version wants dist directory near with it.

@drauggres drauggres marked this pull request as ready for review May 11, 2021 13:51
@drauggres drauggres merged commit a1111d0 into master May 11, 2021
@drauggres drauggres deleted the develop branch May 12, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requesting to add iproxy(from usbmuxd) to port forward device WDA traffic to local port
2 participants