forked from qingtingzhiyu/spext-xt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-all.mjs
More file actions
21 lines (20 loc) · 823 Bytes
/
package-all.mjs
File metadata and controls
21 lines (20 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* --------------------------------------------------------------------------------------------
* SonarLint for VisualStudio Code
* Copyright (C) 2017-2022 SonarSource SA
* sonarlint@sonarsource.com
* Licensed under the LGPLv3 License. See LICENSE.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
'use strict';
import _default from './constants.mjs';
const { TARGETED_PLATFORMS, LATEST_JRE } = _default;
import downloadJre from './jreDownload.mjs';
import { cleanJreDir } from './fsUtils.mjs';
import { createVSIX } from 'vsce';
(async () => {
for (const platform of TARGETED_PLATFORMS) {
await downloadJre(platform, LATEST_JRE);
await createVSIX({ target: platform });
}
cleanJreDir();
await createVSIX();
})();