mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-12 00:44:01 +02:00
Update build process.
This commit is contained in:
@@ -36,14 +36,14 @@ module.exports = function (make) {
|
||||
|
||||
make.target('check-version', [], 'add git info to dev builds').async(function (done, fail) {
|
||||
|
||||
if (!/\+$/.test(pkg.version)) {
|
||||
if (!pkg.develop) {
|
||||
done();
|
||||
return;
|
||||
}
|
||||
|
||||
$.git(root, function (err, result) {
|
||||
|
||||
pkg.version += result.buildSuffix;
|
||||
pkg.version += '+' + result.buildSuffix;
|
||||
$.info({ method: 'check-version', message: 'version set to ' + pkg.version });
|
||||
done();
|
||||
});
|
||||
|
Reference in New Issue
Block a user