mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-24 08:31:39 -04:00
Fix macos display name for preview versions
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user