~\~ *The Button to Download Patchwork Directs to an Actual Downloads Page* ~\~
%PACE8wksdrnwrSUHq6XUMPB4HduYHVykiJkJ3R8nRI8=.sha256
~*~ 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
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:
@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.
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
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/
if you had some style in mind, i could make this into a somewhat legit website.
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:
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
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.
@Zach! okay sweet, did a quick copy of your styles on my code: http://dinosaur.is/patchwork-downloader/
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.
This is aaaaawesome, @mikey, thank you! I'ma switch out the href link in the template to this site.
Built with git-ssb-web