From 2ca795755000fdb180c5f6eea70e2162794d9f70 Mon Sep 17 00:00:00 2001 From: bandithedoge Date: Mon, 7 Apr 2025 11:31:10 +0200 Subject: [PATCH] gitignore index.json again --- .gitignore | 1 + update | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1331bd9..91108ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +index.json zig-index.json zig-index.json.minisig mach-index.json diff --git a/update b/update index 97aef33..60c0e0a 100755 --- a/update +++ b/update @@ -6,7 +6,7 @@ set -e PUBLIC_KEY="RWSGOq2NVecA2UPNdBUZykf1CCb147pkmdtYxgb3Ti+JO/wCYvhbAb/U" # Grab the JSON and parse the version -rm -rf index.json index.json.minisig +rm -rf *index.json zig-index.json.minisig curl -s 'https://ziglang.org/download/index.json' > zig-index.json VERSION=$(cat zig-index.json | jq -r '.master.version') echo "Parsing master version: ${VERSION}" @@ -15,6 +15,7 @@ echo "Parsing master version: ${VERSION}" curl -s "https://ziglang.org/builds/zig-${VERSION}-index.json.minisig" > zig-index.json.minisig minisign -V -P ${PUBLIC_KEY} -x zig-index.json.minisig -m zig-index.json +# Merge Mach's index.json with the official one curl -s 'https://machengine.org/zig/index.json' > mach-index.json jq -s '.[0] * .[1]' mach-index.json zig-index.json > index.json