From 8679fbd40d8a01ae2ba6695933d9267ec0e284ea Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 18 Feb 2016 20:56:44 -0800 Subject: [PATCH] Use epoch time as deb package revision This saves the gulp task relying on pinging the update server for the last package revision. Related #2973 --- build/gulpfile.vscode.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js index 96f51cb4af6..8732ffb2f88 100644 --- a/build/gulpfile.vscode.js +++ b/build/gulpfile.vscode.js @@ -267,11 +267,15 @@ function getDebPackageArch(arch) { return { x64: 'amd64', ia32: 'i386' }[arch]; } +function getEpochTime() { + return Math.floor(new Date().getTime() / 1000); +} + function prepareDebPackage(arch) { var binaryDir = '../VSCode-linux-' + arch; var debArch = getDebPackageArch(arch); var destination = '.build/linux/' + debArch + '/vscode-' + debArch; - var packageRevision = '1'; + var packageRevision = getEpochTime(); return function () { var shortcut = gulp.src('resources/linux/bin/code.sh')