mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
feat(andax/nvidia.rhai): Automatically fetch new CUDA versions (#4514)
Signed-off-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
+4
-3
@@ -2,9 +2,10 @@
|
||||
// This module is used to parse the NVIDIA website for the latest driver version
|
||||
|
||||
fn nvidia_component_list() {
|
||||
let series = "12.8.1";
|
||||
let url = `https://developer.download.nvidia.com/compute/cuda/redist/redistrib_${series}.json`;
|
||||
return get(url).json();
|
||||
let url = "https://developer.download.nvidia.com/compute/cuda/redist/";
|
||||
let matches = find_all("redistrib_[\\d.]+.json", get(url));
|
||||
let series = `${url}${matches[matches.len - 1][0]}`;
|
||||
return get(series).json();
|
||||
}
|
||||
fn nvidia_component_version(component) {
|
||||
let components = nvidia_component_list();
|
||||
|
||||
Reference in New Issue
Block a user