feat: 破坏性更新 cjs to es

This commit is contained in:
手瓜一十雪 committed 2024-05-22 19:58:45 +08:00
1 parent 08976624cd
commit 4e0cdbcb91
17 files changed
+75 -13

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ if (!(Test-Path $QQpath)) {
throw "provided QQ path is invalid: $QQpath"
}
$Bootfile = Join-Path $PSScriptRoot "napcat.cjs"
$Bootfile = Join-Path $PSScriptRoot "napcat.mjs"
$env:ELECTRON_RUN_AS_NODE = 1
$commandInfo = Get-Command $QQpath -ErrorAction Stop
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& '$($commandInfo.Path)' $Bootfile $params}"