Skip to content

Commit

Permalink
build deb in .build/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Feb 12, 2016
1 parent 1a9e481 commit 9433f3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ out-editor/
out-editor-min/
out-editor-ossfree/
out-editor-ossfree-min/
out-linux/
out-vscode/
out-vscode-min/
build/node_modules
8 changes: 4 additions & 4 deletions build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function getDebPackageArch(arch) {
function prepareDebPackage(arch) {
var binaryDir = '../VSCode-linux-' + arch;
var debArch = getDebPackageArch(arch);
var destination = './out-linux/vscode-' + debArch;
var destination = '.build/linux/vscode-' + debArch;
var packageRevision = '1';

return function () {
Expand Down Expand Up @@ -301,16 +301,16 @@ function prepareDebPackage(arch) {
}

function buildDebPackage(arch) {
return shell.task(['fakeroot dpkg-deb -b ' + path.join(root, 'out-linux', 'vscode-' + getDebPackageArch(arch))]);
return shell.task(['fakeroot dpkg-deb -b .build/linux/vscode-' + getDebPackageArch(arch)]);
}

gulp.task('clean-vscode-win32', util.rimraf(path.join(path.dirname(root), 'VSCode-win32')));
gulp.task('clean-vscode-darwin', util.rimraf(path.join(path.dirname(root), 'VSCode-darwin')));
gulp.task('clean-vscode-linux-ia32', util.rimraf(path.join(path.dirname(root), 'VSCode-linux-ia32')));
gulp.task('clean-vscode-linux-x64', util.rimraf(path.join(path.dirname(root), 'VSCode-linux-x64')));
gulp.task('clean-vscode-linux-arm', util.rimraf(path.join(path.dirname(root), 'VSCode-linux-arm')));
gulp.task('clean-vscode-linux-ia32-deb', util.rimraf('out-linux/vscode-i386*'));
gulp.task('clean-vscode-linux-x64-deb', util.rimraf('out-linux/vscode-amd64*'));
gulp.task('clean-vscode-linux-ia32-deb', util.rimraf('.build/linux/vscode-i386*'));
gulp.task('clean-vscode-linux-x64-deb', util.rimraf('.build/linux/vscode-amd64*'));

gulp.task('vscode-win32', ['optimize-vscode', 'clean-vscode-win32'], packageTask('win32'));
gulp.task('vscode-darwin', ['optimize-vscode', 'clean-vscode-darwin'], packageTask('darwin'));
Expand Down

0 comments on commit 9433f3f

Please sign in to comment.