Been working on this a bit.
Re-evaluated the compile options as it wasn't working quite right.
Now it works splendidly win an options button to set many flags
I wrote a ReadMe for it so here's the details in full ..
GambasTweak by Bruce Steers.
What is it?
A Gambas3 project manager with some usefull features.
Main features.
Select the parent folder containing your gambas project folders and it reads through all your projects
getting the app icons and listing them into a convenient list.
Selecting a project displays some info about the project including it's gambas component requirements.
Maintain a distribution and source folder.
(This was main the reason i made the program to begin with)
As Gambas includes ANY files in the source folder into the compiled executable it's best
to have ONLY the required source files in the source folder.
Any other files you may want to include with your distribution Ie. help texts, snapshot images,
examples, etc would need to be in a different folder that you would put the gambas executable in
after compilation.
GambasTweak Lets you Have a "Distro" folder for your project and has options for copying the compiled
executable to there.
Other features...
Text editor.
A text editor to "quick edit" your source code , Uses the same TextEditor control the Gambas IDE uses and has
an "Import Theme from Gambas IDE" option so it will look exactly like the Gambas IDE editor with all the
same text highlighting. It lacks any of the many other features of the IDE like auto-complete/fill and is
just simply a text editor but is good for quick edits when "tweaking" your programs. It lists all the
Function/Sub calls in a list and jumps to the line on click.
Compile options.
GambasTweak can compile your source using gbc3 and gba3.
It compiles the AppName.gambas file in the source dir then copies it to the distro folder (if you have one).
Compilation options are settable and saved for each project individually.
Options (gbc3 args) include...
-x Executable mode. (define the 'Exec' preprocessor constant and remove assertions)
-a Compile All. Compile all sources in project
-w Show Warnings. Display any warning messages.
-g Add Debugging info. Add info to better debug your program if needed.
-p Make controls public. Makes objects visible to all forms in the project.
-m Make modules public. Makes modules visible to all forms.
Also...
PCODE 3.8 compatibility. Applies the GB_PCODE_VERSION=3.8 Environment variable.
Note/Warning.
Setting PCODE version to 3.8 allows your project to run on any version of Gambas >=3.8 without complaining about
a bytecode mismatch and telling you to upgrade Gambas to the version your program was compiled on. The downside
to this is if you have used any features/code only found in the new versions then your app will probably run but
crash at some point. If you've not used any new bytecode features then it will be okay so use this wisely.
Gambas IDE launcher,
Opens your project in the Gambas IDE for when you need more than a quick text editor.
Open Source / Distro Dir ,
Opens your file manager in the selected dir for convenience.
(uses xdg-open but any file manager can be set)
Run App and Argument Editor.
Your app can be launched from GambasTweak with arguments as you can in the IDE.
Edit the IDE argument list.
GambasTweak reads in your projects argument list that you have set in the IDE.
If you use GambasTweak to edit the arguments it then saves it's own version to it's own save file and will
use that list each time. Hovering over the "Run" button will show a tooltip letting you know if the arg list
is from the IDE or GambasTweak. To revert back to the IDE arglist simply select "clear args" from the menu.
GambasTweak does not edit/effect the IDE's args list in any way.
In fact the ONLY 1 change GambasTweak might make to your .project settings is if you try to load a Gambas 3.15
project into a lesser version Gambas IDE, it will crash if you don't remove the "CurrentArgument" setting as it's
variable type has changed from an Integer to an Array, So GambasTweak will remove the "CurrentArg" setting if
a 3.15 project is being loaded but the OS's Gambas is less than 3.15.
Script makers...
There are 2 working bash script creators for installing your project.
One is for the gambas-runtime and your apps gambas components and will create a shell script that asks the
user if they want to install either the complete Gambas3 package or just the components required by your app.
The other script is for installing your app. this creates a script that asks the user for the install directory
then installs/copies the App there. Defaults to the '/bin' or '/usr/bin' dir but user can choose another location.
Bruce