Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Added scripts for installing current build. (#837)
Browse files Browse the repository at this point in the history
* Added scripts for local install.

* Updated README.md.
  • Loading branch information
MaxMommersteeg authored and shep1987 committed Jun 28, 2019
1 parent 59e9207 commit 505f795
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
19 changes: 19 additions & 0 deletions InstallNuKeeperDotnetTool.bat
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions InstallNuKeeperDotnetTool.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 505f795

Please sign in to comment.