From eeb319857b422bc74fa3d02c3f636a66e25359d8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 22 Feb 2018 22:40:35 -0500 Subject: [PATCH] update download proxy --- util/Function/Download.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/util/Function/Download.cs b/util/Function/Download.cs index 5b9c296be..2a9ac18e0 100644 --- a/util/Function/Download.cs +++ b/util/Function/Download.cs @@ -17,17 +17,20 @@ namespace Bit.Function const string DesktopWindowsPortableFileName = "Bitwarden-Portable-{0}.exe"; const string DesktopWindowsWebInstallerFileName = "Bitwarden-Installer-{0}.exe"; + const string DesktopWindowsAppxFileName = "Bitwarden-{0}.appx"; + const string DesktopWindowsAppx32FileName = "Bitwarden-{0}-ia32.appx"; const string DesktopWindowsStoreUrl = "https://www.microsoft.com/en-us/store/b/home"; const string DesktopWindowsChocoUrl = "https://chocolatey.org/search?q=bitwarden"; const string DesktopMacOsDmgFileName = "Bitwarden-{0}.dmg"; + const string DesktopMacOsPkgFileName = "Bitwarden-{0}.pkg"; const string DesktopMacOsZipFileName = "bitwarden-{0}-mac.zip"; const string DesktopMacOsStoreUrl = "https://itunes.com"; const string DesktopMacOsCaskUrl = "https://caskroom.github.io/search"; const string DesktopLinuxAppImageFileName = "Bitwarden-{0}-x86_64.AppImage"; - const string DesktopLinuxDebFileName = "Bitwarden_{0}_amd64.deb"; - const string DesktopLinuxRpmFileName = "Bitwarden-{0}.x86_64.rpm"; + const string DesktopLinuxDebFileName = "Bitwarden-{0}-amd64.deb"; + const string DesktopLinuxRpmFileName = "Bitwarden-{0}-x86_64.rpm"; const string DesktopLinuxFreeBsdFileName = "Bitwarden-{0}.freebsd"; const string DesktopLinuxSnapUrl = "https://snapcraft.io/"; @@ -67,6 +70,14 @@ namespace Bit.Function { return GetDesktopDownloadResponse(req, DesktopWindowsPortableFileName); } + else if(variant == "appx") + { + return GetDesktopDownloadResponse(req, DesktopWindowsAppxFileName); + } + else if(variant == "appx32") + { + return GetDesktopDownloadResponse(req, DesktopWindowsAppx32FileName); + } else if(variant == "store") { return GetRedirectResponse(req, DesktopWindowsStoreUrl); @@ -82,6 +93,10 @@ namespace Bit.Function { return GetDesktopDownloadResponse(req, DesktopMacOsDmgFileName); } + else if(variant == "pkg") + { + return GetDesktopDownloadResponse(req, DesktopMacOsPkgFileName); + } else if(variant == "zip") { return GetDesktopDownloadResponse(req, DesktopMacOsZipFileName);