mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 22:16:00 -04:00
Updates makefile.js.
This commit is contained in:
parent
0f948a56d8
commit
d4a213beac
3 changed files with 20 additions and 11 deletions
|
@ -25,6 +25,7 @@ It profits from these great projects:
|
||||||
[Underscore.js](http://underscorejs.org) (MIT)
|
[Underscore.js](http://underscorejs.org) (MIT)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
A prebuilt package can be found on the [project page](http://larsjung.de/h5ai/). If you want to build
|
A prebuilt package can be found on the [project page](http://larsjung.de/h5ai/). If you want to build
|
||||||
|
@ -39,8 +40,8 @@ To build the project run the following command inside the project's root directo
|
||||||
Run `makejs -t` to list all possible targets.
|
Run `makejs -t` to list all possible targets.
|
||||||
|
|
||||||
|
|
||||||
## Changelog
|
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
### v0.21 - *2012-08-??*
|
### v0.21 - *2012-08-??*
|
||||||
|
|
||||||
|
|
27
makefile.js
27
makefile.js
|
@ -6,7 +6,7 @@ var path = require('path'),
|
||||||
child_process = require('child_process');
|
child_process = require('child_process');
|
||||||
|
|
||||||
|
|
||||||
var version = '0.21-dev-37',
|
var version = '0.21-dev-43',
|
||||||
|
|
||||||
root = path.resolve(__dirname),
|
root = path.resolve(__dirname),
|
||||||
src = path.join(root, 'src'),
|
src = path.join(root, 'src'),
|
||||||
|
@ -159,17 +159,26 @@ module.exports = function (make) {
|
||||||
.async(function (done, fail) {
|
.async(function (done, fail) {
|
||||||
|
|
||||||
var target = path.join(build, 'h5ai-' + version + '.zip'),
|
var target = path.join(build, 'h5ai-' + version + '.zip'),
|
||||||
command = 'zip -ro ' + target + ' _h5ai',
|
cmd = 'zip',
|
||||||
options = { cwd: build };
|
args = ['-ro', target, '_h5ai'],
|
||||||
|
options = { cwd: build },
|
||||||
|
proc = child_process.spawn(cmd, args, options);
|
||||||
|
|
||||||
child_process.exec(command, options, function (error, stdout, stderr) {
|
Event.info({ method: 'exec', message: cmd + ' ' + args.join(' ') });
|
||||||
|
|
||||||
if (error === null) {
|
// proc.stdout.on('data', function (data) {
|
||||||
Event.ok({ method: 'zip', message: target });
|
// process.stdout.write(data);
|
||||||
done();
|
// });
|
||||||
} else {
|
proc.stderr.on('data', function (data) {
|
||||||
Event.error({ method: 'zip', message: stderr });
|
process.stderr.write(data);
|
||||||
|
});
|
||||||
|
proc.on('exit', function (code) {
|
||||||
|
if (code) {
|
||||||
|
Event.error({ method: 'exec', message: cmd + ' exit code ' + code });
|
||||||
fail();
|
fail();
|
||||||
|
} else {
|
||||||
|
Event.ok({ method: 'exec', message: 'created zipball ' + target });
|
||||||
|
done();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
.gutter .line {
|
.gutter .line {
|
||||||
border-right: none !important;
|
border-right: none !important;
|
||||||
// border-right: 3px solid #6CE26C !important;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue