[Gambas-user] Runtime 10 files
Rolf-Werner Eilert
rwe-sse at osnanet.de
Tue Dec 19 08:45:15 CET 2017
Am 18.12.2017 06:41, schrieb T Lee Davidson:
> On 12/17/2017 07:46 PM, mikeB wrote:
>> *********************************************************************
>> This software was programmed using "Gambas3 v3.10.0"
>> VERY IMPORTANT: before installing this app you will need to have/ install Gambas Runtime v10 files - most systems will not have
>> these very new files installed yet. You'll only need to do this once!
>>
>> Do so via the terminal commands:
>>
>> sudo add-apt-repository ppa:gambas-team/gambas3
>> sudo apt-get update
>> gbx3 -e 'Comp(System.FullVersion, "3.10", gb.Natural) >= 0'
>>
>> note: if return value of this last command is "TRUE" then that means
>> you're ready to go (have the v10 Runtime files installed).
>>
>> OTHERWISE IT WILL RETURN
>>
>> "The program 'gbx3' is currently not installed. You can install it by
>> typing:
>> sudo apt install gambas3-runtime
>>
>> Doing so installs the Gambas v10 Runtime files then you're all set.
>> **********************************************************************
>
>
> You might be able to simplify your instructions if Aptitude (apt-get) works similar to YaST. There is an 'aptitude' executable
> installed on my openSUSE system which seems to redirect to YaST.
>
> `sudo apt-get install gambas3-runtime` produces:
> **********
> Loading repository data...
> Reading installed packages...
> 'gambas3-runtime' is already installed.
> No update candidate for 'gambas3-runtime-3.10.0-20.1.x86_64'. The highest available version is already installed.
> Resolving package dependencies...
>
> Nothing to do.
> **********
>
> If the package is already installed, it looks for an available update. So, you may be able to replace:
> gbx3 -e 'Comp(System.FullVersion, "3.10", gb.Natural) >= 0'
> with:
> sudo apt-get install gambas3-runtime
>
> let it automatically search for any available upgrade package, and eliminate about 8 lines from your instructions.
>
> That is, if Aptitude works like YaST.
>
>
I have been thinking about this yesterday, and came to the conclusion
that I would program a script or something around a script which does
the job just like you proposed.
The script would
1) Find out which Gambas version is on the machine
1a) Find out if Gambas-runtime-only or complete on the machine
2) Find out which install system (deb or rpm / apt or zypper)
3) Install latest Gambas runtime or complete from the repos, if necessary
4) Install included version of your program
There are a lot of clever scripts which do one or more of these jobs for
other programs, so it should be easy to study and rewrite those to
create a special Gambas+YourProgram script. One might use a common
graphical tool to wrap the script and handle root password etc.
But the best of it would be, we might be able to include it as a
template into Gambas, offering the programmer to distribute the
application via such a thing. I am sure, many of the folks here would
help to make it run on every major distro.
What do you think?
Regards
Rolf
More information about the User
mailing list