@@ -67,21 +67,21 @@ const pyocd : Downloadable = new Downloadable(
6767const gdb : Downloadable = new Downloadable (
6868 'GNU Debugger for Arm' , 'gdb' ,
6969 async ( target ) => {
70- const { build, ext } = {
71- 'win32-x64' : { build : 'mingw-w64-x86_64' , ext : 'zip' } ,
72- 'win32-arm64' : { build : 'mingw-w64-x86_64' , ext : 'zip' } ,
73- 'linux-x64' : { build : 'x86_64' , ext : 'tar.xz' } ,
74- 'linux-arm64' : { build : 'aarch64' , ext : 'tar.xz' } ,
75- 'darwin-x64' : { build : 'darwin-arm64' , ext : 'tar.xz' } ,
76- 'darwin-arm64' : { build : 'darwin-arm64' , ext : 'tar.xz' } ,
70+ const { build, ext, strip } = {
71+ 'win32-x64' : { build : 'mingw-w64-x86_64' , ext : 'zip' , strip : 0 } ,
72+ 'win32-arm64' : { build : 'mingw-w64-x86_64' , ext : 'zip' , strip : 0 } ,
73+ 'linux-x64' : { build : 'x86_64' , ext : 'tar.xz' , strip : 1 } ,
74+ 'linux-arm64' : { build : 'aarch64' , ext : 'tar.xz' , strip : 1 } ,
75+ 'darwin-x64' : { build : 'darwin-arm64' , ext : 'tar.xz' , strip : 1 } ,
76+ 'darwin-arm64' : { build : 'darwin-arm64' , ext : 'tar.xz' , strip : 1 } ,
7777 } [ target ] ;
7878
7979 const json = await downloader . getPackageJson < CmsisPackageJson > ( ) ;
8080 const version = json ?. cmsis ?. gdb ;
8181 const asset_name = `arm-gnu-toolchain-${ build } -arm-none-eabi-gdb.${ ext } ` ;
8282 const url = new URL ( `https://artifacts.tools.arm.com/arm-none-eabi-gdb/${ version } /${ asset_name } ` ) ;
8383 const dlAsset = new WebFileAsset ( url , asset_name , version ) ;
84- const asset = new ArchiveFileAsset ( dlAsset , 1 ) ;
84+ const asset = new ArchiveFileAsset ( dlAsset , strip ) ;
8585 return asset ;
8686 } ,
8787) ;
0 commit comments