{ "version": "7.2-21", "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-21/nano-for-windows_win64_v7.2-21.zip", "hash": "1e0fcc65b645fd98d6cdcdf153553a0e691cc3b3cfc9ae7d628195170ef5bb2f" }, "32bit": { "url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-21/nano-for-windows_win32_v7.2-21.zip", "hash": "aff02e9f606db38817a78f17d33baf101c90837fab4d6c8b922ce42931495ea3" }, "arm64": { "url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-21/nano-for-windows_arm64_v7.2-21.zip", "hash": "6c4e9843bda247976a3e7cf086e3aaecbdeb45ae1074c7bcd285c2b0e0f200c9" } }, "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" } } }