From a14e269e3eed40bac497c65b124755007e9e50c8 Mon Sep 17 00:00:00 2001 From: randshell Date: Wed, 29 Nov 2023 17:32:43 +0000 Subject: [PATCH 1/2] Fix auto update with magisk `changelog` is required, even when we don't have any changelog file --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 71a0fd1..ffa1454 100644 --- a/build.py +++ b/build.py @@ -95,7 +95,8 @@ def create_updater_json(project_tag: str): updater ={ "version": project_tag, "versionCode": int(project_tag.replace(".", "").replace("-", "")), - "zipUrl": f"https://github.com/ViRb3/magisk-frida/releases/download/{project_tag}/MagiskFrida-{project_tag}.zip" + "zipUrl": f"https://github.com/ViRb3/magisk-frida/releases/download/{project_tag}/MagiskFrida-{project_tag}.zip", + "changelog": "" } with open(PATH_BUILD.joinpath("updater.json"), "w", newline="\n") as f: From 8588c01ebf225231f381fa39bd977e805569287e Mon Sep 17 00:00:00 2001 From: randshell Date: Wed, 29 Nov 2023 19:23:48 +0000 Subject: [PATCH 2/2] Add changelog linking to https://frida.re/news/ --- CHANGELOG.md | 1 + build.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..985062a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ +See [https://frida.re/news/](https://frida.re/news/) for details. \ No newline at end of file diff --git a/build.py b/build.py index ffa1454..a7058bc 100644 --- a/build.py +++ b/build.py @@ -96,7 +96,7 @@ def create_updater_json(project_tag: str): "version": project_tag, "versionCode": int(project_tag.replace(".", "").replace("-", "")), "zipUrl": f"https://github.com/ViRb3/magisk-frida/releases/download/{project_tag}/MagiskFrida-{project_tag}.zip", - "changelog": "" + "changelog": "https://raw.githubusercontent.com/ViRb3/magisk-frida/master/CHANGELOG.md" } with open(PATH_BUILD.joinpath("updater.json"), "w", newline="\n") as f: