diff --git a/components/SingleApp.js b/components/SingleApp.js index 3c969b1..46f7590 100644 --- a/components/SingleApp.js +++ b/components/SingleApp.js @@ -149,6 +149,25 @@ let SingleApp = ({ app, all, onVersionChange = false, large = false, showTime = window.open(link) } + const handleInstallerType = (installerType) => { + switch (installerType) { + case "appx": + case "exe": + case "msi": + case "msix": + case "zip": + return `.${installerType}` + + case "nullsoft": + case "inno": + case "portable": + return ".exe" + + case "wix": + return ".msi" + } + } + return (
Download{" "} {app.versions[0].installerType - ? `(.${app.versions[0].installerType.toLowerCase()})` + ? `(.${handleInstallerType(app.versions[0].installerType.toLowerCase()})` : ""}