From e136fa710523472b99e63d49d4153dc1e92a36e7 Mon Sep 17 00:00:00 2001 From: Andy Heathershaw Date: Thu, 20 Oct 2016 09:18:29 +0100 Subject: [PATCH] The app.version config value is now set by the packaging script --- config/app.php | 2 +- resources/build/build.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 74227d4..cb9c4d8 100644 --- a/config/app.php +++ b/config/app.php @@ -2,7 +2,7 @@ return [ // Version number of Blue Twilight - 'version' => '1.0.0-ALPHA', + 'version' => '**DEV**', /* |-------------------------------------------------------------------------- diff --git a/resources/build/build.php b/resources/build/build.php index 030cb26..ab608e1 100644 --- a/resources/build/build.php +++ b/resources/build/build.php @@ -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');