function BinaryInstaller::installFullBinaries
1 call to BinaryInstaller::installFullBinaries()
- BinaryInstaller::installBinaries in vendor/
composer/ composer/ src/ Composer/ Installer/ BinaryInstaller.php
File
-
vendor/
composer/ composer/ src/ Composer/ Installer/ BinaryInstaller.php, line 158
Class
- BinaryInstaller
- Utility to handle installation of package "bin"/binaries
Namespace
Composer\InstallerCode
protected function installFullBinaries(string $binPath, string $link, string $bin, PackageInterface $package) : void {
// add unixy support for cygwin and similar environments
if ('.bat' !== substr($binPath, -4)) {
$this->installUnixyProxyBinaries($binPath, $link);
$link .= '.bat';
if (file_exists($link)) {
$this->io
->writeError(' Skipped installation of bin ' . $bin . '.bat proxy for package ' . $package->getName() . ': a .bat proxy was already installed');
}
}
if (!file_exists($link)) {
file_put_contents($link, $this->generateWindowsProxyCode($binPath, $link));
Silencer::call('chmod', $link, 0777 & ~umask());
}
}