From fd59e05e8fe1705d76b7e6bd2b79afe5421deaf2 Mon Sep 17 00:00:00 2001 From: tech189 Date: Thu, 14 Mar 2024 12:13:24 +0000 Subject: [PATCH] zigup: (chore) Persist zig symlink with `bin` alias Now the zig symlink is persisted by adding an alias that uses the --path-link argument to specify where to keep the zig symlink. Removed note as it is no longer relevant. --- bucket/zigup.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bucket/zigup.json b/bucket/zigup.json index 524f06575c..3894eca29a 100644 --- a/bucket/zigup.json +++ b/bucket/zigup.json @@ -3,15 +3,21 @@ "description": "Download and manage Zig compilers", "homepage": "https://github.com/marler8997/zigup", "license": "MIT-0", - "notes": "After updating, please run `zigup ` to recreate the `zig` symlink.", "architecture": { "64bit": { "url": "https://github.com/marler8997/zigup/releases/download/v2024_03_13/zigup.windows-latest-x86_64.zip", "hash": "f4c518ca9a6f16f0514eb9406c6b8bbe491d2b28bd8e9cd41830fe2ec06e7c51" } }, - "env_add_path": ".", - "bin": "zigup.exe", + "env_add_path": "zig", + "bin": [ + [ + "zigup.exe", + "zigup", + "--path-link", + "\"$persist_dir\\zig\\zig.exe\"" + ] + ], "persist": "zig", "checkver": { "url": "https://api.github.com/repos/marler8997/zigup/releases",