mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-03 23:31:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			55 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "7.2-19",
 | 
						|
    "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-19/nano-for-windows_win64_v7.2-19.zip",
 | 
						|
            "hash": "aa0166207c37f1a12cd598ecf92b98e390a1fd16bd7f83784a3eb771260fa6f2"
 | 
						|
        },
 | 
						|
        "32bit": {
 | 
						|
            "url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-19/nano-for-windows_win32_v7.2-19.zip",
 | 
						|
            "hash": "c26deea3666bdc4a6def757fe283d8d968400909bc8317ef64c006c3490fe0d3"
 | 
						|
        },
 | 
						|
        "arm64": {
 | 
						|
            "url": "https://github.com/okibcn/nano-for-windows/releases/download/v7.2-19/nano-for-windows_arm64_v7.2-19.zip",
 | 
						|
            "hash": "53d886096450e3e3a28d1ee57cbdc7dff0f2fe0d84e669a35aaddd55c41c6ada"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "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"
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |