fix: added m3 platform detection

This commit is contained in:
Serhiy Mytrovtsiy
2023-12-04 21:45:03 +01:00
parent b3d1323240
commit 23a9541f32
3 changed files with 14 additions and 4 deletions

View File

@@ -42,9 +42,9 @@ identifier_name:
line_length: 200
type_body_length:
- 500
- 700
- 1000
file_length:
- 1200
- 1600
- 1400
- 1800

View File

@@ -196,6 +196,16 @@ public class SystemKit {
} else {
self.device.platform = .m2
}
} else if name.contains("m3") {
if name.contains("pro") {
self.device.platform = .m3Pro
} else if name.contains("max") {
self.device.platform = .m3Max
} else if name.contains("ultra") {
self.device.platform = .m3Ultra
} else {
self.device.platform = .m3
}
}
}
}

View File

@@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>512</string>
<string>513</string>
<key>Description</key>
<string>Simple macOS system monitor in your menu bar</string>
<key>LSApplicationCategoryType</key>