mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-03 07:11:21 +00:00
helix: Scooping config file path (#4949)
* Added config parameter to Helix shim - Add suggestion 'extras/vcredist2022' - Add migration script --------- Co-authored-by: HUMORCE <humorce@outlook.com>
This commit is contained in:
parent
f9260a393c
commit
7361130657
@ -3,6 +3,9 @@
|
|||||||
"description": "A post-modern modal text editor",
|
"description": "A post-modern modal text editor",
|
||||||
"homepage": "https://helix-editor.com",
|
"homepage": "https://helix-editor.com",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
|
"suggest": {
|
||||||
|
"vcredist": "extras/vcredist2022"
|
||||||
|
},
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://github.com/helix-editor/helix/releases/download/23.05/helix-23.05-x86_64-windows.zip",
|
"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"
|
"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": [
|
"bin": [
|
||||||
"hx.exe",
|
|
||||||
[
|
[
|
||||||
"hx.exe",
|
"hx.exe",
|
||||||
"helix"
|
"hx",
|
||||||
|
"--config \"$persist_dir\\config.toml\""
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"hx.exe",
|
||||||
|
"helix",
|
||||||
|
"--config \"$persist_dir\\config.toml\""
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"checkver": {
|
"checkver": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user