Compiling on ALL supported distros

Post

Posted
Rating:
#26
Guru
BruceSteers is in the usergroup ‘Guru’

PJBlack said

testing …

- by entering manually the git directory ~/ is not expanded to /home/user
- i know i'm a annoying pain in the ass but

i didn't know about the ~/ thing , I'm guessing it's not an automatic feature and i'll have to add the code to translate it.

I didn't know about 'read -e' but i'm bloody glad i do now as i couldn't even use the left arrow to edit a pasted string but it works using -e :)  cheers for that, will add it to the path inputs  :)

You're far from an annoying pita , I really appreciate your input, thank you.

git pull just checks for newer commits before compiling as normal.
The script runs as would regardless of updates.
Are you thinking like a "check for updates" mode where it can check for new commits and recompile if yes but do nothing if no?
That's not a bad idea but not currently how the script works.

and Yay , sudo resets :)  that's a relief , it's a dodgy practice playing with sudo i think. wouldn't want to leave anyone at risk.
I've got a feeling i can make it more "specific" ie. only make the timeout rule apply for certain programs like 'make' and certain user names.
that would make things safer.

Thanks fella , much obliged :)
Bruce

Ps. have uploaded new ver 2.5.4, now uses read -e and handles ~/ homedir :)
Online now: No Back to the top

Post

Posted
Rating:
#27
Guru
BruceSteers is in the usergroup ‘Guru’
 Version 3.0 preview …

Not finished but it's getting upgraded to set various options before you start.
Online now: No Back to the top

Post

Posted
Rating:
#28
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’
:o  :shock:

yesterday i was playing around with dialog, xdialog, kdialog und yad because i had the same idea … but found that was nothing what i'm looking for … i stopped working for "gassirunde" and after that i go to bed BUT thinking of realizing that with plain shell codes … and now you are nearly finished

man … you are unbelievable … will you marry me ? (no idea how to explain that to my wife, but … who cares)
Online now: No Back to the top

Post

Posted
Rating:
#29
Guru
BruceSteers is in the usergroup ‘Guru’

PJBlack said

:o  :shock:

yesterday i was playing around with dialog, xdialog, kdialog und yad because i had the same idea … but found that was nothing what i'm looking for … i stopped working for "gassirunde" and after that i go to bed BUT thinking of realizing that with plain shell codes … and now you are nearly finished

man … you are unbelievable … will you marry me ? (no idea how to explain that to my wife, but … who cares)
:lol:
Haha, lets just have a remote affair.

ooh i never knew of the command dialog  might have a look at that to see if i can remove the need for zenity to browse.

Alas not nearly finished yet , i've built the menu system now i think it's about ready to integrate the functions from the script into it.

have attached the new script if you want to have a look at the code :)
It does not really do anything yet like i say it's just the menu system at present.
Online now: No Back to the top

Post

Posted
Rating:
#30
Guru
BruceSteers is in the usergroup ‘Guru’
Okay then … updated….

Now there are 2 scripts.

One is for first time setting the directory up, doing any git cloning or curl downloading/unpacking zips and installing all the dependencies according to the .gitlab-cl.yml file..
(unless you've already done that bit)

The other one assumes you now have a Gambas3 source directory on your disk and is for updating/compiling/installing.

Differences now are…
Settings saving.  your distro, the gambas source dir and various options are now saved so only asked at first run.
So once first run and you've answered the "what's my distro" question and seen the welcome screen and set your directory the next time it goes straight to the following window (the lower one)…
(attachment removed)

In that screenshot, a new instance of the script is running in the black lower terminal while another instance is running in the upper terminal doing an update for me.

On the main opions screen you can set various options like disabling the ./config-all option, make a desktop icon, etc

Has "update mode" where it does a 'git pull' and if no updates download it does nothing.

Has not been fully tested yet and yesterday gambas almost DESTROYED it for me :(
I have a text editor i made using the TextEditor control and it turns out if you select "gambas" highlight mode for the TextEditor it does not just Highlight the code it completely reformats it gambas style.
Hadn't noticed it did it when i saved the file. Messed everything right up and i've spent all morning fixing it :(
Online now: No Back to the top

Post

Posted
Rating:
#31
Guru
BruceSteers is in the usergroup ‘Guru’
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

https://github.com/BruceSteers/gambas3-compile-and-install
Online now: No Back to the top

Post

Posted
Rating:
#32
Guru
BruceSteers is in the usergroup ‘Guru’
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.

https://gitlab.com/bsteers4/gcu

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

<IMG src="http://bws.org.uk/images/GCU/GCU_Dists.png"> </IMG>

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

<IMG src="http://bws.org.uk/images/GCU/GCU_Source.png"> </IMG>

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)

<IMG src="http://bws.org.uk/images/GCU/GCU_DL.png"> </IMG>

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.)

<IMG src="http://bws.org.uk/images/GCU/GCU_Comp.png"> </IMG>
Online now: No Back to the top

Post

Posted
Rating:
#33
Guru
BruceSteers is in the usergroup ‘Guru’
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)

Requirements..
Internet
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….
(attachment removed)

The Compiler Window…
(attachment removed)

Download…
The Source: Bruce Steers / GambasLatestUpdate · GitLab
The Gambas Exe: Files · master · Bruce Steers / GambasLatestUpdate · GitLab
Enjoy…
Bruce
Online now: No Back to the top

Post

Posted
Rating:
#34
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’
nice job ... nice colors (really like that design) ... BUT dont work ... see tickets/gitlab
Online now: No Back to the top

Post

Posted
Rating:
#35
Guru
BruceSteers is in the usergroup ‘Guru’

PJBlack said

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:) )
Online now: No Back to the top

Post

Posted
Rating:
#36
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’
nope …

Code

[sudo] Passwort für mnaltrogge:
Fehler: Ziel nicht gefunden: gambas3*

but yes … the typo is gone  :twisted:
Online now: No Back to the top

Post

Posted
Rating:
#37
Guru
BruceSteers is in the usergroup ‘Guru’

PJBlack said

nope …

Code

[sudo] Passwort für mnaltrogge:
Fehler: Ziel nicht gefunden: gambas3*

but yes … the typo is gone  :twisted:

Fixed , and tested working , thank you  :)
Online now: No Back to the top
1 guest and 0 members have just viewed this.