mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Update build process.
This commit is contained in:
parent
103824aa89
commit
2668c28737
3 changed files with 14 additions and 4 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue