diff --git a/README.md b/README.md index 7108fdd..9759a87 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ It is a general purpose C++ library that can help developers create various kind Please go to https://gitlab.com/ii887522/nitro to start contributing instead. ## Prerequisites -- Windows 10 - [Docker Desktop](https://www.docker.com/products/docker-desktop) using Windows containers - [Visual Studio Code](https://code.visualstudio.com/) - Docker @@ -33,23 +32,23 @@ Please go to https://gitlab.com/ii887522/nitro to start contributing instead. ## Update .NET Framework SDK version used by ms-build-tools to match your OS 1. Left click on the start button at the bottom left corner of your desktop. - + Start button

2. Left click on the settings button at the left side of the start menu. - + Settings

3. Left click on the system button at the top left corner of settings window. - + System

4. Left click on the about button at the bottom left corner of settings window. - + About

5. Take note of the version shown in the settings window. You will need it to search for appropriate tags later. - + Version

6. Go to https://hub.docker.com/_/microsoft-dotnet-framework-sdk/ and find Full Tag Listing section. @@ -81,3 +80,8 @@ install ```sh build ``` + +### Deploy project +```sh +deploy +``` diff --git a/deploy.cmd b/deploy.cmd new file mode 100644 index 0000000..0ba693f --- /dev/null +++ b/deploy.cmd @@ -0,0 +1,4 @@ +docker run --rm --name nitro_bundler -w C:\nitro -v %CD%:C:\nitro mcr.microsoft.com/windows/servercore:20H2 cmd /c mkdir libs && cd libs && mkdir nitro && cd nitro && mkdir include && cd include && xcopy ..\..\..\nitro\src\main\ .\ /s && cd .. && mkdir lib && cd lib && mkdir x86 && cd x86 && mkdir Debug && cd Debug && copy ..\..\..\..\..\nitro\Debug\nitro.lib .\ && cd .. && mkdir Release && cd Release && copy ..\..\..\..\..\nitro\Release\nitro.lib .\ && cd .. && cd .. && mkdir x64 && cd x64 && mkdir Debug && cd Debug && copy ..\..\..\..\..\nitro\x64\Debug\nitro.lib .\ && cd .. && mkdir Release && cd Release && copy ..\..\..\..\..\nitro\x64\Release\nitro.lib .\ && cd .. && cd .. && cd .. && cd .. && cd .. +docker run --rm --name nitro_zipper -w C:\nitro\libs -v %CD%\libs:C:\nitro\libs kiazhi/nanoserver.7-zip:1709-18.05 7z a nitro.zip nitro\ +docker run --rm --name nitro_publisher -v %CD%\libs:C:\nitro\libs stefanscherer/curl-windows:7.58.0 --header "PRIVATE-TOKEN: %1" --upload-file C:\nitro\libs\nitro.zip https://gitlab.com/api/v4/projects/23530641/packages/generic/nitro/1.0.0/nitro.zip +docker run --rm --name nitro_cleaner -w C:\nitro -v %CD%:C:\nitro mcr.microsoft.com/windows/servercore:20H2 cmd /c rmdir libs /s /q diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..44b9597 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +docker run --rm --name nitro_bundler -w C:/nitro -v $PWD:C:/nitro mcr.microsoft.com/windows/servercore:20H2 cmd /c mkdir libs && cd libs && mkdir nitro && cd nitro && mkdir include && cd include && xcopy ..\..\..\nitro\src\main\ .\ /s && cd .. && mkdir lib && cd lib && mkdir x86 && cd x86 && mkdir Debug && cd Debug && copy ..\..\..\..\..\nitro\Debug\nitro.lib .\ && cd .. && mkdir Release && cd Release && copy ..\..\..\..\..\nitro\Release\nitro.lib .\ && cd .. && cd .. && mkdir x64 && cd x64 && mkdir Debug && cd Debug && copy ..\..\..\..\..\nitro\x64\Debug\nitro.lib .\ && cd .. && mkdir Release && cd Release && copy ..\..\..\..\..\nitro\x64\Release\nitro.lib .\ && cd .. && cd .. && cd .. && cd .. && cd .. +docker run --rm --name nitro_zipper -w C:/nitro/libs -v $PWD/libs:C:/nitro/libs kiazhi/nanoserver.7-zip:1709-18.05 7z a nitro.zip nitro\ +docker run --rm --name nitro_publisher -v $PWD/libs:C:/nitro/libs stefanscherer/curl-windows:7.58.0 --header "PRIVATE-TOKEN: %1" --upload-file C:\nitro\libs\nitro.zip https://gitlab.com/api/v4/projects/23530641/packages/generic/nitro/1.0.0/nitro.zip +docker run --rm --name nitro_cleaner -w C:/nitro -v $PWD:C:/nitro mcr.microsoft.com/windows/servercore:20H2 cmd /c rmdir libs /s /q