The app.version config value is now set by the packaging script

This commit is contained in:
Andy Heathershaw 2016-10-20 09:18:29 +01:00
parent f9bafeb91e
commit e136fa7105
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
return [
// Version number of Blue Twilight
'version' => '1.0.0-ALPHA',
'version' => '**DEV**',
/*
|--------------------------------------------------------------------------

View File

@ -23,6 +23,10 @@ if (getcwd() != $appRoot)
exit();
}
echo 'Updating app.version config value...' . PHP_EOL . PHP_EOL;
$appConfigFile = sprintf('%s/config/app.php', $appRoot);
file_put_contents($appConfigFile, str_replace('**DEV**', $argv[1], file_get_contents($appConfigFile)));
echo 'Downloading Composer...' . PHP_EOL . PHP_EOL;
copy('https://getcomposer.org/installer', 'composer-setup.php');