Mord3rca / gamma-launcher

Just another Launcher to setup S.T.A.L.K.E.R.: G.A.M.M.A.
GNU General Public License v3.0
56 stars 9 forks source link

Use git version control for GitHub downloads #125

Open Singustromo opened 1 week ago

Singustromo commented 1 week ago

First of, thanks a bunch for still working on this.

I've got another proposal which I also initially expressed over on the gamma discord last year. Please let the user download repos from github via version control to save bandwidth and disk writes for updates. I personally download with 800KB/s tops and were able to place them in e.g. $gamma_dir/.Grok's Modpack Installer prior to the installer being so strict with existing files.

Also, shallow clones are a thing to save additional bandwith for the first download as the definition repo is over 9GB in size. git clone --depth 1 <...>

Mord3rca commented 6 days ago

Gonna work on that during the weekend.

Git repos will be in download folder instead of Grok's directory ... To take advantage of the CACHE option.

Singustromo commented 6 days ago

That's reasonable, thanks! Was just one thing that was missing. Downloading e.g. the large_files repo as a zip would take me over 3 hours when a new version is released x)

Mord3rca commented 4 days ago

A mirror will be used so a shallow clone is not possible (well ... it is but not a good solution)

This will be dl heavy at first and then you will only download the diff between your current HEAD and the remote HEAD.

PR is in review but not ready yet....