diff --git a/InstallNuKeeperDotnetTool.bat b/InstallNuKeeperDotnetTool.bat new file mode 100644 index 000000000..c7599270d --- /dev/null +++ b/InstallNuKeeperDotnetTool.bat @@ -0,0 +1,19 @@ +@echo off + +title Installing NuKeeper dotnet tool +echo Build solution: +dotnet build + +echo Pack NuKeeper dotnet tool: +dotnet pack .\NuKeeper\NuKeeper.csproj -o ".\artifacts" + +echo Uninstall existing NuKeeper dotnet tool: +dotnet tool uninstall nukeeper --global + +echo Install NuKeeper dotnet tool: +dotnet tool install nukeeper --global --add-source ".\artifacts" + +echo Installed NuKeeper version: +nukeeper --version + +pause \ No newline at end of file diff --git a/InstallNuKeeperDotnetTool.sh b/InstallNuKeeperDotnetTool.sh new file mode 100644 index 000000000..f0472f613 --- /dev/null +++ b/InstallNuKeeperDotnetTool.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +echo "Build solution:" +dotnet build + +echo "Pack NuKeeper dotnet tool:" +dotnet pack .\NuKeeper\NuKeeper.csproj -o ".\artifacts" + +echo "Uninstall existing NuKeeper dotnet tool:" +dotnet tool uninstall nukeeper --global + +echo "Install NuKeeper dotnet tool:" +dotnet tool install nukeeper --global --add-source ".\artifacts" + +echo "Installed NuKeeper version:" +nukeeper --version + +# Keep window open. +$SHELL \ No newline at end of file diff --git a/README.md b/README.md index 3c4c3cf10..2f208f320 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,10 @@ dotnet tool uninstall nukeeper --global ### How To Build and Run From Source +You can install the nukeeper dotnet tool of current build using the `InstallNuKeeperDotNetTool` (.bat for Windows, .sh for macOS and Linux) found in the root of the repository. + +>Note: this overrides your existing global installation of the NuKeeper dotnet tool. + You can build and package the tool using the following commands. The instructions assume that you are in the root of the repository. ```console