mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-13 20:21:18 +00:00
38 lines
2.0 KiB
JSON
38 lines
2.0 KiB
JSON
{
|
|
"version": "7.2-13-10168",
|
|
"description": "The legendary small and friendly GNU editor, UTF-8 and mouse ready for Windows CLI 32/64 bits",
|
|
"homepage": "https://www.nano-editor.org/",
|
|
"license": "GPL-3.0-only",
|
|
"notes": [
|
|
"Default folders have been updated, no custom setting has been modified. Find a backup of",
|
|
"the old config file at \"$dir\\.nanorc.bak\"",
|
|
"Visit https://github.com/okibcn/nano-for-windows for more information."
|
|
],
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-13-10168/nano-for-windows_v7.2-13-10168.7z",
|
|
"hash": "082f326da0c204becd66d658c99132f68e7abfabc9ac4a8ef2e03e391d7f64ec",
|
|
"bin": "nano.exe",
|
|
"pre_install": [
|
|
"$arch = if ($architecture -match '64') {'x86_64'} else {'i686'}",
|
|
"$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\"",
|
|
"}",
|
|
"Move-Item \"$dir/pkg_$arch-w64-mingw32/bin/*\" \"$dir\"",
|
|
"Move-Item \"$dir/pkg_$arch-w64-mingw32/share/nano\" \"$dir/syntax\" -Force",
|
|
"Remove-Item \"$dir/pkg*\" -Force -Recurse",
|
|
"(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"
|
|
],
|
|
"checkver": {
|
|
"github": "https://api.github.com/repos/okibcn/nano-for-windows",
|
|
"regex": "v([\\d\\.\\-]+)\\.7z"
|
|
},
|
|
"autoupdate": {
|
|
"url": "https://github.com/okibcn/nano-for-windows/releases/download/v$version/nano-for-windows_v$version.7z"
|
|
}
|
|
}
|