oneclick / rubyinstaller2

MSYS2 based RubyInstaller for Windows
https://rubyinstaller.org
BSD 3-Clause "New" or "Revised" License
660 stars 253 forks source link

Do we have mirror address? #209

Closed ccmywish closed 3 years ago

ccmywish commented 3 years ago

What problems are you experiencing?

Chinese users have been visiting GitHub very slowly. All the download links in rubyinstaller.org point to Github release page so that beginners in China always have severe network trouble on Windows before they can install Ruby successfully.

These days we are considering a mirror of rubyinstaller.org in China. We find that we lack of a sync method to download all and get the newest releases of RubyInstaller2. Do we have a rsync address, s3 bucket or others? If not, we'll think about other methods to download directly from Github release page.

larskanis commented 3 years ago

Unfortunately there's currently nothing but the github releases storage. I didn't check if there are any methods for syncing a mirror from it.

I could upload the signed release files to another storage host as part of the release procedure, if that is helpful.

There is already a Russian translation of rubyinstaller.org online called https://rubyinstaller.ru . They update and translate the pages more or less promptly, but link to the original installer files on github releases. See the corresponding issue: https://github.com/oneclick/rubyinstaller.org-website/issues/13

ccmywish commented 3 years ago

@larskanis Thanks for your reply! Could you provide a rsync address for all signed releases files? I think rsync is the simplest and an efficient way to sync.

skyzh commented 3 years ago

TUNA / SJTUG could mirror rubyinstaller by using existing mirroring tool of github-releases. You may wait until we add this to our mirror server.

ccmywish commented 3 years ago

Thank you very much for your help! We'll later put TUNA/SJTUG in a prominent position on our website

skyzh commented 3 years ago

SJTUG now synchronizes most recent 3 version every day. https://mirror.sjtu.edu.cn/github/rubyinstaller2/

ccmywish commented 3 years ago

@skyzh Great work! But I'm wondering why the "most recent 3 versions" are

  1. rubyinstaller-head
  2. RubyInstaller-3.0.0-1
  3. RubyInstaller-2.5.8-2

As you can see in https://github.com/oneclick/rubyinstaller2/tags , the most recent versions should be

  1. rubyinstaller-head-old
  2. RubyInstaller-3.0.0-1
  3. RubyInstaller-2.7.2-1
  4. RubyInstaller-2.6.6-2
  5. RubyInstaller-2.5.8-2

But I'm sure you should use rubyinstaller-head to substitute rubyinstaller-head-old

And most people now will use RubyInstaller-2.7.2-1 as it's a recommendation by community. Could you provide this version?

skyzh commented 3 years ago

It's weird that GitHub Release API gives these 3 versions as most recent... I'll look into that.

By the way, now we have synchronized all version you have mentioned.

skyzh commented 3 years ago

For the case of rubyinstaller-head-old, is it possible that artifacts are updated with their filenames unchanged? If this is possible, we will for now remove releases for head branch, as our program currently can't handle this situation.

ccmywish commented 3 years ago

I think it'll be OK to remove head branch if your sync program can't support it, because only very few expert users will download that version.

rubyinstaller.cn is online now, we thank SJTUG greatly. And we will keep up with rubyinstaller.org step by step since today.

larskanis commented 3 years ago

You're right, the files of release rubyinstaller-head change daily, but in order to provide a stable download link for CI the tag name isn't changed.

larskanis commented 3 years ago

I removed tag rubyinstaller-head-old since it's unused now.