[patch] Portable
Posted: Wed Apr 20, 2011 11:32 pm
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.
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.