feat: one-click update install + connection button icons#48
Merged
Conversation
added 2 commits
July 22, 2026 20:49
Adds a "Download & install" button to the update checker that fetches the platform/arch-matching release asset (.dmg/.exe/.deb) and opens the installer via shell.openPath. The existing browser download link stays as a fallback for Linux without a matching package and unknown platforms. - checkForUpdate: parse GitHub release assets, pickInstallerAsset(platform,arch), expose the chosen installer on UpdateInfo - downloadInstaller: stream asset to the downloads dir with a GitHub host allowlist (github.com / *.githubusercontent.com, https only) and filename sanitizing - new downloadUpdate IPC channel wired through preload/register/main - useDownloadUpdate hook + Settings install button with pending/success/error states - i18n keys in all 6 locales; unit tests for picker, host allowlist, download streaming, and the button flow
DGINXREAL
force-pushed
the
feat/some-adjustments
branch
from
July 22, 2026 18:50
114d85c to
a1f6b06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two changes on this branch:
1. One-click update install (Settings)
The update checker gains a "Download & install" button. It downloads the release asset matching the current platform and architecture (
.dmg/.exe/.deb) and opens the installer viashell.openPath. The existing browser "Download" link stays as a fallback (Linux without a matching package, unknown platforms).checkForUpdate: parses the GitHub releaseassets[], new pure functionpickInstallerAsset(platform, arch), exposes the choseninstalleronUpdateInfodownloadInstaller: streams the asset into the downloads directory with a host allowlist (github.com/*.githubusercontent.com, https only) and filename sanitizing against path traversaldownloadUpdateIPC channel (preload → register → main)useDownloadUpdatehook + install button with pending/success/error states2. Import/export button icons (Connections)
FiDownload(import) andFiUpload(export all) for consistent button styling.Notes
npm start).Verification
tsc --noEmitclean