2022-09-17 19:00:30 +08:00
|
|
|
import { LOG_MAJOR, Logger } from '../src/util/log_util';
|
2022-09-12 08:07:42 +08:00
|
|
|
import { AppPaths, PathUtil } from '../src/util/path_util';
|
2022-09-12 00:57:21 +08:00
|
|
|
import { runHeadless } from './headless';
|
2022-09-12 02:21:33 +08:00
|
|
|
import { headlessConfig } from './headless-config';
|
2022-09-12 00:57:21 +08:00
|
|
|
|
|
|
|
void async function main() {
|
2022-09-12 02:21:33 +08:00
|
|
|
AppPaths.Get.setBaseDir(PathUtil.join(__dirname, '../..'));
|
2022-09-17 05:30:43 +08:00
|
|
|
Logger.Get.enableLogToFile();
|
|
|
|
Logger.Get.initLogFile('headless');
|
2022-09-12 02:21:33 +08:00
|
|
|
|
|
|
|
runHeadless(headlessConfig);
|
2022-09-12 00:57:21 +08:00
|
|
|
|
2022-09-17 02:18:36 +08:00
|
|
|
LOG_MAJOR('\nFinished!');
|
2022-09-12 00:57:21 +08:00
|
|
|
}();
|