Drifty
Drifty copied to clipboard
feat: Added feature to perform in-place update of Drifty
Fixes issue
Fixes #217
Changes proposed
- Added a package to check for available update
- Added in-place update methods for both CLI and GUI
Tested Working in/for
- [x] Drifty CLI / Windows
- [x] Drifty GUI (exe) / Windows
- [x] Drifty GUI (msi) / Windows (requires Administrative Privileges)
- [x] Drifty CLI / Linux
- [x] Drifty GUI / Linux
- [ ] Drifty CLI / MacOS
- [x] Drifty GUI / MacOS (PKG installer is opened up for the user to install the latest version)
[!NOTE] For Windows, the .old executable remains after update completes. Once the new executable (starting from version 2.1.0) is run, it deletes that old file during initialisation.
Check List (Check all the applicable boxes)
- [X] My code follows the code style of this project.
- [ ] My change requires changes to the documentation.
- [ ] I have updated the documentation accordingly.
- [X] This PR does not contain plagiarized content.
- [X] The title of my pull request is a short description of the requested changes.
Screenshots
Note to reviewers
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
drifty | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 28, 2024 6:13am |
[!IMPORTANT]
Auto Review Skipped
Draft detected.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
-
I pushed a fix in commit <commit_id>.
-
Generate unit testing code for this file.
-
Open a follow-up GitHub issue for this discussion.
-
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitai
in a new review comment at the desired location with your query. Examples:-
@coderabbitai generate unit testing code for this file.
-
@coderabbitai modularize this function.
-
- PR comments: Tag
@coderabbitai
in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:-
@coderabbitai generate interesting stats about this repository and render them as a table.
-
@coderabbitai show all the console.log statements in this repository.
-
@coderabbitai read src/utils.ts and generate unit testing code.
-
@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
-
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (invoked as PR comments)
-
@coderabbitai pause
to pause the reviews on a PR. -
@coderabbitai resume
to resume the paused reviews. -
@coderabbitai review
to trigger a review. This is useful when automatic reviews are disabled for the repository. -
@coderabbitai resolve
resolve all the CodeRabbit review comments. -
@coderabbitai help
to get help.
Additionally, you can add @coderabbitai ignore
anywhere in the PR description to prevent this PR from being reviewed.
CodeRabbit Configration File (.coderabbit.yaml
)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yaml
file to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/gui/updater/ExecuteUpdate.java:6:8: Unused import - properties.OS. [UnusedImports]
GUI/src/main/java/gui/updater/ExecuteUpdate.java:6:8: Unused import - properties.OS. [UnusedImports]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:35:8: Unused import - properties.Mode. [UnusedImports]
GUI/src/main/java/ui/UIController.java:129:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 117, 130. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:35:8: Unused import - properties.Mode. [UnusedImports]
GUI/src/main/java/ui/UIController.java:129:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 117, 130. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:128:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 116, 129. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:128:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 116, 129. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:119:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 120. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:132:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 120, 133. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 141. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:119:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 120. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:132:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 120, 133. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 141. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:36:8: Unused import - org.buildobjects.process.ProcResult. [UnusedImports]
GUI/src/main/java/ui/UIController.java:119:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 120. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:132:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 120, 133. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 141. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:36:8: Unused import - org.buildobjects.process.ProcResult. [UnusedImports]
GUI/src/main/java/ui/UIController.java:119:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 120. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:132:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 120, 133. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 141. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:36:8: Unused import - org.buildobjects.process.ProcResult. [UnusedImports]
GUI/src/main/java/ui/UIController.java:119:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 120. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:132:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 120, 133. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 141. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:36:8: Unused import - org.buildobjects.process.ProcResult. [UnusedImports]
GUI/src/main/java/ui/UIController.java:119:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 120. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:132:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 120, 133. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 141. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:36:8: Unused import - org.buildobjects.process.ProcResult. [UnusedImports]
GUI/src/main/java/ui/UIController.java:119:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 120. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:132:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 120, 133. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 141. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:36:8: Unused import - org.buildobjects.process.ProcResult. [UnusedImports]
GUI/src/main/java/ui/UIController.java:119:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 120. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:132:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 120, 133. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 141. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:120:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 121. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:133:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 121, 134. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:120:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 121. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:133:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 121, 134. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
Founderrors when linting JAVA. Exit code: 1.
GUI/src/main/java/ui/UIController.java:120:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 121. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:133:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 121, 134. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:120:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 121. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:133:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 121, 134. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
Founderrors when linting JAVA. Exit code: 1.
GUI/src/main/java/ui/UIController.java:120:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 121. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:133:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 121, 134. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
Founderrors when linting JAVA. Exit code: 1.
GUI/src/main/java/ui/UIController.java:120:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 121. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:133:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 121, 134. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
Founderrors when linting JAVA. Exit code: 1.
GUI/src/main/java/ui/UIController.java:120:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 121. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:133:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 121, 134. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
Errorsfound
Super-linterdetected linting errors
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:141:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 142. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:120:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 121. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:133:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 121, 134. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:139:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 127, 140. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:147:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 114, 148. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:123:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 124. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:126:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 127. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:140:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 128, 141. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:148:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 115, 149. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:124:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 125. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:127:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 128. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:142:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 130, 143. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:150:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 116, 151. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:125:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 126. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:129:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 130. [CommentsIndentation]
:x: Linting errors found!
@SaptarshiSarkar12 Please fix the following errors:
GUI/src/main/java/ui/UIController.java:142:1: Comment has incorrect indentation level 0, expected is 20, 16, indentation should be the same level as line 130, 143. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:150:1: Comment has incorrect indentation level 0, expected is 16, 12, indentation should be the same level as line 116, 151. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:125:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 126. [CommentsIndentation]
GUI/src/main/java/ui/UIController.java:129:1: Comment has incorrect indentation level 0, expected is 20, indentation should be the same level as line 130. [CommentsIndentation]
Superseded by #562