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

Add Linux support #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vishwamartur
Copy link

Related to #9

Add Linux support, including Wayland and X11, to the project.

  • Environment Detection:

    • Add isWayland constant to check if the display server is Wayland in src/main/env.ts.
    • Update isLinux constant to differentiate between Wayland and X11 in src/main/env.ts.
  • Device Handling:

    • Import isWayland in src/main/agent/device.ts.
    • Add condition to handle Wayland-specific functionalities using @nut-tree/nut.js in src/main/agent/device.ts.
    • Update screenshot method to handle Wayland-specific functionalities in src/main/agent/device.ts.
  • Input Controls:

    • Import isWayland in src/main/agent/execute.ts.
    • Add condition to handle Wayland-specific input controls in src/main/agent/execute.ts.
  • Documentation:

    • Add installation and usage instructions for Linux, including Wayland and X11, in README.md.

Related to bytedance#9

Add Linux support, including Wayland and X11, to the project.

* **Environment Detection**:
  - Add `isWayland` constant to check if the display server is Wayland in `src/main/env.ts`.
  - Update `isLinux` constant to differentiate between Wayland and X11 in `src/main/env.ts`.

* **Device Handling**:
  - Import `isWayland` in `src/main/agent/device.ts`.
  - Add condition to handle Wayland-specific functionalities using `@nut-tree/nut.js` in `src/main/agent/device.ts`.
  - Update `screenshot` method to handle Wayland-specific functionalities in `src/main/agent/device.ts`.

* **Input Controls**:
  - Import `isWayland` in `src/main/agent/execute.ts`.
  - Add condition to handle Wayland-specific input controls in `src/main/agent/execute.ts`.

* **Documentation**:
  - Add installation and usage instructions for Linux, including Wayland and X11, in `README.md`.
@ycjcl868
Copy link
Collaborator

Could you please add an Electron Linux version(using @electron-forge/maker-deb)?

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.

2 participants