maryen wrote:Also(2), new version of the installer! It's blaah's code, with some modifications from me and ported to python. Now if I could only figure out how to work makeself...
give rally.py execute status (chmod +x rally.py) and then in "Rally v1.2" directory
makeself . ../Rally_v1.2.run "Rally v1.2" ./rally.py
first is patch what to include, second is file it generates, third is title for that file, fourth is script that is executed after .run file is executed and unpacked.
rally.py is then executed in the temporary directory where .run was unpacked. in shell, i used `pwd` to get that directory and saved it for later when copying ryzom scripts.
dont know about Puthon much (probably some libraries that most ppl dont have installed, has some UI elements
, but to keep things simple...
to add text mode UI to it, you can use dialog or whiptail (whiptail is "light" version from dialog, but syntax is same). one of those should be present in every installed desktop linux.
to add GUI, check kdialog (from kde), zenity (from gnome).
kdialog is mostly the same as dialog/whiptail again. so if you detect that kdialog is installed, you can just use it instead of text mode dialog.
zenity does some things his own way (damn him), so you need some "simple" workarounds (like you calling your own function with needed parameters and that function translates them to whichever ui program is in use)
getting user input back should be same for all of them (dialog/whiptail is).
Button presses is error code (pressing ESC or program own failure is negative error code, -1 for example), user text input is stderr output (in shell, you redirect stderr to file and then read that file to get the answer)
also, after installing Ryzom and not finding Ryzom in "Program Files" ask user where it's installed and generate Ryzom scripts for that path ?
just someideas for your next release