change aria2 to wget

This commit is contained in:
victor 2021-01-04 20:35:42 +03:30
parent c590254334
commit 0ca346c398
3 changed files with 5 additions and 4 deletions

View File

@ -26,13 +26,12 @@ and sets some necessary components up for the best performance
2-make sure the following packages are already installed on your Linux distro 2-make sure the following packages are already installed on your Linux distro
* `wine` * `wine`
* `winetricks` * `winetricks`
* `aria2c`
* `md5sum` * `md5sum`
if they are not already installed you can install them using your package manager for example in arch Linux if they are not already installed you can install them using your package manager for example in arch Linux
```bash ```bash
sudo pacman -S wine aria2 winetricks sudo pacman -S wine winetricks
``` ```
3- make sure you have enough storage in your `/home` partition about `5 GiB` 3- make sure you have enough storage in your `/home` partition about `5 GiB`
> 1 GiB will be free after installation > 1 GiB will be free after installation

View File

@ -11,7 +11,7 @@ function main() {
is64 is64
#make sure aria2c and wine package is already installed #make sure aria2c and wine package is already installed
package_installed aria2c # package_installed aria2c
package_installed wine package_installed wine
package_installed md5sum package_installed md5sum
package_installed winetricks package_installed winetricks

View File

@ -132,6 +132,7 @@ function install_photoshopSE() {
local filename="photoshopCC-V19.1.6-2018x64.tgz" local filename="photoshopCC-V19.1.6-2018x64.tgz"
local filemd5="b63f6ed690343ee12b6195424f94c33f" local filemd5="b63f6ed690343ee12b6195424f94c33f"
local filelink="https://victor.poshtiban.io/p/gictor/photoshopCC/photoshopCC-V19.1.6-2018x64.tgz" local filelink="https://victor.poshtiban.io/p/gictor/photoshopCC/photoshopCC-V19.1.6-2018x64.tgz"
# local filelink="http://127.0.0.1:8080/photoshopCC-V19.1.6-2018x64.tgz"
local filepath="$CACHE_PATH/$filename" local filepath="$CACHE_PATH/$filename"
download_component $filepath $filemd5 $filelink $filename download_component $filepath $filemd5 $filelink $filename
@ -217,7 +218,8 @@ function download_component() {
fi fi
else else
show_message "downloading $4 ..." show_message "downloading $4 ..."
aria2c -c -x 8 -d $CACHE_PATH -o $4 $3 # aria2c -c -x 8 -d $CACHE_PATH -o $4 $3
wget $3 -P $CACHE_PATH
if [ $? -eq 0 ];then if [ $? -eq 0 ];then
notify-send "$4 download completed" -i "download" notify-send "$4 download completed" -i "download"
fi fi