Skip to content

Commit

Permalink
feat: Rebuild clipboard, use external programs (#14)
Browse files Browse the repository at this point in the history
The `arboard` and `clipboard_master` are both not support Wayland natively. So I rewrite this project, to use the external clipboard commands, like `wl-copy`, `wl-paste`, `pbpaste`, etc to interact with system clipboard.
  • Loading branch information
fioncat authored Mar 26, 2024
1 parent e7bf928 commit b48f2b9
Show file tree
Hide file tree
Showing 83 changed files with 3,123 additions and 3,964 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target
.idea
_test_data
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
toolchain: stable

- name: Cargo test
run: cargo check
run: cargo test
36 changes: 0 additions & 36 deletions .github/workflows/csyncd-image.yml

This file was deleted.

51 changes: 11 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,62 +13,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create release
- name: Create
uses: softprops/action-gh-release@v1
with:
draft: true

release-csync:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Install Dependencies
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install libx11-xcb-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev

- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: csync
tar: unix
zip: windows
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}

release-csyncd:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- os: macos-11
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: csyncd
bin: csync
tar: unix
zip: windows
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/target
.idea
/test-image-data
_test_data
28 changes: 0 additions & 28 deletions .roxmake.yml

This file was deleted.

Loading

0 comments on commit b48f2b9

Please sign in to comment.