From 0046a2211b24eb9ecead9503314b942ae14d4b8b Mon Sep 17 00:00:00 2001 From: Manh Pham Date: Wed, 25 Nov 2026 17:34:02 +0700 Subject: [PATCH 1/3] chore: point every link at github.com/Bitfaring/Deskhub The repository, the Homebrew tap and the match certificates repository moved to the Bitfaring organization. GitHub redirects the old repository links, but the Pages site does not follow a transfer, so the apt repository now lives at bitfaring.github.io. --- .github/workflows/deploy.yml | 4 ++-- PRIVACY.ja.md | 8 +++---- PRIVACY.md | 8 +++---- PRIVACY.vi.md | 8 +++---- PRIVACY.zh.md | 8 +++---- README.ja.md | 24 +++++++++---------- README.md | 24 +++++++++---------- README.vi.md | 24 +++++++++---------- README.zh.md | 24 +++++++++---------- SECURITY.ja.md | 4 ++-- SECURITY.md | 4 ++-- SECURITY.vi.md | 4 ++-- SECURITY.zh.md | 4 ++-- client/ios/fastlane/Matchfile | 2 +- .../fastlane/metadata/en-US/marketing_url.txt | 2 +- .../fastlane/metadata/en-US/privacy_url.txt | 2 +- .../fastlane/metadata/en-US/support_url.txt | 2 +- .../metadata/review_information/notes.txt | 4 ++-- .../fastlane/metadata/vi/marketing_url.txt | 2 +- .../ios/fastlane/metadata/vi/privacy_url.txt | 2 +- .../ios/fastlane/metadata/vi/support_url.txt | 2 +- client/macos/fastlane/Matchfile | 2 +- core/include/deskhub/ui/Strings.h | 2 +- docs/BUILD.ja.md | 8 +++---- docs/BUILD.md | 8 +++---- docs/BUILD.vi.md | 8 +++---- docs/BUILD.zh.md | 8 +++---- docs/INSTALL.ja.md | 12 +++++----- docs/INSTALL.md | 12 +++++----- docs/INSTALL.vi.md | 12 +++++----- docs/INSTALL.zh.md | 12 +++++----- manhdev.json | 4 ++-- packaging/apt/index.html | 8 +++---- packaging/homebrew/deskhub.rb | 4 ++-- packaging/pages/index.html | 6 ++--- packaging/release-notes/v7.0.0.md | 2 +- packaging/release-notes/v8.0.0.md | 2 +- packaging/release-notes/v9.0.1.md | 2 +- packaging/release-notes/v9.0.2.md | 2 +- packaging/release-notes/v9.0.3.md | 2 +- packaging/release-notes/v9.1.0.md | 2 +- packaging/release-notes/v9.2.0.md | 2 +- packaging/release-notes/v9.3.0.md | 4 ++-- packaging/release-notes/v9.3.1.md | 2 +- packaging/release-notes/v9.3.2.md | 2 +- packaging/release-notes/v9.3.3.md | 4 ++-- packaging/release-notes/v9.3.4.md | 2 +- packaging/release-notes/v9.3.5.md | 2 +- packaging/release-notes/v9.3.6.md | 4 ++-- packaging/release-notes/v9.3.7.md | 2 +- packaging/release-notes/v9.4.0.md | 23 ++++++++++++++++++ scripts/build-apt-repo.sh | 2 +- scripts/build-deb.sh | 2 +- scripts/build-rpm.sh | 2 +- scripts/publish-homebrew.sh | 2 +- scripts/tools.sh | 2 +- 56 files changed, 182 insertions(+), 159 deletions(-) create mode 100644 packaging/release-notes/v9.4.0.md diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ed35a1f90..227d22dd2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -68,14 +68,14 @@ jobs: --- - 📦 **Installing** — every platform, one page: [INSTALL.md](https://github.com/manhpham90vn/Deskhub/blob/main/docs/INSTALL.md). + 📦 **Installing** — every platform, one page: [INSTALL.md](https://github.com/Bitfaring/Deskhub/blob/main/docs/INSTALL.md). Every desktop package carries `deskhub-cli`, the same client without a window for a script or an SSH session. The macOS dmg is attached by its own job and may show up a few minutes later. Android is on [Google Play](https://play.google.com/store/apps/details?id=com.manhpham.deskhub) and iOS on [TestFlight](https://testflight.apple.com/join/7qY7wgpd); the apk is no longer attached here. 🔒 **Before you share a screen** — sessions are encrypted (QUIC/TLS) and a host admits only the client keys you allow, but it is still a service on an open port: use a network you trust or a VPN, and never port-forward - UDP 47777. Full threat model in [SECURITY.md](https://github.com/manhpham90vn/Deskhub/blob/main/SECURITY.md). + UDP 47777. Full threat model in [SECURITY.md](https://github.com/Bitfaring/Deskhub/blob/main/SECURITY.md). EOF - name: Create release diff --git a/PRIVACY.ja.md b/PRIVACY.ja.md index 8d67153de..036bbabe4 100644 --- a/PRIVACY.ja.md +++ b/PRIVACY.ja.md @@ -21,7 +21,7 @@ Deskhub は remote desktop のアプリケーションであり、利用者の - **開発者:** Manh Pham - **連絡先:** manhpv151090@gmail.com -- **プロジェクトページ:** https://github.com/manhpham90vn/Deskhub +- **プロジェクトページ:** https://github.com/Bitfaring/Deskhub ## 2. 要旨 @@ -194,7 +194,7 @@ App は上記以外の permission を要求しない。将来のバージョン しない。デバイス名は転送中 encrypt されるが host に表示され、接続要求にも表示され、 コピーする public key にも埋め込まれるため、この項目に機微な情報を入力しないこと。Deskhub を Internet に直接公開しないこと。完全な threat model、保護 される範囲、保護されない範囲、脆弱性の報告方法は - [`SECURITY.ja.md`](https://github.com/manhpham90vn/Deskhub/blob/main/SECURITY.ja.md) + [`SECURITY.ja.md`](https://github.com/Bitfaring/Deskhub/blob/main/SECURITY.ja.md) に記載している。 - 旧バージョンが残したデータは変換されない。以前の `paired_devices` の一覧、以前の 有効化の印、以前の `auth_salt` ファイルは削除され、古い `ui-settings.txt` にある @@ -256,7 +256,7 @@ Deskhub は開発者にデータを送信しない。VPN 経由で接続する 本ソフトウェアのデータの取り扱いが変更される場合(たとえば将来のバージョンが任意の crash reporting を追加する場合)、本ポリシーはその変更が**出荷される前に**更新し、 新しい発効日と下記の変更履歴を付す。最新版は常に次の場所で公開する。 -https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md +https://github.com/Bitfaring/Deskhub/blob/main/PRIVACY.md | バージョン | 日付 | 変更内容 | |---|---|---| @@ -295,4 +295,4 @@ https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md 本ポリシーまたは Deskhub のプライバシーに関する問い合わせ: - **メール:** manhpv151090@gmail.com -- **Issues:** https://github.com/manhpham90vn/Deskhub/issues +- **Issues:** https://github.com/Bitfaring/Deskhub/issues diff --git a/PRIVACY.md b/PRIVACY.md index 35e4cbde0..19a13375e 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -23,7 +23,7 @@ The Software is developed and published by an individual developer: - **Developer:** Manh Pham - **Contact:** manhpv151090@gmail.com -- **Project page:** https://github.com/manhpham90vn/Deskhub +- **Project page:** https://github.com/Bitfaring/Deskhub ## 2. The short version @@ -204,7 +204,7 @@ new permission, it will be requested in-context and this policy will be updated. you copy, so do not put anything sensitive in it. Never expose Deskhub to the Internet directly. The full threat model — what is protected, what is not, and how to report a vulnerability — is in - [`SECURITY.md`](https://github.com/manhpham90vn/Deskhub/blob/main/SECURITY.md). + [`SECURITY.md`](https://github.com/Bitfaring/Deskhub/blob/main/SECURITY.md). - Data left by earlier versions is not converted: the old `paired_devices` list, the old activation marker and the old `auth_salt` file are deleted, and a passcode line in an old `ui-settings.txt` is removed the first time the file is loaded. An @@ -265,7 +265,7 @@ If the Software's data practices ever change (for example, if a future version adds optional crash reporting), this policy will be updated **before** the change ships, with a new effective date and a changelog entry below. The current version is always published at: -https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md +https://github.com/Bitfaring/Deskhub/blob/main/PRIVACY.md | Version | Date | Change | |---|---|---| @@ -304,4 +304,4 @@ https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md For any question about this policy or about privacy in Deskhub: - **Email:** manhpv151090@gmail.com -- **Issues:** https://github.com/manhpham90vn/Deskhub/issues +- **Issues:** https://github.com/Bitfaring/Deskhub/issues diff --git a/PRIVACY.vi.md b/PRIVACY.vi.md index 576ee484d..295598842 100644 --- a/PRIVACY.vi.md +++ b/PRIVACY.vi.md @@ -21,7 +21,7 @@ Phần mềm do một lập trình viên cá nhân phát triển và phát hành - **Lập trình viên:** Manh Pham - **Liên hệ:** manhpv151090@gmail.com -- **Trang dự án:** https://github.com/manhpham90vn/Deskhub +- **Trang dự án:** https://github.com/Bitfaring/Deskhub ## 2. Tóm tắt @@ -198,7 +198,7 @@ nhật. không nên đặt thông tin nhạy cảm vào trường này. Không phơi Deskhub trực tiếp ra Internet. Threat model đầy đủ, gồm phạm vi được bảo vệ, phạm vi không được bảo vệ và cách báo lỗ hổng, nằm trong - [`SECURITY.vi.md`](https://github.com/manhpham90vn/Deskhub/blob/main/SECURITY.vi.md). + [`SECURITY.vi.md`](https://github.com/Bitfaring/Deskhub/blob/main/SECURITY.vi.md). - Dữ liệu do các phiên bản trước để lại không được chuyển đổi: danh sách `paired_devices` cũ, dấu kích hoạt cũ và file `auth_salt` cũ bị xoá, còn dòng passcode trong một `ui-settings.txt` cũ bị gỡ ở lần đầu file được nạp. Một file @@ -258,7 +258,7 @@ giữa các thiết bị của bạn trên network đó, như mô tả ở mục Nếu cách Phần mềm xử lý dữ liệu thay đổi (ví dụ một phiên bản trong tương lai bổ sung crash reporting tuỳ chọn), chính sách này sẽ được cập nhật **trước khi** thay đổi được phát hành, kèm một ngày hiệu lực mới và một mục changelog bên dưới. Phiên bản hiện hành -luôn được công bố tại: https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md +luôn được công bố tại: https://github.com/Bitfaring/Deskhub/blob/main/PRIVACY.md | Phiên bản | Ngày | Nội dung thay đổi | |---|---|---| @@ -297,4 +297,4 @@ luôn được công bố tại: https://github.com/manhpham90vn/Deskhub/blob/ma Với mọi câu hỏi về chính sách này hoặc về quyền riêng tư trong Deskhub: - **Email:** manhpv151090@gmail.com -- **Issues:** https://github.com/manhpham90vn/Deskhub/issues +- **Issues:** https://github.com/Bitfaring/Deskhub/issues diff --git a/PRIVACY.zh.md b/PRIVACY.zh.md index 5b3182055..3e08df7d5 100644 --- a/PRIVACY.zh.md +++ b/PRIVACY.zh.md @@ -19,7 +19,7 @@ Deskhub 是一款 remote desktop 应用:它将你某台电脑的屏幕 stream - **开发者:** Manh Pham - **联系方式:** manhpv151090@gmail.com -- **项目页面:** https://github.com/manhpham90vn/Deskhub +- **项目页面:** https://github.com/Bitfaring/Deskhub ## 2. 概要 @@ -175,7 +175,7 @@ App 不申请上表所列之外的任何 permission。若将来的版本需要 public key 中,因此不应在其中填入敏感信息。 请勿将 Deskhub 直接暴露到 Internet。完整的 threat model,包括保护范围、不受保护的 范围以及漏洞报告方式,见 - [`SECURITY.zh.md`](https://github.com/manhpham90vn/Deskhub/blob/main/SECURITY.zh.md)。 + [`SECURITY.zh.md`](https://github.com/Bitfaring/Deskhub/blob/main/SECURITY.zh.md)。 - 早期版本遗留的数据不会被转换:旧的 `paired_devices` 列表、旧的启用标记以及旧的 `auth_salt` 文件会被删除,旧 `ui-settings.txt` 中的 passcode 行会在首次加载该文件时被 移除。无法读取的 `authorized_keys` 或 `known_hosts` 文件在其无法读取 @@ -226,7 +226,7 @@ Deskhub 不向开发者发送数据。如果通过 VPN 连接,session 数据 若本软件的数据处理方式发生变化(例如未来版本增加可选的 crash reporting),本政策将在 该变更**发布之前**更新,并附新的生效日期与下方的变更记录。当前版本始终发布于: -https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md +https://github.com/Bitfaring/Deskhub/blob/main/PRIVACY.md | 版本 | 日期 | 变更内容 | |---|---|---| @@ -265,4 +265,4 @@ https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md 关于本政策或 Deskhub 隐私方面的任何问题: - **邮件:** manhpv151090@gmail.com -- **Issues:** https://github.com/manhpham90vn/Deskhub/issues +- **Issues:** https://github.com/Bitfaring/Deskhub/issues diff --git a/README.ja.md b/README.ja.md index 827515721..c11ae6677 100644 --- a/README.ja.md +++ b/README.ja.md @@ -9,15 +9,15 @@ **Deskhub を使えば、別の端末から自分のパソコンの画面を見て操作できる。オープンソースで、 5 つのプラットフォームで native に動作し、作業にもゲームにも応えられる操作感を目指している。** -[![Release](https://img.shields.io/github/v/release/manhpham90vn/Deskhub?label=release&color=2563eb)](https://github.com/manhpham90vn/Deskhub/releases) -[![License: MIT](https://img.shields.io/github/license/manhpham90vn/Deskhub?color=2563eb)](LICENSE) +[![Release](https://img.shields.io/github/v/release/Bitfaring/Deskhub?label=release&color=2563eb)](https://github.com/Bitfaring/Deskhub/releases) +[![License: MIT](https://img.shields.io/github/license/Bitfaring/Deskhub?color=2563eb)](LICENSE) [![C++20](https://img.shields.io/badge/C%2B%2B-20-2563eb)](CMakeLists.txt) [![Platforms](https://img.shields.io/badge/runs%20on-Windows%20·%20macOS%20·%20Linux%20·%20Android%20·%20iOS-2563eb)](#platforms) -[![ci](https://github.com/manhpham90vn/Deskhub/actions/workflows/ci.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/ci.yml) -[![lint](https://github.com/manhpham90vn/Deskhub/actions/workflows/lint.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/lint.yml) -[![codeql](https://github.com/manhpham90vn/Deskhub/actions/workflows/codeql.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/codeql.yml) -[![nightly](https://github.com/manhpham90vn/Deskhub/actions/workflows/nightly.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/nightly.yml) +[![ci](https://github.com/Bitfaring/Deskhub/actions/workflows/ci.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/ci.yml) +[![lint](https://github.com/Bitfaring/Deskhub/actions/workflows/lint.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/lint.yml) +[![codeql](https://github.com/Bitfaring/Deskhub/actions/workflows/codeql.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/codeql.yml) +[![nightly](https://github.com/Bitfaring/Deskhub/actions/workflows/nightly.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/nightly.yml) **[インストール](#install)** · [source から build](docs/BUILD.ja.md) · [Spec](docs/SPECIFICATION.ja.md) · [Architecture](docs/ARCHITECTURE.ja.md) · @@ -41,10 +41,10 @@ ## 📦 インストール macOS、Ubuntu、Debian、Mint では package manager からインストールできる。Windows では -[Releases](https://github.com/manhpham90vn/Deskhub/releases) からインストーラーを入手する。 +[Releases](https://github.com/Bitfaring/Deskhub/releases) からインストーラーを入手する。 ```bash -brew install --cask manhpham90vn/tap/deskhub # macOS · app + deskhub-cli +brew install --cask bitfaring/tap/deskhub # macOS · app + deskhub-cli ``` Ubuntu / Debian / Mint では、apt repository を一度追加し、app と `deskhub-cli` を @@ -52,8 +52,8 @@ Ubuntu / Debian / Mint では、apt repository を一度追加し、app と `des ```bash sudo install -d /etc/apt/keyrings -curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \ +curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ | sudo tee /etc/apt/sources.list.d/deskhub.list sudo apt update sudo apt install deskhub # デスクトップ app + deskhub-cli @@ -65,7 +65,7 @@ sudo apt install deskhub # デスクトップ app + deskhub-cli をマシンの `PATH` に追加する。Homebrew cask は macOS の `deskhub-cli` を `PATH` にリンク する。dmg の場合は app の中、`Deskhub.app/Contents/MacOS/deskhub-cli` にある。 -その他のプラットフォームは [Releases](https://github.com/manhpham90vn/Deskhub/releases) から: +その他のプラットフォームは [Releases](https://github.com/Bitfaring/Deskhub/releases) から: - **Windows** —— `deskhub-v*-windows-setup.exe`。app はこの形式のみで、`deskhub-cli` を 同梱する @@ -196,7 +196,7 @@ threat model は [`SECURITY.ja.md`](SECURITY.ja.md) を参照。 | [`PRIVACY.ja.md`](PRIVACY.ja.md) ([en](PRIVACY.md) · [vi](PRIVACY.vi.md) · [zh](PRIVACY.zh.md)) | プライバシーポリシー | | [`THIRD_PARTY_NOTICES.ja.md`](THIRD_PARTY_NOTICES.ja.md) ([en](THIRD_PARTY_NOTICES.md) · [vi](THIRD_PARTY_NOTICES.vi.md) · [zh](THIRD_PARTY_NOTICES.zh.md)) | サードパーティ製コンポーネントと license | -バグ報告と意見: [issues](https://github.com/manhpham90vn/Deskhub/issues) —— 端末の機種名 +バグ報告と意見: [issues](https://github.com/Bitfaring/Deskhub/issues) —— 端末の機種名 を添えてほしい。 diff --git a/README.md b/README.md index 884d4db56..abf9a3d03 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,15 @@ **Deskhub lets you view and control your computer from another device. It is open source, runs natively across five platforms, and is built for responsive work and play.** -[![Release](https://img.shields.io/github/v/release/manhpham90vn/Deskhub?label=release&color=2563eb)](https://github.com/manhpham90vn/Deskhub/releases) -[![License: MIT](https://img.shields.io/github/license/manhpham90vn/Deskhub?color=2563eb)](LICENSE) +[![Release](https://img.shields.io/github/v/release/Bitfaring/Deskhub?label=release&color=2563eb)](https://github.com/Bitfaring/Deskhub/releases) +[![License: MIT](https://img.shields.io/github/license/Bitfaring/Deskhub?color=2563eb)](LICENSE) [![C++20](https://img.shields.io/badge/C%2B%2B-20-2563eb)](CMakeLists.txt) [![Platforms](https://img.shields.io/badge/runs%20on-Windows%20·%20macOS%20·%20Linux%20·%20Android%20·%20iOS-2563eb)](#platforms) -[![ci](https://github.com/manhpham90vn/Deskhub/actions/workflows/ci.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/ci.yml) -[![lint](https://github.com/manhpham90vn/Deskhub/actions/workflows/lint.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/lint.yml) -[![codeql](https://github.com/manhpham90vn/Deskhub/actions/workflows/codeql.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/codeql.yml) -[![nightly](https://github.com/manhpham90vn/Deskhub/actions/workflows/nightly.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/nightly.yml) +[![ci](https://github.com/Bitfaring/Deskhub/actions/workflows/ci.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/ci.yml) +[![lint](https://github.com/Bitfaring/Deskhub/actions/workflows/lint.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/lint.yml) +[![codeql](https://github.com/Bitfaring/Deskhub/actions/workflows/codeql.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/codeql.yml) +[![nightly](https://github.com/Bitfaring/Deskhub/actions/workflows/nightly.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/nightly.yml) **[Install](#install)** · [Build from source](docs/BUILD.md) · [Spec](docs/SPECIFICATION.md) · [Architecture](docs/ARCHITECTURE.md) · @@ -41,10 +41,10 @@ runs natively across five platforms, and is built for responsive work and play.* ## 📦 Install Install through a package manager on macOS, Ubuntu, Debian or Mint; on Windows, download -the setup file from [Releases](https://github.com/manhpham90vn/Deskhub/releases): +the setup file from [Releases](https://github.com/Bitfaring/Deskhub/releases): ```bash -brew install --cask manhpham90vn/tap/deskhub # macOS · app + deskhub-cli +brew install --cask bitfaring/tap/deskhub # macOS · app + deskhub-cli ``` On Ubuntu / Debian / Mint, add the apt repository once, then install the one package, @@ -52,8 +52,8 @@ which carries the app and `deskhub-cli`: ```bash sudo install -d /etc/apt/keyrings -curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \ +curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ | sudo tee /etc/apt/sources.list.d/deskhub.list sudo apt update sudo apt install deskhub # desktop app + deskhub-cli @@ -65,7 +65,7 @@ in `/usr/bin`. Windows setup adds Start Menu and Desktop shortcuts and puts its `deskhub-cli` into `PATH`; from the dmg it sits inside the app, at `Deskhub.app/Contents/MacOS/deskhub-cli`. -Everything else is on [Releases](https://github.com/manhpham90vn/Deskhub/releases): +Everything else is on [Releases](https://github.com/Bitfaring/Deskhub/releases): - **Windows** — `deskhub-v*-windows-setup.exe`, the only form the app comes in, with `deskhub-cli` inside @@ -196,7 +196,7 @@ authoritative one. | [`PRIVACY.md`](PRIVACY.md) ([vi](PRIVACY.vi.md) · [zh](PRIVACY.zh.md) · [ja](PRIVACY.ja.md)) | Privacy policy | | [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md) ([vi](THIRD_PARTY_NOTICES.vi.md) · [zh](THIRD_PARTY_NOTICES.zh.md) · [ja](THIRD_PARTY_NOTICES.ja.md)) | Third-party components and licences | -Bugs and feedback: [issues](https://github.com/manhpham90vn/Deskhub/issues) — include your +Bugs and feedback: [issues](https://github.com/Bitfaring/Deskhub/issues) — include your device model. diff --git a/README.vi.md b/README.vi.md index 1b20febb6..b5b98b40f 100644 --- a/README.vi.md +++ b/README.vi.md @@ -9,15 +9,15 @@ **Deskhub giúp bạn xem và điều khiển máy tính từ một thiết bị khác. App mã nguồn mở, chạy native trên năm nền tảng và hướng tới trải nghiệm mượt mà khi làm việc hoặc chơi game.** -[![Release](https://img.shields.io/github/v/release/manhpham90vn/Deskhub?label=release&color=2563eb)](https://github.com/manhpham90vn/Deskhub/releases) -[![License: MIT](https://img.shields.io/github/license/manhpham90vn/Deskhub?color=2563eb)](LICENSE) +[![Release](https://img.shields.io/github/v/release/Bitfaring/Deskhub?label=release&color=2563eb)](https://github.com/Bitfaring/Deskhub/releases) +[![License: MIT](https://img.shields.io/github/license/Bitfaring/Deskhub?color=2563eb)](LICENSE) [![C++20](https://img.shields.io/badge/C%2B%2B-20-2563eb)](CMakeLists.txt) [![Platforms](https://img.shields.io/badge/ch%E1%BA%A1y%20tr%C3%AAn-Windows%20·%20macOS%20·%20Linux%20·%20Android%20·%20iOS-2563eb)](#platforms) -[![ci](https://github.com/manhpham90vn/Deskhub/actions/workflows/ci.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/ci.yml) -[![lint](https://github.com/manhpham90vn/Deskhub/actions/workflows/lint.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/lint.yml) -[![codeql](https://github.com/manhpham90vn/Deskhub/actions/workflows/codeql.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/codeql.yml) -[![nightly](https://github.com/manhpham90vn/Deskhub/actions/workflows/nightly.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/nightly.yml) +[![ci](https://github.com/Bitfaring/Deskhub/actions/workflows/ci.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/ci.yml) +[![lint](https://github.com/Bitfaring/Deskhub/actions/workflows/lint.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/lint.yml) +[![codeql](https://github.com/Bitfaring/Deskhub/actions/workflows/codeql.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/codeql.yml) +[![nightly](https://github.com/Bitfaring/Deskhub/actions/workflows/nightly.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/nightly.yml) **[Cài đặt](#install)** · [Build từ source](docs/BUILD.vi.md) · [Spec](docs/SPECIFICATION.vi.md) · [Architecture](docs/ARCHITECTURE.vi.md) · @@ -41,10 +41,10 @@ chạy native trên năm nền tảng và hướng tới trải nghiệm mượt ## 📦 Cài đặt Có thể cài Deskhub qua package manager trên macOS, Ubuntu, Debian hoặc Mint; trên Windows, -tải bộ cài từ [Releases](https://github.com/manhpham90vn/Deskhub/releases): +tải bộ cài từ [Releases](https://github.com/Bitfaring/Deskhub/releases): ```bash -brew install --cask manhpham90vn/tap/deskhub # macOS · app + deskhub-cli +brew install --cask bitfaring/tap/deskhub # macOS · app + deskhub-cli ``` Trên Ubuntu / Debian / Mint, thêm apt repository một lần, sau đó cài gói duy nhất, trong @@ -52,8 +52,8 @@ Trên Ubuntu / Debian / Mint, thêm apt repository một lần, sau đó cài g ```bash sudo install -d /etc/apt/keyrings -curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \ +curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ | sudo tee /etc/apt/sources.list.d/deskhub.list sudo apt update sudo apt install deskhub # app desktop + deskhub-cli @@ -64,7 +64,7 @@ Gói này thêm Deskhub vào menu ứng dụng và cài `deskhub` cùng `deskhub cài đặt (có `deskhub-cli.exe`) vào `PATH` của máy. Cask Homebrew link `deskhub-cli` trên macOS vào `PATH`; với dmg thì nó nằm trong app, ở `Deskhub.app/Contents/MacOS/deskhub-cli`. -Các nền tảng còn lại lấy trên [Releases](https://github.com/manhpham90vn/Deskhub/releases): +Các nền tảng còn lại lấy trên [Releases](https://github.com/Bitfaring/Deskhub/releases): - **Windows** — `deskhub-v*-windows-setup.exe`, dạng duy nhất của app, có sẵn `deskhub-cli` bên trong @@ -194,7 +194,7 @@ Mọi tài liệu đều được xuất bản bằng tiếng Anh, kèm bản d | [`PRIVACY.vi.md`](PRIVACY.vi.md) ([en](PRIVACY.md) · [zh](PRIVACY.zh.md) · [ja](PRIVACY.ja.md)) | Chính sách quyền riêng tư | | [`THIRD_PARTY_NOTICES.vi.md`](THIRD_PARTY_NOTICES.vi.md) ([en](THIRD_PARTY_NOTICES.md) · [zh](THIRD_PARTY_NOTICES.zh.md) · [ja](THIRD_PARTY_NOTICES.ja.md)) | Thành phần bên thứ ba và license | -Báo lỗi và góp ý: [issues](https://github.com/manhpham90vn/Deskhub/issues) — vui lòng ghi +Báo lỗi và góp ý: [issues](https://github.com/Bitfaring/Deskhub/issues) — vui lòng ghi kèm model thiết bị. diff --git a/README.zh.md b/README.zh.md index 79915d570..c48533ef8 100644 --- a/README.zh.md +++ b/README.zh.md @@ -9,15 +9,15 @@ **Deskhub 让你从另一台设备查看并操作自己的电脑。它开源、在五个平台上原生运行, 兼顾日常工作与远程游戏所需的响应速度。** -[![Release](https://img.shields.io/github/v/release/manhpham90vn/Deskhub?label=release&color=2563eb)](https://github.com/manhpham90vn/Deskhub/releases) -[![License: MIT](https://img.shields.io/github/license/manhpham90vn/Deskhub?color=2563eb)](LICENSE) +[![Release](https://img.shields.io/github/v/release/Bitfaring/Deskhub?label=release&color=2563eb)](https://github.com/Bitfaring/Deskhub/releases) +[![License: MIT](https://img.shields.io/github/license/Bitfaring/Deskhub?color=2563eb)](LICENSE) [![C++20](https://img.shields.io/badge/C%2B%2B-20-2563eb)](CMakeLists.txt) [![Platforms](https://img.shields.io/badge/runs%20on-Windows%20·%20macOS%20·%20Linux%20·%20Android%20·%20iOS-2563eb)](#platforms) -[![ci](https://github.com/manhpham90vn/Deskhub/actions/workflows/ci.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/ci.yml) -[![lint](https://github.com/manhpham90vn/Deskhub/actions/workflows/lint.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/lint.yml) -[![codeql](https://github.com/manhpham90vn/Deskhub/actions/workflows/codeql.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/codeql.yml) -[![nightly](https://github.com/manhpham90vn/Deskhub/actions/workflows/nightly.yml/badge.svg)](https://github.com/manhpham90vn/Deskhub/actions/workflows/nightly.yml) +[![ci](https://github.com/Bitfaring/Deskhub/actions/workflows/ci.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/ci.yml) +[![lint](https://github.com/Bitfaring/Deskhub/actions/workflows/lint.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/lint.yml) +[![codeql](https://github.com/Bitfaring/Deskhub/actions/workflows/codeql.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/codeql.yml) +[![nightly](https://github.com/Bitfaring/Deskhub/actions/workflows/nightly.yml/badge.svg)](https://github.com/Bitfaring/Deskhub/actions/workflows/nightly.yml) **[安装](#install)** · [从 source 构建](docs/BUILD.zh.md) · [Spec](docs/SPECIFICATION.zh.md) · [Architecture](docs/ARCHITECTURE.zh.md) · @@ -41,10 +41,10 @@ ## 📦 安装 在 macOS、Ubuntu、Debian 或 Mint 上,可以通过 package manager 安装;Windows 请从 -[Releases](https://github.com/manhpham90vn/Deskhub/releases) 下载安装程序: +[Releases](https://github.com/Bitfaring/Deskhub/releases) 下载安装程序: ```bash -brew install --cask manhpham90vn/tap/deskhub # macOS · app + deskhub-cli +brew install --cask bitfaring/tap/deskhub # macOS · app + deskhub-cli ``` 在 Ubuntu / Debian / Mint 上,添加一次 apt repository,再安装这一个软件包,其中同时包含 @@ -52,8 +52,8 @@ brew install --cask manhpham90vn/tap/deskhub # macOS · app + deskhub-cli ```bash sudo install -d /etc/apt/keyrings -curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \ +curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ | sudo tee /etc/apt/sources.list.d/deskhub.list sudo apt update sudo apt install deskhub # 桌面应用 + deskhub-cli @@ -64,7 +64,7 @@ Windows 安装程序创建开始菜单和桌面快捷方式,并把安装文件 机器 `PATH`。Homebrew cask 会把 macOS 的 `deskhub-cli` 链接到 `PATH`;使用 dmg 时它位于 app 内部的 `Deskhub.app/Contents/MacOS/deskhub-cli`。 -其余平台请从 [Releases](https://github.com/manhpham90vn/Deskhub/releases) 获取: +其余平台请从 [Releases](https://github.com/Bitfaring/Deskhub/releases) 获取: - **Windows** —— `deskhub-v*-windows-setup.exe`,应用仅此一种形式,内含 `deskhub-cli` - **macOS** —— `deskhub-v*-macos.dmg`,`deskhub-cli` 在 app 内部 @@ -192,7 +192,7 @@ passcode,没有 discovery,也没有任何放陌生人进来的开关。请 | [`PRIVACY.zh.md`](PRIVACY.zh.md) ([en](PRIVACY.md) · [vi](PRIVACY.vi.md) · [ja](PRIVACY.ja.md)) | 隐私政策 | | [`THIRD_PARTY_NOTICES.zh.md`](THIRD_PARTY_NOTICES.zh.md) ([en](THIRD_PARTY_NOTICES.md) · [vi](THIRD_PARTY_NOTICES.vi.md) · [ja](THIRD_PARTY_NOTICES.ja.md)) | 第三方组件与 license | -问题反馈:[issues](https://github.com/manhpham90vn/Deskhub/issues) —— 请附上设备型号。 +问题反馈:[issues](https://github.com/Bitfaring/Deskhub/issues) —— 请附上设备型号。 diff --git a/SECURITY.ja.md b/SECURITY.ja.md index 6fa480cc8..7875eb6a7 100644 --- a/SECURITY.ja.md +++ b/SECURITY.ja.md @@ -482,7 +482,7 @@ terminal でも Windows の log に key code を残さないこと、所有者 - **メール:** manhpv151090@gmail.com —— 件名に `[Deskhub security]` を記載すること。 - **または:** GitHub で[非公開の security - advisory](https://github.com/manhpham90vn/Deskhub/security/advisories/new) を作成する。 + advisory](https://github.com/Bitfaring/Deskhub/security/advisories/new) を作成する。 実行環境(OS、タイトルバーまたは [`VERSION`](VERSION) の Deskhub のバージョン)、実施 した操作、観測された結果を記載していただきたい。proof of concept があると有用である。 @@ -500,7 +500,7 @@ packet による memory corruption や crash、データが予期せず端末外 ## サポート対象のバージョン -サポート対象は [Releases ページ](https://github.com/manhpham90vn/Deskhub/releases) の +サポート対象は [Releases ページ](https://github.com/Bitfaring/Deskhub/releases) の 最新 release のみである。修正は新しい release で提供し、旧バージョンへの backport は 行わない。 diff --git a/SECURITY.md b/SECURITY.md index fe9099618..e9ff4eaad 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -483,7 +483,7 @@ in their spare time. Treat the current state as the state, not the plan. Please report security issues **privately** — not as a public GitHub issue. - **Email:** manhpv151090@gmail.com — put `[Deskhub security]` in the subject. -- **Or:** open a [private security advisory](https://github.com/manhpham90vn/Deskhub/security/advisories/new) +- **Or:** open a [private security advisory](https://github.com/Bitfaring/Deskhub/security/advisories/new) on GitHub. Please include what you were running (OS, Deskhub version from the title bar or @@ -504,7 +504,7 @@ mitigation. ## Supported versions -Only the most recent release on the [Releases page](https://github.com/manhpham90vn/Deskhub/releases) +Only the most recent release on the [Releases page](https://github.com/Bitfaring/Deskhub/releases) is supported. Fixes ship in a new release; there are no backports to older versions. ## Scope diff --git a/SECURITY.vi.md b/SECURITY.vi.md index a86ffa14e..ad283095d 100644 --- a/SECURITY.vi.md +++ b/SECURITY.vi.md @@ -473,7 +473,7 @@ Vui lòng báo cáo các vấn đề bảo mật **một cách riêng tư**, kh GitHub. - **Email:** manhpv151090@gmail.com — ghi `[Deskhub security]` trong tiêu đề. -- **Hoặc:** mở một [security advisory riêng tư](https://github.com/manhpham90vn/Deskhub/security/advisories/new) +- **Hoặc:** mở một [security advisory riêng tư](https://github.com/Bitfaring/Deskhub/security/advisories/new) trên GitHub. Vui lòng nêu rõ môi trường đang chạy (OS, phiên bản Deskhub trên thanh tiêu đề hoặc trong @@ -496,7 +496,7 @@ giảm nhẹ đã phát hành. ## Các phiên bản được hỗ trợ Chỉ bản release mới nhất trên -[trang Releases](https://github.com/manhpham90vn/Deskhub/releases) được hỗ trợ. Bản vá +[trang Releases](https://github.com/Bitfaring/Deskhub/releases) được hỗ trợ. Bản vá được phát hành kèm một release mới; không có backport cho các phiên bản cũ. ## Phạm vi diff --git a/SECURITY.zh.md b/SECURITY.zh.md index 51d261959..f2cac9581 100644 --- a/SECURITY.zh.md +++ b/SECURITY.zh.md @@ -399,7 +399,7 @@ token 只会被 client 发送给码中 fingerprint 所指的那台机器;随 - **邮件:** manhpv151090@gmail.com —— 请在标题中注明 `[Deskhub security]`。 - **或者:** 在 GitHub 上创建[非公开的 security - advisory](https://github.com/manhpham90vn/Deskhub/security/advisories/new)。 + advisory](https://github.com/Bitfaring/Deskhub/security/advisories/new)。 请注明运行环境(OS、标题栏或 [`VERSION`](VERSION) 中的 Deskhub 版本)、执行的操作,以及 观察到的结果。提供 proof of concept 会很有帮助。 @@ -416,7 +416,7 @@ release notes 的致谢。 ## 支持的版本 -仅支持 [Releases 页面](https://github.com/manhpham90vn/Deskhub/releases)上的最新 +仅支持 [Releases 页面](https://github.com/Bitfaring/Deskhub/releases)上的最新 release。修复随新的 release 发布,不向旧版本 backport。 ## 适用范围 diff --git a/client/ios/fastlane/Matchfile b/client/ios/fastlane/Matchfile index 55785def6..3b469a9cb 100644 --- a/client/ios/fastlane/Matchfile +++ b/client/ios/fastlane/Matchfile @@ -1,4 +1,4 @@ -git_url(ENV["MATCH_GIT_URL"] || "git@github.com:manhpham90vn/Deskhub_certificate.git") +git_url(ENV["MATCH_GIT_URL"] || "git@github.com:Bitfaring/certificate.git") storage_mode("git") git_branch("main") type("appstore") diff --git a/client/ios/fastlane/metadata/en-US/marketing_url.txt b/client/ios/fastlane/metadata/en-US/marketing_url.txt index 458b5c965..a34aedcf5 100644 --- a/client/ios/fastlane/metadata/en-US/marketing_url.txt +++ b/client/ios/fastlane/metadata/en-US/marketing_url.txt @@ -1 +1 @@ -https://github.com/manhpham90vn/Deskhub +https://github.com/Bitfaring/Deskhub diff --git a/client/ios/fastlane/metadata/en-US/privacy_url.txt b/client/ios/fastlane/metadata/en-US/privacy_url.txt index cc0c9c00b..176c78f9d 100644 --- a/client/ios/fastlane/metadata/en-US/privacy_url.txt +++ b/client/ios/fastlane/metadata/en-US/privacy_url.txt @@ -1 +1 @@ -https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md +https://github.com/Bitfaring/Deskhub/blob/main/PRIVACY.md diff --git a/client/ios/fastlane/metadata/en-US/support_url.txt b/client/ios/fastlane/metadata/en-US/support_url.txt index 458b5c965..a34aedcf5 100644 --- a/client/ios/fastlane/metadata/en-US/support_url.txt +++ b/client/ios/fastlane/metadata/en-US/support_url.txt @@ -1 +1 @@ -https://github.com/manhpham90vn/Deskhub +https://github.com/Bitfaring/Deskhub diff --git a/client/ios/fastlane/metadata/review_information/notes.txt b/client/ios/fastlane/metadata/review_information/notes.txt index 5e979e02a..66ea6db69 100644 --- a/client/ios/fastlane/metadata/review_information/notes.txt +++ b/client/ios/fastlane/metadata/review_information/notes.txt @@ -1,12 +1,12 @@ Deskhub provides remote desktop, terminal and file transfer for a computer the user owns or is authorized to access. The iOS client connects directly over QUIC/TLS to the Deskhub host installed on that computer. There is no account, login or Deskhub-operated connection server; demo credentials do not apply. Programs and shell commands run on the host computer. OWNERSHIP AND COMPATIBILITY -I, Manh Pham, independently develop both the Deskhub iOS client and desktop host. Source for the submitted version: https://github.com/manhpham90vn/Deskhub/tree/v9.3.7 . The repository includes LICENSE and THIRD_PARTY_NOTICES.md. +I, Manh Pham, independently develop both the Deskhub iOS client and desktop host. Source for the submitted version: https://github.com/Bitfaring/Deskhub/tree/v9.3.7 . The repository includes LICENSE and THIRD_PARTY_NOTICES.md. References to macOS describe host operating-system compatibility. Deskhub is not affiliated with, sponsored by or endorsed by Apple. On macOS, the Deskhub host uses ScreenCaptureKit for screen capture and requests Screen Recording and Accessibility permissions. Remote screen content comes from the connected user's computer during the session. For the October 31 review: the English subtitle in this listing is "Remote Desktop & Terminal"; "Mac" is omitted from the subtitle and from both locales' keywords. If an item still requires rights documentation under 5.2.1, please identify the specific content, asset or hardware integration so I can address it precisely. HOW TO TEST -1. On a computer on the same local network as the iPhone, install Deskhub 9 or newer from https://github.com/manhpham90vn/Deskhub/releases . Supported hosts: Windows 10+ x64, macOS 14+, or a current Linux desktop (glibc 2.35+). On Windows, allow the firewall setup; on macOS, grant Screen Recording and Accessibility when prompted. +1. On a computer on the same local network as the iPhone, install Deskhub 9 or newer from https://github.com/Bitfaring/Deskhub/releases . Supported hosts: Windows 10+ x64, macOS 14+, or a current Linux desktop (glibc 2.35+). On Windows, allow the firewall setup; on macOS, grant Screen Recording and Accessibility when prompted. 2. Open Host, select a display, Terminal and File transfer, then start sharing. 3. Press Show QR code on the computer. In the iOS Client page, tap Scan QR code. Scanning authorizes the device and trusts the host. Alternatively, enter the computer's IP address, compare its fingerprint with the computer's Devices page and tap Trust and connect; then approve the request on the computer. The client retries for two minutes while awaiting approval. A changed host key prevents reconnection. 4. Open Remote desktop, Terminal or File transfer. In Remote desktop, drag to move the pointer, tap to click, double-tap to right-click, hold and drag to select, pinch to zoom and drag with two fingers to scroll. Tap Keys for text and modifier keys. Terminal opens a shell on the computer; File transfer uses the system file/photo pickers. diff --git a/client/ios/fastlane/metadata/vi/marketing_url.txt b/client/ios/fastlane/metadata/vi/marketing_url.txt index 458b5c965..a34aedcf5 100644 --- a/client/ios/fastlane/metadata/vi/marketing_url.txt +++ b/client/ios/fastlane/metadata/vi/marketing_url.txt @@ -1 +1 @@ -https://github.com/manhpham90vn/Deskhub +https://github.com/Bitfaring/Deskhub diff --git a/client/ios/fastlane/metadata/vi/privacy_url.txt b/client/ios/fastlane/metadata/vi/privacy_url.txt index cc0c9c00b..176c78f9d 100644 --- a/client/ios/fastlane/metadata/vi/privacy_url.txt +++ b/client/ios/fastlane/metadata/vi/privacy_url.txt @@ -1 +1 @@ -https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md +https://github.com/Bitfaring/Deskhub/blob/main/PRIVACY.md diff --git a/client/ios/fastlane/metadata/vi/support_url.txt b/client/ios/fastlane/metadata/vi/support_url.txt index 458b5c965..a34aedcf5 100644 --- a/client/ios/fastlane/metadata/vi/support_url.txt +++ b/client/ios/fastlane/metadata/vi/support_url.txt @@ -1 +1 @@ -https://github.com/manhpham90vn/Deskhub +https://github.com/Bitfaring/Deskhub diff --git a/client/macos/fastlane/Matchfile b/client/macos/fastlane/Matchfile index ddbfeb3ca..04b465fae 100644 --- a/client/macos/fastlane/Matchfile +++ b/client/macos/fastlane/Matchfile @@ -1,4 +1,4 @@ -git_url(ENV["MATCH_GIT_URL"] || "git@github.com:manhpham90vn/Deskhub_certificate.git") +git_url(ENV["MATCH_GIT_URL"] || "git@github.com:Bitfaring/certificate.git") storage_mode("git") git_branch("main") type("developer_id") diff --git a/core/include/deskhub/ui/Strings.h b/core/include/deskhub/ui/Strings.h index 6261c50f3..dbe400808 100644 --- a/core/include/deskhub/ui/Strings.h +++ b/core/include/deskhub/ui/Strings.h @@ -13,7 +13,7 @@ namespace deskhub::ui { inline constexpr const char* kAppVersion = DESKHUB_VERSION; -inline constexpr const char* kProjectUrl = "https://github.com/manhpham90vn/Deskhub"; +inline constexpr const char* kProjectUrl = "https://github.com/Bitfaring/Deskhub"; inline constexpr const char* kProjectLinkLabel = "GitHub"; inline constexpr const char* kAppTitle = "Deskhub - stream & remotely control a machine"; inline constexpr const char* kHostIpIntro = diff --git a/docs/BUILD.ja.md b/docs/BUILD.ja.md index 0fe18dadc..d0ef42a44 100644 --- a/docs/BUILD.ja.md +++ b/docs/BUILD.ja.md @@ -8,7 +8,7 @@ 本書は [`BUILD.md`](BUILD.md) の翻訳。食い違いがある場合は英語版が正文。 ```bash -git clone --recurse-submodules https://github.com/manhpham90vn/Deskhub.git +git clone --recurse-submodules https://github.com/Bitfaring/Deskhub.git cd Deskhub make bootstrap # 一度だけ: この OS 向けの toolchain と依存関係 make test # core suite を build し、オフラインで実行 @@ -382,12 +382,12 @@ GitHub Release の作成後、`deploy.yml` は tag を `publish-packages.yml` | Job | 公開先 | `stg` environment の secret | | --- | --- | --- | -| `homebrew` | `manhpham90vn/homebrew-tap` の `Casks/deskhub.rb`。`packaging/homebrew/deskhub.rb` から生成する | `HOMEBREW_TAP_TOKEN` —— tap に Contents: write を持つ fine-grained PAT | +| `homebrew` | `Bitfaring/homebrew-tap` の `Casks/deskhub.rb`。`packaging/homebrew/deskhub.rb` から生成する | `HOMEBREW_TAP_TOKEN` —— tap に Contents: write を持つ fine-grained PAT | | `build-apt-repo` → `deploy-apt-repo` | 直近 3 つの release の deb を収めた署名付き apt repository。GitHub Pages の `/apt` に置く(`scripts/build-apt-repo.sh`) | `APT_GPG_PRIVATE_KEY`、`APT_GPG_PASSPHRASE` | いずれも、それを実行する最初の tag より前に一度だけ設定が必要である。 -- **Homebrew** —— public repository `manhpham90vn/homebrew-tap` を作成する。中身は job が +- **Homebrew** —— public repository `Bitfaring/homebrew-tap` を作成する。中身は job が 書き込む。 - **apt** —— signing key を一度だけ生成し、そのファイルを `APT_GPG_PRIVATE_KEY` として 保存し、オフラインのバックアップも残す。全ユーザーがこの key を信頼しているため、 @@ -459,4 +459,4 @@ GitHub Release の作成後、`deploy.yml` は tag を `publish-packages.yml` permission が正しく動作しない** —— `make reset-macos-permissions` を実行し、残す 1 つの コピーに改めて許可を与える。 -バグ報告と質問: [issues](https://github.com/manhpham90vn/Deskhub/issues)。 +バグ報告と質問: [issues](https://github.com/Bitfaring/Deskhub/issues)。 diff --git a/docs/BUILD.md b/docs/BUILD.md index aee84a5c1..5545ab495 100644 --- a/docs/BUILD.md +++ b/docs/BUILD.md @@ -6,7 +6,7 @@ This guide covers building Deskhub, running its tests and preparing a release. I want to install the app without building it, start with [`INSTALL.md`](INSTALL.md). ```bash -git clone --recurse-submodules https://github.com/manhpham90vn/Deskhub.git +git clone --recurse-submodules https://github.com/Bitfaring/Deskhub.git cd Deskhub make bootstrap # once: toolchain + dependencies for this OS make test # build and run the core suite offline @@ -372,12 +372,12 @@ scripts, say — run it by hand: `gh workflow run publish-packages.yml -f tag=vX | Job | Publishes | Secret in the `stg` environment | | --- | --- | --- | -| `homebrew` | `Casks/deskhub.rb` in `manhpham90vn/homebrew-tap`, rendered from `packaging/homebrew/deskhub.rb` | `HOMEBREW_TAP_TOKEN` — fine-grained PAT, Contents: write on the tap | +| `homebrew` | `Casks/deskhub.rb` in `Bitfaring/homebrew-tap`, rendered from `packaging/homebrew/deskhub.rb` | `HOMEBREW_TAP_TOKEN` — fine-grained PAT, Contents: write on the tap | | `build-apt-repo` → `deploy-apt-repo` | a signed apt repository holding the debs of the last three releases, on GitHub Pages under `/apt` (`scripts/build-apt-repo.sh`) | `APT_GPG_PRIVATE_KEY`, `APT_GPG_PASSPHRASE` | Each needs a one-time setup before the first tag that runs it: -- **Homebrew** — create the public repository `manhpham90vn/homebrew-tap`; the job fills it. +- **Homebrew** — create the public repository `Bitfaring/homebrew-tap`; the job fills it. - **apt** — generate the signing key once, store the file as `APT_GPG_PRIVATE_KEY` and keep an offline backup. Every user trusts this key: replacing it breaks their `apt update`. @@ -444,4 +444,4 @@ A green local `make test` + `make lint` is not the whole story. On every pull re and a downloaded build** — `make reset-macos-permissions`, then grant them again to the one copy you keep. -Bugs and questions: [issues](https://github.com/manhpham90vn/Deskhub/issues). +Bugs and questions: [issues](https://github.com/Bitfaring/Deskhub/issues). diff --git a/docs/BUILD.vi.md b/docs/BUILD.vi.md index 47369a761..902751e14 100644 --- a/docs/BUILD.vi.md +++ b/docs/BUILD.vi.md @@ -9,7 +9,7 @@ cài app để sử dụng, hãy bắt đầu từ [`INSTALL.vi.md`](INSTALL.vi. chuẩn. ```bash -git clone --recurse-submodules https://github.com/manhpham90vn/Deskhub.git +git clone --recurse-submodules https://github.com/Bitfaring/Deskhub.git cd Deskhub make bootstrap # một lần: toolchain và dependency cho OS hiện tại make test # build và chạy core suite ở chế độ offline @@ -373,12 +373,12 @@ một trong các script này — chạy tay: `gh workflow run publish-packages.y | Job | Publish | Secret trong environment `stg` | | --- | --- | --- | -| `homebrew` | `Casks/deskhub.rb` trong `manhpham90vn/homebrew-tap`, sinh từ `packaging/homebrew/deskhub.rb` | `HOMEBREW_TAP_TOKEN` — fine-grained PAT, Contents: write trên tap | +| `homebrew` | `Casks/deskhub.rb` trong `Bitfaring/homebrew-tap`, sinh từ `packaging/homebrew/deskhub.rb` | `HOMEBREW_TAP_TOKEN` — fine-grained PAT, Contents: write trên tap | | `build-apt-repo` → `deploy-apt-repo` | apt repository đã ký, chứa deb của ba release gần nhất, trên GitHub Pages tại `/apt` (`scripts/build-apt-repo.sh`) | `APT_GPG_PRIVATE_KEY`, `APT_GPG_PASSPHRASE` | Mỗi job cần thiết lập một lần trước tag đầu tiên chạy nó: -- **Homebrew** — tạo repository public `manhpham90vn/homebrew-tap`; job sẽ tự điền nội dung. +- **Homebrew** — tạo repository public `Bitfaring/homebrew-tap`; job sẽ tự điền nội dung. - **apt** — tạo signing key một lần, lưu file đó làm `APT_GPG_PRIVATE_KEY` và giữ một bản backup offline. Mọi người dùng đều trust key này: thay key sẽ làm hỏng `apt update` của họ. @@ -447,4 +447,4 @@ request, CI thực hiện: lại giữa bản build tại máy và bản tải về** — chạy `make reset-macos-permissions`, rồi cấp lại quyền cho đúng một bản sao mà bạn giữ lại. -Báo lỗi và đặt câu hỏi: [issues](https://github.com/manhpham90vn/Deskhub/issues). +Báo lỗi và đặt câu hỏi: [issues](https://github.com/Bitfaring/Deskhub/issues). diff --git a/docs/BUILD.zh.md b/docs/BUILD.zh.md index d0ef0f8f4..2d6960ce8 100644 --- a/docs/BUILD.zh.md +++ b/docs/BUILD.zh.md @@ -8,7 +8,7 @@ 本文件是 [`BUILD.md`](BUILD.md) 的译本;若两者有出入,以英文版为准。 ```bash -git clone --recurse-submodules https://github.com/manhpham90vn/Deskhub.git +git clone --recurse-submodules https://github.com/Bitfaring/Deskhub.git cd Deskhub make bootstrap # 执行一次: 当前 OS 的 toolchain 与依赖 make test # build 并离线运行 core suite @@ -341,12 +341,12 @@ GitHub Release 创建后,`deploy.yml` 将 tag 交给 `publish-packages.yml`, | Job | 发布内容 | `stg` environment 中的 secret | | --- | --- | --- | -| `homebrew` | `manhpham90vn/homebrew-tap` 中的 `Casks/deskhub.rb`,由 `packaging/homebrew/deskhub.rb` 生成 | `HOMEBREW_TAP_TOKEN` —— 对该 tap 有 Contents: write 的 fine-grained PAT | +| `homebrew` | `Bitfaring/homebrew-tap` 中的 `Casks/deskhub.rb`,由 `packaging/homebrew/deskhub.rb` 生成 | `HOMEBREW_TAP_TOKEN` —— 对该 tap 有 Contents: write 的 fine-grained PAT | | `build-apt-repo` → `deploy-apt-repo` | 已签名的 apt repository,包含最近三个 release 的 deb,位于 GitHub Pages 的 `/apt`(`scripts/build-apt-repo.sh`) | `APT_GPG_PRIVATE_KEY`、`APT_GPG_PASSPHRASE` | 每个 job 在首次运行它的 tag 之前都需要一次性设置: -- **Homebrew** —— 创建 public repository `manhpham90vn/homebrew-tap`,由 job 填充内容。 +- **Homebrew** —— 创建 public repository `Bitfaring/homebrew-tap`,由 job 填充内容。 - **apt** —— 生成一次 signing key,将该文件存为 `APT_GPG_PRIVATE_KEY`,并保留离线备份。 所有用户都信任这把 key:更换它会让他们的 `apt update` 失败。 @@ -410,4 +410,4 @@ GitHub Release 创建后,`deploy.yml` 将 tag 交给 `publish-packages.yml`, - **重新构建后,或在本地 build 与下载版本之间切换后,macOS 的 permission 行为异常** —— 执行 `make reset-macos-permissions`,然后只对保留的那一份副本重新授权。 -问题与提问:[issues](https://github.com/manhpham90vn/Deskhub/issues)。 +问题与提问:[issues](https://github.com/Bitfaring/Deskhub/issues)。 diff --git a/docs/INSTALL.ja.md b/docs/INSTALL.ja.md index d5f541ecc..24fb33691 100644 --- a/docs/INSTALL.ja.md +++ b/docs/INSTALL.ja.md @@ -6,7 +6,7 @@ checkout する必要はない。自分でコンパイルする場合は [`BUILD.ja.md`](BUILD.ja.md) を参照。 デスクトップのインストーラーは -[Releases ページ](https://github.com/manhpham90vn/Deskhub/releases) から入手できる。 +[Releases ページ](https://github.com/Bitfaring/Deskhub/releases) から入手できる。 Android 版は Google Play で、iOS の beta は TestFlight で配布している。 本書は [`INSTALL.md`](INSTALL.md) の翻訳。食い違いがある場合は英語版が正文。 @@ -89,7 +89,7 @@ Deskhub には macOS 14 Sonoma 以降が必要である。 Homebrew からもインストールでき、以後は `brew upgrade` で最新に保たれる。 ```bash -brew install --cask manhpham90vn/tap/deskhub +brew install --cask bitfaring/tap/deskhub ``` 画面を host するには macOS の permission が 2 つ必要である。いずれも app の @@ -156,8 +156,8 @@ Debian 12 以降である。 ```bash sudo install -d /etc/apt/keyrings -curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \ +curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ | sudo tee /etc/apt/sources.list.d/deskhub.list sudo apt update && sudo apt install deskhub ``` @@ -227,7 +227,7 @@ mouse と keyboard はここから inject される。deb と rpm は udev rule デスクトップの再ログインも必要ない。 ```bash -curl -fsSL https://raw.githubusercontent.com/manhpham90vn/Deskhub/main/scripts/setup-uinput.sh | sudo bash +curl -fsSL https://raw.githubusercontent.com/Bitfaring/Deskhub/main/scripts/setup-uinput.sh | sudo bash ``` sudo に渡す前に内容を確認したい場合は、先に @@ -616,5 +616,5 @@ host は信頼されたままである。変わるのはデバイスがサイン - **Linux: ポインタが動かない** —— 要件 3 の `/dev/uinput` rule が導入されていない。 - **macOS: 画面が黒い、または input が効かない** —— Settings ページで Screen Recording と Accessibility を確認する。 -- **その他の場合** —— [issue](https://github.com/manhpham90vn/Deskhub/issues) を作成し、 +- **その他の場合** —— [issue](https://github.com/Bitfaring/Deskhub/issues) を作成し、 端末の機種、OS のバージョン、Host または Client ページの status 行の内容を添えてほしい。 diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 6d3d8a611..1a83ac8a3 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -6,7 +6,7 @@ Choose your platform below to install a prebuilt release. You do not need to che the source code. If you want to build Deskhub yourself, see [`BUILD.md`](BUILD.md). Desktop installers are on the -[Releases page](https://github.com/manhpham90vn/Deskhub/releases). The Android app is on +[Releases page](https://github.com/Bitfaring/Deskhub/releases). The Android app is on Google Play, and the iOS beta on TestFlight. | Platform | File | How to install | @@ -85,7 +85,7 @@ warning. Or through Homebrew, which `brew upgrade` then keeps current: ```bash -brew install --cask manhpham90vn/tap/deskhub +brew install --cask bitfaring/tap/deskhub ``` Hosting a screen needs two macOS permissions, both requested from the **Settings** page @@ -153,8 +153,8 @@ Debian 12 and newer: ```bash sudo install -d /etc/apt/keyrings -curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \ +curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ | sudo tee /etc/apt/sources.list.d/deskhub.list sudo apt update && sudo apt install deskhub ``` @@ -224,7 +224,7 @@ for you — nothing to do. On a build from source, one command sets it up, with and no re-login on the desktop: ```bash -curl -fsSL https://raw.githubusercontent.com/manhpham90vn/Deskhub/main/scripts/setup-uinput.sh | sudo bash +curl -fsSL https://raw.githubusercontent.com/Bitfaring/Deskhub/main/scripts/setup-uinput.sh | sudo bash ``` Prefer reading before piping to sudo? Download @@ -616,5 +616,5 @@ not carried over: let each device in and trust each host again, as described abo - **macOS: a black screen or dead input** — check Screen Recording and Accessibility on the Settings page. - **Still stuck** — open an - [issue](https://github.com/manhpham90vn/Deskhub/issues) and include your device model, + [issue](https://github.com/Bitfaring/Deskhub/issues) and include your device model, OS version and what the status line on the Host or Client page says. diff --git a/docs/INSTALL.vi.md b/docs/INSTALL.vi.md index abc2ceed7..3f58e1175 100644 --- a/docs/INSTALL.vi.md +++ b/docs/INSTALL.vi.md @@ -6,7 +6,7 @@ Chọn nền tảng của bạn bên dưới để cài bản release đã build source. Nếu muốn tự compile Deskhub, xem [`BUILD.vi.md`](BUILD.vi.md). Bộ cài desktop nằm trên -[trang Releases](https://github.com/manhpham90vn/Deskhub/releases). Bản Android có trên +[trang Releases](https://github.com/Bitfaring/Deskhub/releases). Bản Android có trên Google Play, còn bản beta iOS trên TestFlight. Đây là bản dịch của [`INSTALL.md`](INSTALL.md). Nếu hai bản có khác biệt, bản tiếng Anh là @@ -86,7 +86,7 @@ Developer ID và do Apple notarize, nên mở lên không bị Gatekeeper cảnh Hoặc cài qua Homebrew, sau đó `brew upgrade` sẽ giữ nó luôn mới: ```bash -brew install --cask manhpham90vn/tap/deskhub +brew install --cask bitfaring/tap/deskhub ``` Để host màn hình cần hai permission của macOS. Cả hai đều xin được ngay trên trang @@ -152,8 +152,8 @@ lên và Debian 12 trở lên: ```bash sudo install -d /etc/apt/keyrings -curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \ +curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ | sudo tee /etc/apt/sources.list.d/deskhub.list sudo apt update && sudo apt install deskhub ``` @@ -221,7 +221,7 @@ thao tác thêm. Với bản build từ source, một lệnh là đủ; không c đăng nhập lại: ```bash -curl -fsSL https://raw.githubusercontent.com/manhpham90vn/Deskhub/main/scripts/setup-uinput.sh | sudo bash +curl -fsSL https://raw.githubusercontent.com/Bitfaring/Deskhub/main/scripts/setup-uinput.sh | sudo bash ``` Nếu muốn xem nội dung script trước khi chạy bằng sudo, tải @@ -598,5 +598,5 @@ không được giữ lại: hãy cho từng thiết bị vào và trust lại t - **Linux: con trỏ không di chuyển** — thiếu rule `/dev/uinput` ở mục 3. - **macOS: màn hình đen hoặc input không hoạt động** — kiểm tra Screen Recording và Accessibility trên trang Settings. -- **Các trường hợp khác** — mở một [issue](https://github.com/manhpham90vn/Deskhub/issues) +- **Các trường hợp khác** — mở một [issue](https://github.com/Bitfaring/Deskhub/issues) kèm model thiết bị, phiên bản OS và nội dung dòng status trên trang Host hoặc Client. diff --git a/docs/INSTALL.zh.md b/docs/INSTALL.zh.md index 1ddb20bce..8e50f5d4a 100644 --- a/docs/INSTALL.zh.md +++ b/docs/INSTALL.zh.md @@ -6,7 +6,7 @@ Deskhub,请参阅 [`BUILD.zh.md`](BUILD.zh.md)。 桌面安装包可从 -[Releases 页面](https://github.com/manhpham90vn/Deskhub/releases) 下载。Android 版已 +[Releases 页面](https://github.com/Bitfaring/Deskhub/releases) 下载。Android 版已 上架 Google Play,iOS beta 则通过 TestFlight 获取。 本文件是 [`INSTALL.md`](INSTALL.md) 的译本;若两者有出入,以英文版为准。 @@ -77,7 +77,7 @@ ID 进行 sign 并通过 Apple 的 notarize,因此打开时不会出现 Gateke 也可以通过 Homebrew 安装,之后由 `brew upgrade` 保持更新: ```bash -brew install --cask manhpham90vn/tap/deskhub +brew install --cask bitfaring/tap/deskhub ``` Host 一块屏幕需要两个 macOS permission。两者均可从 app 的 **Settings** 页申请;该页同时 @@ -133,8 +133,8 @@ NVIDIA 专有驱动暂不支持。 ```bash sudo install -d /etc/apt/keyrings -curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \ +curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ | sudo tee /etc/apt/sources.list.d/deskhub.list sudo apt update && sudo apt install deskhub ``` @@ -200,7 +200,7 @@ mouse 和 keyboard 通过它 inject。deb 与 rpm 已安装相应的 udev rule 构建时,一条命令即可完成设置,无需 clone,也无需重新登录桌面: ```bash -curl -fsSL https://raw.githubusercontent.com/manhpham90vn/Deskhub/main/scripts/setup-uinput.sh | sudo bash +curl -fsSL https://raw.githubusercontent.com/Bitfaring/Deskhub/main/scripts/setup-uinput.sh | sudo bash ``` 若希望在交给 sudo 之前先查看脚本内容,可先下载 @@ -544,5 +544,5 @@ QR code,或一次粘贴其 key。7.0.x 写入的 `client_key*.pem` 与 `host_c - **Linux:指针不移动** —— 缺少第 3 条中的 `/dev/uinput` rule。 - **macOS:黑屏或 input 无响应** —— 在 Settings 页检查 Screen Recording 与 Accessibility。 -- **其他情况** —— 提交一个 [issue](https://github.com/manhpham90vn/Deskhub/issues),并 +- **其他情况** —— 提交一个 [issue](https://github.com/Bitfaring/Deskhub/issues),并 附上设备型号、OS 版本,以及 Host 或 Client 页 status 行的内容。 diff --git a/manhdev.json b/manhdev.json index 1e14ed786..5da782d0a 100644 --- a/manhdev.json +++ b/manhdev.json @@ -56,11 +56,11 @@ { "platform": "ios", "label": "iOS", "sub": "TestFlight beta", "href": "https://testflight.apple.com/join/7qY7wgpd", "external": true } ], "packageManagers": [ - { "platform": "macos", "label": "macOS · Homebrew", "command": "brew install --cask manhpham90vn/tap/deskhub" }, + { "platform": "macos", "label": "macOS · Homebrew", "command": "brew install --cask bitfaring/tap/deskhub" }, { "platform": "linux", "label": "Ubuntu / Debian / Mint · apt", - "command": "sudo install -d /etc/apt/keyrings\ncurl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null\necho \"deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main\" | sudo tee /etc/apt/sources.list.d/deskhub.list\nsudo apt update && sudo apt install deskhub" + "command": "sudo install -d /etc/apt/keyrings\ncurl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null\necho \"deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main\" | sudo tee /etc/apt/sources.list.d/deskhub.list\nsudo apt update && sudo apt install deskhub" } ], "version": "v9.3.7" diff --git a/packaging/apt/index.html b/packaging/apt/index.html index 21cad86a0..ce37e558a 100644 --- a/packaging/apt/index.html +++ b/packaging/apt/index.html @@ -50,12 +50,12 @@

Deskhub apt repository

-

Signed packages of Deskhub, the LAN remote desktop, for Ubuntu 22.04+ and Debian 12+ on amd64.

+

Signed packages of Deskhub, the LAN remote desktop, for Ubuntu 22.04+ and Debian 12+ on amd64.

Install

sudo install -d /etc/apt/keyrings
-curl -fsSL https://manhpham90vn.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null
-echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://manhpham90vn.github.io/Deskhub/apt stable main" \
+curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null
+echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \
   | sudo tee /etc/apt/sources.list.d/deskhub.list
 sudo apt update && sudo apt install deskhub

The package installs both the desktop app and the deskhub-cli command in /usr/bin. Later releases arrive with sudo apt upgrade; an older separate deskhub-cli package is replaced by it.

@@ -67,7 +67,7 @@

Remove

Signing key

deskhub.gpg (binary) · deskhub.asc (armored) — fingerprint @FINGERPRINT@

-

Every platform and the full guide: INSTALL.md

+

Every platform and the full guide: INSTALL.md

diff --git a/packaging/homebrew/deskhub.rb b/packaging/homebrew/deskhub.rb index d5728a562..eda75225f 100644 --- a/packaging/homebrew/deskhub.rb +++ b/packaging/homebrew/deskhub.rb @@ -2,10 +2,10 @@ version "@VERSION@" sha256 "@SHA256@" - url "https://github.com/manhpham90vn/Deskhub/releases/download/v#{version}/deskhub-v#{version}-macos.dmg" + url "https://github.com/Bitfaring/Deskhub/releases/download/v#{version}/deskhub-v#{version}-macos.dmg" name "Deskhub" desc "LAN remote desktop - share and control screens" - homepage "https://github.com/manhpham90vn/Deskhub" + homepage "https://github.com/Bitfaring/Deskhub" depends_on macos: ">= :sonoma" diff --git a/packaging/pages/index.html b/packaging/pages/index.html index ba8d95333..1e725921f 100644 --- a/packaging/pages/index.html +++ b/packaging/pages/index.html @@ -4,8 +4,8 @@ Deskhub - - + + -

Deskhub lives at github.com/manhpham90vn/Deskhub.

+

Deskhub lives at github.com/Bitfaring/Deskhub.

Looking for the apt repository? apt/

diff --git a/packaging/release-notes/v7.0.0.md b/packaging/release-notes/v7.0.0.md index 8bdcb009b..86beed8d6 100644 --- a/packaging/release-notes/v7.0.0.md +++ b/packaging/release-notes/v7.0.0.md @@ -41,4 +41,4 @@ host's key before the first connection instead, pipe `deskhub-cli host-key publi host into `deskhub-cli host add` (see `deskhub-cli help host`). If the client says its key is not authorized, the host has not allowed it yet; go back -to step 2. Full guide: [Keys and access](https://github.com/manhpham90vn/Deskhub/blob/main/docs/INSTALL.md#-keys-and-access). +to step 2. Full guide: [Keys and access](https://github.com/Bitfaring/Deskhub/blob/main/docs/INSTALL.md#-keys-and-access). diff --git a/packaging/release-notes/v8.0.0.md b/packaging/release-notes/v8.0.0.md index 9ca2ef8c0..44c382a04 100644 --- a/packaging/release-notes/v8.0.0.md +++ b/packaging/release-notes/v8.0.0.md @@ -80,4 +80,4 @@ deskhub-cli access approve --fingerprint SHA256:… # host: let one in Two new files live in the config folder: `access_requests` (requests waiting) and `pairing_tokens` (live QR tokens). Full guide: -[Keys and access](https://github.com/manhpham90vn/Deskhub/blob/main/docs/INSTALL.md#-keys-and-access). +[Keys and access](https://github.com/Bitfaring/Deskhub/blob/main/docs/INSTALL.md#-keys-and-access). diff --git a/packaging/release-notes/v9.0.1.md b/packaging/release-notes/v9.0.1.md index 1e428ac94..dabcad4ca 100644 --- a/packaging/release-notes/v9.0.1.md +++ b/packaging/release-notes/v9.0.1.md @@ -6,7 +6,7 @@ version". Update the host and every client together. Nothing else has to be redone. Keys, allowed devices and trusted hosts all carry over from 8.0 — no device needs to be let in again. Coming from 7.0.x, follow -[Coming from an older Deskhub](https://github.com/manhpham90vn/Deskhub/blob/main/docs/INSTALL.md#coming-from-an-older-deskhub). +[Coming from an older Deskhub](https://github.com/Bitfaring/Deskhub/blob/main/docs/INSTALL.md#coming-from-an-older-deskhub). ## 🔒 Security diff --git a/packaging/release-notes/v9.0.2.md b/packaging/release-notes/v9.0.2.md index 9852ccc0c..348ab35ed 100644 --- a/packaging/release-notes/v9.0.2.md +++ b/packaging/release-notes/v9.0.2.md @@ -2,7 +2,7 @@ Deskhub 9.0.2 speaks the same authentication version as 9.0.1, so hosts and clients on either release talk to each other and no device has to be let in again. Coming from 8.x -or older, read the [9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) +or older, read the [9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. ## 🐛 Fixes diff --git a/packaging/release-notes/v9.0.3.md b/packaging/release-notes/v9.0.3.md index f6b8a1330..b66e69093 100644 --- a/packaging/release-notes/v9.0.3.md +++ b/packaging/release-notes/v9.0.3.md @@ -2,7 +2,7 @@ Deskhub 9.0.3 speaks the same authentication version as 9.0.1 and 9.0.2, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming -from 8.x or older, read the [9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) +from 8.x or older, read the [9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. The fix below is on the Windows host, so update the Windows machine you connect **to**; diff --git a/packaging/release-notes/v9.1.0.md b/packaging/release-notes/v9.1.0.md index d2709750b..f28092b91 100644 --- a/packaging/release-notes/v9.1.0.md +++ b/packaging/release-notes/v9.1.0.md @@ -2,7 +2,7 @@ Deskhub 9.1.0 speaks the same authentication version as every 9.0 release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming -from 8.x or older, read the [9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) +from 8.x or older, read the [9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. What is new is on the Windows host, so update the Windows machine you connect **to**; the diff --git a/packaging/release-notes/v9.2.0.md b/packaging/release-notes/v9.2.0.md index 4e6e0a66a..f00f7403b 100644 --- a/packaging/release-notes/v9.2.0.md +++ b/packaging/release-notes/v9.2.0.md @@ -3,7 +3,7 @@ Deskhub 9.2.0 speaks the same authentication version as every 9.0 and 9.1 release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. What is new is on the Windows host, so update the Windows machine you connect **to**; the diff --git a/packaging/release-notes/v9.3.0.md b/packaging/release-notes/v9.3.0.md index b14264bcb..1cf68a341 100644 --- a/packaging/release-notes/v9.3.0.md +++ b/packaging/release-notes/v9.3.0.md @@ -3,7 +3,7 @@ Deskhub 9.3.0 speaks the same authentication version as every 9.x release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. What is new is on the hosts — the Mac you connect **to**, and the Windows command line — @@ -16,7 +16,7 @@ so update those; the viewer needs nothing new. app and puts that folder on the machine `PATH`, so the command works in any new terminal. Setup removes an earlier separate *DeskHub CLI* install on the way in. - **macOS** — `deskhub-v9.3.0-macos.dmg` carries it inside the app at - `Deskhub.app/Contents/MacOS/deskhub-cli`; `brew install --cask manhpham90vn/tap/deskhub` + `Deskhub.app/Contents/MacOS/deskhub-cli`; `brew install --cask bitfaring/tap/deskhub` links it into `PATH`. The `deskhub-cli` Homebrew formula is retired — run `brew uninstall deskhub-cli` once if you had it. - **Linux** — `deskhub-v9.3.0-amd64.deb` and `deskhub-v9.3.0-x86_64.rpm` install diff --git a/packaging/release-notes/v9.3.1.md b/packaging/release-notes/v9.3.1.md index 2f6f768fe..8a105b245 100644 --- a/packaging/release-notes/v9.3.1.md +++ b/packaging/release-notes/v9.3.1.md @@ -3,7 +3,7 @@ Deskhub 9.3.1 speaks the same authentication version as every 9.x release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. The fixes below are on the Mac you connect **to**; the viewer needs nothing new. diff --git a/packaging/release-notes/v9.3.2.md b/packaging/release-notes/v9.3.2.md index 6c392b26a..a4288c9fc 100644 --- a/packaging/release-notes/v9.3.2.md +++ b/packaging/release-notes/v9.3.2.md @@ -3,7 +3,7 @@ Deskhub 9.3.2 speaks the same authentication version as every 9.x release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. The change below is on the machine you connect **from**; the host needs nothing new. diff --git a/packaging/release-notes/v9.3.3.md b/packaging/release-notes/v9.3.3.md index 517a06f8b..16e20fbe5 100644 --- a/packaging/release-notes/v9.3.3.md +++ b/packaging/release-notes/v9.3.3.md @@ -3,7 +3,7 @@ Deskhub 9.3.3 speaks the same authentication version as every 9.x release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. ## ✨ New @@ -42,6 +42,6 @@ device must be on Deskhub 9. ## 🔒 Privacy -- The [privacy policy](https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md) is +- The [privacy policy](https://github.com/Bitfaring/Deskhub/blob/main/PRIVACY.md) is now version 2.17. It describes `deskhubd` and the copies it keeps in `/var/lib/deskhub`, a folder only root can open. Nothing new is transmitted. diff --git a/packaging/release-notes/v9.3.4.md b/packaging/release-notes/v9.3.4.md index c4c7f5f39..704129467 100644 --- a/packaging/release-notes/v9.3.4.md +++ b/packaging/release-notes/v9.3.4.md @@ -3,7 +3,7 @@ Deskhub 9.3.4 speaks the same authentication version as every 9.x release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. The fix below is on the Mac you connect **to**; the viewer needs nothing new. diff --git a/packaging/release-notes/v9.3.5.md b/packaging/release-notes/v9.3.5.md index 8c680a688..e482cf72d 100644 --- a/packaging/release-notes/v9.3.5.md +++ b/packaging/release-notes/v9.3.5.md @@ -3,7 +3,7 @@ Deskhub 9.3.5 speaks the same authentication version as every 9.x release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. Everything below is on the machine you connect **from**; the host needs nothing new. diff --git a/packaging/release-notes/v9.3.6.md b/packaging/release-notes/v9.3.6.md index 8845224ed..c782dbf58 100644 --- a/packaging/release-notes/v9.3.6.md +++ b/packaging/release-notes/v9.3.6.md @@ -3,7 +3,7 @@ Deskhub 9.3.6 speaks the same authentication version as every 9.x release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. **Windows hosts: Deskhub now turns off firewall rules that block it.** When you share, the @@ -37,5 +37,5 @@ the port or the address instead of the program, and Deskhub leaves it alone. private network could then not be reached over the VPN at all, while the LAN worked. Sharing now disables those rules. They are turned off, not deleted, so they stay visible in Windows Defender Firewall. The *DeskHub Secure Desktop* service does the same - for its own program. The [privacy policy](https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md) + for its own program. The [privacy policy](https://github.com/Bitfaring/Deskhub/blob/main/PRIVACY.md) moves to version 2.18 to say so. diff --git a/packaging/release-notes/v9.3.7.md b/packaging/release-notes/v9.3.7.md index 2fde0d04a..552520ece 100644 --- a/packaging/release-notes/v9.3.7.md +++ b/packaging/release-notes/v9.3.7.md @@ -3,7 +3,7 @@ Deskhub 9.3.7 speaks the same authentication version as every 9.x release, so hosts and clients on any 9.x release talk to each other and no device has to be let in again. Coming from 8.x or older, read the -[9.0.1 notes](https://github.com/manhpham90vn/Deskhub/releases/tag/v9.0.1) first: every +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. Everything below is on the desktop viewer; the host needs nothing new. diff --git a/packaging/release-notes/v9.4.0.md b/packaging/release-notes/v9.4.0.md new file mode 100644 index 000000000..cf633845a --- /dev/null +++ b/packaging/release-notes/v9.4.0.md @@ -0,0 +1,23 @@ +## Nothing to redo + +Deskhub 9.4.0 speaks the same authentication version as every 9.x release, so hosts and +clients on any 9.x release talk to each other and no device has to be let in again. +Coming from 8.x or older, read the +[9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every +device must be on Deskhub 9. + +## 🔄 Changes + +- **Deskhub moved to [github.com/Bitfaring/Deskhub](https://github.com/Bitfaring/Deskhub).** + Old links redirect. The apt repository moved with it and the old address no longer + answers, so Ubuntu and Debian machines that installed from it need the new source once: + + ```sh + sudo install -d /etc/apt/keyrings + curl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null + echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main" \ + | sudo tee /etc/apt/sources.list.d/deskhub.list + sudo apt update + ``` + + The Homebrew tap is now `bitfaring/tap`: `brew install --cask bitfaring/tap/deskhub`. diff --git a/scripts/build-apt-repo.sh b/scripts/build-apt-repo.sh index e165d7a48..5da11a681 100755 --- a/scripts/build-apt-repo.sh +++ b/scripts/build-apt-repo.sh @@ -5,7 +5,7 @@ source scripts/tools.sh OUT=${1:?usage: build-apt-repo.sh OUT_DIR} KEEP_RELEASES=${APT_KEEP_RELEASES:-3} -REPO=manhpham90vn/Deskhub +REPO=Bitfaring/Deskhub SUITE=stable COMPONENT=main ARCH=amd64 diff --git a/scripts/build-deb.sh b/scripts/build-deb.sh index 7b3194e8d..cca1fb09b 100755 --- a/scripts/build-deb.sh +++ b/scripts/build-deb.sh @@ -39,7 +39,7 @@ Recommends: xdg-desktop-portal, va-driver-all Provides: deskhub-cli Replaces: deskhub-cli Conflicts: deskhub-cli -Homepage: https://github.com/manhpham90vn/Deskhub +Homepage: https://github.com/Bitfaring/Deskhub Description: LAN remote desktop - share and control screens Deskhub shares the screen of one machine and controls it from another over UDP on the local network. diff --git a/scripts/build-rpm.sh b/scripts/build-rpm.sh index 359f75bff..0e2f9530f 100755 --- a/scripts/build-rpm.sh +++ b/scripts/build-rpm.sh @@ -34,7 +34,7 @@ Version: $VERSION Release: 1 Summary: LAN remote desktop - share and control screens License: MIT -URL: https://github.com/manhpham90vn/Deskhub +URL: https://github.com/Bitfaring/Deskhub Recommends: xdg-desktop-portal Provides: deskhub-cli = $VERSION Obsoletes: deskhub-cli < $VERSION diff --git a/scripts/publish-homebrew.sh b/scripts/publish-homebrew.sh index 1ba2f799f..6fec43fee 100755 --- a/scripts/publish-homebrew.sh +++ b/scripts/publish-homebrew.sh @@ -5,7 +5,7 @@ source scripts/tools.sh TAG=${1:?usage: publish-homebrew.sh vX.Y.Z} VERSION=${TAG#v} -TAP_REPO=${TAP_REPO:-manhpham90vn/homebrew-tap} +TAP_REPO=${TAP_REPO:-Bitfaring/homebrew-tap} TAP_BRANCH=${TAP_BRANCH:-main} : "${HOMEBREW_TAP_TOKEN:?publish-homebrew.sh: HOMEBREW_TAP_TOKEN must hold a token with contents write access to $TAP_REPO.}" diff --git a/scripts/tools.sh b/scripts/tools.sh index 2e4aae4c9..7ee576c43 100644 --- a/scripts/tools.sh +++ b/scripts/tools.sh @@ -26,7 +26,7 @@ deskhub_release_asset() { local tag=$1 name=$2 dir=$3 mkdir -p "$dir" curl -fsSL --retry 3 --retry-delay 10 --retry-all-errors -o "$dir/$name" \ - "https://github.com/manhpham90vn/Deskhub/releases/download/$tag/$name" + "https://github.com/Bitfaring/Deskhub/releases/download/$tag/$name" } deskhub_tools_venv_dir() { From 5b3808db573512780d43dac7bf6e2aaa5e8b9ba9 Mon Sep 17 00:00:00 2001 From: Manh Pham Date: Wed, 25 Nov 2026 17:34:07 +0700 Subject: [PATCH 2/3] feat: add a Mute sound button to every viewer Closes #161 --- client/android/app/src/main/cpp/JniBridge.cpp | 13 +++++++ .../main/java/com/deskhub/app/NativeClient.kt | 8 ++++ .../java/com/deskhub/app/StreamActivity.kt | 15 +++++++ client/apple/swift/ConnectionStatusBar.swift | 7 ++++ client/apple/swift/DeskhubClient.swift | 4 ++ client/apple/swift/ScreenSession.swift | 4 ++ client/apple/swift/StreamModel.swift | 5 +++ client/ios/app/swift/StreamOverlays.swift | 7 ++++ client/linux/gtk/ViewerWindow.cpp | 18 ++++++++- client/linux/gtk/ViewerWindow.h | 5 +++ client/macos/app/swift/StreamView.swift | 1 + client/windows/win32/Viewer.cpp | 21 +++++++++- core/CMakeLists.txt | 1 + core/include/deskhub/media/AudioMute.h | 28 +++++++++++++ core/include/deskhub/ui/Strings.h | 2 + core/tests/TestMain.cpp | 1 + core/tests/Tests.h | 1 + core/tests/media/AudioMuteTests.cpp | 39 +++++++++++++++++++ core/tests/ui/StringsTests.cpp | 3 +- docs/SPECIFICATION.ja.md | 1 + docs/SPECIFICATION.md | 1 + docs/SPECIFICATION.vi.md | 1 + docs/SPECIFICATION.zh.md | 1 + packaging/release-notes/v9.4.0.md | 8 ++++ platform/include/deskhubp/audio/AudioPlayer.h | 5 +++ .../include/deskhubp/client/ScreenViewer.h | 4 ++ platform/include/deskhubp/ffi/ClientFfi.h | 2 + platform/include/deskhubp/ffi/ScreenFfi.h | 2 + .../include/deskhubp/ffi/ScreenFfiForward.h | 4 ++ platform/src/audio/AudioPlayer.cpp | 6 ++- platform/src/ffi/ClientFfi.cpp | 5 +++ 31 files changed, 218 insertions(+), 5 deletions(-) create mode 100644 core/include/deskhub/media/AudioMute.h create mode 100644 core/tests/media/AudioMuteTests.cpp diff --git a/client/android/app/src/main/cpp/JniBridge.cpp b/client/android/app/src/main/cpp/JniBridge.cpp index 2f5bd2853..0a2dd1fa5 100644 --- a/client/android/app/src/main/cpp/JniBridge.cpp +++ b/client/android/app/src/main/cpp/JniBridge.cpp @@ -29,6 +29,7 @@ static_assert(int32_t(deskhub::MouseButton::Left) == 1 && namespace { DHScreen* g_session = nullptr; +bool g_soundMuted = false; ANativeWindow* g_window = nullptr; jclass g_nativeClientClass = nullptr; @@ -639,6 +640,7 @@ Java_com_deskhub_app_NativeClient_nativeStart(JNIEnv* env, jobject, jstring addr callbacks.onTrustAsked = NotifySessionTrustAsked; g_session = dh_screen_start(addr.c_str(), uint8_t(sourceId), g_window, &callbacks); + dh_screen_set_audio_muted(g_session, g_soundMuted); g_callbackSession.store(g_session, std::memory_order_release); return jlong(reinterpret_cast(g_session)); } @@ -662,6 +664,17 @@ Java_com_deskhub_app_NativeClient_nativeStop(JNIEnv*, jobject, jlong handle) { g_session = nullptr; } +JNIEXPORT void JNICALL +Java_com_deskhub_app_NativeClient_nativeSetAudioMuted(JNIEnv*, jobject, jboolean muted) { + g_soundMuted = muted == JNI_TRUE; + dh_screen_set_audio_muted(g_session, g_soundMuted); +} + +JNIEXPORT jstring JNICALL +Java_com_deskhub_app_NativeClient_nativeSoundButtonLabel(JNIEnv* env, jobject, jboolean muted) { + return env->NewStringUTF(dh_sound_button_label(muted == JNI_TRUE)); +} + JNIEXPORT void JNICALL Java_com_deskhub_app_NativeClient_nativeSetSurface(JNIEnv* env, jobject, jobject surface) { if (!surface) { diff --git a/client/android/app/src/main/java/com/deskhub/app/NativeClient.kt b/client/android/app/src/main/java/com/deskhub/app/NativeClient.kt index 81af3ec78..df548e271 100644 --- a/client/android/app/src/main/java/com/deskhub/app/NativeClient.kt +++ b/client/android/app/src/main/java/com/deskhub/app/NativeClient.kt @@ -509,6 +509,14 @@ object NativeClient { fun clipOffer(text: String) = nativeClipOffer(text) + private external fun nativeSetAudioMuted(muted: Boolean) + + private external fun nativeSoundButtonLabel(muted: Boolean): String + + fun setAudioMuted(muted: Boolean) = nativeSetAudioMuted(muted) + + fun soundButtonLabel(muted: Boolean): String = nativeSoundButtonLabel(muted) + fun clipTake(): String = nativeClipTake() private external fun nativeDeviceName(): String diff --git a/client/android/app/src/main/java/com/deskhub/app/StreamActivity.kt b/client/android/app/src/main/java/com/deskhub/app/StreamActivity.kt index 7577e4a99..a05a587e4 100644 --- a/client/android/app/src/main/java/com/deskhub/app/StreamActivity.kt +++ b/client/android/app/src/main/java/com/deskhub/app/StreamActivity.kt @@ -121,6 +121,7 @@ class StreamActivity : ComponentActivity() { currentSourceId = intent.getIntExtra("source", 0) sources = readSources(intent) screenPx = NativeClient.screenSizePx(this) + NativeClient.setAudioMuted(false) session = NativeClient.nativeStart( address, @@ -269,6 +270,8 @@ private fun StreamScreen( } var keyboardOn by remember { mutableStateOf(false) } + val playsSound = remember { NativeClient.playAudio() } + var soundMuted by remember { mutableStateOf(false) } var keyView by remember { mutableStateOf(null) } LaunchedEffect(keyboardOn) { val v = keyView ?: return@LaunchedEffect @@ -474,9 +477,15 @@ private fun StreamScreen( statusLine = statusLine, streaming = streaming, keyboardOn = keyboardOn, + playsSound = playsSound, + soundMuted = soundMuted, sources = sources, currentSourceId = currentSourceId, onToggleKeyboard = { keyboardOn = !keyboardOn }, + onToggleSound = { + soundMuted = !soundMuted + NativeClient.setAudioMuted(soundMuted) + }, onSwitchSource = onSwitchSource, onCollapse = { controlsOpen = false }, ) @@ -606,9 +615,12 @@ private fun ControlPanel( statusLine: String, streaming: Boolean, keyboardOn: Boolean, + playsSound: Boolean, + soundMuted: Boolean, sources: List, currentSourceId: Int, onToggleKeyboard: () -> Unit, + onToggleSound: () -> Unit, onSwitchSource: (Int) -> Unit, onCollapse: () -> Unit, ) { @@ -687,6 +699,9 @@ private fun ControlPanel( OutlinedButton(onClick = onToggleKeyboard, enabled = streaming) { Text(if (keyboardOn) "Hide keyboard" else "Keyboard") } + if (playsSound) { + OutlinedButton(onClick = onToggleSound) { Text(NativeClient.soundButtonLabel(soundMuted)) } + } if (sources.size > 1) { OutlinedButton(onClick = { pickerOpen = true }) { Text("Display") } } diff --git a/client/apple/swift/ConnectionStatusBar.swift b/client/apple/swift/ConnectionStatusBar.swift index 7b8eaebcf..4b3ef312a 100644 --- a/client/apple/swift/ConnectionStatusBar.swift +++ b/client/apple/swift/ConnectionStatusBar.swift @@ -3,6 +3,7 @@ import SwiftUI struct ConnectionStatusBar: View { let model: StreamModel let onToggleCursor: () -> Void + let onToggleSound: () -> Void let onFullScreen: () -> Void var body: some View { @@ -13,6 +14,12 @@ struct ConnectionStatusBar: View { Text(DeskhubClient.string(DHStrLinkReattaching)) } Spacer(minLength: 12) + if model.playsSound { + Button( + DeskhubClient.soundButtonLabel(muted: model.soundMuted), + action: onToggleSound + ) + } if model.control { Button( DeskhubClient.cursorButtonLabel(hidden: model.cursorHidden), diff --git a/client/apple/swift/DeskhubClient.swift b/client/apple/swift/DeskhubClient.swift index 2f7369301..7241c051f 100644 --- a/client/apple/swift/DeskhubClient.swift +++ b/client/apple/swift/DeskhubClient.swift @@ -56,6 +56,10 @@ nonisolated enum DeskhubClient { String(cString: dh_cursor_button_label(hidden)) } + static func soundButtonLabel(muted: Bool) -> String { + String(cString: dh_sound_button_label(muted)) + } + static func viewOnlySubtitle(statusLine: String) -> String { buffered(320) { dh_view_only_subtitle(statusLine, $0, $1) } } diff --git a/client/apple/swift/ScreenSession.swift b/client/apple/swift/ScreenSession.swift index dfc02ad47..8987ba03f 100644 --- a/client/apple/swift/ScreenSession.swift +++ b/client/apple/swift/ScreenSession.swift @@ -118,6 +118,10 @@ final class ScreenSession: @unchecked Sendable { dh_screen_clip_offer(handle, text) } + func setAudioMuted(_ muted: Bool) { + dh_screen_set_audio_muted(handle, muted) + } + func takeClipboard() -> String? { let text = DeskhubClient.buffered(33000) { dh_screen_clip_take(handle, $0, $1) } return text.isEmpty ? nil : text diff --git a/client/apple/swift/StreamModel.swift b/client/apple/swift/StreamModel.swift index 8df57f4e6..deeb89c23 100644 --- a/client/apple/swift/StreamModel.swift +++ b/client/apple/swift/StreamModel.swift @@ -17,6 +17,10 @@ final class StreamModel { var failedToStart = false var cursorHidden = true + let playsSound = dh_play_audio() + var soundMuted = false { + didSet { session?.setAudioMuted(soundMuted) } + } private var session: ScreenSession? private var layer: AVSampleBufferDisplayLayer? @@ -47,6 +51,7 @@ final class StreamModel { failedToStart = false session = opened opened.setLayer(layer) + opened.setAudioMuted(soundMuted) refresh() startPhasePolling() } diff --git a/client/ios/app/swift/StreamOverlays.swift b/client/ios/app/swift/StreamOverlays.swift index 00d05d430..7c6b466d8 100644 --- a/client/ios/app/swift/StreamOverlays.swift +++ b/client/ios/app/swift/StreamOverlays.swift @@ -158,6 +158,13 @@ struct StreamControlPanel: View { .buttonStyle(.deskhubOutlined()) .disabled(!streaming) + if model.playsSound { + Button(DeskhubClient.soundButtonLabel(muted: model.soundMuted)) { + model.soundMuted.toggle() + } + .buttonStyle(.deskhubOutlined()) + } + if session.sources.count > 1 { Button("Display") { displayPickerOpen = true } .buttonStyle(.deskhubOutlined()) diff --git a/client/linux/gtk/ViewerWindow.cpp b/client/linux/gtk/ViewerWindow.cpp index fb8dd738a..46de06a52 100644 --- a/client/linux/gtk/ViewerWindow.cpp +++ b/client/linux/gtk/ViewerWindow.cpp @@ -105,6 +105,12 @@ bool ViewerWindow::Build(const NetAddr& server, uint8_t sourceId, const std::str g_signal_connect(cursorButton_, "clicked", G_CALLBACK(OnCursorClicked), this); gtk_header_bar_pack_end(GTK_HEADER_BAR(header), cursorButton_); } + const bool playsSound = deskhubp::LoadUiSettings().playAudio; + if (playsSound) { + soundButton_ = gtk_button_new_with_label(sound_.ButtonLabel()); + g_signal_connect(soundButton_, "clicked", G_CALLBACK(OnSoundClicked), this); + gtk_header_bar_pack_end(GTK_HEADER_BAR(header), soundButton_); + } linkLabel_ = gtk_label_new(""); gtk_header_bar_pack_end(GTK_HEADER_BAR(header), linkLabel_); gtk_window_set_titlebar(GTK_WINDOW(window_), header); @@ -146,7 +152,7 @@ bool ViewerWindow::Build(const NetAddr& server, uint8_t sourceId, const std::str cfg.screenW = sw; cfg.screenH = sh; cfg.displayName = deskhubp::SessionDeviceName(); - cfg.wantsAudio = deskhubp::LoadUiSettings().playAudio; + cfg.wantsAudio = playsSound; cfg.onStatus = [this](const char* status) { std::string line = status ? status : ""; PostToMain([line = std::move(line)](ViewerWindow& v) { @@ -362,6 +368,12 @@ void ViewerWindow::ToggleLocalCursor() { ShowLocalCursor(!cursor_.HidesOverVideo(pointerOverVideo_)); } +void ViewerWindow::ToggleSound() { + sound_.Toggle(); + loop_.SetAudioMuted(sound_.muted()); + if (soundButton_) gtk_button_set_label(GTK_BUTTON(soundButton_), sound_.ButtonLabel()); +} + gboolean ViewerWindow::OnKey(GtkWidget*, GdkEventKey* e, gpointer user) { auto* self = static_cast(user); const bool down = e->type == GDK_KEY_PRESS; @@ -458,6 +470,10 @@ void ViewerWindow::OnCursorClicked(GtkWidget*, gpointer user) { static_cast(user)->ToggleLocalCursor(); } +void ViewerWindow::OnSoundClicked(GtkWidget*, gpointer user) { + static_cast(user)->ToggleSound(); +} + gboolean ViewerWindow::OnWindowState(GtkWidget*, GdkEventWindowState* e, gpointer user) { auto* self = static_cast(user); self->fullScreen_ = (e->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) != 0; diff --git a/client/linux/gtk/ViewerWindow.h b/client/linux/gtk/ViewerWindow.h index ae826feac..5b1ecbf4e 100644 --- a/client/linux/gtk/ViewerWindow.h +++ b/client/linux/gtk/ViewerWindow.h @@ -7,6 +7,7 @@ #include "decode/AvDecoder.h" #include "deskhub/input/LocalCursor.h" +#include "deskhub/media/AudioMute.h" #include "deskhubp/net/UdpSocket.h" #include "deskhubp/client/ScreenViewer.h" #include "gtk/WaylandShortcutsInhibitor.h" @@ -35,6 +36,7 @@ class ViewerWindow { void SyncSeatGrab(); void ShowLocalCursor(bool show); void ToggleLocalCursor(); + void ToggleSound(); void UpdateTitle(); void UpdateLinkLabel(); void SizeToVideo(); @@ -56,6 +58,7 @@ class ViewerWindow { static void OnDestroy(GtkWidget* w, gpointer user); static void OnFullScreenClicked(GtkWidget* w, gpointer user); static void OnCursorClicked(GtkWidget* w, gpointer user); + static void OnSoundClicked(GtkWidget* w, gpointer user); static gboolean OnCrossing(GtkWidget* w, GdkEventCrossing* e, gpointer user); static gboolean OnWindowState(GtkWidget* w, GdkEventWindowState* e, gpointer user); @@ -63,6 +66,7 @@ class ViewerWindow { GtkWidget* glArea_ = nullptr; GtkWidget* linkLabel_ = nullptr; GtkWidget* cursorButton_ = nullptr; + GtkWidget* soundButton_ = nullptr; uint64_t queuedFrameSerial_ = 0; guint clipTimerId_ = 0; guint linkTimerId_ = 0; @@ -87,6 +91,7 @@ class ViewerWindow { deskhubp::ScreenViewer loop_; deskhub::LocalCursorState cursor_; + deskhub::media::AudioMuteState sound_; WaylandShortcutsInhibitor shortcuts_; GdkSeatCapabilities grabbed_ = GdkSeatCapabilities(0); bool keyboardFocus_ = false; diff --git a/client/macos/app/swift/StreamView.swift b/client/macos/app/swift/StreamView.swift index b112cd949..959575d89 100644 --- a/client/macos/app/swift/StreamView.swift +++ b/client/macos/app/swift/StreamView.swift @@ -102,6 +102,7 @@ struct StreamView: View { ConnectionStatusBar( model: model, onToggleCursor: { model.cursorHidden.toggle() }, + onToggleSound: { model.soundMuted.toggle() }, onFullScreen: { NSApp.keyWindow?.toggleFullScreen(nil) } ) } diff --git a/client/windows/win32/Viewer.cpp b/client/windows/win32/Viewer.cpp index 813e0394e..09fe49ece 100644 --- a/client/windows/win32/Viewer.cpp +++ b/client/windows/win32/Viewer.cpp @@ -12,6 +12,7 @@ #include #include "deskhub/input/LocalCursor.h" +#include "deskhub/media/AudioMute.h" #include "deskhub/net/TrustStore.h" #include "deskhub/media/ViewFit.h" #include "deskhub/media/ViewerTitle.h" @@ -38,6 +39,7 @@ constexpr UINT kTimerClipboard = 2; constexpr int kCursorButtonId = 101; constexpr int kFullScreenButtonId = 102; +constexpr int kSoundButtonId = 103; constexpr int kBarHeightDip = 36; constexpr int kBarPaddingDip = 6; constexpr int kDefaultDpi = 96; @@ -94,6 +96,7 @@ struct ViewerFrame { HWND video = nullptr; HWND cursorButton = nullptr; HWND fullScreenButton = nullptr; + HWND soundButton = nullptr; DHScreen* session = nullptr; deskhub::OpenViewerCount* openCount = nullptr; bool viewOnly = false; @@ -102,6 +105,7 @@ struct ViewerFrame { std::wstring shownTitle; uint32_t fittedW = 0, fittedH = 0; deskhub::LocalCursorState cursor; + deskhub::media::AudioMuteState sound; bool fullScreen = false; WINDOWPLACEMENT windowed{sizeof(WINDOWPLACEMENT)}; @@ -136,7 +140,7 @@ struct ViewerFrame { const int pad = Dip(kBarPaddingDip); const int bh = Dip(kBarHeightDip) - 2 * pad; int right = clientWidth - pad; - for (HWND button : {fullScreenButton, cursorButton}) { + for (HWND button : {fullScreenButton, cursorButton, soundButton}) { if (!button) continue; const int bw = FlatButtonWidth(button); ShowWindow(button, show); @@ -195,6 +199,17 @@ struct ViewerFrame { SetFocus(video); } + void ToggleSound() { + sound.Toggle(); + dh_screen_set_audio_muted(session, sound.muted()); + if (soundButton) { + SetWindowTextW(soundButton, FromUtf8(sound.ButtonLabel()).c_str()); + Relayout(); + InvalidateRect(hwnd, nullptr, TRUE); + } + SetFocus(video); + } + bool HandleShortcut(WPARAM vk, bool down, LPARAM lp) { if (!deskhub::IsViewerShortcutVk(int32_t(vk))) return false; if (!down || IsKeyRepeat(lp)) return true; @@ -270,6 +285,7 @@ LRESULT CALLBACK FrameProc(HWND h, UINT msg, WPARAM wp, LPARAM lp) { case WM_COMMAND: if (f && LOWORD(wp) == kFullScreenButtonId) f->ToggleFullScreen(); if (f && LOWORD(wp) == kCursorButtonId) f->ToggleLocalCursor(); + if (f && LOWORD(wp) == kSoundButtonId) f->ToggleSound(); return 0; case WM_TIMER: if (f && wp == kTimerHint) f->UpdateTitle(); @@ -363,6 +379,9 @@ std::unique_ptr OpenFrame(const std::string& addr, uint8_t sourceId if (control) f->cursorButton = CreateFlatButton( f->hwnd, FromUtf8(f->cursor.ButtonLabel()).c_str(), kCursorButtonId); + if (deskhubp::LoadUiSettings().playAudio) + f->soundButton = CreateFlatButton( + f->hwnd, FromUtf8(f->sound.ButtonLabel()).c_str(), kSoundButtonId); DHScreenCallbacks callbacks{}; callbacks.user = f.get(); diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 5623bf1d3..db3c6da09 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -185,6 +185,7 @@ if(DESKHUB_CORE_TESTS) tests/media/FrameMailboxTests.cpp tests/media/RgbDownscaleTests.cpp tests/media/PcmRingTests.cpp + tests/media/AudioMuteTests.cpp tests/session/SourceListResponderTests.cpp tests/session/SecureDesktopWireTests.cpp diff --git a/core/include/deskhub/media/AudioMute.h b/core/include/deskhub/media/AudioMute.h new file mode 100644 index 000000000..c505a2424 --- /dev/null +++ b/core/include/deskhub/media/AudioMute.h @@ -0,0 +1,28 @@ +#pragma once +#include "deskhub/ui/Strings.h" + +namespace deskhub::media { + +class AudioMuteState { +public: + void Toggle() { + muted_ = !muted_; + } + + bool muted() const { + return muted_; + } + + const char* ButtonLabel() const { + return SoundButtonLabel(muted_); + } + + static const char* SoundButtonLabel(bool muted) { + return muted ? ui::kUnmuteSoundButton : ui::kMuteSoundButton; + } + +private: + bool muted_ = false; +}; + +} diff --git a/core/include/deskhub/ui/Strings.h b/core/include/deskhub/ui/Strings.h index dbe400808..b9c10b28b 100644 --- a/core/include/deskhub/ui/Strings.h +++ b/core/include/deskhub/ui/Strings.h @@ -40,6 +40,8 @@ inline constexpr const char* kDisconnectButton = "Disconnect"; inline constexpr const char* kFullScreenButton = "Full screen (F11)"; inline constexpr const char* kShowMyCursorButton = "Show my cursor (F9)"; inline constexpr const char* kHideMyCursorButton = "Hide my cursor (F9)"; +inline constexpr const char* kMuteSoundButton = "Mute sound"; +inline constexpr const char* kUnmuteSoundButton = "Unmute sound"; inline constexpr const char* kScreenRecordingRequired = "Screen Recording permission is required. Grant it in System Settings, then quit and " "reopen Deskhub."; diff --git a/core/tests/TestMain.cpp b/core/tests/TestMain.cpp index 2b56ca72f..af2a74b3b 100644 --- a/core/tests/TestMain.cpp +++ b/core/tests/TestMain.cpp @@ -171,6 +171,7 @@ int main() { std::printf("--- media: PCM ring (drop-oldest, silence padding) ---\n"); RunPcmRingTests(); + RunAudioMuteTests(); std::printf("--- source list for authenticated viewers (LIST_SOURCES + PING) ---\n"); RunSourceListResponderTests(); diff --git a/core/tests/Tests.h b/core/tests/Tests.h index 9c442f29c..7bfb09815 100644 --- a/core/tests/Tests.h +++ b/core/tests/Tests.h @@ -56,6 +56,7 @@ void RunSourceLabelTests(); void RunViewerTitleTests(); void RunFrameMailboxTests(); void RunPcmRingTests(); +void RunAudioMuteTests(); void RunRgbDownscaleTests(); void RunSourceListResponderTests(); void RunSecureDesktopWireTests(); diff --git a/core/tests/media/AudioMuteTests.cpp b/core/tests/media/AudioMuteTests.cpp new file mode 100644 index 000000000..504104ef2 --- /dev/null +++ b/core/tests/media/AudioMuteTests.cpp @@ -0,0 +1,39 @@ +#include "Tests.h" +#include "support/TestSupport.h" + +#include "deskhub/media/AudioMute.h" + +#include +#include + +using deskhub::media::AudioMuteState; +namespace ui = deskhub::ui; + +namespace { + +void TestStartsAudible() { + std::printf("[mute] a new viewer plays the host's sound...\n"); + const AudioMuteState st; + Check(!st.muted(), "sound starts on"); + Check(std::string(st.ButtonLabel()) == ui::kMuteSoundButton, "audible: offers to mute"); +} + +void TestToggleFlipsAndLabelsFollow() { + std::printf("[mute] the toggle flips the sound and the button says what it will do...\n"); + AudioMuteState st; + st.Toggle(); + Check(st.muted(), "one toggle mutes"); + Check(std::string(st.ButtonLabel()) == ui::kUnmuteSoundButton, "muted: offers to unmute"); + st.Toggle(); + Check(!st.muted(), "a second toggle brings the sound back"); + Check(std::string(st.ButtonLabel()) == ui::kMuteSoundButton, "and offers to mute again"); + Check(std::string(AudioMuteState::SoundButtonLabel(true)) == ui::kUnmuteSoundButton, + "the static label agrees with the instance"); +} + +} + +void RunAudioMuteTests() { + TestStartsAudible(); + TestToggleFlipsAndLabelsFollow(); +} diff --git a/core/tests/ui/StringsTests.cpp b/core/tests/ui/StringsTests.cpp index a3e84c7ca..07b01f007 100644 --- a/core/tests/ui/StringsTests.cpp +++ b/core/tests/ui/StringsTests.cpp @@ -57,7 +57,8 @@ void TestEveryLabelSaysSomething() { ui::kDenyAction, ui::kCameraDenied, ui::kInviteHostMismatch, ui::kInviteInvalid, ui::kAuthAwaitingApproval, ui::kTrustNewHostTitle, ui::kTrustNewHostAction, ui::kCancelAction, ui::kDeviceNameHint, ui::kAuthNotPairedCliHint, - ui::kAuthDeclined, ui::kAuthDeviceRemoved, ui::kAuthRateLimited}; + ui::kAuthDeclined, ui::kAuthDeviceRemoved, ui::kAuthRateLimited, ui::kMuteSoundButton, + ui::kUnmuteSoundButton}; const std::string prompt = ui::TrustNewHostPrompt("192.168.1.10:47777", "SHA256:abc"); Check(Contains(prompt, "192.168.1.10:47777") && Contains(prompt, "SHA256:abc"), "the first-connection prompt names the host and shows its whole fingerprint"); diff --git a/docs/SPECIFICATION.ja.md b/docs/SPECIFICATION.ja.md index ce110fac3..ddcd59eea 100644 --- a/docs/SPECIFICATION.ja.md +++ b/docs/SPECIFICATION.ja.md @@ -141,6 +141,7 @@ app はどのプラットフォームでも同じ区分で構成される。**Ho | V-8 | 自動再接続 | host を失った session —— network の切断、stream の停止 —— は直ちには終了しない。ウィンドウは最後のフレームを保持し、reattach 中である旨を表示し、backoff を伴って最大 1 分間再接続を試みる。host が再び応答すれば映像は自動的に再開する。その時間を過ぎた場合、または host が意図的に session を終了もしくは拒否した場合にのみ、理由とともにウィンドウを閉じる。shell のウィンドウは 2 分間自動的に再試行した後に接続の喪失を報告するが、shell 自体は時間制限なく host 上に残り、いつでも復帰できる(H-13)。 | | V-9 | 全画面(デスクトップ) | Windows・macOS・Linux では、`F11` または画面上部の **Full screen (F11)** ボタンで、リモートの画面がボタンバーを隠してモニター全体を覆う。もう一度 `F11` を押すとウィンドウに戻る。`F11` は viewer が保持し(閲覧専用 session でも同様)、host には決して送られない。ファンクションキーがハードウェア操作に割り当てられた Mac のキーボードでは `fn`+`F11` を押す。 | | V-10 | ポインタは一つ(デスクトップ) | Windows・macOS・Linux では、host を操作する session でポインタがリモートの画面上にある間、viewer は自身のポインタを隠し、画面に描かれた host のポインタだけが見えるようにする。`F9` または **Show my cursor (F9)** ボタンで viewer のポインタを画面上に戻し、**Hide my cursor (F9)** で再び隠す。ボタンの表示は常に次に行う動作を示す。`F9` は viewer が保持し、host には決して送られない。ボタンバーの上、画面両側の黒帯の上、ウィンドウの外、そして閲覧専用 session(このボタンはない)では、viewer のポインタは常に表示される。 | +| V-11 | ミュート | viewer が host の音声を再生しているとき(V-6、T-23)、すべての viewer に **Mute sound** ボタンが表示される。Windows と Linux では **Show my cursor** の隣、macOS ではボタンバー、Android と iOS では session のコントロールパネルにあり、閲覧のみの session にも表示される。消音されるのはこのウィンドウだけで、host は再生も送信も続けるため、**Unmute sound** を押せばすぐに映像と同期した音声が戻る。ボタンには次に行う操作が表示される。新しい session は常に音声ありで始まり、別のディスプレイへ切り替えても選択は保持される。 | ## 8. リモートのマシンの操作 diff --git a/docs/SPECIFICATION.md b/docs/SPECIFICATION.md index d7113ab72..619017d35 100644 --- a/docs/SPECIFICATION.md +++ b/docs/SPECIFICATION.md @@ -139,6 +139,7 @@ the CLI is available on Windows and Linux; on macOS, use the app to watch a scre | V-8 | Auto-reconnect | A session that loses its host — the network drops, the stream goes silent — does not end. The window keeps its last picture, states that it is reattaching, and redials with backoff for up to a minute; when the host answers again the picture resumes on its own. Only after that minute, or when the host deliberately ends or refuses the session, does the window close with the reason. A shell window retries on its own for two minutes and then reports the connection as lost; the shell itself stays on the host with no time limit, ready to be picked back up (H-13). | | V-9 | Full screen (desktop) | On Windows, macOS and Linux, `F11` or the **Full screen (F11)** button above the picture fills the whole monitor with the remote screen, the button bar hidden; `F11` again returns to the window. `F11` is kept by the viewer, in view-only sessions too, and never reaches the host. On a Mac keyboard whose function keys control the hardware, press `fn`+`F11`. | | V-10 | One pointer (desktop) | On Windows, macOS and Linux, while a session that controls the host has the pointer over the remote screen, the viewer hides its own pointer, so only the host's — drawn into the picture — is seen. `F9` or the **Show my cursor (F9)** button brings the viewer's pointer back over the picture, and **Hide my cursor (F9)** hides it again; the button names what it will do next. `F9` is kept by the viewer and never reaches the host. The viewer's pointer always shows over the button bar, the black bars beside the picture and outside the window, and in view-only sessions, which have no such button. | +| V-11 | Mute | When the viewer plays the host's sound (V-6, T-23), every viewer shows a **Mute sound** button — beside **Show my cursor** on Windows and Linux and in the button bar on macOS, in the session controls on Android and iOS — in view-only sessions too. It silences this window only: the host keeps playing and keeps sending, so **Unmute sound** brings the sound back at once, in step with the picture. The button names what it will do next. A new session starts with sound on, and the choice holds when the session switches to another display. | ## 8. Controlling the remote machine diff --git a/docs/SPECIFICATION.vi.md b/docs/SPECIFICATION.vi.md index 81162a7a4..490e84c09 100644 --- a/docs/SPECIFICATION.vi.md +++ b/docs/SPECIFICATION.vi.md @@ -140,6 +140,7 @@ CLI xem màn hình được trên Windows và Linux; trên macOS, hãy dùng app | V-8 | Tự kết nối lại | Một session mất host — network gián đoạn, stream ngừng dữ liệu — không kết thúc ngay. Cửa sổ giữ nguyên khung hình cuối, báo trạng thái đang reattach, và kết nối lại với backoff trong tối đa một phút; khi host phản hồi trở lại, hình ảnh tiếp tục. Chỉ sau khoảng thời gian đó, hoặc khi host chủ động kết thúc hay từ chối session, cửa sổ mới đóng kèm lý do. Cửa sổ shell tự thử lại trong hai phút rồi báo mất kết nối; bản thân shell vẫn ở trên host không giới hạn thời gian, sẵn sàng để nhận lại (H-13). | | V-9 | Toàn màn hình (desktop) | Trên Windows, macOS và Linux, `F11` hoặc nút **Full screen (F11)** phía trên hình cho màn hình từ xa phủ kín cả màn hình, ẩn thanh nút; bấm `F11` lần nữa để trở về cửa sổ. `F11` do viewer giữ lại, kể cả trong session chỉ xem, và không bao giờ được gửi tới host. Trên bàn phím Mac có phím chức năng đang điều khiển phần cứng, bấm `fn`+`F11`. | | V-10 | Một con trỏ (desktop) | Trên Windows, macOS và Linux, khi một session đang điều khiển host có con trỏ nằm trên màn hình từ xa, viewer ẩn con trỏ của chính nó để chỉ còn con trỏ của host, vốn được vẽ trong hình. `F9` hoặc nút **Show my cursor (F9)** cho con trỏ của viewer hiện lại trên hình, và **Hide my cursor (F9)** ẩn nó đi; nhãn nút luôn nói việc nó sẽ làm. `F9` do viewer giữ lại và không bao giờ được gửi tới host. Con trỏ của viewer luôn hiện trên thanh nút, trên dải đen hai bên hình, ngoài cửa sổ, và trong session chỉ xem — loại session không có nút này. | +| V-11 | Tắt tiếng | Khi viewer phát âm thanh của host (V-6, T-23), mọi viewer có nút **Mute sound** — cạnh **Show my cursor** trên Windows và Linux, trong thanh nút trên macOS, trong bảng điều khiển session trên Android và iOS — kể cả session chỉ xem. Nút chỉ tắt tiếng cửa sổ này: host vẫn phát và vẫn gửi, nên **Unmute sound** mở lại tiếng ngay, khớp với hình. Nút ghi việc nó sẽ làm tiếp theo. Session mới luôn bắt đầu có tiếng, và lựa chọn được giữ khi session chuyển sang màn hình khác. | ## 8. Điều khiển máy từ xa diff --git a/docs/SPECIFICATION.zh.md b/docs/SPECIFICATION.zh.md index fc6a2b53c..960c8b57d 100644 --- a/docs/SPECIFICATION.zh.md +++ b/docs/SPECIFICATION.zh.md @@ -136,6 +136,7 @@ CLI 可在 Windows 和 Linux 上查看远程屏幕;macOS 上请使用 app 观 | V-8 | 自动重连 | 失去 host 的 session —— network 中断,stream 停止 —— 不会立即结束。窗口保留最后一帧画面,显示正在 reattach,并以 backoff 方式重连最多一分钟;host 再次应答后画面自动恢复。仅在该时间之后,或 host 主动结束、拒绝该 session 时,窗口才会连同原因关闭。shell 窗口自行重试两分钟后报告连接丢失;shell 本体无时间限制地留在 host 上,随时可接回(H-13)。 | | V-9 | 全屏(桌面) | 在 Windows、macOS 与 Linux 上,按 `F11` 或画面上方的 **Full screen (F11)** 按钮,远端屏幕将铺满整个显示器并隐藏按钮栏;再按一次 `F11` 回到窗口。`F11` 由 viewer 保留(只看 session 中亦然),永远不会发送到 host。若 Mac 键盘的功能键用于控制硬件,请按 `fn`+`F11`。 | | V-10 | 单一指针(桌面) | 在 Windows、macOS 与 Linux 上,当控制 host 的 session 中指针位于远端屏幕上方时,viewer 会隐藏自己的指针,只显示绘制在画面中的 host 指针。按 `F9` 或 **Show my cursor (F9)** 按钮可让 viewer 的指针重新显示在画面上,**Hide my cursor (F9)** 则再次隐藏;按钮文字始终说明下一步的动作。`F9` 由 viewer 保留,永远不会发送到 host。viewer 的指针在按钮栏上、画面两侧的黑边上、窗口外以及只看 session 中(此类 session 没有该按钮)始终显示。 | +| V-11 | 静音 | 当 viewer 播放 host 的声音时(V-6、T-23),所有 viewer 都提供 **Mute sound** 按钮——Windows 和 Linux 上位于 **Show my cursor** 旁边,macOS 上位于按钮栏中,Android 和 iOS 上位于 session 控制面板中——仅查看的 session 也有。它只让当前窗口静音:host 继续播放、继续发送,因此 **Unmute sound** 可立即恢复声音,并与画面保持同步。按钮显示的是它下一步将执行的操作。新 session 始终以有声状态开始,切换到其他显示器时保留该选择。 | ## 8. 操作远端机器 diff --git a/packaging/release-notes/v9.4.0.md b/packaging/release-notes/v9.4.0.md index cf633845a..b637def40 100644 --- a/packaging/release-notes/v9.4.0.md +++ b/packaging/release-notes/v9.4.0.md @@ -6,6 +6,14 @@ Coming from 8.x or older, read the [9.0.1 notes](https://github.com/Bitfaring/Deskhub/releases/tag/v9.0.1) first: every device must be on Deskhub 9. +## ✨ New + +- **Mute the host's sound from the viewer.** Every viewer that plays the host's sound now + has a **Mute sound** button: beside **Show my cursor** on Windows and Linux, in the + button bar on macOS, and in the session controls on Android and iOS. It silences only + that window; **Unmute sound** brings the sound back at once, in step with the picture. + ([#161](https://github.com/Bitfaring/Deskhub/issues/161)) + ## 🔄 Changes - **Deskhub moved to [github.com/Bitfaring/Deskhub](https://github.com/Bitfaring/Deskhub).** diff --git a/platform/include/deskhubp/audio/AudioPlayer.h b/platform/include/deskhubp/audio/AudioPlayer.h index 08f026329..c3641f2d6 100644 --- a/platform/include/deskhubp/audio/AudioPlayer.h +++ b/platform/include/deskhubp/audio/AudioPlayer.h @@ -33,6 +33,10 @@ class AudioPlayer { void Push(const deskhub::AudioPacketView& packet); + void SetMuted(bool muted) { + muted_.store(muted, std::memory_order_relaxed); + } + bool running() const { return running_.load(std::memory_order_acquire); } @@ -57,6 +61,7 @@ class AudioPlayer { std::thread thread_; std::atomic running_{false}; std::atomic quit_{false}; + std::atomic muted_{false}; std::atomic decodeFailures_{0}; }; diff --git a/platform/include/deskhubp/client/ScreenViewer.h b/platform/include/deskhubp/client/ScreenViewer.h index d95f2381a..14cee18ef 100644 --- a/platform/include/deskhubp/client/ScreenViewer.h +++ b/platform/include/deskhubp/client/ScreenViewer.h @@ -278,6 +278,10 @@ class ScreenViewer { return player_.running(); } + void SetAudioMuted(bool muted) { + player_.SetMuted(muted); + } + private: static constexpr size_t kMaxQueuedFrames = 3; static constexpr uint64_t kSlowDecodeMs = 20; diff --git a/platform/include/deskhubp/ffi/ClientFfi.h b/platform/include/deskhubp/ffi/ClientFfi.h index 4a864d68e..162c68e34 100644 --- a/platform/include/deskhubp/ffi/ClientFfi.h +++ b/platform/include/deskhubp/ffi/ClientFfi.h @@ -368,6 +368,8 @@ bool dh_cursor_normalize(DHCursor cur, DHViewRect video, int32_t* nx, int32_t* n const char* dh_cursor_button_label(bool cursorHidden); +const char* dh_sound_button_label(bool muted); + int dh_control_subtitle(const char* statusLine, char* out, int capacity); int dh_view_only_subtitle(const char* statusLine, char* out, int capacity); diff --git a/platform/include/deskhubp/ffi/ScreenFfi.h b/platform/include/deskhubp/ffi/ScreenFfi.h index 7858da3a9..228af9a45 100644 --- a/platform/include/deskhubp/ffi/ScreenFfi.h +++ b/platform/include/deskhubp/ffi/ScreenFfi.h @@ -54,6 +54,8 @@ void dh_screen_mouse_wheel_notches(DHScreen* s, int32_t notches); void dh_screen_clip_offer(DHScreen* s, const char* text); int dh_screen_clip_take(DHScreen* s, char* out, int capacity); +void dh_screen_set_audio_muted(DHScreen* s, bool muted); + typedef struct { DHPhase phase; uint32_t videoWidth; diff --git a/platform/include/deskhubp/ffi/ScreenFfiForward.h b/platform/include/deskhubp/ffi/ScreenFfiForward.h index 0a31a3bc2..ea8001ea0 100644 --- a/platform/include/deskhubp/ffi/ScreenFfiForward.h +++ b/platform/include/deskhubp/ffi/ScreenFfiForward.h @@ -73,6 +73,10 @@ return int(std::strlen(out)); \ } \ \ + void dh_screen_set_audio_muted(DHScreen* s, bool muted) { \ + if (s) engineOf(s).SetAudioMuted(muted); \ + } \ + \ void dh_screen_accept_key(DHScreen* s) { \ deskhubp::AcceptFfiScreenKey(s); \ } \ diff --git a/platform/src/audio/AudioPlayer.cpp b/platform/src/audio/AudioPlayer.cpp index 0380fe090..5b6821883 100644 --- a/platform/src/audio/AudioPlayer.cpp +++ b/platform/src/audio/AudioPlayer.cpp @@ -3,6 +3,7 @@ #include "deskhubp/diag/Log.h" #include "deskhubp/system/Clock.h" +#include #include namespace deskhubp { @@ -62,9 +63,10 @@ void AudioPlayer::Run() { if (frame) { const size_t samples = Fill(*frame, pcm); - if (samples == format_.samplesPerFrame) + if (samples == format_.samplesPerFrame) { + if (muted_.load(std::memory_order_relaxed)) std::fill(pcm.begin(), pcm.end(), 0); sink_.Write(pcm); - else + } else decodeFailures_.fetch_add(1, std::memory_order_relaxed); } diff --git a/platform/src/ffi/ClientFfi.cpp b/platform/src/ffi/ClientFfi.cpp index 256e4369f..8fdacbd1f 100644 --- a/platform/src/ffi/ClientFfi.cpp +++ b/platform/src/ffi/ClientFfi.cpp @@ -2,6 +2,7 @@ #include "deskhub/input/Hotkeys.h" #include "deskhub/input/LocalCursor.h" +#include "deskhub/media/AudioMute.h" #include "deskhub/input/Set1Scancodes.h" #include "deskhub/input/VirtualKeys.h" #include "deskhub/input/TrackpadCursor.h" @@ -613,6 +614,10 @@ const char* dh_cursor_button_label(bool cursorHidden) { return deskhub::LocalCursorState::CursorButtonLabel(cursorHidden); } +const char* dh_sound_button_label(bool muted) { + return deskhub::media::AudioMuteState::SoundButtonLabel(muted); +} + int dh_control_subtitle(const char* statusLine, char* out, int capacity) { if (!out || capacity <= 0) return 0; deskhubp::CopyToBuf(out, size_t(capacity), From 0ad017742ac0cab0c6c51e252e049ddf0a7f7695 Mon Sep 17 00:00:00 2001 From: Manh Pham Date: Wed, 25 Nov 2026 17:36:41 +0700 Subject: [PATCH 3/3] chore: release 9.4.0 --- VERSION | 2 +- client/ios/fastlane/metadata/review_information/notes.txt | 2 +- manhdev.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index fc65255a1..8148c5594 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.3.7 +9.4.0 diff --git a/client/ios/fastlane/metadata/review_information/notes.txt b/client/ios/fastlane/metadata/review_information/notes.txt index 66ea6db69..6ff4458bd 100644 --- a/client/ios/fastlane/metadata/review_information/notes.txt +++ b/client/ios/fastlane/metadata/review_information/notes.txt @@ -1,7 +1,7 @@ Deskhub provides remote desktop, terminal and file transfer for a computer the user owns or is authorized to access. The iOS client connects directly over QUIC/TLS to the Deskhub host installed on that computer. There is no account, login or Deskhub-operated connection server; demo credentials do not apply. Programs and shell commands run on the host computer. OWNERSHIP AND COMPATIBILITY -I, Manh Pham, independently develop both the Deskhub iOS client and desktop host. Source for the submitted version: https://github.com/Bitfaring/Deskhub/tree/v9.3.7 . The repository includes LICENSE and THIRD_PARTY_NOTICES.md. +I, Manh Pham, independently develop both the Deskhub iOS client and desktop host. Source for the submitted version: https://github.com/Bitfaring/Deskhub/tree/v9.4.0 . The repository includes LICENSE and THIRD_PARTY_NOTICES.md. References to macOS describe host operating-system compatibility. Deskhub is not affiliated with, sponsored by or endorsed by Apple. On macOS, the Deskhub host uses ScreenCaptureKit for screen capture and requests Screen Recording and Accessibility permissions. Remote screen content comes from the connected user's computer during the session. For the October 31 review: the English subtitle in this listing is "Remote Desktop & Terminal"; "Mac" is omitted from the subtitle and from both locales' keywords. If an item still requires rights documentation under 5.2.1, please identify the specific content, asset or hardware integration so I can address it precisely. diff --git a/manhdev.json b/manhdev.json index 5da782d0a..e9b6278aa 100644 --- a/manhdev.json +++ b/manhdev.json @@ -63,5 +63,5 @@ "command": "sudo install -d /etc/apt/keyrings\ncurl -fsSL https://bitfaring.github.io/Deskhub/apt/deskhub.gpg | sudo tee /etc/apt/keyrings/deskhub.gpg >/dev/null\necho \"deb [arch=amd64 signed-by=/etc/apt/keyrings/deskhub.gpg] https://bitfaring.github.io/Deskhub/apt stable main\" | sudo tee /etc/apt/sources.list.d/deskhub.list\nsudo apt update && sudo apt install deskhub" } ], - "version": "v9.3.7" + "version": "v9.4.0" }