mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-10-31 13:51:18 +00:00 
			
		
		
		
	 ccc24e57b6
			
		
	
	
		ccc24e57b6
		
	
	
	
	
		
			
			Co-authored-by: Jakub Čábera <cabera.jakub@gmail.com> Co-authored-by: Richard Kuhnt <r15ch13+git@gmail.com>
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "homepage": "https://getcomposer.org/",
 | |
|     "description": "Dependency Manager for PHP",
 | |
|     "license": "MIT",
 | |
|     "version": "1.8.5",
 | |
|     "url": "https://getcomposer.org/download/1.8.5/composer.phar",
 | |
|     "bin": "composer.ps1",
 | |
|     "persist": "home",
 | |
|     "env_set": {
 | |
|         "COMPOSER_HOME": "$persist_dir\\home"
 | |
|     },
 | |
|     "env_add_path": "home\\vendor\\bin",
 | |
|     "pre_install": [
 | |
|         "echo 'if($args.length -eq 1 -and ($args -eq \"selfupdate\" -or $args -eq \"self-update\")) { & scoop update composer }' | out-file \"$dir\\composer.ps1\"",
 | |
|         "echo 'else { & php (join-path $psscriptroot \"composer.phar\") @args }' | out-file \"$dir\\composer.ps1\" -append"
 | |
|     ],
 | |
|     "post_install": [
 | |
|         "$och = \"$env:APPDATA\\Composer\"",
 | |
|         "if(Test-Path $och) {",
 | |
|         "Write-Host -F yellow \"Moving old 'COMPOSER_HOME' to '$persist_dir\\home'\"",
 | |
|         "Move-Item -Force \"$och\\*\" \"$persist_dir\\home\"",
 | |
|         "Remove-Item -Force \"$och\"",
 | |
|         "}"
 | |
|     ],
 | |
|     "suggest": {
 | |
|         "PHP": [
 | |
|             "php",
 | |
|             "php-nts"
 | |
|         ]
 | |
|     },
 | |
|     "notes": "'composer selfupdate' is aliased to 'scoop update composer'",
 | |
|     "hash": "4e4c1cd74b54a26618699f3190e6f5fc63bb308b13fa660f71f2a2df047c0e17",
 | |
|     "checkver": {
 | |
|         "github": "https://github.com/composer/composer"
 | |
|     },
 | |
|     "autoupdate": {
 | |
|         "url": "https://getcomposer.org/download/$version/composer.phar"
 | |
|     }
 | |
| }
 |