File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
extensions/ql-vscode/scripts Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ async function extractSourceMap() {
41
41
const releaseAssetsDirectory = resolve (
42
42
__dirname ,
43
43
".." ,
44
+ "artifacts" ,
44
45
"release-assets" ,
45
46
versionNumber ,
46
47
) ;
@@ -64,7 +65,9 @@ async function extractSourceMap() {
64
65
] ) ;
65
66
66
67
const sourcemapAsset = release . assets . find (
67
- ( asset ) => asset . name === `vscode-codeql-sourcemaps-${ versionNumber } .zip` ,
68
+ ( asset ) =>
69
+ asset . label === `vscode-codeql-sourcemaps-${ versionNumber } .zip` ||
70
+ asset . name === "vscode-codeql-sourcemaps.zip" ,
68
71
) ;
69
72
70
73
if ( sourcemapAsset ) {
@@ -213,9 +216,7 @@ extractSourceMap().catch((e: unknown) => {
213
216
function runGh ( args : readonly string [ ] ) : string {
214
217
const gh = spawnSync ( "gh" , args ) ;
215
218
if ( gh . status !== 0 ) {
216
- throw new Error (
217
- `Failed to get the source map for ${ versionNumber } : ${ gh . stderr } ` ,
218
- ) ;
219
+ throw new Error ( `Failed to run gh ${ args . join ( " " ) } : ${ gh . stderr } ` ) ;
219
220
}
220
221
return gh . stdout . toString ( "utf-8" ) ;
221
222
}
@@ -227,6 +228,7 @@ function runGhJSON<T>(args: readonly string[]): T {
227
228
type ReleaseAsset = {
228
229
id : string ;
229
230
name : string ;
231
+ label : string ;
230
232
} ;
231
233
232
234
type Release = {
You can’t perform that action at this time.
0 commit comments