Skip to content

Commit

Permalink
fix(bundler): kill processes while updating in windows
Browse files Browse the repository at this point in the history
chore: optimize wix cleanup template (#397)

fix: wix template file
  • Loading branch information
greenhat616 committed Feb 7, 2024
1 parent b249ba9 commit cffd388
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion backend/tauri/overrides/nightly.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"updater": {
"endpoints": [
"https://mirror.ghproxy.com/https://github.com/keiko233/clash-nyanpasu/releases/download/updater/update-nightly-proxy.json",
"https://ghproxy.com/https://github.com/keiko233/clash-nyanpasu/releases/download/updater/update-nightly-proxy.json",
"https://gh-proxy.com/https://github.com/keiko233/clash-nyanpasu/releases/download/updater/update-nightly-proxy.json",
"https://github.com/keiko233/clash-nyanpasu/releases/download/updater/update-nightly.json"
]
}
Expand Down
2 changes: 1 addition & 1 deletion backend/tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"active": true,
"endpoints": [
"https://mirror.ghproxy.com/https://github.com/keiko233/clash-nyanpasu/releases/download/updater/update-proxy.json",
"https://ghproxy.com/https://github.com/keiko233/clash-nyanpasu/releases/download/updater/update-proxy.json",
"https://gh-proxy.com/https://github.com/keiko233/clash-nyanpasu/releases/download/updater/update-proxy.json",
"https://github.com/keiko233/clash-nyanpasu/releases/download/updater/update.json"
],
"dialog": false,
Expand Down
22 changes: 14 additions & 8 deletions backend/tauri/templates/cleanup.wxs
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Fragment>
<!-- close nyanpasu processes while install-->
<util:CloseApplication Id="NyanpasuCloseApp" Target="Clash Nyanpasu.exe" CloseMessage="yes" RebootPrompt="yes">
<util:CloseApplication Id="NyanpasuCloseService" Target="clash-verge-service.exe" CloseMessage="yes" RebootPrompt="yes">
<util:CloseApplication Id="NyanpasuCloseMihomo" Target="mihomo.exe" CloseMessage="yes" RebootPrompt="yes">
<util:CloseApplication Id="NyanpasuCloseMihomoAlpha" Target="mihomo-alpha.exe" CloseMessage="yes" RebootPrompt="yes">
<util:CloseApplication Id="NyanpasuCloseService" Target="clash-rs.exe" CloseMessage="yes" RebootPrompt="yes">
<util:CloseApplication Id="NyanpasuCloseService" Target="clash.exe" CloseMessage="yes" RebootPrompt="yes">
</util:CloseApplication>
<util:CloseApplication Id="NyanpasuCloseApp" Target="Clash Nyanpasu.exe" CloseMessage="yes" RebootPrompt="no" TerminateProcess="1">
</util:CloseApplication>
<util:CloseApplication Id="NyanpasuCloseService" Target="clash-verge-service.exe" CloseMessage="yes" RebootPrompt="no" TerminateProcess="1">
</util:CloseApplication>
<util:CloseApplication Id="NyanpasuCloseMihomo" Target="mihomo.exe" CloseMessage="yes" RebootPrompt="no" TerminateProcess="1">
</util:CloseApplication>
<util:CloseApplication Id="NyanpasuCloseMihomoAlpha" Target="mihomo-alpha.exe" CloseMessage="yes" RebootPrompt="no" TerminateProcess="1">
</util:CloseApplication>
<util:CloseApplication Id="NyanpasuCloseService" Target="clash-rs.exe" CloseMessage="yes" RebootPrompt="no" TerminateProcess="1">
</util:CloseApplication>
<util:CloseApplication Id="NyanpasuCloseService" Target="clash.exe" CloseMessage="yes" RebootPrompt="no" TerminateProcess="1">
</util:CloseApplication>
</Fragment>
</Wix>

0 comments on commit cffd388

Please sign in to comment.