Updater from public releases, English UI by default with Russian selectable, cancelable capture, English technical messages, language-independent smoke hooks
ci / linux-arm64-cross (push) Successful in 1m54s
ci / linux-x64 (push) Successful in 2m45s

This commit is contained in:
omar committed 2026-10-24 06:34:33 +03:00
1 parent ba4c7ec2af
commit 1142c9f60d
53 files changed
+4005 -549

No files matched your search

+3
View File
@@ -62,6 +62,9 @@ jobs:
TEAMSPEACH_SMOKE_EXTRA_ARGS: --no-sandbox
run: xvfb-run -a node scripts/smoke-ui.mjs --out smoke-out
- name: Updater engine behaviour (Xvfb, emulated release host)
run: xvfb-run -a node --test test/update-engine.test.mjs
- name: Upload smoke evidence
if: always()
uses: actions/upload-artifact@v3
+19 -7
View File
@@ -63,9 +63,15 @@ jobs:
TEAMSPEACH_SMOKE_EXTRA_ARGS: --no-sandbox
run: xvfb-run -a node scripts/smoke-ui.mjs --out smoke-out
- name: Updater engine behaviour (Xvfb, real electron-updater, emulated release server)
run: xvfb-run -a node --test test/update-engine.test.mjs
- name: Package
run: node scripts/dist.mjs --os linux --arch x64
- name: Update feed matches the packages (name, size, sha512, version)
run: node scripts/update-feed-check.mjs --version "$(node -p "require('./package.json').version")" dist/*-linux.yml
- name: Package report (ELF layout of every packaged binary incl. the AppImage runtime)
run: |
set -euo pipefail
@@ -75,7 +81,7 @@ jobs:
git rev-parse HEAD >> "$report"
node scripts/elf-pagesize.mjs dist/linux-unpacked dist/TeamsPeach-*.AppImage --page 4096 --json dist/elf-report-linux-x64.json > elf.txt
cat elf.txt >> "$report"
sha256sum dist/*.AppImage dist/*.tar.gz >> "$report"
sha256sum dist/*.AppImage dist/*.tar.gz dist/*-linux.yml >> "$report"
cat "$report"
- uses: actions/upload-artifact@v3
@@ -86,6 +92,7 @@ jobs:
dist/*.tar.gz
dist/build-info-linux-x64.txt
dist/elf-report-linux-x64.json
dist/*-linux.yml
if-no-files-found: error
linux-arm64:
@@ -131,6 +138,7 @@ jobs:
set -euo pipefail
npm ci
node scripts/dist.mjs --os linux --arch arm64
node scripts/update-feed-check.mjs --version "$(node -p "require('./package.json').version")" dist/*-linux-arm64.yml
- name: 16 KiB page check of every packaged ELF incl. the AppImage runtime (Asahi)
run: |
@@ -140,7 +148,7 @@ jobs:
git rev-parse HEAD >> "$report"
node scripts/elf-pagesize.mjs dist/linux-arm64-unpacked dist/TeamsPeach-*-arm64.AppImage --page 16384 --json dist/elf-report-linux-arm64.json > elf.txt
cat elf.txt >> "$report"
sha256sum dist/*.AppImage dist/*.tar.gz >> "$report"
sha256sum dist/*.AppImage dist/*.tar.gz dist/*-linux-arm64.yml >> "$report"
cat "$report"
- uses: actions/upload-artifact@v3
@@ -151,6 +159,7 @@ jobs:
dist/*.tar.gz
dist/build-info-linux-arm64.txt
dist/elf-report-linux-arm64.json
dist/*-linux-arm64.yml
if-no-files-found: error
# The AppImage runtime must start on a stock system: run it in a slim container without development
@@ -208,10 +217,13 @@ jobs:
set -euo pipefail
node scripts/check-version.mjs
cat > notes.md <<'EOF'
Linux x64 и Linux ARM64 (aarch64) собраны в CI: тесты, офлайн-проверка ядра, проверка выравнивания ELF
(для ARM64 — страницы 16 КиБ, включая загрузчик AppImage), см. build-info-*.txt.
ARM64 проверен статически и под qemu, не на Apple Silicon. Пакеты не подписаны.
Сборка Windows x64 собирается на машине разработчика из того же коммита и прикладывается отдельно
с пометкой local.
Linux x64 and Linux ARM64 (aarch64) are built in CI: tests, offline core check, ELF alignment check
(16 KiB pages for ARM64, including the AppImage runtime), see build-info-*.txt.
ARM64 is checked statically and under qemu, not on Apple Silicon. Packages are not signed.
Windows x64 is built on the developer machine from the same commit and attached separately
(provenance in *-win-x64-local-build-info.txt).
Automatic updates (from the first updater-capable version on): Windows x64 NSIS installation and
Linux AppImage install from this release's latest*.yml / <channel>*.yml feeds after user confirmation;
zip and tar.gz users are notified and replace files manually.
EOF
node scripts/publish-release.mjs artifacts notes.md
+68
View File
@@ -0,0 +1,68 @@
# Manual end-to-end proof of the AppImage self-update between two PUBLISHED releases (Linux x64).
# Downloads the older release's AppImage anonymously, runs it in a disposable profile under Xvfb with
# APPIMAGE_EXTRACT_AND_RUN, lets it update itself from git.eeee.moe and checks version + identity afterwards.
# Uses no secrets; never runs on pull requests.
name: update-e2e
on:
workflow_dispatch:
inputs:
from_tag:
description: Older updater-capable release tag (e.g. v0.1.2-rc.1)
required: true
to_tag:
description: Newer release tag the old one must update to (e.g. v0.1.2-rc.2)
required: true
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
appimage-x64:
runs-on: ubuntu-latest
container:
image: node:22-bookworm
steps:
- uses: actions/checkout@v4
- name: System packages (container only)
run: |
set -euo pipefail
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl xvfb xauth libnss3 libatk1.0-0 \
libatk-bridge2.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 libasound2 libxss1 libxshmfence1 \
libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libpango-1.0-0
- name: Test driver (playwright-core)
run: npm ci
- name: Download the older published AppImage (anonymous)
env:
FROM_TAG: ${{ inputs.from_tag }}
run: |
set -euo pipefail
[[ "$FROM_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]] || { echo "bad tag $FROM_TAG"; exit 2; }
mkdir -p old
curl -fsSL -o "old/TeamsPeach-${FROM_TAG#v}.AppImage" \
"https://git.eeee.moe/TeamsPeach/client/releases/download/${FROM_TAG}/TeamsPeach-${FROM_TAG#v}.AppImage"
sha256sum old/*.AppImage
- name: Self-update end to end
env:
FROM_TAG: ${{ inputs.from_tag }}
TO_TAG: ${{ inputs.to_tag }}
run: |
set -euo pipefail
[[ "$TO_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]] || { echo "bad tag $TO_TAG"; exit 2; }
xvfb-run -a node scripts/update-e2e.mjs --from "old/TeamsPeach-${FROM_TAG#v}.AppImage" --to-tag "$TO_TAG" --out update-e2e-out
cat update-e2e-out/result.json
- uses: actions/upload-artifact@v3
if: always()
with:
name: update-e2e
path: update-e2e-out/