mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Merge branch 'main' of https://github.com/MacRimi/ProxMenux
This commit is contained in:
commit
2fc1df729b
6
.github/scripts/generate_helpers_cache.py
vendored
6
.github/scripts/generate_helpers_cache.py
vendored
@ -5,7 +5,7 @@ from pathlib import Path
|
|||||||
API_URL = "https://api.github.com/repos/community-scripts/ProxmoxVE/contents/frontend/public/json"
|
API_URL = "https://api.github.com/repos/community-scripts/ProxmoxVE/contents/frontend/public/json"
|
||||||
|
|
||||||
# Base path to build the full URL for the installable scripts
|
# Base path to build the full URL for the installable scripts
|
||||||
SCRIPT_BASE = "https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/scripts"
|
SCRIPT_BASE = "https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
|
||||||
|
|
||||||
# Output file where the consolidated helper scripts cache will be stored
|
# Output file where the consolidated helper scripts cache will be stored
|
||||||
OUTPUT_FILE = Path("json/helpers_cache.json")
|
OUTPUT_FILE = Path("json/helpers_cache.json")
|
||||||
@ -30,6 +30,7 @@ for item in data:
|
|||||||
# Extract fields required to identify a valid helper script
|
# Extract fields required to identify a valid helper script
|
||||||
name = raw.get("name", "")
|
name = raw.get("name", "")
|
||||||
slug = raw.get("slug")
|
slug = raw.get("slug")
|
||||||
|
type_ = raw.get("type", "")
|
||||||
script = raw.get("install_methods", [{}])[0].get("script", "")
|
script = raw.get("install_methods", [{}])[0].get("script", "")
|
||||||
if not slug or not script:
|
if not slug or not script:
|
||||||
continue # Skip if it's not a valid script
|
continue # Skip if it's not a valid script
|
||||||
@ -47,7 +48,8 @@ for item in data:
|
|||||||
"script": script,
|
"script": script,
|
||||||
"script_url": full_script_url,
|
"script_url": full_script_url,
|
||||||
"categories": categories,
|
"categories": categories,
|
||||||
"notes": notes
|
"notes": notes,
|
||||||
|
"type": type_
|
||||||
})
|
})
|
||||||
|
|
||||||
# Write the JSON cache to disk
|
# Write the JSON cache to disk
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user