mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 06:11:20 +00:00
39 lines
1.4 KiB
JSON
39 lines
1.4 KiB
JSON
{
|
|
"version": "2.8.12",
|
|
"description": "Dependency Manager for PHP",
|
|
"homepage": "https://getcomposer.org/",
|
|
"license": "MIT",
|
|
"notes": "'composer selfupdate' is aliased to 'scoop update composer'",
|
|
"suggest": {
|
|
"PHP": [
|
|
"php",
|
|
"php-nts"
|
|
]
|
|
},
|
|
"url": "https://getcomposer.org/download/2.8.12/composer.phar",
|
|
"hash": "f446ea719708bb85fcbf4ef18def5d0515f1f9b4d703f6d820c9c1656e10a2f2",
|
|
"pre_install": [
|
|
"@(",
|
|
" 'if ($args.length -eq 1 -and ($args -eq \"selfupdate\" -or $args -eq \"self-update\")) { & scoop update composer }'",
|
|
" 'else { & php (Join-Path $PSScriptRoot \"composer.phar\") @args }'",
|
|
") | Add-Content -Path \"$dir\\composer.ps1\"",
|
|
"if (!(Test-Path \"$persist_dir\\home\") -and (Test-Path \"$env:Appdata\\Composer\")) {",
|
|
" Write-Host -F yellow \"Moving old 'COMPOSER_HOME' to '$persist_dir\\home'\"",
|
|
" Move-Item \"$env:Appdata\\Composer\" \"$persist_dir\\home\" -Force",
|
|
"}"
|
|
],
|
|
"bin": "composer.ps1",
|
|
"env_add_path": "home\\vendor\\bin",
|
|
"env_set": {
|
|
"COMPOSER_HOME": "$persist_dir\\home"
|
|
},
|
|
"persist": "home",
|
|
"checkver": "Latest: <strong>\\s*([\\d.]+)\\s*</strong>",
|
|
"autoupdate": {
|
|
"url": "https://getcomposer.org/download/$version/composer.phar",
|
|
"hash": {
|
|
"url": "$url.sha256sum"
|
|
}
|
|
}
|
|
}
|