| 1 | <?php |
||
| 7 | class Installer |
||
| 8 | { |
||
| 9 | protected static $tools = [ |
||
| 10 | 'gif' => 'gifsicle', |
||
| 11 | 'png' => 'optipng', |
||
| 12 | 'jpg' => 'jpegtran', |
||
| 13 | 'pngquant' => 'pngquant', |
||
| 14 | ]; |
||
| 15 | |||
| 16 | protected static $extByPlatforms = [ |
||
| 17 | 'linux' => '-linux', |
||
| 18 | 'win' => '.exe', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Скачивает бинарники и кладёт их в папку bin/. |
||
| 23 | * |
||
| 24 | * @param Event $event |
||
| 25 | */ |
||
| 26 | public static function getBinaries(Event $event) |
||
| 49 | |||
| 50 | public static function getRootPath() |
||
| 54 | } |
||
| 55 |