From e72e17772483e31fa1342bf2b76735b0eff6c29b Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Tue, 10 Dec 2024 20:07:34 +0700 Subject: [PATCH] Fix missing description in GitHub Releases --- Scripts/dsdt.py | 4 ++-- Scripts/github.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Scripts/dsdt.py b/Scripts/dsdt.py index a656e73..36d1ffc 100644 --- a/Scripts/dsdt.py +++ b/Scripts/dsdt.py @@ -251,8 +251,8 @@ class DSDT: def get_latest_iasl(self): latest_release = self.github.get_latest_release("acpica", "acpica") or {} - for line in latest_release.get("describe", "").splitlines(): - if "iasl" in line: + for line in latest_release.get("body", "").splitlines(): + if "iasl" in line and ".zip" in line: return line.split("(")[-1].split(")")[0] return None diff --git a/Scripts/github.py b/Scripts/github.py index fa2f7be..dd505f4 100644 --- a/Scripts/github.py +++ b/Scripts/github.py @@ -39,10 +39,10 @@ class Github: assets = [] for line in response.splitlines(): - if "", 1)[1], 1)[-1].split("", 1)[0] - elif "", 1)[0], 1)[1].split("", 1)[0][1:] break release_tag_url = "https://github.com/{}/{}/releases/expanded_assets/{}".format(owner, repo, tag_name)