From 755fcb6e2a8227012036dff79fd98d23b744b7f2 Mon Sep 17 00:00:00 2001 From: Naia Scott Date: Mon, 12 Jun 2023 13:05:39 -0400 Subject: [PATCH] update version number and include linux build --- src/config.json | 2 +- tasks/packagetasks.js | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/config.json b/src/config.json index 03acd33..1f1f60e 100644 --- a/src/config.json +++ b/src/config.json @@ -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", diff --git a/tasks/packagetasks.js b/tasks/packagetasks.js index b6078e4..cabb70c 100644 --- a/tasks/packagetasks.js +++ b/tasks/packagetasks.js @@ -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(() => { @@ -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; +});