Skip to content

P1: Improve portable upgrade swap (temp + atomic replace + rollback) #22

Closed

Description

@Kinin-Code-Offical
No description provided.

Activity

  1. Kinin-Code-Offical commented on Dec 22, 2025

    @Kinin-Code-Offical
    OwnerAuthor

    Plan:

    • Update portable update script to use a temp file in the target directory.
    • Swap via rename, keep a backup, and rollback to backup if replace fails.
    • Clean up temp/backup on success.

    Risks:

    • If antivirus locks the exe during swap, replacement may fail; ensure rollback is attempted.

    Tests:

    • npm ci
    • npm run lint
    • npm test
    • npm run build
    • npm run package
    • npm run smoke:exe
  2. Kinin-Code-Offical commented on Dec 22, 2025

    @Kinin-Code-Offical
    OwnerAuthor

    PR merged: #39
    Merge commit: b2f7ad8
    Tests: npm ci, npm run lint, npm test, npm run build, npm run package, npm run smoke:exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions