From 2c04f5c8bc22bd062de56aa75294cb8a3431dfe6 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 4 Feb 2018 18:05:07 +0000 Subject: [PATCH] Improved Android and Electron release process --- Tools/release-electron.js | 1 - Tools/tool-utils.js | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/Tools/release-electron.js b/Tools/release-electron.js index c4d6965ae8..a921c7aab7 100644 --- a/Tools/release-electron.js +++ b/Tools/release-electron.js @@ -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')); diff --git a/Tools/tool-utils.js b/Tools/tool-utils.js index f7880ce53e..32b5a29a6a 100644 --- a/Tools/tool-utils.js +++ b/Tools/tool-utils.js @@ -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; \ No newline at end of file