Last active
September 3, 2017 05:43
-
-
Save Iristyle/5e64485dc2ddc1a68719082bd69d6dd9 to your computer and use it in GitHub Desktop.
Build NSSM toolchain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Install git through chocolatey | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
choco install git -y | |
REM Add Nexus as a source and install Visual Studio 2017 compilers + Windows 8.1 SDK | |
choco source add -n=nexus -s="http://nexus.delivery.puppetlabs.net/service/local/nuget/temp-build-tools/" | |
choco install choco install msvc.2017-win8.1.sdk.en-us -y --cache-location=c:\msvc | |
REM clone the source | |
git clone https://github.com/puppetlabs/nssm | |
cd nssm | |
REM load build tools | |
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\vsdevcmd" | |
REM execute NSSM build - overriding project defaults for compiler and SDK version | |
REM PlatformToolset=v141 is Visual Studio 2017 / PlatformToolset=v140 is Visual Studio 2015 | |
REM TargetPlatformVersion=8.1 is Windows SDK 8.1 / TargetPlatformVersion=10.0.15063.0 | |
msbuild nssm.vcxproj /detailedsummary /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v141 /p:TargetPlatformVersion=8.1 | |
msbuild nssm.vcxproj /detailedsummary /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v141 /p:TargetPlatformVersion=8.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment