瀏覽代碼

ci: wayland compat

ayn2op 9 月之前
父節點
當前提交
bf81ace245
共有 2 個文件被更改,包括 8 次插入3 次删除
  1. 3 0
      .github/workflows/ci.yml
  2. 5 3
      README.md

+ 3 - 0
.github/workflows/ci.yml

@@ -15,6 +15,9 @@ jobs:
       - uses: actions/setup-go@v5
         with:
           go-version: stable
+          
+      - name: Install libx11-dev
+        run: apt install libx11-dev
 
       - name: Build
         run: go build -ldflags "-s -w" .

+ 5 - 3
README.md

@@ -44,10 +44,12 @@ cd discordo
 go build .
 ```
 
-### Linux clipboard support
+### Wayland clipboard support
 
-- `xclip` or `xsel` for X11 (`apt install xclip`)
-- `wl-clipboard` for Wayland (`apt install wl-clipboard`)
+`x11-dev` is required for X11 clipboard compatibility:
+
+- Ubuntu: `sudo apt install xwayland`
+- Arch Linux: `pacman -S xorg-xwayland`
 
 ## Usage