From 9614d609cff3d6b29aa849953d9d2e15586b13d9 Mon Sep 17 00:00:00 2001 From: Jiawei Duan Date: Sun, 10 Sep 2023 18:38:34 -0700 Subject: [PATCH] Update Makefile to update version --- Makefile | 3 ++- updates.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9ec2acf..6b00af8 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,8 @@ $(ZIP_FILE_PATH): | $(BUILD_DIR) # Target to generate a updates.json file $(JSON_FILE): | $(BUILD_DIR) jq ".addons[\"zotmeta@roadtodream.tech\"].updates[0].update_hash = \"sha256:`shasum -a 256 $(ZIP_FILE_PATH) | cut -d' ' -f1`\"" updates.json.tmpl | \ - jq ".addons[\"zotmeta@roadtodream.tech\"].updates[0].update_link = \"https://github.com/RoadToDream/ZotMeta/releases/download/v$(VERSION)/$(ZIP_FILE_NAME)\"" > $@ + jq ".addons[\"zotmeta@roadtodream.tech\"].updates[0].update_link = \"https://github.com/RoadToDream/ZotMeta/releases/download/v$(VERSION)/$(ZIP_FILE_NAME)\"" | \ + jq ".addons[\"zotmeta@roadtodream.tech\"].updates[0].version = \"${VERSION}\"" > $@ # Create the build directory if it doesn't exist $(BUILD_DIR): diff --git a/updates.json b/updates.json index 6f9519b..67a6e09 100644 --- a/updates.json +++ b/updates.json @@ -5,7 +5,7 @@ { "version": "1.0", "update_link": "https://github.com/RoadToDream/ZotMeta/releases/download/v1.0/zotmeta-1.0.xpi", - "update_hash": "sha256:06d19b3c13b663c806f9ed3dad4a18a005eb04d2094533d452299d22f62e0ae3", + "update_hash": "sha256:8449f19a58d07fd957cf1d152d24da06eccb0cb78a82456fb4509479716ff677", "applications": { "gecko": { "strict_min_version": "60.0"