From bc0a8c4d2ce4caadbb8bfcccd71043dd2f3fa896 Mon Sep 17 00:00:00 2001 From: sanshu <279902746@qq.com> Date: Fri, 29 Aug 2025 12:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E5=A5=97=E7=9A=84=E5=8D=B8=E8=BD=BD?= =?UTF-8?q?=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配套的卸载升级 --- install/uninstall.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install/uninstall.ps1 b/install/uninstall.ps1 index 35b518ec..a71e4f99 100644 --- a/install/uninstall.ps1 +++ b/install/uninstall.ps1 @@ -219,7 +219,13 @@ try { Write-Warning "清理 PM2 数据失败: $($_.Exception.Message)" } -# ---------- 9. 完成 ---------- +# ---------- 9. 删除配置文件(当前目录) ---------- +Write-Host "删除配置文件..." -ForegroundColor Green +$confFile = Join-Path $PSScriptRoot "drpys-update.conf" +$pathFile = Join-Path $PSScriptRoot "drpys-path.txt" +Remove-Item -Path $confFile,$pathFile -Force -ErrorAction SilentlyContinue + +# ---------- 10. 完成 ---------- Write-Host "drpys 卸载完成!" -ForegroundColor Green if ($IncludeEnv) { Write-Host "已卸载所有运行环境,建议重启计算机。" -ForegroundColor Yellow