From 5f15774ec76b7abab836eaa3a8d6c027e6f5b1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 29 Jul 2024 20:58:27 +0800 Subject: [PATCH] fix: script --- script/BootWay.03.ps1 | 2 +- script/BootWay05-utf8.ps1 | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/script/BootWay.03.ps1 b/script/BootWay.03.ps1 index 7f97070c..d4fb6707 100644 --- a/script/BootWay.03.ps1 +++ b/script/BootWay.03.ps1 @@ -42,4 +42,4 @@ if (!(Test-Path $QQpath)) { $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 &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging $params}" \ No newline at end of file +Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging }" \ No newline at end of file diff --git a/script/BootWay05-utf8.ps1 b/script/BootWay05-utf8.ps1 index a26103f5..281747fb 100644 --- a/script/BootWay05-utf8.ps1 +++ b/script/BootWay05-utf8.ps1 @@ -46,7 +46,6 @@ Write-Output "JavaScript code has been generated and saved to $jsFilePath" # 设置NAPCAT_PATH环境变量为 当前目录的loadScript.js地址 $env:NAPCAT_PATH = $jsFilePath -$params = $args -join " " Try { $QQpath = Get-QQpath } @@ -58,4 +57,4 @@ Catch { } $commandInfo = Get-Command $QQpath -ErrorAction Stop -Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging $params}" \ No newline at end of file +Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' --enable-logging }" \ No newline at end of file