Re: Sick of recreating jar file?

Kipp Howard <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Message-ID <[email protected]>
corey wrote:
> So I finally got my xpi to install and work!
> But every time I am editing it I have to un-jar the Chrome directory.
> and then re-jar it up again. Is there a shortcut around this? Or
> development tools I am unaware of?

Attached is a Win2K cmd file that does this for you automatically. 
Tweak it for your machine.

I was trying to build and test the dictionarysearch plugin but there was 
only a bourne shell script to do this, so I made one for Win2k.  I'm 
sure there are other ways that this is done.

The basic process that I use is tweak the files in a CVS controlled 
directory, run mkxpi.cmd (or mkxpi if you are using linux) and restart 
the browser.  You must install the .xpi at least once so that the .jar 
files are referenced correctly.

Check out the dictionarysearch source code for bourne shell script mkxpi 
(http://www.mozdev.org/source/browse/dictionarysearch/src/)

-- 
Kipp
[email protected]
mkxpi.cmd (text/plain, 493 B)
echo off
rem $Id$
set zip="c:\Program Files\7-Zip\7z.exe" a -tzip
set APP_NAME=dictionarysearch
del %APP_NAME%.xpi

%zip% %APP_NAME%.jar -r *.xul *.rdf *.dtd *.properties content\*.js

%zip% %APP_NAME%.xpi %APP_NAME%.jar install.js
xcopy /F /Y %APP_NAME%.jar "%APPDATA%\Phoenix\Profiles\default\vi2wqjty.slt\chrome"
rem xcopy /Y "%APP_NAME%.jar ~/.firefox/default/vn7t3d2h.slt/chrome"
xcopy /F /Y %APP_NAME%.jar "%APPDATA%\Thunderbird\Profiles\default\v1gijl8j.slt\chrome"
del %APP_NAME%.jar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.