git ssb

2+

Zach! / onboarding-link-generator



~\~ *The Button to Download Patchwork Directs to an Actual Downloads Page* ~\~

%PACE8wksdrnwrSUHq6XUMPB4HduYHVykiJkJ3R8nRI8=.sha256
OpenZach! opened this issue on 11/20/2017, 6:54:03 PM

~*~ The Button to Download Patchwork Directs to an Actual Downloads Page ~*~


Currently, when the site is generated it includes big green button to download patchwork. This leads to a proof of concept page with three buttons, one for each OS, that an invitee can click to start the download. None of these links actually do anything though.

What would be awesome is for this button to direct to a live page, with working download buttons. While this could go to Patchwork's release page on github, I think this page is confusing for folks unfamiliar with github and could lead to them ignoring the email. So instead, a new page would need to be made that is regularly updated with the most recent, stable release.


This is an issue created for the onboarding-link-generator, you can read more about this in #non-dev-resources , specifically this thread

%bn/hYxkmnEuxKuNiqMBowPULHGdhQhs0RFoxOkWi0ao=.sha256 dinoworm ๐Ÿ› · 11/21/2017, 5:48:16 AM

three buttons, one for each OS

i think with some :sparkles: magic :sparkles: we could have one button and know what OS you are using.

So instead, a new page would need to be made that is regularly updated with the most recent, stable release.

also for this, we probably will be able to fetch from the GitHub releases and provide a link to the latest version for your OS.

i'm happy to sort out these technical issues. :cat:

%iycD+NRtyfp/poAhwvoC+F7R+IAe9lcGoyzAvCd7smU=.sha256 dinoworm ๐Ÿ› · 11/21/2017, 5:55:10 AM

@matt how did you do the Loop Drop website's download button. is the code for that anywhere public? i know you're running this as a server, so i'm curious if this would require a server to check user agents or do non-cors requests or such.

%7zJkMZE6hEKPNX4vCKD2PA46QVS+I96izeEwTpihwms=.sha256 Matt McKegg · 11/21/2017, 6:36:44 AM

@Mikey

Yep, here: https://github.com/mmckegg/loopjs-www

It's a little node.js app that checks the github api for the latest version.

Most of the important code is here: https://github.com/mmckegg/loopjs-www/blob/master/loop-drop/index.js

And here is the view: https://github.com/mmckegg/loopjs-www/blob/master/views/download.html

%26N+6HfIpbo3QK1D7oetnf5qKs6ylkoJdQmwi+UgA5o=.sha256 dinoworm ๐Ÿ› · 11/21/2017, 7:57:07 AM

thanks @matt!

@Zach! here's a proof-of-concept static web page that detects the platform (mac, windows, or linux) and finds the latest version of Patchwork (version, release page url, and asset download url)

http://dinosaur.is/patchwork-downloader/

source: GitHub, git-ssb

if you had some style in mind, i could make this into a somewhat legit website.

%kqsMXZEpq39EkLW6oIkqoYW5bZO2H+XSlb0/VXqYtpI=.sha256 Zach! · 11/21/2017, 8:20:20 AM

Oh, cool! I actually just refined the downloads page on solarpunk.cool, so that it pulled from github. but it's all manual and has three buttons: Screen Shot 2017-11-21 at 3.19.17 AM.png
https://solarpunk.cool/downloads/patchwork.html

It'd be much cooler to have it be able to detect yr OS and keep the link updated. I'm not the best at JS (yet), though, so I'd love yr help where you can give it, @dinosaur

%g9PI/KnHNV6VXe5SfwkeTtc1vg2Z1v6K95XQS9Nr+Lc=.sha256 Zach! · 11/21/2017, 8:51:56 AM

HELL YES. Could you use the styling at https://solarpunk.cool/downloads/patchwork.html? It's v simple, but aesthetically consistent with the invite page.

%0I9Zvg06C2anfzG0dtJCOoL+G3NisLqBLtEDQqKRGP8=.sha256 dinoworm ๐Ÿ› · 11/21/2017, 9:22:46 AM

@Zach! okay sweet, did a quick copy of your styles on my code: http://dinosaur.is/patchwork-downloader/

%GT1cPQHbCvC5KsFqVDBd97VnwPoO28lxreUIcL76068=.sha256 robbie ๐Ÿ’ป · 11/21/2017, 3:22:56 PM

Maybe add a "other operating systems" link below the button? In case detection went wrong or they are downloading on one machine to install on another.

It could just expose the list of current os release links.

%1FybS4CTwD5oTPXTwAhM6NND35BuNGb+AcRq2dnXceE=.sha256 Zach! · 11/22/2017, 4:32:15 AM

This is aaaaawesome, @mikey, thank you! I'ma switch out the href link in the template to this site.

Built with git-ssb-web