mirror of
https://github.com/xtool-org/xtool.git
synced 2026-02-04 11:53:30 +01:00
* Package xtool as a .app on macOS * Need hardened runtime for notarization * Rename product to xtool.app
19 lines
482 B
Swift
19 lines
482 B
Swift
import Foundation
|
|
import XKit
|
|
import XToolSupport
|
|
import Dependencies
|
|
|
|
@_documentation(visibility: private)
|
|
@main
|
|
enum XToolMain {
|
|
static func main() async throws {
|
|
prepareDependencies { dependencies in
|
|
#warning("Improve persistence mechanism")
|
|
// for Windows, we could use dpapi.h or wincred.h.
|
|
// for Linux, maybe use libsecret?
|
|
// see https://github.com/atom/node-keytar
|
|
}
|
|
try await XTool.run()
|
|
}
|
|
}
|