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
This commit is contained in:
Daniel Imms
2016-02-18 20:56:44 -08:00
parent 0a90859d90
commit 8679fbd40d

View File

@@ -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')