mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
fix(updater): recover interrupted swaps reliably across deployments
- Ship one POSIX launcher that repairs an interrupted code swap before Node starts, install it atomically before the swap, and keep it out of CODE_ENTRIES so it always survives at the install root. - Restore from the in-progress task backup (state.json task.id -> backups/<id>) first, then the newest complete backup, so a leftover older backup never resurrects an obsolete build. - Add exact-window SIGKILL recovery tests, including the stale-backup case. - Gate Linux arm64 apply behind a capability check; add five-language copy and i18n labels for arm64, lock and unavailable errors. - Harden the L2 runner handshake and recheck runner health before exit.
This commit is contained in:
1 parent
699e606da5
commit
82b58dbd61
16 files changed
+699
-24
No files matched your search
@@ -182,12 +182,9 @@ jobs:
|
||||
cp "$runtime_root/bin/node" "$package_root/runtime/node"
|
||||
cp "$runtime_root/LICENSE" "$package_root/runtime/NODE-LICENSE"
|
||||
chmod 0755 "$package_root/runtime/node"
|
||||
cat > "$package_root/start-webspeak.sh" <<'LAUNCHER'
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
cd -- "$(dirname -- "$0")"
|
||||
exec "$PWD/runtime/node" "$PWD/dist/index.js"
|
||||
LAUNCHER
|
||||
# Ship the exact launcher the self-update installer and recovery
|
||||
# tests use; never maintain a second launcher body in the workflow.
|
||||
cp "$GITHUB_WORKSPACE/scripts/start-webspeak.sh" "$package_root/start-webspeak.sh"
|
||||
chmod 0755 "$package_root/start-webspeak.sh"
|
||||
|
||||
smoke_root="$RUNNER_TEMP/${package_name}-smoke"
|
||||
|
||||
Reference in new issue
Block a user