Update README & install scripts

This commit is contained in:
Marcello 2022-06-10 17:45:24 +02:00
parent dc40ced033
commit 6a01577912
Signed by: m-lamonaca
SSH key fingerprint: SHA256:8db8uii6Gweq7TbKixFBioW2T8CbgtyFETyYL3cr3zk
4 changed files with 53 additions and 29 deletions

13
install-as-dotnet-tool.sh Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
dotnet pack ./src -o ./nupkg
EXISTS=$(command -v script-launcher)
if [ "$EXISTS" ]; then
ACTION="update"
else
ACTION="install"
fi
dotnet tool "$ACTION" -g ScriptLauncher --add-source ./nupkg --ignore-failed-sources