Skip to content

Commit

Permalink
Attempt forms .net framework publish via msbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Jan 27, 2025
1 parent a2002a2 commit 2a8b761
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ jobs:
# dotnet pack -p:PackageID=NetSparkleUpdater.UI.WinForms.NetFramework --include-symbols -p:SymbolPackageFormat=snupkg --no-build -c Release ${{ github.workspace }}/src/NetSparkle.UI.WinForms/NetSparkle.UI.WinForms.csproj -o ${{ github.workspace }}/WinFormsNetFrameworkOutput
# dotnet nuget push ${{ github.workspace }}\WinFormsNetFrameworkOutput\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

- name: Clean and publish NetSparkleUpdater.UI.WinForms.NetFramework on version change
run: |
cd ${{ github.workspace }}/src/NetSparkle.UI.WinForms.NetFramework
msbuild NetSparkle.UI.WinForms.NetFramework.csproj -t:clean /property:Configuration=Release
msbuild NetSparkle.UI.WinForms.NetFramework.csproj /property:Configuration=Release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg
msbuild -t:pack /property:Configuration=Release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg
nuget push *.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -verbosity detailed
cd ${{ github.workspace }}
- name: Publish NetSparkleUpdater.UI.WPF on version change
uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172
with:
Expand Down Expand Up @@ -199,17 +208,17 @@ jobs:
PACKAGE_NAME: NetSparkleUpdater.UI.WinForms.NetCore
INCLUDE_SYMBOLS: true

- name: Publish NetSparkleUpdater.UI.WinForms.NetFramework on version change
uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172
with:
PROJECT_FILE_PATH: ${{ github.workspace }}/src/NetSparkle.UI.WinForms.NetFramework/NetSparkle.UI.WinForms.NetFramework.csproj # Relative to repository root
# VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file
# VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group
TAG_COMMIT: false # Flag to enable / disalge git tagging
# TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version
NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key
PACKAGE_NAME: NetSparkleUpdater.UI.WinForms.NetFramework
INCLUDE_SYMBOLS: true
# - name: Publish NetSparkleUpdater.UI.WinForms.NetFramework on version change
# uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172
# with:
# PROJECT_FILE_PATH: ${{ github.workspace }}/src/NetSparkle.UI.WinForms.NetFramework/NetSparkle.UI.WinForms.NetFramework.csproj # Relative to repository root
# # VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file
# # VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group
# TAG_COMMIT: false # Flag to enable / disalge git tagging
# # TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version
# NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key
# PACKAGE_NAME: NetSparkleUpdater.UI.WinForms.NetFramework
# INCLUDE_SYMBOLS: true

- name: Publish NetSparkleUpdater.Tools.DSAHelper
uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>NetSparkleUpdater.UI.WinForms.NetFramework</id>
<title>NetSparkleUpdater WinForms .NET Framework UI</title>
<version>3.0.1</version>
<version>3.0.3-preview-TEST-001</version>
<authors>Deadpikle, Dirk Eisenberg</authors>
<owners>Deadpikle</owners>
<readme>README.md</readme>
Expand All @@ -14,9 +14,9 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>NetSparkleUpdater framework with built-in WinForms .NET Framework UI</summary>
<description>NetSparkleUpdater/NetSparkle app updater framework with built-in WinForms .NET Framework UI. NetSparkleUpdater/NetSparkle is a C# .NET software update framework that allows you to easily download installer files and update your C# .NET Framework or .NET Core software. Built-in UIs are available for WinForms, WPF, and Avalonia. You provide, somewhere on the internet, an XML appcast with software version information along with release notes in Markdown or HTML format. The NetSparkle framework then checks for an update in the background, displays the release notes to the user, and lets users download or skip the software update. The framework can also perform silent downloads so that you can present all of the UI yourself or set up your own silent software update system, as allowed by your software architecture. It was inspired by the Sparkle (https://sparkle-project.org/) project for Cocoa developers and the WinSparkle (https://winsparkle.org/) project (a Win32 port).</description>
<copyright>Copyright 2010 - 2024</copyright>
<copyright>Copyright 2010 - 2025</copyright>
<tags>Update NetSparkle Sparkle Autoupdate .NET Update WinForms software</tags>
<releaseNotes>2.0: See https://github.com/NetSparkleUpdater/NetSparkle for all information and to file issues/pull requests for and ask questions about this project.</releaseNotes>
<releaseNotes>3.0: See https://github.com/NetSparkleUpdater/NetSparkle for all information and to file issues/pull requests for and ask questions about this project.</releaseNotes>
<dependencies>
<group targetFramework=".NETFramework4.6.2">
<dependency id="NetSparkleUpdater.SparkleUpdater" version="3.0.1" exclude="Build,Analyzers" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<Nullable>Enable</Nullable>
<Version>3.0.2</Version>
<Version>3.0.3-previewTEST-001</Version>
<LangVersion>8.0</LangVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand All @@ -23,7 +23,7 @@
<Authors>Deadpikle</Authors>
<Company>Deadpikle</Company>
<Description>NetSparkleUpdater/NetSparkle app updater framework with built-in WinForms UI for .NET Framework 4.6.2+. NetSparkle is a C# .NET software update framework that allows you to easily download installer files and update your C# .NET Framework or .NET Core software. Built-in UIs are available for WinForms, WPF, and Avalonia. You provide, somewhere on the internet, an app cast with software version information along with release notes in Markdown or HTML format. The NetSparkle framework then checks for an update in the background, displays the release notes to the user, and lets users download or skip the software update. The framework can also perform silent downloads so that you can present all of the UI yourself or set up your own silent software update system, as allowed by your software architecture. It was inspired by the Sparkle (https://sparkle-project.org/) project for Cocoa developers and the WinSparkle (https://winsparkle.org/) project (a Win32 port).</Description>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<!--<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>-->
</PropertyGroup>
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
Expand All @@ -34,19 +34,18 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\bin\Debug\NetSparkle.UI.WinForms\</OutputPath>
<DocumentationFile>..\bin\Debug\NetSparkle.UI.WinForms\NetSparkleUpdater.UI.WinForms.xml</DocumentationFile>
<OutputPath>..\bin\Debug\NetSparkle.UI.WinForms.NetFramework\</OutputPath>
<DocumentationFile>..\bin\Debug\NetSparkle.UI.WinForms\NetSparkleUpdater.UI.WinForms.NetFramework.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>..\bin\Release\NetSparkle.UI.WinForms\</OutputPath>
<DocumentationFile>..\bin\Release\NetSparkle.UI.WinForms\NetSparkleUpdater.UI.WinForms.xml</DocumentationFile>
<OutputPath>..\bin\Release\NetSparkle.UI.WinForms.NetFramework\</OutputPath>
<DocumentationFile>..\bin\Release\NetSparkle.UI.WinForms\NetSparkleUpdater.UI.WinForms.NetFramework.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\NetSparkle\NetSparkle.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.Resources.Extensions" Version="9.0.1" />
</ItemGroup>
</Project>

0 comments on commit 2a8b761

Please sign in to comment.