测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最新发布 | 2017年10月 |
SwiftSwift 版本 | 4.0 |
SPM支持 SPM | ✗ |
由 AntScript 维护。
github "antscript/ASLauncherMac"
$ carthage update
添加 Application / Cocoa 类型的目标
为启动器目标Bundle ID添加“-Launcher”
只添加背景为“是”
设置为跳过安装为“是”
添加复制文件
将 ASLauncherMac.framework 拖到项目中
为两个目标都嵌入框架
// debug options
// return result with notification
ASLauncherMac.debug = true // default is false
// in main app , you can
ASLauncherMac.enableLaunchAtLogin()
// or
ASLauncherMac.disableLaunchAtLogin()
// launch main app from launcher :
// add to Launcher -> AppDelegate -> applicationDidFinishLaunching
func applicationDidFinishLaunching(_ aNotification: Notification) {
ASLauncherMac.debug = true
ASLauncherMac.launch(bundleID: "your-main-app-bundle-id", AppName: "your-app-display-name")
}
=============
许可证