Making an installer for a program is really hard apparently lol.
I started by writing it in python, then decided to switch to bash for some reason I canât remember now.
I started with the basic logic (whats your bot token, what channel), and then moved on to installing dependencies. Apparently this is kind of annoying to do in an automated capacity, and doesnât like to be consistent.
Things I had to fix and work around:
- Some distros donât have Python Venv installed, had to add that to the installer
- Had to fix the apt command several times
- Echo doesnât support formatting, had to change to printf
- Had to fix a pip requirement I missed
- Had to fix the .env file creator like 3 times (I needed to use ai for this, sorry)
- Had to fix the crontab creator twice (also needed ai help with this)
Moral of the story is that I donât know what Iâm doing in bash and I shouldâve just made the thing in python.
Also because the fastest way I can get the new versions of the installer to my linux machine was to commit them to github, there are like 10 extra commits from this madness.