Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, I didn't expect the PR to be based on master. Will fix later today, ignore for now

} else {
platform = null;
}
Expand Down Expand Up @@ -224,14 +224,9 @@ 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);
entry.filename = url.resolve(fullUrl, '/download/'+entry.version+'/'+entry.filename);

return entry;
})
Expand Down