Skip to content

Commit

Permalink
ext: add clipboard-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Jun 19, 2024
1 parent 93a71de commit 02f26ff
Show file tree
Hide file tree
Showing 11 changed files with 206 additions and 117 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ jobs:
cargo build --release --out-dir=./output -Z unstable-options
cd ..
mv ./mpv-easy-ext/output/mpv-easy-ext ./mpv-easy-ext-ubuntu
mv ./mpv-easy-ext/output/mpv-easy-ext ./mpv-easy-ext-linux
- name: Upload ubuntu Artifact ext
uses: actions/upload-artifact@v4
with:
name: mpv-easy-ext-ubuntu
path: ./mpv-easy-ext-ubuntu
name: mpv-easy-ext-linux
path: ./mpv-easy-ext-linux

build-ext-android:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
cp -r ./dist ./mpy-easy-boa-windows
cp ./mpv-easy-ext/mpv-easy-ext-macos ./mpy-easy-macos/scripts/mpv-easy-config/mpv-easy-ext/mpv-easy-ext-macos
cp ./mpv-easy-ext/mpv-easy-ext-ubuntu ./mpy-easy-linux/scripts/mpv-easy-config/mpv-easy-ext/mpv-easy-ext-linux
cp ./mpv-easy-ext/mpv-easy-ext-linux ./mpy-easy-linux/scripts/mpv-easy-config/mpv-easy-ext/mpv-easy-ext-linux
cp ./mpv-easy-ext/mpv-easy-ext-android ./mpy-easy-android/scripts/mpv-easy-config/mpv-easy-ext/mpv-easy-ext-android
cp ./mpv-easy-ext/mpv-easy-ext-windows ./mpy-easy-windows/scripts/mpv-easy-config/mpv-easy-ext/mpv-easy-ext-windows
cp ./mpv-easy-ext/mpv-easy-ext-windows ./mpy-easy-deno-windows/scripts/mpv-easy-config/mpv-easy-ext/mpv-easy-ext-windows
Expand Down Expand Up @@ -304,4 +304,4 @@ jobs:
cd ..
- uses: ncipollo/release-action@v1
with:
artifacts: "./mpy-easy-*/*.zip,./mpv-easy/es5/mpv-easy-es5.js,./mpv-easy/bundle/mpv-easy-es6.js"
artifacts: "./mpy-easy-*/*.zip,./mpv-easy/es5/mpv-easy-es5.js,./mpv-easy/bundle/mpv-easy-es6.js,./mpv-easy-ext/*"
160 changes: 157 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions mpv-easy-ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ webdav-serde = "0.1.1"
image = "0.25.1"
rand = "0.8.5"
glob = "0.3.1"

[target.'cfg(target_os = "windows")'.dependencies]
clipboard-win = "5.1.0"
[target.'cfg(not(target_os = "android"))'.dependencies]
clipboard-rs = "0.1.7"
15 changes: 0 additions & 15 deletions mpv-easy-ext/src/cmd/clip/clip_android.rs

This file was deleted.

15 changes: 0 additions & 15 deletions mpv-easy-ext/src/cmd/clip/clip_linux.rs

This file was deleted.

14 changes: 0 additions & 14 deletions mpv-easy-ext/src/cmd/clip/clip_mac.rs

This file was deleted.

32 changes: 0 additions & 32 deletions mpv-easy-ext/src/cmd/clip/clip_win.rs

This file was deleted.

12 changes: 0 additions & 12 deletions mpv-easy-ext/src/cmd/clip/mod.rs

This file was deleted.

Loading

0 comments on commit 02f26ff

Please sign in to comment.