@@ -130,8 +130,8 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
130130 name = `mongodb-macos` ; // somehow these files are not listed in https://www.mongodb.org/dl/osx
131131 }
132132
133- if ( this . arch === 'arm64 ' ) {
134- log ( 'getArchiveNameOsx: Arch is "arm64 ", using x64 binary' ) ;
133+ if ( this . arch === 'aarch64 ' ) {
134+ log ( 'getArchiveNameOsx: Arch is "aarch64 ", using x64 binary' ) ;
135135 this . arch = 'x86_64' ;
136136 }
137137
@@ -422,24 +422,16 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
422422
423423 const ubuntuYear : number = parseInt ( ubuntuOS . release . split ( '.' ) [ 0 ] , 10 ) ;
424424
425- // this is, because currently mongodb only really provides arm64 binaries for "ubuntu1604"
426- if ( this . arch === 'arm64' ) {
425+ if ( this . arch === 'aarch64' ) {
427426 // this is because, before version 4.1.10, everything for "arm64" / "aarch64" were just "arm64" and for "ubuntu1604"
428427 if ( semver . satisfies ( this . version , '<4.1.10' ) ) {
429428 this . arch = 'arm64' ;
430429
431430 return 'ubuntu1604' ;
432431 }
433- if ( semver . satisfies ( this . version , '>=4.1.10' ) ) {
434- // this is because mongodb changed since 4.1.0 to use "aarch64" instead of "arm64"
435- this . arch = 'aarch64' ;
436-
437- // this is because since versions below "4.4.0" did not provide an binary for something like "20.04"
438- if ( semver . satisfies ( this . version , '<4.4.0' ) ) {
439- return 'ubuntu1804' ;
440- }
441-
442- return `ubuntu${ ubuntuYear || 18 } 04` ;
432+ // this is because versions below "4.4.0" did not provide an binary for anything above 1804
433+ if ( semver . satisfies ( this . version , '>=4.1.10 <4.4.0' ) ) {
434+ return 'ubuntu1804' ;
443435 }
444436 }
445437
@@ -538,7 +530,7 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
538530 case 'x64' :
539531 return 'x86_64' ;
540532 case 'arm64' :
541- return 'arm64 ' ;
533+ return 'aarch64 ' ;
542534 case 'aarch64' :
543535 return 'aarch64' ;
544536 default :
0 commit comments