-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(windows-installer): add new cleanup script on install (#824)
Issue #, if available: *Description of changes:* - Add new script that runs upon installation to cleanup any dangling Finch VM - This is needed because earlier versions of Finch's Windows installer don't clean up properly on uninstall / reinstall - Even with this change, user's will be prompted to stop limactl on reinstall if Finch is running. Regardless of which action they choose, the install script will cleanup any dangling VMs. *Testing done:* - Tested locally - [x] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Signed-off-by: Justin Alvarez <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@echo off | ||
SET InstallDir=%~1 | ||
|
||
:: Stop and remove any running instance | ||
finch.exe vm stop -f ^ & | ||
finch.exe vm remove -f ^ & | ||
|
||
:: Just in case | ||
wsl --terminate lima-finch ^ & | ||
wsl --unregister lima-finch |