#39 - The app says when a newer version is out, and opens its download page #43
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RollNote/rollscan!43
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/39-new-version-notice"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a newer Rollscan has been released, the app now says so: a Version X.Y.Z is out button shows up in the top bar, and pressing it opens that release's page in the browser, where the new installer is. Nothing is downloaded or installed by the app: you update the way you installed it.
Part of #39
How it works
/api/v1/repos/RollNote/rollscan/releases/latest) once a run, the first time the page asks forGET /api/new-version. The answer is kept until the app quits.X.Y.Ztags count, compared as numbers (0.10.0beats0.9.0). Drafts, pre-releases and other tag names are ignored.POST /api/new-version/openopens a URL built by the app (.../releases/tag/<tag>) with the same command as "Show scans in the file manager" (xdg-open,open,explorer.exe).folders::open_folder_commandbecameopen_commandfor that.WARNINGline.ureq(rustls with ring, Mozilla's root certificates built in), so there's no OpenSSL to install and nothing new is needed to build on Windows.latest.jsonput together at every release.Tested
cargo test: 306 passed (4 new tests inupdates.rsfor comparing versions and ignoring releases that don't count).--no-windowagainst the real Forgejo: at0.7.0the answer isnull. Built as0.6.2for the check only (not committed), the answer is{"version":"0.7.0", ...}and the button shows "Version 0.7.0 is out" in the bar (checked in a browser).null, the button doesn't show, and the log sayscan't tell whether a newer version is out: ... Connection refused.Not tested
ureq/rustls build on Windows (MSVC) is untested.--no-window.Changes in behaviour
docs/installation.md#updatingsays so.