diff --git a/Sources/CodeEditCLI/Version.swift b/Sources/CodeEditCLI/Version.swift index 623c393..ff187e0 100644 --- a/Sources/CodeEditCLI/Version.swift +++ b/Sources/CodeEditCLI/Version.swift @@ -6,7 +6,7 @@ // import ArgumentParser -import Foundation +import AppKit extension CodeEditCLI { struct Version: ParsableCommand { @@ -20,7 +20,7 @@ extension CodeEditCLI { print("CodeEditCLI: \t\(CLI_VERSION)") // File URL of CodeEdit.app - let appURL = URL(fileURLWithPath: "/Applications/CodeEdit.app") + let appURL = NSWorkspace.shared.urlForApplication(withBundleIdentifier: "austincondiff.CodeEdit") // Check if there is an Info.plist inside CodeEdit.app // Then get the version number and print it out diff --git a/Sources/CodeEditCLI/main.swift b/Sources/CodeEditCLI/main.swift index 5732250..3ee8852 100644 --- a/Sources/CodeEditCLI/main.swift +++ b/Sources/CodeEditCLI/main.swift @@ -11,7 +11,7 @@ import Foundation // ################################################## // This needs to be changed prior to every release! // ################################################## -let CLI_VERSION = "0.0.7" +let CLI_VERSION = "0.0.8" struct CodeEditCLI: ParsableCommand { static let configuration = CommandConfiguration(