ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

GitHub Download EE Addon

July 20, 2010 1:17pm

Subscribe [2]
  • #1 / Jul 20, 2010 1:17pm

    Eric Barnes

    487 posts

    I would like to announce my newest EE plugin “GitHub Download for EE”.

    This plugin was designed for developers using GitHub to host their code.

    What it does is allow you to put a download link directly on your site and not have to send people to the GitHub project to download. Basically to prevent confusion on how to download the code. “That ”Download Source” button can be really hard to find.”

    The plugin uses the GitHub api and generates the download based off “tags”. So you will need to be using tags for it to work. Another plus is you can use “latest” for the tag and it will automatically update to your latest tag instead of having to manually edit it each time you make a new release.

    {exp:github_download user="githubusername" repo="reponame" tag="latest"}
    Download
    {/exp:github_download}

    Paramaters

    * user - Required - Github username
    * repo - Required - Github repo name
    * tag - Required - Lastest or a specific tag.
    * class - Css class to apply to link
    * type - Either zipball (default) or tarball


    Download
    http://github.com/ericbarnes/github_download.ee_addon
    http://github.com/ericbarnes/github_download.ee_addon/downloads

  • #2 / Jul 20, 2010 1:18pm

    ender

    1644 posts

    What it does is allow you to put a download link directly on your site and not have to send people to the GitHub project to download. Basically to prevent confusion on how to download the code. “That ”Download Source” button can be really hard to find.”

    Download
    http://github.com/ericbarnes/github_download.ee_addon
    http://github.com/ericbarnes/github_download.ee_addon/downloads

    irony at its finest 😉

    good looking add-on though 😊

  • #3 / Jul 20, 2010 1:21pm

    Eric Barnes

    487 posts

    Yes although it isn’t meant to offend anyone. I just thought it would be something useful from some of the stuff I have been reading. 😊

  • #4 / Jul 23, 2010 10:34am

    Boyink!

    5011 posts

    Hey now - I resemble that remark..😉

    The download button is easy to find once you’ve used GitHub a few times - but for a first-timer it’s not the primary focus of the page like you would expect it to be (after following a link that says ‘download this at GitHub). 

    So you’re left trying to figure out how to grab all of the folders being shown in the primary content area - or deciding if it’s really possible to somehow get them all at once.  Also the “hardcore archiving” pop-up thingy seems to hang indefinitely even after the file downloads.

    And honestly - I thought it was just me being dense the first few times I got stuff off Github.  But I made some throwaway comment about my issue while teaching an EE class and the class broke out in applause…so while it may seem silly the perception that GitHub is hard to use is a real one.

    At any rate - thanks for taking the initiative to come up with a solution (rather than just mock those of us that are a little slow on the uptake)..😉

  • #5 / Jul 23, 2010 11:11am

    Eric Barnes

    487 posts

    I built this because even as a developer I tend to be hesitant to just click the “download source” button.  By using that to download you are getting the “master” branch and you never know if it is stable or not. If developers would “tag” their releases it will then automatically create a download with that version in the downloads page of the repo.  For example: http://github.com/ericbarnes/github_download.ee_addon/downloads

    I know every one has their own methods of doing things but hopefully this will help some.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases