Skip to content

Commit 5c61635

Browse files
authored
Merge pull request #48 from sanshu-rom/patch-13
配套的卸载升级
2 parents fb6238a + bc0a8c4 commit 5c61635

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

install/uninstall.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,13 @@ try {
219219
Write-Warning "清理 PM2 数据失败: $($_.Exception.Message)"
220220
}
221221

222-
# ---------- 9. 完成 ----------
222+
# ---------- 9. 删除配置文件(当前目录) ----------
223+
Write-Host "删除配置文件..." -ForegroundColor Green
224+
$confFile = Join-Path $PSScriptRoot "drpys-update.conf"
225+
$pathFile = Join-Path $PSScriptRoot "drpys-path.txt"
226+
Remove-Item -Path $confFile,$pathFile -Force -ErrorAction SilentlyContinue
227+
228+
# ---------- 10. 完成 ----------
223229
Write-Host "drpys 卸载完成!" -ForegroundColor Green
224230
if ($IncludeEnv) {
225231
Write-Host "已卸载所有运行环境,建议重启计算机。" -ForegroundColor Yellow

0 commit comments

Comments
 (0)