mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
fix: script
This commit is contained in:
parent
c9e057599e
commit
5f15774ec7
@ -42,4 +42,4 @@ if (!(Test-Path $QQpath)) {
|
|||||||
$Bootfile = Join-Path $PSScriptRoot "napcat.mjs"
|
$Bootfile = Join-Path $PSScriptRoot "napcat.mjs"
|
||||||
$env:ELECTRON_RUN_AS_NODE = 1
|
$env:ELECTRON_RUN_AS_NODE = 1
|
||||||
$commandInfo = Get-Command $QQpath -ErrorAction Stop
|
$commandInfo = Get-Command $QQpath -ErrorAction Stop
|
||||||
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging $params}"
|
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging }"
|
@ -46,7 +46,6 @@ Write-Output "JavaScript code has been generated and saved to $jsFilePath"
|
|||||||
# 设置NAPCAT_PATH环境变量为 当前目录的loadScript.js地址
|
# 设置NAPCAT_PATH环境变量为 当前目录的loadScript.js地址
|
||||||
$env:NAPCAT_PATH = $jsFilePath
|
$env:NAPCAT_PATH = $jsFilePath
|
||||||
|
|
||||||
$params = $args -join " "
|
|
||||||
Try {
|
Try {
|
||||||
$QQpath = Get-QQpath
|
$QQpath = Get-QQpath
|
||||||
}
|
}
|
||||||
@ -58,4 +57,4 @@ Catch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$commandInfo = Get-Command $QQpath -ErrorAction Stop
|
$commandInfo = Get-Command $QQpath -ErrorAction Stop
|
||||||
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging $params}"
|
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging }"
|
Loading…
Reference in New Issue
Block a user