2023-10-25 20:24:09 +00:00

51 lines
1.7 KiB
JSON

{
"version": "23.10",
"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.10/helix-23.10-x86_64-windows.zip",
"hash": "16c5201ff48bbd3ad0bc8fa4d75f2f30307f3e1d002a40bbea0fcfe1f55d0d28",
"extract_dir": "helix-23.10-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",
"--config \"$persist_dir\\config.toml\""
],
[
"hx.exe",
"helix",
"--config \"$persist_dir\\config.toml\""
]
],
"checkver": {
"github": "https://github.com/helix-editor/helix"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/helix-editor/helix/releases/download/$version/helix-$version-x86_64-windows.zip",
"extract_dir": "helix-$version-x86_64-windows"
}
}
}
}