Update 'gen_contents.py'

This commit is contained in:
Jess 2023-01-05 16:28:17 +01:00
parent af8d9426a2
commit 065d3eff8b
1 changed files with 9 additions and 1 deletions

View File

@ -26,6 +26,13 @@ bin_files = {
"SHORT_NAME": "lockpick",
"zipped": False,
},
"fusee": {
"API_URL": "https://api.github.com/repos/Atmosphere-NX/Atmosphere/releases/latest",
"BIN_NAME": "fusee",
"SERIALIZED_FILENAME": "fusee.bin.js",
"SHORT_NAME": "fusee",
"zipped": False,
},
}
### BASIC FILE STUFF, DO NOT EDIT
@ -126,6 +133,7 @@ def generate_html():
fetch_github_latest_tag(bin_files["hekate"]["API_URL"]),
fetch_github_latest_tag(bin_files["tegraexplorer"]["API_URL"]),
fetch_github_latest_tag(bin_files["lockpick"]["API_URL"]),
fetch_github_latest_tag(bin_files["fusee"]["API_URL"]),
))
html_data_list.append(post)
@ -139,9 +147,9 @@ def main():
generate_js("hekate")
generate_js("tegraexplorer")
generate_js("lockpick")
generate_js("fusee")
generate_html()
shutil.copy("js/main.js", "site/main.js")
shutil.copy("js/fusee.bin.js", "site/fusee.bin.js")
if __name__ == "__main__":
main()