gnucash-on-windows master: Fix bundle-mingw64 building lexically last version.

John Ralls jralls at code.gnucash.org
Sun Dec 15 18:45:57 EST 2024


Updated	 via  https://github.com/Gnucash/gnucash-on-windows/commit/317b10b7 (commit)
	from  https://github.com/Gnucash/gnucash-on-windows/commit/c99966f4 (commit)



commit 317b10b7d99a4ae8281e866efc4403b9b7624320
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Dec 15 15:42:38 2024 -0800

    Fix bundle-mingw64 building lexically last version.
    
    5.9 lexically sorts after 5.10 making for the wrong version in the
    setup.exe name. Sort the build directories by creation date to get
    the name we want.

diff --git a/bundle-mingw64.ps1 b/bundle-mingw64.ps1
index 50f4b8d..a78645d 100644
--- a/bundle-mingw64.ps1
+++ b/bundle-mingw64.ps1
@@ -100,7 +100,7 @@ if ($git_build) {
   $gnucash = "gnucash-git"
 }
 else {
-  $gnucash = get-childitem -path $target_dir\build | where-object {$_.Name -match "gnucash-[0-9.]+"} | select-object -last 1
+  $gnucash = get-childitem -path $target_dir\build | where-object {$_.Name -match "gnucash-[0-9.]+"} |sort-object -Property {$_.CreationTime} | select-object -last 1
 }
 
 if ($PSVersionTable.PSVersion.Major -ge 3) {



Summary of changes:
 bundle-mingw64.ps1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list