Skip to content

Commit e044ca6

Browse files
authored
Convert GitHubReleaseNotes to a .NET 8 self contained executable (#28)
* Convert GitHubReleaseNotes to a .NET 8 self contained executable * . * choco push githubreleasenotes.1.0.10.0.nupkg --source https://push.chocolatey.org/ * ... * up * . * 2024-02-15
1 parent ac5193c commit e044ca6

24 files changed

+210
-114
lines changed

Chocolatey/GitHubReleaseNotes/GitHubReleaseNotes.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
2626
<!-- version should MATCH as closely as possible with the underlying software -->
2727
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
2828
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. -->
29-
<version>1.0.9.0</version>
29+
<version>1.0.10.0</version>
3030
<!-- <packageSourceUrl>Where is this Chocolatey package located (think GitHub)? packageSourceUrl is highly recommended for the community feed</packageSourceUrl>-->
3131
<!-- owners is a poor name for maintainers of the package. It sticks around by this name for compatibility reasons. It basically means you. -->
3232
<owners>Stef Heyenrath</owners>

Chocolatey/GitHubReleaseNotes/HowTo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ choco apikey --key {KEY} --source https://push.chocolatey.org/
3030

3131
Then push:
3232
``` cmd
33-
choco push githubreleasenotes.1.0.9.nupkg --source https://push.chocolatey.org/
33+
choco push githubreleasenotes.1.0.10.0.nupkg --source https://push.chocolatey.org/
3434
```

Chocolatey/GitHubReleaseNotes/generate.linq

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ string projectFolder = Path.Combine(chocolateyFolder, "../", "../");
88

99
var doc = new XmlDocument(); doc.Load(Path.Combine(chocolateyFolder, "GitHubReleaseNotes.nuspec"));
1010
string version = doc["package"]["metadata"]["version"].FirstChild.Value;
11-
string exe = Path.Combine(projectFolder, "src", "GitHubReleaseNotes", "bin", "release", "net48", "GitHubReleaseNotes.exe");
11+
string exe = Path.Combine(projectFolder, "src", "GitHubReleaseNotes", "bin", "release", "net8.0", "win-x64", "publish", "GitHubReleaseNotes.exe");
1212

1313
string CreateSHA256()
1414
{
@@ -49,7 +49,7 @@ To verify this package, follow these steps:
4949
5050
3] For the changes in this release, see ReleaseNotes.md
5151
52-
Note that this application is build with the .NET 4.8 framework and uses Fody and Fody.Costura to include all dependencies to generate a single exe file.";
52+
Note that this application is build as a selfcontained .NET 8 executable.";
5353

5454
File.WriteAllText(Path.Combine(chocolateyFolder, "tools", "VERIFICATION.txt"), text, Encoding.UTF8);
5555

Chocolatey/GitHubReleaseNotes/tools/VERIFICATION.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ To verify this package, follow these steps:
55
1] Right click the GitHubReleaseNotes.exe in Windows file explorer and go to the "Details" tab and check the following properties:
66
- File description GitHubReleaseNotes
77
- Type Application
8-
- File version 1.0.9.0
8+
- File version 1.0.10.0
99
- Product name GitHubReleaseNotes
10-
- Product version 1.0.9.0
10+
- Product version 1.0.10.0
1111
- Copyright Stef Heyenrath
12-
- Size 1,16 MB
13-
- Date modified 2024-02-01 15:45
12+
- Size 67,21 MB
13+
- Date modified 2024-02-03 07:47
1414
- Language Language Neutral
1515
- Original filename GitHubReleaseNotes.exe
1616

1717
2] Verify the SHA256 from the GitHubReleaseNotes.exe file (7zip can be used for this)
18-
- SHA256 03D15D98897FF00DF4F7A0AD2F4438E0299CAF3282D49AC702AEFFECB1ED5958
18+
- SHA256 0124EC06B2C5DCF54F8BE851445A3A31ADF79DA49004DC03DCE882B9DA7E3DD4
1919

2020
3] For the changes in this release, see ReleaseNotes.md
2121

