The International Simutrans Forum

Community => Community Discussion => Topic started by: jamespetts on December 13, 2012, 01:03:08 AM

Title: Github downloads?
Post by: jamespetts on December 13, 2012, 01:03:08 AM
Hmm - this is odd. I have used the download/upload feature on Github for a very long time for putting out releases of Simutrans-Experimental's Windows binaries and Pak128.Britain-Ex, but it seems that Github has changed and I can no longer find any way of managing these downloads. Does anyone know what has happened? The files are still there from their direct links, but I cannot upload any further files or delete these files. Has this functionality been removed, does anyone know, or am I missing something?
Title: Re: Github downloads?
Post by: sdog on December 13, 2012, 05:53:25 AM
i was trying to find it too today, and thought i was just a little bit stupid or forgetful.

https://github.com/blog/1302-goodbye-uploads

Quoten addition to providing downloadable source code archives, GitHub previously allowed you to upload files (separate from the versioned files) in the repository, and make it available for download in the Downloads Tab. Supporting these types of uploads was a source of great confusion and pain – they were too similar to the files in a Git repository. As part of our ongoing effort to keep GitHub focused on building software, we are deprecating the Downloads Tab.

The ability to upload new files via the web site is disabled today.

Existing links to previously uploaded files will continue to work for the foreseeable future.

Repositories that already have uploads will continue to list their downloads for the next 90 days (tack on /downloads to the end of any repository to see them).

The Downloads API is officially deprecated and will be disabled in 90 days.

As a side-effect i read on the gihub blog they're offering free beer today in toronto, 19:30 at the Rhino, Queen & Dufferin (which is less than a 20 minutes walk from my home)



ps.: as a workaround some people suggested to use another git repository adding the compiled binaries. There are git project pages, controlled by a git repository i think, which might be quite suitable.
Title: Re: Github downloads?
Post by: prissi on December 13, 2012, 08:56:46 AM
I think the main reason (apart from confusion) was the misuse of this feature for just storing files (warez etc.)
Title: Re: Github downloads?
Post by: jamespetts on December 13, 2012, 11:06:55 AM
Ohh dear - that is rather sad. Thank you for spotting that, SDog - I did to try to find whether there had been any official removal, but it was not clear. I shall have to find somewhere else to put Simutrans-Experimental and Pak128.Britain-Ex binaries. One possible option is my server, but I worry that lots of people downloading from there might make downloads of the saved game slower for people actually playing. Can anyone recommend anywhere else?
Title: Re: Github downloads?
Post by: Fabio on December 13, 2012, 11:46:56 AM
The download section of sourceforge?

It hosts standard and the major paksets, so I don't see why couldn't we have an Exp folder as well.

Mind that not even standard code is hosted there, just paksets sources and engine + paksets release.
Title: Re: Github downloads?
Post by: jamespetts on December 13, 2012, 12:04:35 PM
I don't think that I have write access to the Sorceforge repository, though.
Title: Re: Github downloads?
Post by: Fabio on December 13, 2012, 12:24:55 PM
That could be arranged with Dwachs, I suppose.

I know he can grant R/W access to the svn, possibly also to the release section.
Title: Re: Github downloads?
Post by: Dwachs on December 13, 2012, 12:33:15 PM
I can arrange that, James, you have to create an account over there and send me an PM.

Something like this can be done by the administrator of the simutrans project at sourceforge (currently prissi and I).
Title: Re: Github downloads?
Post by: prissi on December 13, 2012, 01:02:41 PM
To avoid confusion I would rather suggest to James to create an experimental page at sourceforge. Then all experiemental (only) paksets could be hosted there too. James would be admin there and thus take the load form the standard maintainer. It could server than as a protal for experimental sets. (SF allows nowadays github repos too for source.)

But honestly, hosting on your server will not take much bandwidth (just think about transferring 80MB games) and will give you all kind of cool statistics that SF lacks.

Third option could be simutrans.com server. Ask Isaac for this.
Title: Re: Github downloads?
Post by: greenling on December 13, 2012, 06:20:55 PM
That it a nice idea but sourceforge have sometimes often problems to download data.
Title: Re: Github downloads?
Post by: sdog on December 14, 2012, 11:09:40 PM
James, i'll have a look into github pages now. If it works out i'll set one up for the simutrans organization on github, this might be a new place to host the experimental binaries.


The initial page should show up in about ten minutes or so under: (it's up now)
http://simutrans.github.com/simutrans-github-project-page
Tonight i'll see if it is sensible to link files from it, and if it can be done easily and automatically.

You might have noticed, that you are also a owner of the organization, and should be able to change things freely.*


*grammar question, would ought have been better in this context?
Title: Re: Github downloads?
Post by: jamespetts on December 16, 2012, 07:51:19 PM
Sdog,

thank you very much for doing this. What did you conclude about linking to files, etc.?

As to the grammar question, both are grammatically correct, but there is a subtle difference in meaning. "Should" in this context means that this is what you expect will happen if you are correct in your understanding: "ought" means that this is what will happen if other people do the right thing or equipment, etc. operates correctly. I suspect that "should" is closer to what you intended here.
Title: Re: Github downloads?
Post by: sdog on December 17, 2012, 01:13:32 AM
I'm linking to a page where i put links the ziped pak128-set to be downloaded on the page (http://simutrans.github.com/simutrans-github-project-page/).

Changing something and pushing it to github refreshes the page in a few minutes.

I didn't manage to get server side html includes running, my intend was to just append the links to a simple file which in turn is included in the download page html. Without it the easiset way is to have the script cut off the tail of the html page, append the new text and the tail again.

Here's a bit more on experience with pak128:
http://forum.simutrans.com/index.php?topic=11097.0

To push to this repository you'll need to learn how to use deploy keys with your git program (tortoise?). A deploy key is a ssh key linked to a repository. You can not use the same one for different repositories. Thus you'd need to have either tortoise do it or set up your ssh configure file to use a different deploy key when connecting to different hosts. (howto, don't know if it's any use to win users though: http://www.johnnypez.com/reference/multiple-deploy-keys-with-git/)
Title: Re: Github downloads?
Post by: prissi on December 17, 2012, 08:41:09 AM
Why hassle with all this when you have sourceforge or even an own server for hosting?
Title: Re: Github downloads?
Post by: jamespetts on December 17, 2012, 11:31:05 PM
Hmm, I think that Prissi may have a point. I have put them on my own server for now. Does anyone know how to get download statistics from an Apache server...?
Title: Re: Github downloads?
Post by: Dwachs on December 18, 2012, 06:40:41 AM
Why not use sourceforge? Create an account, send me the details -> ready for up & download. You do not even have to register simutrans-experimental as an extra project.
Title: Re: Github downloads?
Post by: jamespetts on December 18, 2012, 11:37:09 AM
Quote from: Dwachs on December 18, 2012, 06:40:41 AM
Why not use sourceforge? Create an account, send me the details -> ready for up & download. You do not even have to register simutrans-experimental as an extra project.

I didn't initially because it was easier to use my server because that was already set up. Is SourceForge easier for statistics than one's own server?
Title: Re: Github downloads?
Post by: Dwachs on December 18, 2012, 12:23:32 PM
sourceforge has everything (or maybe less) built-in (statistics, mirrors etc)