Page 4 of 4

Re: Compiling on ALL supported distros

Posted: Friday 23rd October 2020 8:57am
by BruceSteers
Working sweetly now is this.

I just launch it and hit return.

if git updates it runs ./configure to make install and finishes

if no updates it just quits.

my preferences are saved so no questions asked.

Gotta work a bit on ways to re-enable setting choices.
Currently best way is to edit the /$HOME/.config/gambas-comipler.conf file ... nd-install

Re: Compiling on ALL supported distros

Posted: Monday 11th January 2021 2:18pm
by BruceSteers
If gambas is already installed I'm working on this similar thing but it's a gambas program....

It's very WIP , no docs yet and only a few tooltips.

like the script it uses the .gitlab-ci file to get supported distros / dependencies / commands.and auto-detects your system.


Then there's the source page that reads the GitLab commits page to get latest commit id and time and message.


Then the Download page where you can install the dependencies or git pull the latest commit or download the archive.
(dependency install not done yet and neither is archive download, git functions are working)


then the compilation page. has a few options.
(gonna make that green darker, it's a bit much lol, it shows green while running and red if failed , grey when idle.)


Re: Compiling on ALL supported distros

Posted: Monday 18th January 2021 6:12pm
by BruceSteers
So the gambas version had a bit of a de-evolution/evolution.

I initially made it handle too much git stuff and got a bit lost so i re-wrote it starting from basics.

So it's basically now an upgrade utility called "Gambas Latest Updater"
It's currently git only (no download archive just git clone/pull)

Gambas (older version of course as it for upgrade)
bash (only bash as uses the "set -o pipefail" feature to catch errors when compiling)

How to use...
Load it and it detects your OS (if it's in the list of supported distros)

Set it's source directory,
Either point it to a previously downloaded gitlab folder on your drive,
or a folder called gambas-master or gambas-stable depending on your choice is created in the directory given.

If downloading a new clone and not using existing dir choose master or stable version.

From the downloads page you can git clone a new source or git pull updates on existing folder.
You can find if dependencies (as listed in gitlab-ci.yml file) are missing and install.

You and also "Check Gitlab" , this reads the gitlab commits page and lists the latest commit hash and message so you can see if there's a new update.

Then go to compile page.
You can set compile start point from ./rconf-all to 'make install'
You can set --force option to ./reconf all or -q (quiet, only displays errors) to ./configure
you can set what to do when the time comes for sudo make install to ask for password (in case you are afk) (do nothing, pop up a message to pause process, or auto type password (you are asked at start of compilation)

Press begin
If you have your distro's repository installed version of gambas by a package manager then it will be uninstalled before make install is run.
Compilation should run smoothly in the built in terminal.

The Versions/Downloads window....
GambasLatestUpdate.png (182.37 KiB) Viewed 13 times
The Compiler Window...
GambasLatestUpdateC.png (141.33 KiB) Viewed 13 times
The Source:
The Gambas Exe: ... ate.gambas

Re: Compiling on ALL supported distros

Posted: Tuesday 19th January 2021 1:23am
by PJBlack
nice job ... nice colors (really like that design) ... BUT dont work ... see tickets/gitlab

Re: Compiling on ALL supported distros

Posted: Tuesday 19th January 2021 2:50am
by BruceSteers
PJBlack wrote:
Tuesday 19th January 2021 1:23am
nice job ... nice colors (really like that design) ... BUT dont work ... see tickets/gitlab
Thanks for testing and glad you like it :)
I found this bug.
I tried on a new debian with 3.12 and found it was the TextBox "PlaceHolder" strings.
Placeholder did not exist in 3.12 so was causing error and stopping it loading.
I've fixed that now (and the linuix typo:) )

Re: Compiling on ALL supported distros

Posted: Tuesday 19th January 2021 4:23am
by PJBlack
nope ...

Code: Select all

[sudo] Passwort für mnaltrogge: 
Fehler: Ziel nicht gefunden: gambas3*
but yes ... the typo is gone :twisted: