## Problem and outcome / 问题与结果 App authorization could stay busy after a stalled save, a pending microphone request could survive a capture-source handoff, and compact room controls could lose focus, position or readable names. This maintenance phase corrects those owners and makes connection help easier to find. ## Verification / 验证 Validation: the exact candidate tree passed all 1,943 Web tests and documentation checks. Its unchanged product source has passed TypeScript and a production Web build. Controlled UI checks cover delayed microphone permission, stalled approval responses, keyboard viewport changes, rapid floating-panel hide/show and narrow nickname layouts. Published 2.x wire, native control and storage contracts are unchanged. ## Impact / 影响 Compatible 2.x maintenance release. Existing App, site and persisted room contracts are retained. Matching packages, download mirrors and both managed sites are verified through the normal release workflow. ## Release notes **Piik, now in your pocket.** Piik App supports Android screen sharing, with touch controls for a friend's computer. **手机,也能开播。** Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。 ### English This maintenance update improves App authorization, capture-source switching and controls on smaller screens. - Fix commentary controls remaining busy after switching from Browser capture to the App. - Let App site approval recover from a stalled save, keeping access already granted. - Preserve numeric-input focus when the mobile keyboard resizes the page, and provide increase/decrease buttons. Keep interaction windows at their remembered position after rapid hide/show actions. - Give nicknames readable space on smaller screens, while retaining edit controls and accessible labels. Keep launcher diagnostics inside the shared Help menu. - Make room-connection help easier to find, and clarify Safari screen-sharing and sound support. - Complete package mirroring after a later CI publication step fails, and verify managed-service deployments against the intended source revision. This maintenance update preserves the established 2.x room, invitation, media, App-control and storage contracts. Refresh a site's open pages after it is updated. App-local users need the updated App bundle to receive its included Web fixes. Existing compatible 2.x App/site workflows remain supported. ### 中文 本次维护更新改善 App 授权、切换分享源和小屏操作。 - 修复浏览器切换为 App 采集后,分享麦克风控制一直处于忙碌状态的问题。 - App 站点授权不再因保存卡住而一直转圈;可以重试,已批准的授权也会保留。 - 手机键盘改变页面尺寸时保留数字输入焦点,并提供增减按钮;互动窗口快速隐藏再打开后保留记忆位置。 - 小屏上为昵称保留可读空间,同时保留编辑入口与无障碍名称;启动页诊断统一收进帮助菜单。 - 更容易找到房间连接问题的排查入口,并说明 Safari 屏幕分享与声音的支持情况。 - 发布流程后续步骤失败时,仍可补全已经发布的程序包镜像;部署核验明确比对预期源码版本。 本维护更新保留既有 2.x 房间、邀请、媒体、App 控制与存储契约。 站点更新后请刷新已打开的网页;App 本地使用者需更新程序包,才能使用其中的新网页修复。 已有兼容的 2.x App/站点使用方式继续支持。
83 lines
3.0 KiB
YAML
83 lines
3.0 KiB
YAML
name: AtomGit mirror
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [CI]
|
|
types: [completed]
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
inputs:
|
|
run_id:
|
|
description: Original CI run that published the current GitHub release
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: read
|
|
actions: read
|
|
|
|
concurrency:
|
|
group: atomgit-mirror
|
|
cancel-in-progress: false
|
|
queue: max
|
|
|
|
jobs:
|
|
mirror:
|
|
if: >-
|
|
github.repository == 'TNTcraftHIM/Piik' && github.ref == 'refs/heads/main' &&
|
|
(github.event_name == 'workflow_dispatch' ||
|
|
(github.event.workflow_run.event == 'push' &&
|
|
github.event.workflow_run.head_branch == 'main'))
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
# Execute trusted main tooling; upstream artifacts are data, never code.
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .node-version
|
|
cache: npm
|
|
- run: npm ci --ignore-scripts
|
|
- name: Resolve the published source
|
|
id: source
|
|
run: node scripts/release-mirror-source.mjs "$PIIK_SOURCE_RUN_ID"
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
PIIK_SOURCE_RUN_ID: ${{ inputs.run_id || github.event.workflow_run.id }}
|
|
- name: Download original Server artifacts
|
|
if: steps.source.outputs.mirror == 'true'
|
|
uses: actions/download-artifact@v8
|
|
with:
|
|
github-token: ${{ github.token }}
|
|
run-id: ${{ steps.source.outputs.run_id }}
|
|
pattern: piik-server*-${{ steps.source.outputs.revision }}
|
|
path: ${{ runner.temp }}/mirror-release
|
|
merge-multiple: true
|
|
- name: Download original App artifacts
|
|
if: steps.source.outputs.mirror == 'true'
|
|
uses: actions/download-artifact@v8
|
|
with:
|
|
github-token: ${{ github.token }}
|
|
run-id: ${{ steps.source.outputs.run_id }}
|
|
pattern: piik-app-*-${{ steps.source.outputs.revision }}
|
|
path: ${{ runner.temp }}/mirror-release
|
|
merge-multiple: true
|
|
- name: Mirror and verify original packages
|
|
if: steps.source.outputs.mirror == 'true'
|
|
run: >-
|
|
node scripts/mirror-release.mjs
|
|
"$RUNNER_TEMP/mirror-release" "$PIIK_RELEASE_VERSION" "$PIIK_RELEASE_REVISION"
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
ATOMGIT_TOKEN: ${{ secrets.ATOMGIT_TOKEN }}
|
|
PIIK_RELEASE_VERSION: ${{ steps.source.outputs.version }}
|
|
PIIK_RELEASE_REVISION: ${{ steps.source.outputs.revision }}
|
|
- name: Explain recovery
|
|
if: failure() && steps.source.outputs.mirror == 'true'
|
|
run: |
|
|
printf 'Mirror failed; GitHub publication and Website are independent. Retry this workflow with original CI run %s. If artifacts expired, recover the retained original build output; do not rebuild this version. See docs/operations/github.md.\n' "$PIIK_SOURCE_RUN_ID" >> "$GITHUB_STEP_SUMMARY"
|
|
env:
|
|
PIIK_SOURCE_RUN_ID: ${{ steps.source.outputs.run_id }}
|