diff --git a/bucket/helix.json b/bucket/helix.json index 794ec596a7..f36b18121e 100644 --- a/bucket/helix.json +++ b/bucket/helix.json @@ -3,6 +3,9 @@ "description": "A post-modern modal text editor", "homepage": "https://helix-editor.com", "license": "MPL-2.0", + "suggest": { + "vcredist": "extras/vcredist2022" + }, "architecture": { "64bit": { "url": "https://github.com/helix-editor/helix/releases/download/23.05/helix-23.05-x86_64-windows.zip", @@ -10,11 +13,27 @@ "extract_dir": "helix-23.05-x86_64-windows" } }, + "pre_install": [ + "# NOTE: Remove the migration script after 6 months (2024-01-22)", + "if ((Test-Path \"$env:APPDATA\\helix\\config.toml\") -and (!(Test-Path \"$persist_dir\\config.toml\"))) {", + " info 'Migrating config file...'", + " info \"Previous config path: '$env:APPDATA\\helix\\config.toml'\"", + " info \"Current config path: '$persist_dir\\config.toml'\"", + " ensure \"$persist_dir\"", + " Copy-Item \"$env:APPDATA\\helix\\config.toml\" \"$persist_dir\\config.toml\"", + "}", + "# END" + ], "bin": [ - "hx.exe", [ "hx.exe", - "helix" + "hx", + "--config \"$persist_dir\\config.toml\"" + ], + [ + "hx.exe", + "helix", + "--config \"$persist_dir\\config.toml\"" ] ], "checkver": {