Skip to content

Commit 487b211

Browse files
committed
feat: update CLI version manager with latest studio-cli releases
Add support for the three latest CLI versions with verified SHA1 checksums: * 25.5.0 (latest) - May 2025 release * 25.1.0 - January 2025 release * 24.11.2 - November 2024 release Features: - Downloaded and verified all platform binaries (Linux, macOS, Windows) - Computed SHA1 checksums for integrity verification - Updated version manager with proper checksum validation - Tested latest version (25.5.0) functionality and PLM command availability - Maintains backward compatibility with existing 24.3.0 version Technical details: - All checksums verified using actual binary downloads - Proper platform detection and URL construction - Compatible with existing download and installation workflow - Latest version confirmed to have all PLM commands and enhanced features The system now supports automatic updates to the most recent CLI versions with proper integrity verification and platform compatibility.
1 parent fccc8fd commit 487b211

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

studio-cli-manager/src/version.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ impl VersionManager {
106106
let base_url = "https://distro.windriver.com/dist/wrstudio/wrstudio-cli-distro-cd";
107107

108108
// Known versions - in a real implementation, this would be dynamic
109-
let versions = vec!["24.3.0", "24.2.0", "24.1.0"];
109+
// Ordered from newest to oldest for proper version detection
110+
let versions = vec!["25.5.0", "25.1.0", "24.11.2", "24.3.0", "24.2.0", "24.1.0"];
110111

111112
versions
112113
.into_iter()
@@ -131,6 +132,17 @@ impl VersionManager {
131132
fn get_checksum_for_version(&self, version: &str, platform: &str) -> String {
132133
// These would normally come from a manifest file
133134
match (version, platform) {
135+
// Latest versions (2025)
136+
("25.5.0", "linux") => "87cc0e241e8aa21d2520d8fa939e2efa906cd7a6".to_string(),
137+
("25.5.0", "windows") => "0b17cd85f7d5d2ad65674375da290654e44b2d70".to_string(),
138+
("25.5.0", "macos") => "8c1e88adb22581a8f7196cabfcc122228521a0e4".to_string(),
139+
("25.1.0", "linux") => "42503e57c20a6d69650b7c8284f161d60b8b43cc".to_string(),
140+
("25.1.0", "windows") => "f9c5c6bc62c339b4a5bf6d04299696121b48f39f".to_string(),
141+
("25.1.0", "macos") => "04965bcb44ef14238848ceaa42bfbc74d003078b".to_string(),
142+
("24.11.2", "linux") => "7e9116e0c9f08e2b8bcb4b1a589878dc2f60d7c4".to_string(),
143+
("24.11.2", "windows") => "2d694e947b39dd3fbf5395e86070ba7df721b8c1".to_string(),
144+
("24.11.2", "macos") => "8d82c861f089e0013fdd6841e8a6f353d9f3b503".to_string(),
145+
// Legacy version
134146
("24.3.0", "linux") => "84a03899b5818de24a398f5c7718db00bf2f4439".to_string(),
135147
("24.3.0", "windows") => "d3d554802cecebf942e2d4e231bd7085d83a9334".to_string(),
136148
("24.3.0", "macos") => "ee5e90a3d838739b57ff8804b489b97499210ef4".to_string(),

0 commit comments

Comments
 (0)