import AppKit
|
import AlignerCore
|
|
let bundlePathSummary = DevelopmentDiagnostics.pathSummary(Bundle.main.bundlePath)
|
let executablePathSummary = DevelopmentDiagnostics.pathSummary(Bundle.main.executablePath)
|
DevelopmentDiagnostics.logSync("app.main.start", [
|
"argumentCount": ProcessInfo.processInfo.arguments.count,
|
"argumentSummary": DevelopmentDiagnostics.argumentSummary(ProcessInfo.processInfo.arguments),
|
"bundlePathKind": bundlePathSummary["locationKind"],
|
"bundlePathBasename": bundlePathSummary["basename"],
|
"bundlePathHash": bundlePathSummary["fingerprint"],
|
"executablePathKind": executablePathSummary["locationKind"],
|
"executablePathBasename": executablePathSummary["basename"],
|
"executablePathHash": executablePathSummary["fingerprint"]
|
])
|
|
let app = NSApplication.shared
|
let delegate = AlignerApplicationDelegate()
|
app.delegate = delegate
|
app.setActivationPolicy(.regular)
|
DevelopmentDiagnostics.logSync("app.main.beforeRun", [
|
"activationPolicy": app.activationPolicy().rawValue
|
])
|
app.run()
|