Skip to content

Commit 33a20e7

Browse files
authored
Merge branch 'main' into feature/webview2_settings
2 parents 5e87cc4 + cce3b95 commit 33a20e7

File tree

184 files changed

+9751
-7288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+9751
-7288
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore mdx files
2+
**/*.mdx

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@
4747
</a>
4848
<a href="https://github.com/BornToBeRoot/NETworkManager/issues/new?labels=Issue&template=Bug_report.md">
4949
<img alt="Bug report" src="https://img.shields.io/badge/github-bug_report-red.svg?style=for-the-badge&logo=github" />
50-
</a>
51-
<a href="https://gurubase.io/g/networkmanager">
52-
<img alt="Gurubase" src="https://img.shields.io/badge/Gurubase-Ask%20NETworkManager%20Guru-006BFF?style=for-the-badge" />
53-
</a>
50+
</a>
5451
</p>
5552
<p>
5653
<a href="#-download">Download</a> • <a href="#-donate">Donate</a> • <a href="#-changelog">Changelog</a> • <a href="#-documentation">Documentation</a> • <a href="#-contributing">Contributing</a> • <a href="#-build">Build</a> • <a href="#-license">License</a>

Scripts/Create-FileHash.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ if(-not (Test-Path -Path $Path -PathType Container)) {
1313
}
1414

1515
# Get current date as version
16-
$Version = (Get-Date).ToString("yyyy.MM.dd") + ".0"
16+
$now = Get-Date
17+
$Version = "$($now.Year).$($now.Month).$($now.Day).0"
1718

1819
# Create SHA256 file hashes
19-
foreach ($Hash in Get-ChildItem -Path $Path | Where-Object { $_.Name.EndsWith(".zip") -or $_.Name.EndsWith(".msi") } | Sort-Object -Descending | Get-FileHash) {
20-
"$($Hash.Algorithm) | $($Hash.Hash) | $([System.IO.Path]::GetFileName($Hash.Path))" | Out-File -FilePath "$Path\NETworkManager_$($Version)_Hash.txt" -Encoding utf8 -Append
20+
foreach ($Hash in Get-ChildItem -Path $Path | Where-Object { $_.Name.StartsWith("NETworkManager_") -and ($_.Name.EndsWith(".zip") -or $_.Name.EndsWith(".msi")) } | Sort-Object -Descending | Get-FileHash) {
21+
"$($Hash.Algorithm) | $($Hash.Hash) | $([System.IO.Path]::GetFileName($Hash.Path))" | Out-File -FilePath "$Path\NETworkManager_$($Version)_Checksums.sha256" -Encoding utf8 -Append
2122
}

Source/GlobalAssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
[assembly: AssemblyConfiguration("")]
44
[assembly: AssemblyCompany("")]
5-
[assembly: AssemblyCopyright("Copyright © 2016-2024 BornToBeRoot")]
5+
[assembly: AssemblyCopyright("Copyright © 2016-2025 BornToBeRoot")]
66
[assembly: AssemblyTrademark("")]
77
[assembly: AssemblyCulture("")]
88

9-
[assembly: AssemblyVersion("2025.1.18.0")]
10-
[assembly: AssemblyFileVersion("2025.1.18.0")]
9+
[assembly: AssemblyVersion("2025.6.13.0")]
10+
[assembly: AssemblyFileVersion("2025.6.13.0")]

Source/NETworkManager.Documentation/DocumentationIdentifier.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,10 @@ public enum DocumentationIdentifier
203203
/// <summary>
204204
/// Command line arguments.
205205
/// </summary>
206-
CommandLineArguments
206+
CommandLineArguments,
207+
208+
/// <summary>
209+
/// Changelog base documentation page.
210+
/// </summary>
211+
ChangelogBase
207212
}

Source/NETworkManager.Documentation/DocumentationManager.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,12 @@ public static class DocumentationManager
137137
@"Documentation/profiles"),
138138

139139
new DocumentationInfo(DocumentationIdentifier.CommandLineArguments,
140-
@"docs/commandline-arguments")
140+
@"docs/commandline-arguments"),
141+
142+
new DocumentationInfo(DocumentationIdentifier.ChangelogBase,
143+
@"docs/changelog")
141144
];
142145

143-
/// <summary>
144-
/// Command to open a documentation page based on <see cref="DocumentationIdentifier" />.
145-
/// </summary>
146-
public static ICommand OpenDocumentationCommand => new RelayCommand(OpenDocumentationAction);
147-
148146
/// <summary>
149147
/// Method to create the documentation url from <see cref="DocumentationIdentifier" />.
150148
/// </summary>
@@ -179,13 +177,15 @@ public static void OpenDocumentation(DocumentationIdentifier documentationIdenti
179177
}
180178

181179
/// <summary>
182-
/// Method to open a documentation page based on <see cref="DocumentationIdentifier" />.
180+
/// Method to open the current changelog in the default web browser.
183181
/// </summary>
184-
/// <param name="documentationIdentifier"></param>
185-
private static void OpenDocumentationAction(object documentationIdentifier)
182+
public static void OpenChangelog()
186183
{
187-
if (documentationIdentifier != null)
188-
OpenDocumentation((DocumentationIdentifier)documentationIdentifier);
184+
var url = CreateUrl(DocumentationIdentifier.ChangelogBase);
185+
186+
url += $"/{AssemblyManager.Current.Version.ToString().Replace('.', '-')}";
187+
188+
ExternalProcessStarter.OpenUrl(url);
189189
}
190190

191191
/// <summary>

0 commit comments

Comments
 (0)