From dd6dc529ece1b324af0b9c0ecfe34a5468040f80 Mon Sep 17 00:00:00 2001 From: Colin Cogle Date: Wed, 29 Mar 2023 10:12:08 -0400 Subject: [PATCH] Resolve PSGallery code signing issue, version bump. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Many thanks to "weq 🐳" in the #powershell IRC channel/Discord server for helping me figure out my code signing problems. When this module was published to the PowerShell Gallery, it failed to load on Windows platforms that require code signing per execution policy. This issue has been corrected by me signing my catalog file after generating it. In the process, we have jumped up to version 1.0.4, and I've included all other changes since then. --- APRSMessenger.psd1 | 2 +- ChangeLog.md | 26 ++++++++++++++------------ NEWS.md | 3 +++ release/New-Release.ps1 | 1 + 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/APRSMessenger.psd1 b/APRSMessenger.psd1 index 57a53bc..0e1c9a7 100644 --- a/APRSMessenger.psd1 +++ b/APRSMessenger.psd1 @@ -19,7 +19,7 @@ RootModule = 'src/APRSMessenger.psm1' # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # Supported PSEditions CompatiblePSEditions = @('Core','Desktop') diff --git a/ChangeLog.md b/ChangeLog.md index 629967f..2241ace 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,20 +1,22 @@ # Change Log for APRSMessenger -## Next version - - Pester now tests the module itself. +## Version 1.0.4 (March 29, 2023) + - FIXED: Corrected an issue where PowerShell Gallery would refuse to install the module on Windows platforms that require signed code per execution policy. (This is also where Version 1.0.3 went.) Thank you to `weq 🐳` from the PowerShell IRC channel/Discord server for helping me troubleshoot this. + - FIXED: Improved Markdown formatting of documentation files. + - ENHANCEMENT: Pester now tests the module itself. ## Version 1.0.2 (March 21, 2023) - - Fixed a bug where all packets would be sent to APRS-IS. The parameter set name was not honored when control passed into `Send-APRSThing`. - - Fixed a bug where message acknowledgements would not be included. - - Fixed a bug where group bulletins would not be sent correctly. - - Added Pester tests. - - Updated module manifest data. - - Created release generation script. This is intended to be run by me, when signing a version for the PowerShell Gallery, and is only saved in the Git tree so I don't lose it. + - FIXED: a bug where all packets would be sent to APRS-IS. The parameter set name was not honored when control passed into `Send-APRSThing`. + - FIXED: a bug where message acknowledgements would not be included. + - FIXED: a bug where group bulletins would not be sent correctly. + - NEW: Added Pester tests. + - Updated module manifest data. + - Created release generation script. This is intended to be run by me, when signing a version for the PowerShell Gallery, and is only saved in the Git tree so I don't lose it. ## Version 1.0.1 (March 20, 2023) - - FIX: Fixed a bug where APRS packets would be printed to the screen instead of sent to the network. - - FIX: Added change log and news to module manifest. - - ENHANCEMENT: More debugging output. + - FIX: Fixed a bug where APRS packets would be printed to the screen instead of sent to the network. + - FIX: Added change log and news to module manifest. + - ENHANCEMENT: More debugging output. ## Version 1.0.0 (March 19, 2023) - - Initial release. \ No newline at end of file + - Initial release. \ No newline at end of file diff --git a/NEWS.md b/NEWS.md index 16901a0..7c033ca 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # News for APRSMessenger +## Version 1.0.4 (March 29, 2023) +In this version, we've signed the PowerShell Gallery version of this code so that it can load on platforms that require code signing in the execution policy. Some Pester tests were also added to ensure the module is well-formed. + ## Version 1.0.2 (March 21, 2023) In this version, we've fixed bugs related to group bulletins not being received correctly, message acknowledgements not working, and printing packets to the output stream. diff --git a/release/New-Release.ps1 b/release/New-Release.ps1 index 2db4fd1..e726b87 100644 --- a/release/New-Release.ps1 +++ b/release/New-Release.ps1 @@ -52,6 +52,7 @@ Get-ChildItem -Recurse -Include @('*.ps1','*.ps?1') | ForEach-Object { Write-Output "Generating catalog" New-FileCatalog -Path . -CatalogFilePath APRSMessenger.cat -CatalogVersion 2.0 +Set-AuthenticodeSignature 'APRSMessenger.cat' #endregion #region Invoke PSScriptAnalyzer.