From 125154427549b69371e8b465f12da2fe8092d57c Mon Sep 17 00:00:00 2001 From: Ravi Patel Date: Wed, 14 Feb 2024 17:05:40 +0530 Subject: [PATCH] Fixed an issue in build process that was causing it to build empty NuGet package. --- AutoUpdater.NET/build/Autoupdater.NET.Official.nuspec | 6 ++++++ README.md | 2 +- appveyor.yml | 2 +- build.bat | 6 ++++++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/AutoUpdater.NET/build/Autoupdater.NET.Official.nuspec b/AutoUpdater.NET/build/Autoupdater.NET.Official.nuspec index 11c9f00..1902773 100644 --- a/AutoUpdater.NET/build/Autoupdater.NET.Official.nuspec +++ b/AutoUpdater.NET/build/Autoupdater.NET.Official.nuspec @@ -68,5 +68,11 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index a7671c8..0d6777c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ![AutoUpdater.NET](Logo/Horizontal.png) +# ![AutoUpdater.NET](https://raw.githubusercontent.com/ravibpatel/AutoUpdater.NET/b15a8fbf5863902ec28a2adfb04829dd75dba226/Logo/Horizontal.png) [![Build status](https://ci.appveyor.com/api/projects/status/yng987o7dauk9gqc?svg=true)](https://ci.appveyor.com/project/ravibpatel/autoupdater-net) diff --git a/appveyor.yml b/appveyor.yml index 53ca7c2..75beff1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -26,7 +26,7 @@ install: - dotnet publish --configuration Release --framework net8.0-windows "c:\projects\AutoUpdater.NET\AutoUpdater.NET\AutoUpdater.NET.csproj" --output "c:\projects\AutoUpdater.NET\AutoUpdater.NET\build\lib\net8.0-windows7.0" - cmd: 7z a AutoUpdater.NET-%my_version%.zip %APPVEYOR_BUILD_FOLDER%\AutoUpdater.NET\build\lib\* - ps: Remove-Item -path c:\projects\AutoUpdater.NET\AutoUpdater.NET\build\lib\* -include runtimes,Microsoft.Web.WebView2*,AutoUpdater.NET.deps.json -Recurse - - nuget pack "c:\projects\AutoUpdater.NET\AutoUpdater.NET\build\Autoupdater.NET.Official.nuspec" + - nuget pack "c:\projects\AutoUpdater.NET\AutoUpdater.NET\build\Autoupdater.NET.Official.nuspec" -Verbosity detailed artifacts: - path: AutoUpdater.NET-%my_version%.zip diff --git a/build.bat b/build.bat index 50aee66..f6305ac 100644 --- a/build.bat +++ b/build.bat @@ -22,4 +22,10 @@ dotnet publish --configuration Release --framework net7.0-windows "AutoUpdater.N dotnet publish --configuration Release --framework net8.0-windows "ZipExtractor\ZipExtractor.csproj" --output "AutoUpdater.NET\Resources" dotnet publish --configuration Release --framework net8.0-windows "AutoUpdater.NET\AutoUpdater.NET.csproj" --output "AutoUpdater.NET\build\lib\net8.0-windows7.0" +:: Remove unnecessary files +Powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -Command "Remove-Item -path AutoUpdater.NET\build\lib\* -include runtimes,Microsoft.Web.WebView2*,AutoUpdater.NET.deps.json -Recurse" + +:: Create NuGet package +nuget pack AutoUpdater.NET\build\Autoupdater.NET.Official.nuspec -Verbosity detailed -OutputDirectory AutoUpdater.NET\build + pause \ No newline at end of file