diff --git a/gulpfile.js b/gulpfile.js index cd0853cee..96eb5692f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -306,18 +306,26 @@ gulp.task('release', function () { }); // Opzioni sulla release - inquirer.prompt({ + inquirer.prompt([{ + type: 'input', + name: 'version', + message: 'Numero di versione:', + }, { type: 'confirm', name: 'beta', message: 'Versione beta?', default: false, - }).then(function (result) { + }]).then(function (result) { + version = result.version; + if (result.beta) { - archive.append('beta', { - name: 'VERSION' - }); + version += 'beta'; } + archive.append(version, { + name: 'VERSION' + }); + // Completamento dello zip archive.finalize(); });; diff --git a/src/Update.php b/src/Update.php index 50c4d741b..0c13f3abf 100644 --- a/src/Update.php +++ b/src/Update.php @@ -202,7 +202,7 @@ class Update */ public static function getVersion() { - return self::getDatabaseVersion().self::getFile('VERSION'); + return self::getFile('VERSION'); } /**