When you are updating more then once or twice, zipping and renaming becomes a pain. Here my way of changing and testing Foxgame.
It requeries some installing, works great afterwards.
Install step 1
Install WinCvs or you own favorite CVS client.
Using CVS is not really necessary, but will make life easy when a new version of Foxgame will become available. CVS can merge you updates with the changes in a version. Otherwise you would need to redo you changes for every new version.
Using CVS in this way, you get the latest development changes, but also the latest bugs.
I don’t know when changes are submitted to CVS, but if you like to use official releases of Foxgame only, don’t use WinCvs again until one is released.
WinCvs can be found at:
http://prdownloads.sourceforge.net/cvsg ... p?download
Install and start WinCVS.
Set: Admin - Preferences - CVS - HOME: C:\Projects (or where you do your development.)
Use: Remote - Checkout module…
Module name and path on the server: foxgame/src
Local folder to check out to: C:\Projects\MyFoxgame (or somewhere else.)
[Check] CVSROOT: :pserver:guest@mozdev.org:/cvs (address starts with ‘:’)
Now you should have all Foxgame files in C:\Projects\MyFoxGame\foxgame\src
Install step 2
Install the command line version of 7zip.
Download:
http://prdownloads.sourceforge.net/seve ... p?download
And put the files form the zip into: C:\Program Files\7z
Install step 3
Create a file named make_dev.bat in the directory C:\Projects\MyFoxGame\foxgame\src
The content of the file should be
- Code:
set x=foxgame
set path7z=C:\Tools\7z
rd build /s/q
md build\chrome
cd chrome
%path7z%\7z a -tzip %x%.jar * -r0 -mx=0 -x!CVS* -x!Nuevo*
move %x%.jar ..\build\chrome
cd ..
copy *-GL.rdf build
copy *-GL.js build
ren build\install-GL.rdf install.rdf
ren build\install-GL.js install.js
xcopy /S defaults build\defaults\
cd build
%path7z%\7z a -tzip %x%.xpi * -r -mx=9 -x!CVS*
move %x%.xpi ..\
cd ..
The main difference between this makefile and the standard makefile is that the build-directory is not delete at the end of the process.
Install step 4Run the make_dev.bat
This should create a directory called C:\Projects\MyFoxGame\foxgame\src\build containing files equal to the files found in the foxgame.xpi.
Install step 5Locate you Firefox installed add-on directory. Mine is at: C:\Documents and Settings\CoupDeGrace\Application Data\Mozilla\Firefox\Profiles\rtr6pndn.default\extensions
If you can’t find it, search for a directory named: {b66bc4c3-6d25-4a10-8c59-01daa9063051}
When you found it, delete the directory called: {b66bc4c3-6d25-4a10-8c59-01daa9063051}
And replace it with a textfile with the same name. Edit the {b66bc4c3-6d25-4a10-8c59-01daa9063051}-file. This file must contain the name of your build directory.
- Code:
C:\Projects\MyFoxGame\foxgame\src\build
Install step 6
(Re)start Firefox. Foxgame shouldn’t have changed a bit.
Now we are done installing…. let get developing…
Develop step 1
Update the C:\Projects\MyFoxGame\foxgame\src\chrome\content\foxgame\foxgame.js to you liking, or any other file for that matter.
Develop step 2
Stop Firefox
Develop step 3
Run make_dev.bat
Develop step 4
Start Firefox and find some bugs.
Go back to develop step 1
I really hope this will make life a lot easier for everybody.