mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Introduzione della versione nella procedura di release
Introduzione della versione nella procedura di release, per compatibilità con il sistema precedente.
This commit is contained in:
parent
8aadc173c9
commit
04b44df970
16
gulpfile.js
16
gulpfile.js
@ -306,17 +306,25 @@ 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', {
|
||||
version += 'beta';
|
||||
}
|
||||
|
||||
archive.append(version, {
|
||||
name: 'VERSION'
|
||||
});
|
||||
}
|
||||
|
||||
// Completamento dello zip
|
||||
archive.finalize();
|
||||
|
@ -202,7 +202,7 @@ class Update
|
||||
*/
|
||||
public static function getVersion()
|
||||
{
|
||||
return self::getDatabaseVersion().self::getFile('VERSION');
|
||||
return self::getFile('VERSION');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user