From 8f0127ff8a28295b0956536f06cce05b8d48a3b8 Mon Sep 17 00:00:00 2001 From: Issac Lin Date: Sat, 28 May 2022 23:53:31 +0800 Subject: [PATCH] avr-gcc: Manually shim avr-gcc-$version.exe (#3624) * avr-gcc: Manually shim avr-gcc-$version.exe * fix path * use 'scoop shim' instead * Apply suggestions Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --- bucket/avr-gcc.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bucket/avr-gcc.json b/bucket/avr-gcc.json index 3d19d0d547..d76632ce21 100644 --- a/bucket/avr-gcc.json +++ b/bucket/avr-gcc.json @@ -24,7 +24,6 @@ "bin\\avr-cpp.exe", "bin\\avr-elfedit.exe", "bin\\avr-g++.exe", - "bin\\avr-gcc-11.1.0.exe", "bin\\avr-gcc-ar.exe", "bin\\avr-gcc-nm.exe", "bin\\avr-gcc-ranlib.exe", @@ -47,6 +46,13 @@ "bin\\avr-strings.exe", "bin\\avr-strip.exe" ], + "post_install": [ + "# manually shim bin\\avr-gcc-$version.exe", + "scoop shim add \"avr-gcc-$version\" \"$dir\\bin\\avr-gcc-$version.exe\"" + ], + "uninstaller": { + "script": "scoop shim rm \"avr-gcc-$version\"" + }, "checkver": { "github": "https://github.com/ZakKemble/avr-gcc-build" },