Hi thesnowdog,
Sounds great and it would be nice if this could be integrated into the project. Running from the command-line is pretty quirky at the moment which is probably because most people are using the IDE.
It would presumably help with packaging for Linux distros as well.
I only had a very quick look but it doesn't seem that the script supports a local user installation? E.g., It would be nice to have the option to run something like ./QB64_install.sh --prefix=/home/me/opt
Thank you for your message.
The integration of my script into the project is up to the development team. However, I think it's really better than the old setup_lnx.sh script which no longer works on some newer Linux distos.
You are right, at the moment this script installs QB64, InForm and vWATCH only in the general purpose folder "/opt /qb64" and not elsewhere.
There are several reasons for this:
1) in another script I allowed the user to install an application almost anywhere in the filesystem. The problem then was that some guys would do "creative things" like install that application in sensitive places like /boot or /sys or /etc and then mess up the system. So I don't want this install script to be able to do it again.
2) this script also allows to uninstall QB64, InForm and vWATCH with a single click. If I allow (say via an option) to install these components elsewhere (ie "/home/$USER/any_location/qb64") then I would have to save this location somewhere so that I can offer to uninstall the applications without asking where they are located... specially because the user can forget the exact location.
So I have to check where to save this location, say in some sort of .ini file that the script should read before doing anything else.
This is a good improvement and thanks for sharing this idea which I will test as soon as possible. However, I think that on a machine with sevrel user accounts, this limits the use of the three apps exclusively to the user who perfromed the install.
I am planning another improvement such as saving the full install before uninstalling the full package. It could be in /home/$USER/qb64-backup.
About your proposal to "possibly help with packaging for Linux distributions", what do you think exactly? Of course, I am interested in any idea to improve the scope of using QB64, InForm and vWATCH through this script. :)
Looking forward.
Cheers.
Fifi
PS: Sorry for my English, I'm a French native (I Know, nobody's perfect). ;)