Page 1 of 1

[patch] Portable

Posted: Wed Apr 20, 2011 11:32 pm
by Shura1oplot
Patch lets you make Codelite v2.10.0.4778 portable.
Patch move application data from User/AppData to Codelite directory (example: H:\Portable\CodeLite\appdata),
also when you exit the program, patch rolls absolute paths (recorded in “Tag Settings/Include Files” ) to relative paths. During loading program, relative paths unroll to absolute paths.

Neccesary changes:
1) create file "portable" (without extension) in program directory
2) Write relative paths in file registry.ini
Example:

[environment]
wx=$(CodeLiteDir)\..\wxWidgets-2.8.12
mingw=$(CodeLiteDir)\..\MinGW
unittestpp=$(CodeLiteDir)\..\UnitTest++-1.3

3) Fix paths in Environment Variables:

Example:
CodeLiteDir=H:\Portable\CodeLite
WXWIN=$(CodeLiteDir)\..\wxWidgets-2.8.12
PATH=$(WXWIN)\lib\gcc_dll;$(PATH)
WXCFG=gcc_dll\mswu
UNIT_TEST_PP_SRC_DIR=$(CodeLiteDir)\..\UnitTest++-1.3
LANG=C

In this configuration MinGW, wxWidgets-2.8.12 and UnitTest++-1.3 must be in Codelite's directory.
Example:
H:\Portable\CodeLite
H:\Portable\MinGW
H:\Portable\wxWidgets-2.8.12
H:\Portable\UnitTest++-1.3

I`m sorry for my bad English.

Re: [patch]

Posted: Thu Apr 21, 2011 10:13 am
by eranif
Shura1oplot wrote:Patch lets you make Codelite v2.10.0.4778 portable.
Patch move application data from User/AppData to Codelite directory (example: H:\Portable\CodeLite\appdata),
also when you exit the program, patch rolls absolute paths (recorded in “Tag Settings/Include Files” ) in relative paths. During loading program, relative paths unroll to absolute paths.
Very nice work. You did it excatly as I would have done it (by creating a codelite's version for 'wxStandardPaths')
I will give it a try and will update in this post

Eran

Re: [patch] Portable

Posted: Sat Jun 04, 2011 11:33 am
by lyricc
good work!!!!!
I must say it. why not share your code--such as "userdatadir.h" and "userdatadir.cpp"

Re: [patch] Portable

Posted: Mon Jun 06, 2011 12:59 pm
by Shura1oplot
I`m very sorry! I missed the flag -N, when creating the patch! I upload new fixed patch, now it creates the files "userdatadir.cpp" and "userdatadir.h".