Repository navigation
feat: add version check and update functionality in settings - #3
Merged
Merged
Conversation
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.
This pull request introduces a new update-checking feature and updates the app to version 0.2.0. It adds a version display and manual update check to the Settings UI, implements backend logic for checking the latest release on GitHub, and updates documentation and metadata to reflect the new version and update process.
Update-checking feature:
index.html,src/main.ts) to display the current version and provide "Check for updates" and "Download" buttons. The app now shows its version and allows users to manually check for newer releases. ([[1]](https://github.com/iniandrew/yaptic/pull/3/files#diff-0eb547304658805aad788d320f10bf1f292797b5e6d745a3bf617584da017051R194-R206),[[2]](https://github.com/iniandrew/yaptic/pull/3/files#diff-4fab5baaca5c14d2de62d8d2fceef376ddddcc8e9509d86cfa5643f51b89ce3dR1),[[3]](https://github.com/iniandrew/yaptic/pull/3/files#diff-4fab5baaca5c14d2de62d8d2fceef376ddddcc8e9509d86cfa5643f51b89ce3dR373-R400),[[4]](https://github.com/iniandrew/yaptic/pull/3/files#diff-4fab5baaca5c14d2de62d8d2fceef376ddddcc8e9509d86cfa5643f51b89ce3dL610-R653))src-tauri/src/update.rs) to query GitHub for the latest release, compare versions, and report availability of updates. Also added a command to open the releases page in the browser. ([src-tauri/src/update.rsR1-R131](https://github.com/iniandrew/yaptic/pull/3/files#diff-1ec3e13a955e9e4fc50cc44a0d2562d721eb1d6e171578d4482913cfa2503cd3R1-R131))src-tauri/src/lib.rs). ([[1]](https://github.com/iniandrew/yaptic/pull/3/files#diff-eabcebd0ae5c9b77a5247e1bdbdb88b1869fc0c932d0ef0cf2ecf9ee5221be7cR14),[[2]](https://github.com/iniandrew/yaptic/pull/3/files#diff-eabcebd0ae5c9b77a5247e1bdbdb88b1869fc0c932d0ef0cf2ecf9ee5221be7cR49-R50))open_urlinpermissions.rspublic so it can be reused for opening the release page. ([src-tauri/src/permissions.rsL69-R69](https://github.com/iniandrew/yaptic/pull/3/files#diff-0ab9d6f4ab82cd07bda30ed564ee3f810e290d5e56ebae10742a9da20991d66fL69-R69))Documentation and metadata updates:
.github/release-notes/v0.2.0.md,README.md) ([[1]](https://github.com/iniandrew/yaptic/pull/3/files#diff-3d79dda2d3feb01d334545d8c1b9e0a9f92799311623b512463329f9b02dd343R1-R27),[[2]](https://github.com/iniandrew/yaptic/pull/3/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R69-R76),[[3]](https://github.com/iniandrew/yaptic/pull/3/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L133-R143))package.json,src-tauri/Cargo.toml,src-tauri/tauri.conf.json). ([[1]](https://github.com/iniandrew/yaptic/pull/3/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L4-R4),[[2]](https://github.com/iniandrew/yaptic/pull/3/files#diff-fe4c6a80a21e81339e2e0faeb9134d0f9636c168987df13c8abf1927a1caee39L3-R3),[[3]](https://github.com/iniandrew/yaptic/pull/3/files#diff-fa09f1dac39604a735cd6a53957d3c35e0c3298cca9cf4829180f167abbd69b7L4-R4))