Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Portable Code::Blocks

<< < (13/19) > >>

codeur:

--- Quote from: Biplab on November 30, 2010, 04:33:00 pm ---... I noticed some commit which makes C::B portable without any launcher. Then I stopped working further.
But I do believe that a separate launcher will be useful. Thus I want to merge it to trunk.

--- End quote ---

Biplab, I suggest waiting to commit to ../src/tools until we get some feedback on 0.1.4 (or the lack of feedback convinces us that it is working OK for users), then do changes like the icon change suggested by ollydbg, or adding my coding name to the authors as you suggested (I think it is there in the 0.1.4 documentation, it is JLK), renumber the version to 1.0 and commit to trunk. There is no hurry.

Do you remember what commits you saw that made CB portable without any launcher? I have not seen that.

AFAIK Codeblocks can be started portably by a simple batch file. Even changing the path to carry development tools as part of the IDE can be done in some primitive way in the batch file. The only thing that cannot be done by a batch file (I think) is adding a programmer's font to the system, but most programmers can live with that and tolerate using Courier New when they move to different systems.

In my case I continued developing the portable launcher because as a programming teacher I distribute CB to hundreds of students and get it installed on university computer labs. It has to work portably "out of the box", with all development tools installed and working portably, and with a good, common programmer's font. Loaden's portableCB ( http://code.google.com/p/portablecb/ ) has these facilities inbuilt, but it is not supported by CB developpers.
In addition I cannot afford to struggle with batch files on a variety of systems.

ollydbg:

--- Quote from: codeur on November 30, 2010, 10:42:03 pm ---Do you remember what commits you saw that made CB portable without any launcher? I have not seen that.

--- End quote ---
I guess it is loaden's patch to make codeblocks.exe portable. The patch can be downloaded from loaden's site:
http://code.google.com/p/portablecb/
maybe this one:
portablecb.patch

xunxun:

--- Quote from: ollydbg on December 01, 2010, 01:36:30 am ---I guess it is loaden's patch to make codeblocks.exe portable. The patch can be downloaded from loaden's site:
http://code.google.com/p/portablecb/
maybe this one:
portablecb.patch

--- End quote ---
The patch works well if you don't need codesnippets or cb_share_config.

ollydbg:
@codeur
I have two question:

1, it seems in the source code of "launcher.cpp", you just add some extra tools path to the system environment "PATH" variable, does this system variable will be changed when the cblauncher exit? (the PATH variable is modified temporarily or permanently?)

2, in the source code, you use a variable "nuPath", I suggest change its name to "newPath".

thanks.

 :D :D

codeur:
Hi Ollydbg
1- Changes to the Codeblocks working environment (including the PATH variable) made by the launcher last only until Codeblocks exits.
While Codeblocks is working these changes are effective only for this instance of Codeblocks and for the tools (apps or shells) started by this instance.

If you want permanent changes to the system and changes that are effective outside Codeblocks (for example a permanent change to the path) this is not the responsibility of the launcher. You'd have to apply the changes to your user or system variables outside Codeblocks.

2- You're a funny guy.
Variable names are really a matter of personal preference or habit as long as the names are not misleading.
However with respect to poor English speakers you may have a point. It is probably better to respect strict English spelling in identifier names provided that they don't get too long, otherwise these programmers may end up writing English text with the same strange spelling we use in coding. (BTW: I am French)
I'll change that variable name in the next version.
 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version