Skip to content

Instantly share code, notes, and snippets.

@Tobiaqs
Created March 6, 2021 09:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tobiaqs/34420144ade5f20609bb628779b3430f to your computer and use it in GitHub Desktop.
Save Tobiaqs/34420144ade5f20609bb628779b3430f to your computer and use it in GitHub Desktop.
Script that builds a working NKit on Linux-based systems using Docker
#!/bin/bash
# use @Ryan-Myers .NET Core 3.1 version of the project
git clone https://github.com/Ryan-Myers/NKit.git
# patch for fixing the recovery data finding issue
wget -O - https://gist.githubusercontent.com/Tobiaqs/b7c25136a713fe68de47f4ad76376c89/raw/fd33482226818fd99b84a0f2302895a898c2aab4/0001-Fix-recovery-data-finding-for-Ryan-Myers-NKit.patch 2>/dev/null | git -C NKit apply
# patch to remove windows apps from the solution
wget -O - https://gist.githubusercontent.com/Tobiaqs/d25daf70ac7455dc7c3cf01071002c03/raw/8d983568f5137ab39d4cab759f8ea519e8bcd33c/0002-Remove-Windows-apps-from-the-solution.patch 2>/dev/null | git -C NKit apply
# build using dotnet sdk 3.1 docker image
docker run --rm -v $PWD/NKit:/NKit -it mcr.microsoft.com/dotnet/sdk:3.1 bash -c 'cd /NKit; dotnet build'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment