Skip to content

Commit 53dac5c

Browse files
committed
Fix Swift concurrency warnings and add README
1 parent 6a229a6 commit 53dac5c

File tree

2 files changed

+50
-3
lines changed

2 files changed

+50
-3
lines changed

OSView/OSViewApp.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ struct OSViewApp: App {
4242

4343
// MARK: - App Delegate for additional window configuration
4444

45+
@MainActor
4546
class AppDelegate: NSObject, NSApplicationDelegate {
4647
func applicationDidFinishLaunching(_ notification: Notification) {
4748
// Configure main window after launch
48-
DispatchQueue.main.async {
49-
self.configureMainWindow()
50-
}
49+
configureMainWindow()
5150
}
5251

5352
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# OSView
2+
3+
A native macOS system monitoring utility built with SwiftUI. Displays real-time metrics for CPU, memory, GPU, disk, and network.
4+
5+
## Requirements
6+
7+
- macOS 15.0 or later
8+
- Xcode 16+ (for building from source)
9+
10+
## Installation
11+
12+
### Download
13+
14+
Download the latest release from the [Releases](../../releases) page.
15+
16+
**Note:** The app is unsigned. On first launch, you'll need to:
17+
1. Right-click (or Control-click) on `OSView.app`
18+
2. Select "Open" from the context menu
19+
3. Click "Open" in the dialog that appears
20+
21+
This is only required once. macOS will remember your choice.
22+
23+
### Build from Source
24+
25+
```bash
26+
git clone https://github.com/yourusername/OSView.git
27+
cd OSView
28+
xcodebuild -project OSView.xcodeproj \
29+
-scheme OSView \
30+
-configuration Release \
31+
-derivedDataPath build \
32+
clean build
33+
```
34+
35+
The app will be at `build/Build/Products/Release/OSView.app`.
36+
37+
## Why is the app unsigned?
38+
39+
Signing and notarizing macOS apps requires a paid Apple Developer Program membership ($99/year). Since this is an open-source project, the app is distributed unsigned.
40+
41+
This means:
42+
- macOS Gatekeeper will show a warning on first launch
43+
- You need to right-click → Open to bypass the warning (one time only)
44+
- The app works normally after that
45+
46+
## License
47+
48+
MIT

0 commit comments

Comments
 (0)