2021-02-04 18:44:16 +08:00
|
|
|
import { Executor } from '@certd/executor'
|
2021-02-08 13:40:28 +08:00
|
|
|
import PluginAliyun from '@certd/plugin-aliyun'
|
|
|
|
|
import PluginTencent from '@certd/plugin-tencent'
|
|
|
|
|
import PluginHost from '@certd/plugin-host'
|
|
|
|
|
|
2022-10-17 20:06:41 +08:00
|
|
|
// import options
|
|
|
|
|
import { createRequire } from 'module'
|
|
|
|
|
|
2021-02-08 13:40:28 +08:00
|
|
|
// 安装默认插件和授权提供者
|
|
|
|
|
PluginAliyun.install()
|
|
|
|
|
PluginTencent.install()
|
|
|
|
|
PluginHost.install()
|
2021-02-08 18:18:23 +08:00
|
|
|
const require = createRequire(import.meta.url)
|
2022-10-17 20:06:41 +08:00
|
|
|
const options = require('./options.json')
|
2021-02-08 18:18:23 +08:00
|
|
|
|
2022-10-17 20:06:41 +08:00
|
|
|
// 开始执行
|
2021-02-04 18:44:16 +08:00
|
|
|
const executor = new Executor()
|
2021-02-08 18:18:23 +08:00
|
|
|
await executor.run(options)
|