hanzala123 / arch2appimage

This is a python script that downloads Arch Linux packages (Official/Chaotic AUR) and converts to an AppImage executable
GNU General Public License v3.0
339 stars 11 forks source link

What is the right format of the URL downloading package from mirrors instead of official arch mirror? #17

Open WaytrueDeng opened 1 year ago

WaytrueDeng commented 1 year ago

Hi thanks for your incredible work, I am living in China, The official mirror is too slow, I try to change it to local mirror but failed

hanzala123 commented 1 year ago

First of all I am not really sure that this would work. Since this was made with only the official url in mind. If you still want to try...

the format is https://archlinux.org/packages/{repo}/{arch}/{pkg}/download. The values inside {} will be replaced on runtime. {repo} will be replaced with the repository(community, extra etc.), {arch} will be replaced with the architecture of the system (ie. x86_64) and {pkg} will be replaced with the package name. You can use these variables to build a url for your local mirror. The response of this must be a package file.