From 6d165c74a5a6b471c155b12ab15ef833d6b2aa36 Mon Sep 17 00:00:00 2001 From: Tommaso Negri Date: Sun, 26 Jul 2026 16:31:35 +0200 Subject: add main file --- Sources/phbar/main.swift | 8 ++++++++ Sources/phbar/phbar.swift | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 Sources/phbar/main.swift delete mode 100644 Sources/phbar/phbar.swift (limited to 'Sources') diff --git a/Sources/phbar/main.swift b/Sources/phbar/main.swift new file mode 100644 index 0000000..97fe72a --- /dev/null +++ b/Sources/phbar/main.swift @@ -0,0 +1,8 @@ +import AppKit + +// Entry point. Top-level code runs on the main actor. +let app = NSApplication.shared +let delegate = AppDelegate() +app.delegate = delegate +app.setActivationPolicy(.accessory) // no Dock icon, no menu +app.run() diff --git a/Sources/phbar/phbar.swift b/Sources/phbar/phbar.swift deleted file mode 100644 index e1ef8cc..0000000 --- a/Sources/phbar/phbar.swift +++ /dev/null @@ -1,9 +0,0 @@ -// The Swift Programming Language -// https://docs.swift.org/swift-book - -@main -struct phbar { - static func main() { - print("Hello, world!") - } -} -- cgit v1.2.3