mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: added m3 platform detection
This commit is contained in:
@@ -42,9 +42,9 @@ identifier_name:
|
||||
line_length: 200
|
||||
|
||||
type_body_length:
|
||||
- 500
|
||||
- 700
|
||||
- 1000
|
||||
|
||||
file_length:
|
||||
- 1200
|
||||
- 1600
|
||||
- 1400
|
||||
- 1800
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user