Commit Graph
3 Commits
Author SHA1 Message Date
Lam Wei Lun 12fdd8bddf Download Windows portable and AppImage updates instead of installing them
Only the Windows installer and the macOS bundle are replaced in-app now.
A Windows portable zip and a Linux AppImage open their matching release
asset in the browser, and a Flatpak build opens its Flathub page.

WindowsPortable and LinuxAppImage stay as flavours so the right asset is
picked, and is_download_only() marks them. They no longer count as
in-app installs, so the dialog shows "Download" for them.

Removed with the in-app path: the AppImage swap (apply_linux.cpp), the
portable branch of apply_windows.cpp, the portable data_dir recovery and
PendingInstall::data_aside, the per-install cache suffix, the AppImage
environment scrub, the helper in the AppImage and its rpath, and
leave_install_folder(). The helper target is built on Windows and macOS
only.

The tests use the Windows installer as the in-app flavour, and cover the
portable zip, the AppImage with its _belt exclusion, and is_download_only().
2026-11-12 15:41:09 +08:00
Lam Wei Lun 4d794edc0b Fix the updater review findings: helper startup, Windows apply, recovery
The helper exited before reading its handoff because wx's command-line
parser rejected --handoff. Windows portable updates failed on tar.exe
lookup, a working directory inside the install, and the nightly zip's
top-level folder. The AppImage helper now ships with its own libraries.

- Restrict downloads to https GitHub release URLs, verify TLS on the
  version check, set CA certificates and FAILONERROR in the downloader.
- Rename the verified download to its asset name, hold it open on
  Windows, and relaunch the app when an update fails before the swap.
- Use nowide paths in the helper for non-ASCII Windows user names.
- Roll back by renaming the new tree aside; stage Linux copies beside
  the target; drop the predictable macOS marker file.
- Require $APPDIR for AppImage detection; reject read-only macOS volumes.
- Check for updates once after Preferences closes, and drop stale results.
- Offer releases without a matching asset, key Nightly skips by version,
  and let Pre-Release offer a newer final release.
- Find pending.json from a .backup copy and keep the backup unless the
  new build is running from the target.
- Move the build timestamp into its own generated header so it no
  longer invalidates ccache on every CI run.
2026-11-12 12:31:44 +08:00
SoftFever 2553d37236 cherry pick Linux specific changes from 2.3 (#13205)
- add a new mode to build in docker
- Improve AppImage
 1. fix  libbz2 soname differeence issue on appimage
 2. Downgrade to 22.04 for better compatibility
 3. improve appimage overall
2026-04-13 17:21:05 +08:00