devstream icon indicating copy to clipboard operation
devstream copied to clipboard

:four_leaf_clover: `Proposal`: Supports DTM version switching

Open huang12zheng opened this issue 2 years ago • 5 comments

What Would You Like to Add? Why Is This Needed?

Supports DTM version switching

  1. Please download every update
  2. 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

huang12zheng avatar Jun 14 '22 06:06 huang12zheng

/cc @devstream-io/devstream More detailed design required.

daniel-hutao avatar Jun 14 '22 06:06 daniel-hutao

Will implement it soon. Probably will release in the next minor version. @hxcGit

IronCore864 avatar Jul 08 '22 02:07 IronCore864

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:

  1. Obtain the latest release version from devstream github api.
  2. 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.

xavier-hou avatar Jul 08 '22 08:07 xavier-hou

I see that #840 has been merged. If this issue has been resolved, please close it~

iyear avatar Jul 21 '22 04:07 iyear

@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.

xavier-hou avatar Jul 21 '22 17:07 xavier-hou