feat: 破坏性更新 cjs to es

This commit is contained in:
手瓜一十雪
2024-05-22 19:58:45 +08:00
parent f65b2be06f
commit 442342d106
17 changed files with 75 additions and 13 deletions

View File

@@ -1,6 +1,13 @@
import { resolve } from "node:path";
import { spawn } from "node:child_process";
import { pid, ppid, exit } from 'node:process';
import { dirname } from "node:path"
import { fileURLToPath } from "node:url"
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export async function rebootWithQuickLogin(uin: string) {
let batScript = resolve(__dirname, './napcat.bat');
let batUtf8Script = resolve(__dirname, './napcat-utf8.bat');