From 0000de0f8e7c4c0afe62e999d7210c69116a8899 Mon Sep 17 00:00:00 2001 From: tech189 Date: Mon, 11 Mar 2024 18:37:57 +0000 Subject: [PATCH] zigup: (chore) Add architecture, persist zig versions Add architecture because zigup is 64bit. Persist downloaded versions of zig which are kept in `$dir\zig`. Add $dir to PATH because the symlink to `zig` is created here. Add note that the `zig` symlink needs to be recreated after update. We should use `--path-link` to move this to a folder that Scoop can persist. --- bucket/zigup.json | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/bucket/zigup.json b/bucket/zigup.json index 778de0bdb0..a65c21f993 100644 --- a/bucket/zigup.json +++ b/bucket/zigup.json @@ -3,14 +3,25 @@ "description": "Download and manage Zig compilers", "homepage": "https://github.com/marler8997/zigup", "license": "MIT-0", - "url": "https://github.com/marler8997/zigup/releases/download/v2024_02_25/zigup.windows-latest-x86_64.zip", - "hash": "9aa5c98b55203712af61242753871ad75cada479373713b4dc2804c21c4db561", + "notes": "After updating, please run `zigup ` to recreate the `zig` symlink.", + "architecture": { + "64bit": { + "url": "https://github.com/marler8997/zigup/releases/download/v2024_02_25/zigup.windows-latest-x86_64.zip", + "hash": "9aa5c98b55203712af61242753871ad75cada479373713b4dc2804c21c4db561" + } + }, + "env_add_path": ".", "bin": "zigup.exe", + "persist": "zig", "checkver": { "url": "https://api.github.com/repos/marler8997/zigup/releases", "regex": "v([\\d_]+)" }, "autoupdate": { - "url": "https://github.com/marler8997/zigup/releases/download/v$version/zigup.windows-latest-x86_64.zip" + "architecture": { + "64bit": { + "url": "https://github.com/marler8997/zigup/releases/download/v$version/zigup.windows-latest-x86_64.zip" + } + } } }