mirror of
https://github.com/ScoopInstaller/Main.git
synced 2026-01-15 08:05:14 +00:00
55 lines
2.7 KiB
JSON
55 lines
2.7 KiB
JSON
{
|
|
"version": "7.2-13.3",
|
|
"description": "The legendary small and friendly GNU editor, UTF-8 and mouse ready for Windows 32/64/ARM CLI",
|
|
"homepage": "https://github.com/okibcn/nano-for-windows",
|
|
"license": "GPL-3.0-only",
|
|
"notes": "The old config file has been backed up to \"$dir\\.nanorc.bak\"",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-13.3/nano-for-windows_win64_v7.2-13.3.zip",
|
|
"hash": "8bf6e975f46dd03106b3d8d267d5e8c1fb67348441f0658337685e2c5c6e6102"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-13.3/nano-for-windows_win32_v7.2-13.3.zip",
|
|
"hash": "935e3b8da5aef89a6c7a20ed9988b9d848702ebf5600aaeef4a157ec9216b85b"
|
|
},
|
|
"arm64": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-13.3/nano-for-windows_arm64_v7.2-13.3.zip",
|
|
"hash": "ce9453849808cf653cc6105c5662f1e7153751017f1081f526b7cafea7fdd2dd"
|
|
}
|
|
},
|
|
"pre_install": [
|
|
"$scoopdir=$scoopdir -replace '\\\\','/'",
|
|
"if (-not (Test-Path ~/.nanorc)) {",
|
|
" Move-Item \"$dir/.nanorc\" ~/.nanorc",
|
|
" Add-Content ~/.nanorc \"include `\"$scoopdir/apps/nano/current/syntax/*.nanorc`\"\"",
|
|
"} else {",
|
|
" Copy-Item ~/.nanorc \"$dir/.nanorc.bak\"",
|
|
"}",
|
|
"(Get-Content ~/.nanorc) -replace '(@PKGDATADIR@)', \"$scoopdir/apps/nano/current/syntax\" | Set-Content ~/.nanorc",
|
|
"(Get-Content ~/.nanorc) -replace '(/usr/share/nano)', \"$scoopdir/apps/nano/current/syntax\" | Set-Content ~/.nanorc",
|
|
"(Get-Content ~/.nanorc) -replace '(pkg_.*-w64-mingw32.share.nano)', 'syntax' | Set-Content ~/.nanorc"
|
|
],
|
|
"bin": "nano.exe",
|
|
"checkver": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases",
|
|
"regex": "assets/v([\\d\\.\\-]+)"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v$version/nano-for-windows_win64_v$version.zip"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v$version/nano-for-windows_win32_v$version.zip"
|
|
},
|
|
"arm64": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v$version/nano-for-windows_arm64_v$version.zip"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v$version/hashes.txt"
|
|
}
|
|
}
|
|
}
|