Gictorbit / photoshopCClinux

Photoshop CC v19 installer for Gnu/Linux
GNU General Public License v2.0
4.23k stars 311 forks source link

Improve download_component to allow for resuming failed downloads #197

Closed ghost closed 2 months ago

ghost commented 1 year ago

Hi! I made some changes to the download_component function to improve its functionality. Now, if a download fails, the function will attempt to resume the download from where it left off instead of starting from the beginning. This should help avoid having to download large files multiple times due to failed downloads.

I added an additional check to verify the MD5 hash of the downloaded file to ensure that it matches the expected value. If the hash does not match, the function will delete the partially downloaded file and attempt to download it again.

I also added a check to determine if the aria2c package is installed on the system, and if so, it will be used to download the file. If aria2c is not installed, the function will attempt to use curl or wget to download the file.

I hope these changes are helpful. Please let me know if you have any questions or concerns. Thank you!

VVishion commented 1 year ago

This worked for me after I had the md5's do not match error, because the download failed.

ghost commented 1 year ago

This worked for me after I had the md5's do not match error, because the download failed.

Hi, thanks for commenting. Initially, the hash is checked before starting the download. If you've had problems before downloading the file, it's possible that you got that error by having an incomplete previous download as a residual file. I hope my solution has helped you to be able to install Photoshop on Linux.

Partack commented 1 year ago

worked first time. thanks for fixing it