Skip to content

Commit

Permalink
windows: update devcpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunrisepeak committed Dec 17, 2024
1 parent 2100f3a commit 5ea4c28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/d/devcpp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ package = {
},
}

import("xim.base.utils")
import("xim.base.runtime")

local pkginfo = runtime.get_pkginfo()
Expand All @@ -43,8 +44,11 @@ function install()
end

function uninstall()
if os.isfile("C:\\Program Files (x86)\\Dev-Cpp\\uninstall.exe") then
os.exec("C:\\Program Files (x86)\\Dev-Cpp\\uninstall.exe")
local uninstall_exe = "C:\\Program Files (x86)\\Dev-Cpp\\uninstall.exe"
os.cd(path.directory(uninstall_exe))
while os.isfile(uninstall_exe) do
os.exec("uninstall.exe")
utils.prompt("等待卸载/waiting uninstall...", "")
end
return true
end

0 comments on commit 5ea4c28

Please sign in to comment.