diff --git a/bucket/sourcegit.json b/bucket/sourcegit.json index 30482b50b9333c..83fce21e2e2e30 100644 --- a/bucket/sourcegit.json +++ b/bucket/sourcegit.json @@ -14,6 +14,13 @@ } }, "extract_dir": "SourceGit", + "post_install": [ + "if (Test-Path $env:AppData\\SourceGit) {", + " Write-Host \"`r`nMove config from non-portable version...\"", + " Copy-Item -Path $env:AppData\\SourceGit\\* -Destination \"$persist_dir\\data\" -Force -Recurse | Out-Null", + " Remove-Item $env:AppData\\SourceGit -Force -Recurse", + "}" + ], "bin": "SourceGit.exe", "shortcuts": [ [ @@ -21,6 +28,7 @@ "SourceGit" ] ], + "persist": "data", "checkver": "github", "autoupdate": { "architecture": {