diff --git a/src/AutoUpdate/Program.cs b/src/AutoUpdate/Program.cs index d5dd25c..88be420 100644 --- a/src/AutoUpdate/Program.cs +++ b/src/AutoUpdate/Program.cs @@ -64,7 +64,10 @@ void Lip_Handler() foreach (var dir in currentDir.EnumerateDirectories()) { - Directory.Move(dir.FullName, Path.Combine(lipuiWorkingDir, dir.Name)); + var temp = Path.Combine(lipuiWorkingDir, dir.Name); + if (Directory.Exists(temp)) + Directory.Delete(temp, true); + Directory.Move(dir.FullName, temp); logger.LogInformation("Moved {dir} to {lipuiWorkingDir}", dir.Name, lipuiWorkingDir); } diff --git a/tooth.json b/tooth.json index 1c68212..785af10 100644 --- a/tooth.json +++ b/tooth.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "github.com/lippkg/LipUI", - "version": "0.4.2", + "version": "0.4.3", "info": { "name": "LipUI", "description": "A GUI client for lip", @@ -14,7 +14,7 @@ { "goos": "windows", "goarch": "amd64", - "asset_url": "https://github.com/lippkg/LipUI/releases/download/v0.4.2/LipUI-win-x64.zip", + "asset_url": "https://github.com/lippkg/LipUI/releases/download/v0.4.3/LipUI-win-x64.zip", "commands": { "post-install": [ ".autoupdate/AutoUpdate.exe --type lip_postinstall" @@ -32,10 +32,11 @@ { "goos": "windows", "goarch": "arm64", - "asset_url": "https://github.com/lippkg/LipUI/releases/download/v0.4.2/LipUI-win-arm64.zip", + "asset_url": "https://github.com/lippkg/LipUI/releases/download/v0.4.3/LipUI-win-arm64.zip", "commands": { "post-install": [ - ".autoupdate/AutoUpdate.exe --type lip_postinstall" + "echo Copy files", + "IF EXIST current_lipui_path.txt (.autoupdate/AutoUpdate.exe --type lip_postinstall)" ] }, "files": {