22-
Note that this application is build with the .NET 4.8 framework and uses Fody and Fody.Costura to include all dependencies to generate a single exe file.
22+
Note that this application is build as a selfcontained .NET 8 executable.

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55

66
<PropertyGroup>
7-
<Version>1.0.9.0</Version>
7+
<Version>1.0.10.0</Version>
88
<Description>Generate Release Notes from a GitHub project.</Description>
99
<Summary>Generate Release Notes from a GitHub project.</Summary>
1010
<Authors>Stef Heyenrath</Authors>

GenerateReleaseNotes.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
GitHubReleaseNotes --output ReleaseNotes.md --skip-empty-releases --exclude-labels invalid question doc tip --version 1.0.9.0
1+
GitHubReleaseNotes --output ReleaseNotes.md --skip-empty-releases --exclude-labels invalid question doc tip --version 1.0.10.0
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.5.0.schema.json
2+
3+
PackageIdentifier: StefHeyenrath.GitHubReleaseNotes
4+
PackageVersion: 1.0.10.0
5+
InstallerType: zip
6+
NestedInstallerType: portable
7+
NestedInstallerFiles:
8+
- RelativeFilePath: GitHubReleaseNotes.exe
9+
ProductCode: '{32249977-C6C1-40ED-B6A8-7084E69A0E7A}'
10+
ReleaseDate: 2024-02-15
11+
AppsAndFeaturesEntries:
12+
- UpgradeCode: '{4E0EDF71-49CA-4113-8EF5-E1518AADE1E1}'
13+
Installers:
14+
- Architecture: x64
15+
InstallerUrl: https://github.com/StefH/GitHubReleaseNotes/releases/download/1.0.10.0/GitHubReleaseNotes.zip
16+
InstallerSha256: 7F9134593AB58D9CF4FE337B436009F724C7EDCD41CFE0682EAD492999290EC0
17+
ManifestType: installer
18+
ManifestVersion: 1.5.0
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.5.0.schema.json
2+
3+
PackageIdentifier: StefHeyenrath.GitHubReleaseNotes
4+
PackageVersion: 1.0.10.0
5+
PackageLocale: en-US
6+
Publisher: Stef Heyenrath
7+
PublisherUrl: https://github.com/StefH
8+
PublisherSupportUrl: https://github.com/StefH/GitHubReleaseNotes
9+
PackageName: GitHubReleaseNotes
10+
PackageUrl: https://github.com/StefH/GitHubReleaseNotes
11+
License: MIT
12+
LicenseUrl: https://github.com/StefH/GitHubReleaseNotes/blob/master/LICENSE
13+
ShortDescription: Generate Release Notes in MarkDown format from a GitHub project.
14+
Moniker: githubreleasenotes
15+
Tags:
16+
- changelog
17+
- generate
18+
- github
19+
- markdown
20+
- md
21+
- releasenotes
22+
- tags
23+
ReleaseNotesUrl: https://github.com/StefH/GitHubReleaseNotes/blob/master/ReleaseNotes.md
24+
ManifestType: defaultLocale
25+
ManifestVersion: 1.5.0
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.5.0.schema.json
2+
3+
PackageIdentifier: StefHeyenrath.GitHubReleaseNotes
4+
PackageVersion: 1.0.10.0
5+
DefaultLocale: en-US
6+
ManifestType: version
7+
ManifestVersion: 1.5.0

Wix/Setup/Product.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3-
<Product Id="32249977-C6C1-40ED-B6A8-7084E69A0E7A" Name="GitHubReleaseNotes" Language="1033" Manufacturer="Stef Heyenrath" Version="1.0.9.0" UpgradeCode="C6C9F090-5E9F-4E30-B9D1-43238271456F">
3+
<Product Id="32249977-C6C1-40ED-B6A8-7084E69A0E7A" Name="GitHubReleaseNotes" Language="1033" Manufacturer="Stef Heyenrath" Version="1.0.10.0" UpgradeCode="4E0EDF71-49CA-4113-8EF5-E1518AADE1E1">
44
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
55
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
66
<MediaTemplate EmbedCab="yes" />

0 commit comments

Comments
 (0)