From ab222122523fb310ca96835a68336fe3bf6f23d3 Mon Sep 17 00:00:00 2001 From: NextTurn <45985406+NextTurn@users.noreply.github.com> Date: Sat, 1 Dec 2018 00:00:00 +0800 Subject: [PATCH] Produce ready-to-publish artifacts in build phase for AppVeyor --- .gitignore | 1 + Directory.Build.props | 1 + WinSW.nuspec | 8 ++++---- appveyor.yml | 12 ++++++------ src/Core/ServiceWrapper/winsw.csproj | 29 +++++++++++++++++++++++++++- 5 files changed, 40 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 3c7ab01..e02a27f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ obj /winsw_key.pfx /src/.vs/ /src/Core/WinSWCore/WinSWCore.csproj.DotSettings +/artifacts/ diff --git a/Directory.Build.props b/Directory.Build.props index 25481be..1366103 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,6 +3,7 @@ full $(MSBuildThisFileDirectory)winsw_key.snk + $(MSBuildThisFileDirectory)artifacts\ diff --git a/WinSW.nuspec b/WinSW.nuspec index e115ff4..fc1272b 100644 --- a/WinSW.nuspec +++ b/WinSW.nuspec @@ -25,9 +25,9 @@ More info about the wrapper is available in the projects GitHub repository. - - - - + + + + diff --git a/appveyor.yml b/appveyor.yml index 7d76a30..9c43fb4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -38,17 +38,17 @@ test_script: - dotnet.exe test -f netcoreapp3.1 --no-build src\Test\winswTests\winswTests.csproj artifacts: - - path: 'src\Core\ServiceWrapper\bin\Release\net20\WinSW.exe' + - path: artifacts\WinSW.NET2.exe name: WinSW.NET2.exe - - path: 'src\Core\ServiceWrapper\bin\Release\net40\WinSW.exe' + - path: artifacts\WinSW.NET4.exe name: WinSW.NET4.exe - - path: 'src\Core\ServiceWrapper\bin\Release\net461\WinSW.exe' + - path: artifacts\WinSW.NET461.exe name: WinSW.NET461.exe - - path: 'src\Core\ServiceWrapper\bin\Release\netcoreapp3.1\publish\' + - path: artifacts\WinSW.NETCore31.zip name: WinSW.NETCore31.zip - - path: 'src\Core\ServiceWrapper\bin\Release\netcoreapp3.1\win-x64\publish\WindowsService.exe' + - path: artifacts\WinSW.NETCore31.x64.exe name: WinSW.NETCore31.x64.exe - - path: 'src\Core\ServiceWrapper\bin\Release\netcoreapp3.1\win-x86\publish\WindowsService.exe' + - path: artifacts\WinSW.NETCore31.x86.exe name: WinSW.NETCore31.x86.exe - path: 'WinSW.$(appveyor_build_version).nupkg' name: WinSW.nupkg diff --git a/src/Core/ServiceWrapper/winsw.csproj b/src/Core/ServiceWrapper/winsw.csproj index cd4d7c5..46aa178 100644 --- a/src/Core/ServiceWrapper/winsw.csproj +++ b/src/Core/ServiceWrapper/winsw.csproj @@ -46,19 +46,45 @@ + + + + + + + + + + + x64 + + + + x86 + + + + + + + v2 + NET2 v4 + NET4 + v4.5 + NET461 @@ -67,7 +93,7 @@ $(InputAssemblies) "$(OutDir)SharedDirectoryMapper.dll" $(InputAssemblies) "$(OutDir)RunawayProcessKiller.dll" $(InputAssemblies) "$(OutDir)log4net.dll" - "$(OutDir)WinSW.exe" + "$(ArtifactsDir)WinSW.$(IdentifierSuffix).exe" @@ -80,6 +106,7 @@ "$(ILMerge)" $(ILMergeArgs) +