diff --git a/src/constants.js b/src/constants.js index 9913ff9..69d948d 100644 --- a/src/constants.js +++ b/src/constants.js @@ -45,6 +45,23 @@ exports.LINUX_SELECTABLE_PLATFORMS = [ 'debian10', ]; +exports.WINFSP_VERSION_NAMES = [ + 'WinFsp 2019', + 'WinFsp 2019.0', + 'WinFsp 2019.1', + 'WinFsp 2019.2', + 'WinFsp 2019.3', + 'WinFsp 2019.3 B1', + 'WinFsp 2019.3 B2', + 'WinFsp 2019.3 B3', + 'WinFsp 2019.3 B4', + 'WinFsp 2019.3 B5', + 'WinFsp 2020', + 'WinFsp 2020.0', + 'WinFsp 2020.1', + 'WinFsp 2020.2', +]; + exports.DATA_LOCATIONS = { linux: '~/.local/repertory/ui', darwin: '~/Library/Application Support/repertory/ui', @@ -58,11 +75,15 @@ exports.REPERTORY_LOCATIONS = { }; exports.S3_PROVIDER_LIST = [ - 'Goobox S3', + 'Filebase', +]; + +exports.S3_REGION_PROVIDER_REGION = [ + 'us-east-1', ]; exports.S3_PROVIDER_URL = { - 'Goobox S3': 'https://sias3.goobox.io', + 'Filebase': 'https://s3.filebase.com', }; exports.PROVIDER_LIST = [ diff --git a/src/containers/AddMount/AddMount.js b/src/containers/AddMount/AddMount.js index 3c0bad1..d598c31 100644 --- a/src/containers/AddMount/AddMount.js +++ b/src/containers/AddMount/AddMount.js @@ -35,7 +35,7 @@ const default_state = { Name: '', Port: 20000, Provider: Constants.S3_PROVIDER_LIST[0], - Region: 'any', + Region: Constants.S3_REGION_PROVIDER_REGION[0], SecretKey: '', Token: '', }; diff --git a/src/renderer/ipc/DependencyIPC.js b/src/renderer/ipc/DependencyIPC.js index 9102c27..8f74bf0 100644 --- a/src/renderer/ipc/DependencyIPC.js +++ b/src/renderer/ipc/DependencyIPC.js @@ -72,22 +72,7 @@ const addListeners = (ipcMain, {standardIPCReply}) => { }; if (data.IsWinFSP) { helpers - .performWindowsUninstall([ - 'WinFsp 2019', - 'WinFsp 2019.0', - 'WinFsp 2019.1', - 'WinFsp 2019.2', - 'WinFsp 2019.3', - 'WinFsp 2019.3 B1', - 'WinFsp 2019.3 B2', - 'WinFsp 2019.3 B3', - 'WinFsp 2019.3 B4', - 'WinFsp 2019.3 B5', - 'WinFsp 2020', - 'WinFsp 2020.0', - 'WinFsp 2020.1', - 'WinFsp 2020.2', - ]) + .performWindowsUninstall(Constants.WINFSP_VERSION_NAMES) .then(uninstalled => { if (uninstalled) { standardIPCReply(event, Constants.IPC_Install_Dependency_Reply, {