Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ jobs:
- name: Set version
run: node .github/scripts/set-version.mjs "$VERSION"

# 打包之前 tauri build 会下载手柄驱动 usbip-win2 的安装程序、核对 SHA-256,打进安装包(tauri.windows.conf.json 的
# beforeBundleCommand,见 client/src-tauri/windows/usbip/README.md);CI 里下载不了就失败
- name: Build
working-directory: client
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ target/
node_modules/
client/dist/
client/src-tauri/gen/
# Windows 安装包带的 usbip-win2:打包前由 client/scripts/fetch-usbip-win2.mjs 下载(见 client/src-tauri/windows/usbip/README.md)
client/src-tauri/windows/usbip/usbip-win2-setup.exe*
client/src-tauri/windows/usbip/usbip-win2.nsh
*.log
web/.env
# 根目录的 .env:docker-compose.yml 的变量(如固定镜像版本的 AIRHAND_VERSION)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ See [How it works → Video](docs/architecture.md#video) for details.
- **Android**: control computers and phones from a phone as a trackpad or touchscreen, or share your own screen to get help (a device needs the pairing code shown on the phone the first time, and you're notified whenever one connects); watch on a TV with the remote
- **iPhone / iPad**: the same remote control as on Android (trackpad / touch gestures, keyboard, mouse with pointer lock on iPad, game controls), or share the screen through the system screen broadcast (view only: iOS doesn't let apps be controlled)
- **Audio**: the host's system audio plays on the controller (Opus + adaptive jitter buffer), with optional A/V sync for watching videos. The other way, the controller can send its microphone to meeting apps and voice typing on Windows, macOS 14.2+ and Linux (PipeWire) hosts. Mac and Linux hosts publish **Airhand Microphone** while forwarding is on
- **Gamepads**: gamepads on the controller (desktop and web consoles, Android phones and TVs, iPhone / iPad) are plugged into Windows and Linux hosts as wired Xbox 360 controllers through [airhand-dock](https://github.com/sqlpxc/airhand-dock), so every game sees a real gamepad, and games make your gamepad vibrate. Game keys on phones can be an on-screen gamepad too. Windows hosts need the [usbip-win2](https://github.com/vadimgrn/usbip-win2) driver, which the Airhand installer includes and offers to install. [Details](docs/usage.md#gamepads)
- **Handy tools**: two-way clipboard sync (text, plus files and folders, sent when you paste), typing the clipboard as keystrokes, system shortcuts (Win, Alt+Tab, Ctrl+Shift+Esc…), multiple monitors (switch between them, show and control several at once, or give each its own window to put on your own screens in full screen), keyboard lock in fullscreen, quality presets
- **Secure by default**: sessions are end-to-end encrypted, so the relay server can't see the screen or keystrokes; the first connection needs the pairing code from the other computer's tray (it never goes through the server), and its identity is recognized afterwards; TLS 1.3 with certificate pinning, brute-force protection for control codes; the host always sees who is connected and can disconnect them with one click
- **Leaves nothing behind**: the host is just a tray icon and doesn't start a WebView; everything worth keeping is in one `config.toml`, other runtime files are deleted on exit, and nothing is left after [uninstalling](docs/usage.md#uninstalling) (Windows has an uninstaller, where you choose whether the virtual display driver goes too; macOS has "Uninstall Airhand…" in the menu, Linux takes two commands)
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Airhand 是一个**高性能、低延迟**的远程桌面:画面用 GPU 硬件
- **Android**:在手机上用触控板或触屏的方式控制电脑、手机,也能共享自己的屏幕让别人协助(对方第一次连接时要输入手机上显示的配对码,有设备连上来时会提醒你);在电视上用遥控器看画面
- **iPhone / iPad**:和 Android 一样控制电脑、手机(触控板 / 触屏手势、键盘、外接鼠标,iPad 上可以锁定指针、游戏按键),也能用系统的屏幕广播共享自己的屏幕(只能被看:iOS 不允许别的应用操作本机)
- **声音**:被控端的系统声音同步到控制端(Opus + 自适应抖动缓冲),看视频时可以打开音画同步。反过来,控制端的麦克风可以转发给 Windows、macOS 14.2+ 和 Linux(PipeWire)被控端,供那里的会议软件和语音输入使用。Mac 和 Linux 会在转发期间提供一个 **Airhand Microphone** 录音设备
- **手柄**:控制端接着的手柄(桌面和网页控制台、Android 手机和电视、iPhone / iPad)经 [airhand-dock](https://github.com/sqlpxc/airhand-dock) 作为有线 Xbox 360 手柄插到 Windows、Linux 被控端上,所有游戏看到的都是真手柄,游戏的震动也传回你的手柄。手机上的游戏按键也可以是屏幕上的手柄。Windows 被控端要用 [usbip-win2](https://github.com/vadimgrn/usbip-win2) 驱动,Airhand 的安装包里带着,安装时会问要不要装。[详情](docs/usage.zh-CN.md#手柄)
- **实用工具**:剪贴板双向同步(文字,以及文件、文件夹:粘贴时才传)、以键盘输入方式发送剪贴板、系统快捷键(Win、Alt+Tab、Ctrl+Shift+Esc……)、多显示器(可以同时显示、同时操作对方的几个显示器,也可以每个显示器单独一个窗口,放到本机的各个显示器上全屏)、全屏时锁定键盘、画质预设
- **默认安全**:会话端到端加密,中转服务器看不到画面和键盘输入;第一次连接要输入对方托盘里的配对码(不经过服务器),之后认得出对方的身份;TLS 1.3 + 证书指纹固定,控制码防暴力猜测;被控端随时能看到谁连着,一键断开
- **不留痕迹**:被控端只有一个托盘图标,不启动 WebView;要保存的东西都在一个 `config.toml` 里,其余运行时文件退出时删除;[卸载](docs/usage.zh-CN.md#卸载)后什么都不剩(Windows 用卸载程序,虚拟显示器驱动删不删由你选;macOS 在菜单里选“卸载 Airhand…”,Linux 两条命令)
Expand Down
2 changes: 2 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<!-- 被控端:有人在看的时候保持屏幕亮着 -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- 游戏让手柄震动:接着的手柄自己的马达(InputDevice 的 Vibrator) -->
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<!-- 自动更新:下载的新版本交给系统安装(系统会问用户),见 core/Update.kt -->
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
Expand Down
Loading