mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-04 12:27:26 +02:00
Update class-setup.php
Windows用にwhereコマンドに対応
This commit is contained in:
@@ -122,12 +122,15 @@ class Setup {
|
|||||||
if (sizeof($cmds) === 0 || $this->refresh) {
|
if (sizeof($cmds) === 0 || $this->refresh) {
|
||||||
$cmds['command'] = Util::exec_0('command -v command');
|
$cmds['command'] = Util::exec_0('command -v command');
|
||||||
$cmds['which'] = Util::exec_0('which which') || Util::exec_0('which which.exe');
|
$cmds['which'] = Util::exec_0('which which') || Util::exec_0('which which.exe');
|
||||||
|
$cmds['where'] = Util::exec_0('where where.exe');
|
||||||
|
|
||||||
$cmd = false;
|
$cmd = false;
|
||||||
if ($cmds['command']) {
|
if ($cmds['command']) {
|
||||||
$cmd = 'command -v';
|
$cmd = 'command -v';
|
||||||
} elseif ($cmds['which']) {
|
} elseif ($cmds['which']) {
|
||||||
$cmd = 'which';
|
$cmd = 'which';
|
||||||
|
} elseif ($cmds['where']) {
|
||||||
|
$cmd = 'where';
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (['avconv', 'convert', 'du', 'ffmpeg', 'gm', 'tar', 'zip'] as $c) {
|
foreach (['avconv', 'convert', 'du', 'ffmpeg', 'gm', 'tar', 'zip'] as $c) {
|
||||||
|
Reference in New Issue
Block a user