Improved Android and Electron release process

pull/219/head
Laurent Cozic 2018-02-04 18:05:07 +00:00
parent 5430a747e9
commit 2c04f5c8bc
2 changed files with 0 additions and 11 deletions

View File

@ -17,7 +17,6 @@ async function main() {
console.info(await execCommand('git add -A'));
console.info(await execCommand('git commit -m "Electron release ' + version + '"'));
await handleCommitHook();
console.info(await execCommand('git tag ' + tagName));
console.info(await execCommand('git push && git push --tags'));

View File

@ -115,14 +115,4 @@ toolUtils.githubRelease = async function(tagName, isDraft) {
return responseJson;
}
toolUtils.handleCommitHook = async function() {
const fs = require('fs-extra');
const filePath = __dirname + '/commit_hook.txt';
if (!(await fs.pathExists(filePath))) return;
const content = await fs.readFile(filePath);
if (!content) throw new Error('No content in ' + filePath);
console.info('Running hook: ' + content);
console.info(await toolUtils.execCommand(content));
}
module.exports = toolUtils;