Repository navigation
Let the app, AppImageUpdate and GearLever update DiscCompressor Pro (2.3.0) - #13
Merged
Merged
Conversation
AppImageHub asks for it, and AppImageUpdate and GearLever read it. The runtime's .upd_info section now names the .zsync file of the latest release's AppImage (gh-releases-zsync). It is written into electron-builder's runtime before electron-builder puts the runtime at the start of the AppImage and computes the AppImage's checksums. scripts/appimage-zsync.mjs checks the embedded information and writes the .zsync file with zsyncmake; CI installs zsync, checks that the file was written and uploads it with the AppImage, so the release has it. Co-authored-by: pwnedbygary <pwnedbygary@users.noreply.github.com>
The installed Windows app and the AppImage now find, download and install new releases with electron-updater. It reads the latest.yml and latest-linux.yml that electron-builder writes for its GitHub publish configuration, which CI checks and uploads with the installers; electron-builder itself still never publishes. Nothing is downloaded without asking. The status bar says when a new version is out, Help -> About downloads it and restarts into it, and a downloaded update is also installed when the app quits. Restarting is refused while jobs are running. The portable EXE, and an AppImage in a folder the app cannot write to, link to the release page instead. The app checks shortly after it starts and then once a day, which Settings -> Updates turns off, and every copy sends the same staging ID. After an update the new AppImage waits for the old instance to release the single-instance lock. electron-updater and its dependencies are bundled into the app, so their licences join the notices; lazy-val has no licence file, only "MIT" in its package.json, and gets the standard MIT text naming its author. Co-authored-by: pwnedbygary <pwnedbygary@users.noreply.github.com>
Co-authored-by: pwnedbygary <pwnedbygary@users.noreply.github.com>
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.
AppImageHub's test of AppImage/appimage.github.io#7753 warned that the AppImage has no update information, so AppImageUpdate and similar tools can't update it. This PR embeds that information and publishes the
.zsyncfile next to the AppImage. It also gives the app its own updater for the installed Windows app and the AppImage.What changes
.upd_infosection now holdsgh-releases-zsync|pwnedbygary|DiscCompressor-Pro|latest|DiscCompressorPro-*-x86_64.AppImage.zsync, built fromhomepagein package.json.scripts/appimage-tools.mjswrites it into electron-builder's runtime before electron-builder puts the runtime at the start of the AppImage, so the block map and checksums electron-builder adds cover the final file.scripts/appimage-zsync.mjschecks the embedded text and runszsyncmakewith a relative URL. CI installszsync, fails if the file is missing and uploads it. The release job already uploads every file in the build artifacts, so no change was needed there.latest.yml(Windows installer) orlatest-linux.ymlfrom the latest published release. electron-builder writes those files, plusapp-update.ymlin the app, because of the newpublishsection. CI checks and uploads them. electron-builder still never publishes anything itself (--publish never).x-user-staging-id) with each request; here every copy sends the same all-zero ID.differentialPackage: false, as before), and never through the web installer.THIRD_PARTY_NOTICES.txt. lazy-val ships no licence file, only"license": "MIT"in its package.json, so it gets the standard MIT text with its author's name.zsyncmake.Not changed:
How it was verified
--appimage-updateinformationprints the embedded text.appimageupdatetool(2.0.0-alpha-1, 2025-10-18) updated an earlier build, whose update information pointed at a local server, to the current build. It reused 119,836,672 bytes of the old file and downloaded 154,058, and the result was byte-identical to the served AppImage. Thegh-releases-zsynclookup on GitHub can only be tried once a published release has the file.DiscCompressorPro-2.3.1-x86_64.AppImageand started 2.3.1, which reported "You have the latest version." I ran this again on the final code with the same result.latest.yml; the installer update path (--updated /S --force-run) and the portable/installed detection were checked in review.npm run checkpasses with 253 tests, and each commit passes on its own. actionlint passes. New tests cover the update-support detection, every state change of the updater (including errors, running the download and install only once, the busy check, and hourly/daily scheduling across sleep), settings, IPC, and the renderer store.2.3.0 finds 2.3.1
2.3.1 downloaded, ready to restart
Restarted as 2.3.1
To show artifacts inline, enable in settings.