I created a script that always installs apps from their official source

https://github.com/Tsu-gu/appfetch/

It’s a proof of concept of an idea I had a while ago. I dislike having to hunt down apps for my Linux machine when I want them from an official source. Some apps are packages as tarballs, some as .debs, some as install scripts that download a binary, some are flatpaks and snaps.

I created a yaml file with only verified apps from flathub and snapcraft, and added a few apps outside of them that I could think of.

The ultimate goal is the user just typing the names of what they want, and the script will just get it. They shouldn’t waste time with picking the right source.

  • MrSoup@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    21 hours ago

    I think that using some “custom” package names for internal args is not the best choice.

    Anyway, later I’ll take a better look at it and probably contribute to it. Ty

    • tsugu@slrpnk.netOP
      link
      fedilink
      arrow-up
      1
      ·
      21 hours ago

      Could you elaborate? I’m not the best programmer so I’m open to suggestions.

      • MrSoup@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        21 hours ago

        I saw that “version” and “update” are inside apps.yaml instead inside the program itself like “search”. I see why version helps to be there which gets updated with the list, but the update link looks more like a quirk to be inside apps list. And it would make sense to distinguish program version and apps list version.

        • tsugu@slrpnk.netOP
          link
          fedilink
          arrow-up
          2
          ·
          21 hours ago

          That’s a good point. I will also probably need a better update method than rm -rf-ing the files and replacing them with each update.