Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux update always picks .deb regardless distribution #674

Closed
jotak opened this issue Nov 23, 2017 · 3 comments
Closed

Linux update always picks .deb regardless distribution #674

jotak opened this issue Nov 23, 2017 · 3 comments

Comments

@jotak
Copy link

jotak commented Nov 23, 2017

Hi,

I'm using the tar/gz distribution (running on Fedora), and when a new version is available SimpleNote opens the .deb download link instead of the .tar.gz.

I dug a little and found this URL is called: https://app.simplenote.com/desktop/linux/version?compare=1.0.8 and provides the link https://github.com/Automattic/simplenote-electron/releases/download/v1.1.0/Simplenote-linux-1.1.0.deb in its response.

Could you have something like a user-agent check server-side to distinguish between debian-based distro and others? As far as I know there's mostly ubuntu, debian and mint that use .deb (if you keep just focus on the biggest). Most other won't, and the tar.gz distribution would work anyway on any linux.

PS: If you need the user-agent I have:
User-Agent | Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

@roundhill
Copy link
Contributor

You're right, it's only designed to serve the .deb. Cool idea to do a user agent check, might be possible.

@samuelallan72
Copy link

How about https://app.simplenote.com/desktop/linux/version?compare=1.0.8&distro=ubuntu instead of checking useragents?

@mirka
Copy link
Member

mirka commented Nov 21, 2018

Our revamped updater (#869) for Linux will have a button that opens the GitHub latest release page, so Linux users can download their package of choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants