Skip to content

Quick-Bin/QBin-SyncClipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

QBin-SyncClipboard

简介

这个项目通过Pythonista输入法和QBin服务,实现多设备剪贴板自动同步功能。

不同于微信输入法的剪贴板同步,这个项目完全开源,并且支持在纯内网环境运行,保障你的数据隐私。

C/S架构

QBin service

部署教程

1. 客户端

IOS

  1. 安装 Pythonista
  2. 导入 clipboard.py 代码
  3. 设置Shortcuts 为 Pythonista Keyboard
  4. New Shortcut 输入Arguments send,标题:剪贴板-发送
  5. 重复步骤3,New Shortcut 输入Arguments receive,标题:剪贴板-接收
  6. 切换为 Pythonista 输入法开始使用

PC

暂未完成,欢迎大佬PR

2. 服务端

本地运行

Windows PowerShell 安装 Deno:

irm https://deno.land/install.ps1 | iex

Mac/Linux 安装 Deno:

curl -fsSL https://deno.land/install.sh | sh

启动项目:

git clone https://github.com/Quick-Bin/qbin
cd qbin
deno run --allow-net --allow-env --allow-read --unstable-kv --unstable-broadcast-channel index.ts

打包执行程序

Windows

deno compile --target x86_64-pc-windows-msvc --allow-net --allow-env --allow-read --unstable-kv --unstable-broadcast-channel --no-check --output QBin --icon static\img\apple-icon-152.png index.ts

Linux

deno compile --allow-net --allow-env --allow-read --unstable-kv --unstable-broadcast-channel --no-check --output QBin index.ts

MacOS (Intel)

deno compile --target x86_64-apple-darwin --allow-net --allow-env --allow-read --unstable-kv --unstable-broadcast-channel --no-check --output app_macos index.ts

MacOS (Apple Silicon)

deno compile --target aarch64-apple-darwin --allow-net --allow-env --allow-read --unstable-kv --unstable-broadcast-channel --no-check --output app_macos_arm64 index.ts

远程部署

支持Deno Deploy、Docker、Docker Compose部署方式。 部署方法请查看 Self-host.md

3. 配置参数

IOS

访问 http://localhost:8000/home#settings 生成Token,后面需要用到

点击运行代码跟着提示操作,也可以在api_config.json文件进行修改

QBin 服务

修改.env配置文件

# 管理员信息(登录时需要)
ADMIN_EMAIL=admin@qbin.github    # 管理员邮箱(必选)
ADMIN_PASSWORD=qbin              # 管理员密码(必选)
# 数据库配置
DATABASE_URL=					  # PostgreSQL连接URL(必选)
PORT=8000       # 开放访问端口
JWT_SECRET=    # JWT密钥,用于加密验证(建议修改)
ISDEMO=			# 演示模式,留空不开启, 内网环境推荐开启

更多配置详情请阅览 环境变量配置说明

About

通过Pythonista输入法和QBin服务,实现多设备剪贴板自动同步功能。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages