Update to Azure SDK 2.8 for the shell package; display error when exec fails in Jakefile
This commit is contained in:
Родитель
0bbdec59e7
Коммит
d69979a926
7
Jakefile
7
Jakefile
|
@ -69,7 +69,10 @@ function execCallback(task) {
|
|||
return function (error, stdout, stderr) {
|
||||
if (stdout) console.log(stdout.toString());
|
||||
if (stderr) console.error(stderr.toString());
|
||||
if (error) task.fail(error);
|
||||
if (error) {
|
||||
console.error(error);
|
||||
task.fail(error);
|
||||
}
|
||||
else task.complete();
|
||||
}
|
||||
}
|
||||
|
@ -498,7 +501,7 @@ task('update-lang', [ 'build/client.js', 'default' ], { async: true }, function(
|
|||
task('azure', [ 'build/shell.js' ], { async: true }, function() {
|
||||
jake.mkdirP("build/azure")
|
||||
child_process.execFile(
|
||||
"C:/Program Files/Microsoft SDKs/Azure/.NET SDK/v2.5/bin/cspack.exe",
|
||||
"C:/Program Files/Microsoft SDKs/Azure/.NET SDK/v2.8/bin/cspack.exe",
|
||||
[ "tdshell.csdef",
|
||||
"/out:../../build/azure/tdshell.cspkg",
|
||||
"/roleFiles:ShellRole;files.txt" ], { cwd: 'shell/azure' }, execCallback(this))
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
schemaVersion="2014-06.2.4"
|
||||
schemaVersion="2015-04.2.6"
|
||||
name="tdshell"
|
||||
>
|
||||
<WorkerRole name="ShellRole">
|
||||
|
|
Загрузка…
Ссылка в новой задаче