devstream
devstream copied to clipboard
:four_leaf_clover: `Proposal`: Supports DTM version switching
What Would You Like to Add? Why Is This Needed?
Supports DTM version switching
- Please download every update
- New MAC downloads require permission
[ ] Support upgrade to latest [ ] support downgrade order with downgrade or other similar
Design
- in 0.6.0 dtm upgrade
show it is now 0.6.1
- in 0.6.1 dtm downgrade
show it is now 0.6.0
Anything else
/cc @devstream-io/devstream More detailed design required.
Will implement it soon. Probably will release in the next minor version. @hxcGit
hi, @huang12zheng. I have some preliminary ideas. I think we only need to support dtm upgrade
for now, cause most users like the latest version.
Here is my draft:
- Obtain the latest release version from devstream github api.
- Compare the latest release version with local dtm version. If newer, the upgrade process is triggered.
- Download the latest release dtm binary file.
- Check md5 value.
- Update the original dtm binary file to the new one.
I see that #840 has been merged. If this issue has been resolved, please close it~
@iyear Please hold! This feature need further enhancements and feedback from users. I'll submit some PRs to improve the reliability of this feature. Maybe after the release of v0.8.0, we 'll find some bugs.