From bd3436ba0b71b2f87f83afd329a4ad202a59cedb Mon Sep 17 00:00:00 2001 From: garret1317 Date: Fri, 26 Sep 2025 14:15:08 +0100 Subject: update site update script to handle plugin bundle --- contrib/generate_html.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'contrib') diff --git a/contrib/generate_html.py b/contrib/generate_html.py index 0e15d6a..a52c89d 100755 --- a/contrib/generate_html.py +++ b/contrib/generate_html.py @@ -20,6 +20,7 @@ site_sha256 = [] tarballs = [] wheels = [] +bundles = [] for item in sorted(os.listdir()):#, key=lambda x: x.name): if os.path.islink(item): @@ -29,6 +30,8 @@ for item in sorted(os.listdir()):#, key=lambda x: x.name): tarballs.append(item) elif item.endswith(".whl"): wheels.append(item) + elif item.endswith(".bundle.zip"): + bundles.append(item) else: continue @@ -45,7 +48,7 @@ for item in sorted(os.listdir()):#, key=lambda x: x.name): pip_index.write(item) pip_index.write("\n") - site_string = checksum + "  " + '' + item + "
" + site_string = checksum + " " + '' + item + "" site_sha256.append(site_string) pip_index.write(""" @@ -55,7 +58,8 @@ pip_index.write(""" latest_tarball = tarballs[-1] latest_wheel = wheels[-1] -print(latest_tarball, latest_wheel) +latest_bundle = bundles[-1] +print(latest_tarball, latest_wheel, latest_bundle) os.remove("yt_dlp_rajiko-latest.tar.gz") os.symlink(latest_tarball, "yt_dlp_rajiko-latest.tar.gz") @@ -63,12 +67,15 @@ os.symlink(latest_tarball, "yt_dlp_rajiko-latest.tar.gz") os.remove("yt_dlp_rajiko-latest.whl") os.symlink(latest_wheel, "yt_dlp_rajiko-latest.whl") +os.remove("yt_dlp_rajiko-latest.bundle.zip") +os.symlink(latest_bundle, "yt_dlp_rajiko-latest.bundle.zip") + site_sha256.reverse() -latest_list = site_sha256[:2] -previous_list = site_sha256[2:] +latest_list = site_sha256[:3] +previous_list = site_sha256[3:] -latest = "\n".join(["", "", "\n".join(latest_list), "", ""]) +latest = "\n".join(["", "
", "\n".join(latest_list), "
", ""]) previous = "\n".join(["", "", "\n".join(previous_list), "", ""]) -- cgit v1.2.3-70-g09d2