A macOS utility to track home-manager JJ repo status
at main 42 lines 862 B view raw
1// swift-tools-version: 5.9 2 3import PackageDescription 4 5var products: [Product] = [ 6 .library(name: "HMStatus", targets: ["HMStatus"]), 7 .executable(name: "hm-status", targets: ["hm-status"]), 8] 9 10var targets: [Target] = [ 11 // Cross-platform library pure Foundation, no Apple frameworks 12 .target( 13 name: "HMStatus", 14 path: "Sources/HMStatus" 15 ), 16 // Cross-platform CLI tool 17 .executableTarget( 18 name: "hm-status", 19 dependencies: ["HMStatus"], 20 path: "Sources/hm-status" 21 ), 22] 23 24#if os(macOS) 25 targets.append( 26 // macOS menu bar app requires SwiftUI 27 .executableTarget( 28 name: "HomeManagerStatus", 29 dependencies: ["HMStatus"], 30 path: "Sources/HomeManagerStatus" 31 ) 32 ) 33#endif 34 35let package = Package( 36 name: "HomeManagerStatus", 37 platforms: [ 38 .macOS(.v13) 39 ], 40 products: products, 41 targets: targets 42)