From 45946cc3f0df84dbf40d6413b2f7d03f053a2e42 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Tue, 15 Dec 2015 19:12:07 +0100 Subject: [PATCH 1/3] Don't filter out old versions or -delta from the RELEASES file. Closes #22 --- lib/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/index.js b/lib/index.js index 58e8eb8e..bfa0f9c9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -224,12 +224,7 @@ module.exports = function nuts(opts) { releases = _.chain(releases) - // Exclude deltas and other versions - .filter(function(entry) { - return (!entry.isDelta && entry.version == winReleases.normVersion(latest.tag)); - }) - - // Change filename to use downlaodp roxy + // Change filename to use download proxy .map(function(entry) { entry.filename = url.resolve(fullUrl, '/download/'+latest.tag+'/'+entry.filename); From abe3e985b7d20604d8b9b53e1b98ddac46878d06 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Thu, 17 Dec 2015 13:16:25 +0000 Subject: [PATCH 2/3] Better error message --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index bfa0f9c9..2fc7d572 100644 --- a/lib/index.js +++ b/lib/index.js @@ -91,7 +91,7 @@ module.exports = function nuts(opts) { if (req.useragent.isLinux64) platform = platforms.LINUX_64; } - if (!platform) return next(new Error('No platform specified and impossible to detect one')); + if (!platform) return next(new Error('We could not detect your platform.\n\nPlease pick a download directly from: https://github.com/itchio/itch/releases\n\nThanks!')); } else { platform = null; } From 650d399ad1a584b0d0c430684d289b6ed5716baf Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Thu, 17 Dec 2015 14:20:42 +0100 Subject: [PATCH 3/3] Proxy via the right URLs --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 2fc7d572..c9e41e3e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -226,7 +226,7 @@ module.exports = function nuts(opts) { // Change filename to use download proxy .map(function(entry) { - entry.filename = url.resolve(fullUrl, '/download/'+latest.tag+'/'+entry.filename); + entry.filename = url.resolve(fullUrl, '/download/'+entry.version+'/'+entry.filename); return entry; })