Skip to content

Commit

Permalink
Merge pull request #406 from microsoft/nasc/buildFix612
Browse files Browse the repository at this point in the history
Update pgtoolsservice version number and fix linux build
  • Loading branch information
nasc17 authored Jun 14, 2023
2 parents f324c68 + 755fcb6 commit 8ccb866
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"downloadUrl": "https://github.com/Microsoft/pgtoolsservice/releases/download/{#version#}/pgsqltoolsservice-{#fileName#}",
"version": "v1.7.1",
"version": "v1.8.0",
"downloadFileNames": {
"Windows_64": "win-x64.zip",
"Windows_86": "win-x86.zip",
Expand Down
25 changes: 25 additions & 0 deletions tasks/packagetasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ gulp.task('package:offline', () => {
packages.push({rid: 'win-x64', runtime: 'Windows_64'});
packages.push({rid: 'osx', runtime: 'OSX'});
packages.push({rid: 'osx-arm64', runtime: 'OSX_ARM64'});
packages.push({rid: 'linux-x64', runtime: 'Linux'});

var promise = Promise.resolve();
cleanServiceInstallFolder().then(() => {
Expand Down Expand Up @@ -173,3 +174,27 @@ gulp.task('package:offline-windows', () => {

return promise;
});

//Install vsce to be able to run this task: npm install -g vsce
gulp.task('package:offline-linux', () => {
var json = JSON.parse(fs.readFileSync('package.json'));
var name = json.name;
var version = json.version;
var packageName = name + '-' + version;

var packages = [];
packages.push({rid: 'linux-x64', runtime: 'Linux'});

var promise = Promise.resolve();
cleanServiceInstallFolder().then(() => {
packages.forEach(data => {
promise = promise.then(() => {
return doOfflinePackage(data.rid, data.runtime, packageName).then(() => {
return cleanServiceInstallFolder();
});
});
});
});

return promise;
});

0 comments on commit 8ccb866

Please sign in to comment.