Skip to content

Commit

Permalink
Fixed an issue in build process that was causing it to build empty Nu…
Browse files Browse the repository at this point in the history
…Get package.
  • Loading branch information
ravibpatel committed Feb 14, 2024
1 parent b15a8fb commit 1251544
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions AutoUpdater.NET/build/Autoupdater.NET.Official.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,11 @@
</metadata>
<files>
<file src="..\..\README.md" target="docs\"/>
<file src="lib\net45\**\*.*" target="lib\net45\"/>
<file src="lib\netcoreapp3.1\**\*.*" target="lib\netcoreapp3.1\"/>
<file src="lib\net5.0-windows7.0\**\*.*" target="lib\net5.0-windows7.0\"/>
<file src="lib\net6.0-windows7.0\**\*.*" target="lib\net6.0-windows7.0\"/>
<file src="lib\net7.0-windows7.0\**\*.*" target="lib\net7.0-windows7.0\"/>
<file src="lib\net8.0-windows7.0\**\*.*" target="lib\net8.0-windows7.0\"/>
</files>
</package>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1251544

Please sign in to comment.