From e80f3a8ff0b9b5dc0e5374d254610bbe408ad3e8 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Tue, 12 Jul 2022 15:21:25 -0400 Subject: [PATCH] Support linux platform --- README.md | 2 +- lib/routes.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c97c14..3c98bc9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The result will be faster and more lightweight than any other solution out there - Pulls the latest release data from [GitHub Releases](https://help.github.com/articles/creating-releases/) and caches it in memory - Refreshes the cache every **15 minutes** (custom interval [possible](#options)) - When asked for an update, it returns the link to the GitHub asset directly (saves bandwidth) -- Supports **macOS** and **Windows** apps +- Supports **macOS**, **Windows**, and **Linux** apps - Scales infinitely on [Vercel](https://vercel.com) Serverless Functions ## Usage diff --git a/lib/routes.js b/lib/routes.js index bbd6f14..766a45f 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -49,6 +49,8 @@ module.exports = ({ cache, config }) => { platform = 'dmg' } else if (userAgent.isWindows) { platform = 'exe' + } else if (userAgent.isLinux) { + platform = 'AppImage' } // Get the latest version from the cache