mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix macos display name for preview versions
This commit is contained in:
parent
da15533220
commit
68cf68ea70
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue