Fix macos display name for preview versions

This commit is contained in:
crschnick 2024-07-25 03:44:00 +00:00
parent da15533220
commit 68cf68ea70

View file

@ -302,6 +302,10 @@ public interface OsType {
"awk '/SOFTWARE LICENSE AGREEMENT FOR macOS/' '/System/Library/CoreServices/Setup "
+ "Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf' | "
+ "awk -F 'macOS ' '{print $NF}' | awk '{print substr($0, 0, length($0)-1)}'");
// For preleases and others
if (name.isBlank()) {
name = "?";
}
return properties.get("ProductName") + " " + name + " " + properties.get("ProductVersion");
}
}