From 30aa2545656bee042b3936acb7ba0bfd508abbf8 Mon Sep 17 00:00:00 2001 From: Josef-MrBeam <81746291+Josef-MrBeam@users.noreply.github.com> Date: Tue, 19 Apr 2022 09:21:17 +0200 Subject: [PATCH] SW-1224 support legacy image for new update mechanism (#7) * add beamos_version to replace beamos_date -> major version change needed as this is a breaking change * add comparison option for the config of beamos versions * add dedicated netconnectd version for legacy image --- docs/sw-update-conf.json | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/docs/sw-update-conf.json b/docs/sw-update-conf.json index 4ace8b8..04d4248 100644 --- a/docs/sw-update-conf.json +++ b/docs/sw-update-conf.json @@ -92,9 +92,11 @@ "repo": "MrBeamLedStrips", "pip": "https://github.com/mrbeam/MrBeamLedStrips/archive/{target_version}.zip", "global_pip_command": true, - "beamos_date": { - "2021-06-11": { - "pip_command": "sudo /usr/local/mrbeam_ledstrips/venv/bin/pip" + "beamos_version": { + "__ge__": { + "0.18.0": { + "pip_command": "sudo /usr/local/mrbeam_ledstrips/venv/bin/pip" + } } } }, @@ -102,9 +104,11 @@ "repo": "iobeam", "pip": "git+ssh://git@bitbucket.org/mrbeam/iobeam.git@{target_version}", "global_pip_command": true, - "beamos_date": { - "2021-06-11": { - "pip_command": "sudo /usr/local/iobeam/venv/bin/pip" + "beamos_version": { + "__ge__": { + "0.18.0": { + "pip_command": "sudo /usr/local/iobeam/venv/bin/pip" + } } } }, @@ -112,9 +116,11 @@ "repo": "mrb_hw_info", "pip": "git+ssh://git@bitbucket.org/mrbeam/mrb_hw_info.git@{target_version}", "global_pip_command": true, - "beamos_date": { - "2021-06-11": { - "pip_command": "sudo /usr/local/iobeam/venv/bin/pip" + "beamos_version": { + "__ge__": { + "0.18.0": { + "pip_command": "sudo /usr/local/iobeam/venv/bin/pip" + } } } }, @@ -146,9 +152,16 @@ "repo": "netconnectd_mrbeam", "pip": "https://github.com/mrbeam/netconnectd_mrbeam/archive/{target_version}.zip", "global_pip_command": true, - "beamos_date": { - "2021-06-11": { - "pip_command": "sudo /usr/local/netconnectd/venv/bin/pip" + "beamos_version": { + "__ge__": { + "0.18.0": { + "pip_command": "sudo /usr/local/netconnectd/venv/bin/pip" + } + }, + "__le__": { + "0.14.0": { + "version": "0.0.1" + } } } }