mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-10-31 13:51:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			55 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "version": "7.2-22.1",
 | |
|     "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-22.1/nano-for-windows_win64_v7.2-22.1.zip",
 | |
|             "hash": "ce50a799a5fae37ac36ff2d7f3680968ca4af11a808edad96bcce746c13ccd20"
 | |
|         },
 | |
|         "32bit": {
 | |
|             "url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-22.1/nano-for-windows_win32_v7.2-22.1.zip",
 | |
|             "hash": "0ac8fa4fc97f5b9eaf16d5b561c4b5df5d923deb29d5a8f21265e58dfaf2513d"
 | |
|         },
 | |
|         "arm64": {
 | |
|             "url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-22.1/nano-for-windows_arm64_v7.2-22.1.zip",
 | |
|             "hash": "30977c243c8eb97d35559b13d742190c2c1d2812cd7691e7e3f3e026ed6de205"
 | |
|         }
 | |
|     },
 | |
|     "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"
 | |
|         }
 | |
|     }
 | |
| }
 | 
![github-actions[bot]](/assets/img/avatar_default.png)