Browse Source

Adjusted paths, added install.bat

tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
4c1378cb51
  1. 6
      apps/advanced/install
  2. 20
      apps/advanced/install.bat

6
apps/advanced/install

@ -1,6 +1,6 @@
<?php <?php
$root = str_replace('\\', '/', __DIR__); $root = str_replace('\\', '/', __DIR__);
$envs = require("$root/install/index.php"); $envs = require("$root/environments/index.php");
$envNames = array_keys($envs); $envNames = array_keys($envs);
echo "Yii Application Installation Tool v1.0\n\n"; echo "Yii Application Installation Tool v1.0\n\n";
@ -24,10 +24,10 @@ if (strncasecmp($answer, 'y', 1)) {
} }
echo "\n Start installation ...\n\n"; echo "\n Start installation ...\n\n";
$files = getFileList("$root/install/{$env['path']}"); $files = getFileList("$root/environments/{$env['path']}");
$all = false; $all = false;
foreach ($files as $file) { foreach ($files as $file) {
if (!copyFile($root, "install/{$env['path']}/$file", $file, $all)) { if (!copyFile($root, "environments/{$env['path']}/$file", $file, $all)) {
break; break;
} }
} }

20
apps/advanced/install.bat

@ -0,0 +1,20 @@
@echo off
rem -------------------------------------------------------------
rem Yii command line install script for Windows.
rem
rem @author Qiang Xue <qiang.xue@gmail.com>
rem @link http://www.yiiframework.com/
rem @copyright Copyright &copy; 2012 Yii Software LLC
rem @license http://www.yiiframework.com/license/
rem -------------------------------------------------------------
@setlocal
set YII_PATH=%~dp0
if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe
"%PHP_COMMAND%" "%YII_PATH%install" %*
@endlocal
Loading…
Cancel
Save