@@ -90,7 +90,7 @@ internal static string RelativeExecutablePath(Platform platform, string buildId)
9090 "Contents" ,
9191 "MacOS" ,
9292 "firefox" ) ,
93- Platform . Linux => Path . Combine ( "firefox" , "firefox" ) ,
93+ Platform . Linux or Platform . LinuxArm64 => Path . Combine ( "firefox" , "firefox" ) ,
9494 Platform . Win32 or Platform . Win64 => Path . Combine ( "firefox" , "firefox.exe" ) ,
9595 _ => throw new ArgumentException ( "Invalid platform" , nameof ( platform ) ) ,
9696 } ;
@@ -102,7 +102,7 @@ internal static string RelativeExecutablePath(Platform platform, string buildId)
102102 "Contents" ,
103103 "MacOS" ,
104104 "firefox" ) ,
105- Platform . Linux => Path . Combine ( "firefox" , "firefox" ) ,
105+ Platform . Linux or Platform . LinuxArm64 => Path . Combine ( "firefox" , "firefox" ) ,
106106 Platform . Win32 or Platform . Win64 => Path . Combine ( "core" , "firefox.exe" ) ,
107107 _ => throw new ArgumentException ( "Invalid platform" , nameof ( platform ) ) ,
108108 } ;
@@ -162,6 +162,7 @@ private static string GetPlatformNameForUrl(Platform platform)
162162 => platform switch
163163 {
164164 Platform . Linux => "linux-x86_64" ,
165+ Platform . LinuxArm64 => "linux-aarch64" ,
165166 Platform . MacOS or Platform . MacOSArm64 => "mac" ,
166167 Platform . Win32 => "win32" ,
167168 Platform . Win64 => "win64" ,
@@ -171,7 +172,7 @@ private static string GetPlatformNameForUrl(Platform platform)
171172 private static string GetFirefoxPlatform ( Platform platform )
172173 => platform switch
173174 {
174- Platform . Linux => "linux" ,
175+ Platform . Linux or Platform . LinuxArm64 => "linux" ,
175176 Platform . MacOS => "mac" ,
176177 Platform . MacOSArm64 => "mac_arm" ,
177178 Platform . Win32 => "win32" ,
@@ -182,6 +183,7 @@ private static string GetFirefoxPlatform(Platform platform)
182183 private static string GetArchiveNightly ( Platform platform , string buildId )
183184 => platform switch
184185 {
186+ Platform . LinuxArm64 => $ "firefox-{ buildId } .en-US.{ GetFirefoxPlatform ( platform ) } -aarch64.tar.{ GetFormat ( buildId ) } ",
185187 Platform . Linux => $ "firefox-{ buildId } .en-US.{ GetFirefoxPlatform ( platform ) } -x86_64.tar.{ GetFormat ( buildId ) } ",
186188 Platform . MacOS or Platform . MacOSArm64 => $ "firefox-{ buildId } .en-US.mac.dmg",
187189 Platform . Win32 or Platform . Win64 => $ "firefox-{ buildId } .en-US.{ GetFirefoxPlatform ( platform ) } .zip",
@@ -197,7 +199,7 @@ private static string GetFormat(string buildId)
197199 private static string GetArchive ( Platform platform , string buildId )
198200 => platform switch
199201 {
200- Platform . Linux => $ "firefox-{ buildId } .tar.bz2",
202+ Platform . Linux or Platform . LinuxArm64 => $ "firefox-{ buildId } .tar.bz2",
201203 Platform . MacOS or Platform . MacOSArm64 => $ "Firefox { buildId } .dmg",
202204 Platform . Win32 or Platform . Win64 =>
203205 $ "Firefox Setup { buildId } .exe",
0 commit comments