Waiting feedback and tooltips now share consistent presentation lifecycles, while App shutdown and native-media operation failures stay within their owning session or output. This phase also consolidates the project standards and publishes searchable English/Chinese reader documentation alongside the homepage. Validation: repository hygiene and Markdown links; TypeScript, 971 Web tests and production build; website/documentation build; Go tests, vet and Windows/Linux builds with Windows capture checks; desktop/mobile UI and documentation review. Linux race, container and three-platform packaging checks run in the release pipeline. Physical macOS/Linux capture and broader network coverage remain outside this acceptance. The owner approved v1.4.0 publication. Existing empty-source, Windows URL-handler and public-invitation timeout reports remain tracked; this release makes no claim to resolve those device/network reports. The Windows capture-border request is next-phase work. ## Release notes ### 中文 这是一次以稳定性和交互一致性为重点的功能更新。等待与提示更有反馈,App 启动、原生分享和连接恢复的边界处理得到改善,使用与部署指南也有了统一的文档中心。 #### 新增与改进 - 欢迎语、等待短句和六类可轮换的标签页标题共用一致的显示规则。等待短句从一开始就出现,并在停留时轮换;明确的错误与操作提示保持固定。 - 房间准入等漫画采用更克制的小人物与循环动效。改进 tooltip 的定位与指向,减少对播放器的遮挡;状态、图标和文案保持相同含义。 - 新增中英文文档中心,提供搜索、手机目录、使用教程、问题排查与自部署指南。官网 FAQ 聚焦开始使用前的问题,详细排查统一进入文档中心。 #### 修复 - 使用 `--local` 启动不再清空已保存的 Piik 站点地址。 - 打开系统浏览器不再阻塞 App 的退出流程;改进临时公网邀请、终端和诊断导出在关闭时的清理及错误反馈。 - 单条原生媒体连接的操作失败不再被误判为整个会话的协议错误;重复停止分享保持幂等。 - 修复连接替换、转发停止和异常退出时的部分资源清理问题,避免迟到结果影响当前连接。 - Windows 原生采集中,单个输出的编码错误只结束对应输出;共享采集源本身的错误仍会结束分享。 #### 升级与已知边界 本次保持现有协议版本与配置格式。更新 App 或自托管 Server 后,重新打开页面即可使用对应的新界面。 个别设备的空窗口列表、Windows 浏览器启动异常,以及 Linux 编码输出的故障隔离仍在跟进。macOS/Linux 的物理采集和更广泛的公网网络场景仍需实机验证;本次不宣称这些问题已经解决,也不承诺所有网络都能直连。 ### English This feature update focuses on stability and consistent feedback. Waiting states are easier to follow, App startup and native sharing handle several failure cases more reliably, and the new documentation center brings usage and deployment guides together. #### New and improved - Welcome lines, waiting captions and six groups of rotating tab titles follow one presentation lifecycle. Waiting captions appear immediately and rotate while visible; actionable errors and instructions remain fixed. - Room-admission comics use restrained characters and looping motion. Tooltips point more accurately to their controls and interfere less with the player, with consistent meanings across illustrations, icons and copy. - A new English/Chinese documentation center includes search, mobile navigation, usage guides, troubleshooting and self-hosting. The homepage FAQ covers questions before getting started and links to the documentation for detailed help. #### Fixes - Starting with `--local` no longer clears a saved Piik site address. - Opening the system browser no longer blocks App shutdown. Temporary public invitations, the terminal and diagnostic exports handle cleanup and exit errors more consistently. - An operation failure on one native media connection no longer becomes a protocol failure for the entire session. Repeated stop-sharing requests are safe. - Fixed cleanup cases during connection replacement, relay shutdown and unexpected exits, preventing late results from affecting the current connection. - On Windows, an encoder failure for one native output stops that output only. A failure of the shared capture source still ends sharing. #### Updating and known limits Protocol versions and configuration formats are unchanged. After updating the App or your self-hosted Server, reopen the page to use its updated interface. Empty source lists on some devices, Windows browser-launch failures and Linux output-failure isolation remain under investigation. Physical macOS/Linux capture and broader public-network coverage still need device testing; this update does not claim to resolve those cases or guarantee a direct connection on every network.
122 lines
7.0 KiB
Markdown
122 lines
7.0 KiB
Markdown
# GitHub Repository And Releases
|
|
|
|
[Versioning](../standards/versioning.md) owns release meaning and compatibility;
|
|
[CONTRIBUTING](../../CONTRIBUTING.md) owns review and local validation. This file
|
|
owns the one-time GitHub settings. The source repository is public; automatic
|
|
package publication has its own activation gate below.
|
|
|
|
## Main And Pull Requests
|
|
|
|
Use squash merging only, with the PR title and body as the squash commit. These
|
|
repository settings are applied. Keep automatic branch deletion off: the normal
|
|
cleanup step checks local worktrees and remaining references first.
|
|
|
|
Protect `main` with PRs required, zero mandatory peer approvals for the solo
|
|
maintainer, administrator enforcement, linear history, and no force pushes or
|
|
deletions. Do not require cloud PR checks while branch/PR CI is intentionally
|
|
quiet; local validation and acceptance precede the squash merge. PR/issue
|
|
templates live in `.github/`; [naming](../../CONTRIBUTING.md#commit-pr-and-branch-names)
|
|
is shared with automatic version selection.
|
|
|
|
These protections are active, including conversation resolution. GitHub Pages
|
|
uses the **GitHub Actions** publishing source and the `piik.tv` custom domain;
|
|
the repository homepage points to `https://piik.tv`. The dedicated Website
|
|
workflow publishes the static site under [website operations](./website.md).
|
|
|
|
## Enable Automatic Publication Once
|
|
|
|
Before enabling, accept the release packages, compatibility baseline, public
|
|
copy and repository visibility; finish main protection. Then set repository
|
|
Actions variable `PIIK_RELEASES_ENABLED` to `true`. This is a repository setting,
|
|
not an environment variable for Piik App or Server.
|
|
|
|
Subsequent accepted PRs merged to main use the existing CI workflow. Product
|
|
changes calculate one version, validate, package Server and all App targets,
|
|
and publish the same artifacts. Standalone website/docs changes validate without
|
|
packaging or releasing; [versioning](../standards/versioning.md#automatic-publication)
|
|
owns that boundary. Runs queue rather than overlap or cancel one another. Branches/PRs
|
|
stay quiet; manual `app_checks` dispatch remains available for candidates.
|
|
Writing a new version back to main is unnecessary and prohibited.
|
|
|
|
For a complete publisher rehearsal, dispatch with `app_checks: true` and an
|
|
explicit `candidate_version` such as `v1.0.0`. This builds genuine Server and
|
|
native App artifacts under one revision and version without tagging or
|
|
publishing. Prepare its [release-note section](../standards/versioning.md#release-notes)
|
|
and inspect the generated preview in the run summary. For a local preview, run
|
|
`node scripts/release-notes.mjs v1.0.0 FULL_SOURCE_SHA` from the checkout with
|
|
full history and tags. Download that run's artifacts and pass their directory, version and
|
|
full revision to `scripts/publish-release.mjs --dry-run` (put the flag after
|
|
the three positional arguments). An omitted candidate version keeps the usual
|
|
development/exact-tag identity.
|
|
|
|
Enable GitHub's built-in release immutability for formal publication where
|
|
available. Upload all assets to the draft before publishing. A failed upload can
|
|
resume its same-source draft; a published version is never clobbered. If its
|
|
files are wrong or incomplete, publish a corrected new version. An older retry
|
|
must not replace a newer release's `latest` designation.
|
|
|
|
To stop future automatic publication, remove/set false the activation variable;
|
|
this does not alter existing releases or a currently running workflow. Inspect
|
|
the active run separately. No pipeline step changes visibility or installs an
|
|
update into a running Piik deployment.
|
|
|
|
## Container Registry
|
|
|
|
The Server image uses `ghcr.io/tntcrafthim/piik`. The publishing job authenticates
|
|
with `GITHUB_TOKEN` and `packages: write`; no additional registry secret is needed.
|
|
The image's source label links it to this repository. GitHub's
|
|
[Container registry guide](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry)
|
|
owns the registry permission and visibility behavior.
|
|
|
|
At first publication, set the Piik container package's visibility to **public**
|
|
in its GitHub package settings; repository visibility alone does not do this.
|
|
Verify both its version tag and `latest` with an anonymous pull before announcing
|
|
the Docker download. Keep repository Actions access enabled for later releases.
|
|
Image checks, version identity and retries follow
|
|
[container distribution](../standards/versioning.md#container-distribution).
|
|
|
|
## Gitee Download Mirror
|
|
|
|
[TNTcraftHIM/Piik](https://gitee.com/TNTcraftHIM/Piik) is a public README/Release
|
|
mirror. Source, documentation and issues stay on GitHub. The publishing job uses
|
|
the repository Actions secret `GITEE_TOKEN`, which is configured; rotate it there
|
|
when needed. Never put it in source, a remote URL or a distributed package.
|
|
GitHub publication continues to use the workflow's scoped token.
|
|
|
|
After GitHub publication, the same job runs `scripts/mirror-release.mjs` on the
|
|
original artifacts. Upload failure leaves the Gitee release marked as a preview.
|
|
Rerun the failed publishing job to verify existing files and upload only missing
|
|
ones. GitHub's published release remains unchanged. Both publishers reject
|
|
changing a published package; use a corrected new version if its bytes are wrong.
|
|
|
|
For a local retry, use the original complete build output retained outside the
|
|
checkout. While the publishing run's artifacts are available, download all four
|
|
into one directory (replace `RUN_ID`, `FULL_SOURCE_SHA` and `VERSION`):
|
|
|
|
```sh
|
|
for artifact in piik-server piik-app-windows-amd64 piik-app-linux-amd64 piik-app-darwin-arm64; do
|
|
gh run download RUN_ID --repo TNTcraftHIM/Piik \
|
|
--name "$artifact-FULL_SOURCE_SHA" --dir /tmp/piik-mirror
|
|
done
|
|
node scripts/mirror-release.mjs /tmp/piik-mirror VERSION FULL_SOURCE_SHA
|
|
```
|
|
|
|
Use a fresh directory. Public Release downloads contain only runtime archives;
|
|
mirror verification also needs the original descriptors, manifest and checksum
|
|
files. If CI artifacts have expired, recover that complete output from the
|
|
operator's retained copy. Rebuilding a published version is not a metadata
|
|
recovery procedure. See [artifact retention](../deployment.md#build-host).
|
|
|
|
Use the release's actual version and full `target_commitish` SHA, with
|
|
`GITEE_TOKEN` supplied through the publisher environment. `--dry-run` after the
|
|
three arguments checks local identity, checksums and attachment sizes without
|
|
publishing. The [release-source policy](../standards/versioning.md#release-sources)
|
|
owns provenance, selection and quota limits. The first public release passed
|
|
complete matching Server and three-platform App mirror download acceptance.
|
|
|
|
## Platform References
|
|
|
|
- [Protected branch availability](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches)
|
|
- [Workflow concurrency and queued runs](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-queueing-multiple-pending-runs)
|
|
- [Immutable release workflow](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases)
|