Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #78 from j2ghz/singleExe
Browse files Browse the repository at this point in the history
publish single exe
  • Loading branch information
j2ghz authored Jun 1, 2019
2 parents 4c6d8ab + a802339 commit 90b668c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
43 changes: 24 additions & 19 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,38 @@ image: Visual Studio 2019 Preview
configuration: Release

install:
- ps: dotnet --info
- ps: choco install gitversion.portable -pre -y
- ps: choco install codecov
- dotnet --info
- choco install gitversion.portable -pre -y
- choco install codecov

before_build:
- ps: gitversion /l console /output buildserver /updateAssemblyInfo /diag
- ps: msbuild /t:Clean /v:m
- ps: msbuild /t:Restore /v:m
- gitversion /l console /output buildserver /updateAssemblyInfo /diag
- msbuild /t:Clean /v:m
- msbuild /t:Restore /v:m

build:
verbosity: minimal

after_build:
- dotnet publish -c Release -o ./singleExe .\src\ModSink.WPF\ModSink.WPF.csproj

artifacts:
- path: src/ModSink.WPF/bin/Release/netcoreapp3.0
name: ModSink.WPF
- path: src/ModSink.WPF/bin/Release/netcoreapp3.0
name: ModSink.WPF
- path: singleExe/ModSink.WPF.exe
name: ModSink.WPF.exe

test_script:
- cmd: dotnet test "src\ModSink.Common.Tests\ModSink.Common.Tests.csproj" --configuration Release --no-build /p:AltCover=true /p:AltCoverForce=true
- cmd: codecov -f "src\ModSink.Common.Tests\coverage.xml"
- cmd: dotnet test "src\ModSink.UI.Tests\ModSink.UI.Tests.csproj" --configuration Release --no-build /p:AltCover=true /p:AltCoverForce=true
- cmd: codecov -f "src\ModSink.UI.Tests\coverage.xml"
- dotnet test "src\ModSink.Common.Tests\ModSink.Common.Tests.csproj" --configuration Release /p:AltCover=true /p:AltCoverForce=true
- codecov -f "src\ModSink.Common.Tests\coverage.xml"
- dotnet test "src\ModSink.UI.Tests\ModSink.UI.Tests.csproj" --configuration Release /p:AltCover=true /p:AltCoverForce=true
- codecov -f "src\ModSink.UI.Tests\coverage.xml"

deploy:
- provider: GitHub
auth_token:
secure: TLChfAMJcjhyw7dQ6WNllA/sc420Hq4fk9V9/VUD1kFOm4ZJpfiBlwaqdVRPbQeP
artifact: ModSink.WPF
prerelease: true
on:
branch: master
- provider: GitHub
auth_token:
secure: TLChfAMJcjhyw7dQ6WNllA/sc420Hq4fk9V9/VUD1kFOm4ZJpfiBlwaqdVRPbQeP
artifact: ModSink.WPF
prerelease: true
on:
branch: master
5 changes: 3 additions & 2 deletions src/ModSink.WPF/ModSink.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<LangVersion>latest</LangVersion>
<DebugSymbols>true</DebugSymbols>
<ApplicationIcon>modsink_x3S_icon.ico</ApplicationIcon>
<PlatformTarget>AnyCPU</PlatformTarget>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -43,4 +44,4 @@
<ItemGroup>
<ProjectReference Include="..\ModSink.UI\ModSink.UI.csproj" />
</ItemGroup>
</Project>
</Project>

0 comments on commit 90b668c

Please sign in to comment.