pub fn parse_macos_version(version: &str) -> Option<String>
Expand description
Parse the the MacOS version number from a JSON string manifest file.
Example input: https://evermeet.cx/ffmpeg/info/ffmpeg/release
use ffmpeg_sidecar::download::parse_macos_version;
let json_string = "{\"name\":\"ffmpeg\",\"type\":\"release\",\"version\":\"6.0\",...}";
let parsed = parse_macos_version(&json_string).unwrap();
assert!(parsed == "6.0");