Skip to content

Commit

Permalink
feat(Updater): display changelog (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic authored Jan 29, 2025
1 parent 532a0d8 commit 427597f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 31 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
new_release_version: ${{ (steps.semantic.outputs.new_release_published && steps.semantic.outputs.new_release_version) || '0.0.1' }}
new_release_notes: ${{ steps.semantic.outputs.new_release_notes }}
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion src/KubeUI/Assets/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 29 additions & 29 deletions src/KubeUI/Assets/Resources.resx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
Expand All @@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
Expand Down Expand Up @@ -136,7 +136,7 @@
<value>About</value>
</data>
<data name="MainViewModel_CheckForUpdates_Content" xml:space="preserve">
<value>A new update is available. Update and restart now?</value>
<value>Update and restart now?</value>
</data>
<data name="MainViewModel_CheckForUpdates_Secondary" xml:space="preserve">
<value>No</value>
Expand Down Expand Up @@ -393,4 +393,4 @@ Are you sure?</value>
<data name="MainView_Menu_File_LoadKubeConfig_Open" xml:space="preserve">
<value>Select Kube Config</value>
</data>
</root>
</root>
1 change: 1 addition & 0 deletions src/KubeUI/KubeUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<PackageReference Include="JsonPathLINQ" Version="1.0.0-alpha.10" />
<PackageReference Include="KubernetesClient" Version="16.0.2" />
<PackageReference Include="KubernetesCRDModelGen" Version="1.0.0-alpha.425" />
<PackageReference Include="Markdig" Version="0.40.0" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.186">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion src/KubeUI/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ private async Task CheckForUpdates()
ContentDialogSettings settings = new()
{
Title = Resources.MainViewModel_CheckForUpdates_Title,
Content = Resources.MainViewModel_CheckForUpdates_Content,
Content = Resources.MainViewModel_CheckForUpdates_Content + "\n\n" + Markdig.Markdown.ToPlainText(update.TargetFullRelease.NotesMarkdown),
PrimaryButtonText = Resources.MainViewModel_CheckForUpdates_Primary,
SecondaryButtonText = Resources.MainViewModel_CheckForUpdates_Secondary,
DefaultButton = ContentDialogButton.Secondary
Expand Down

0 comments on commit 427597f

Please sign in to comment.