[sword-devel] How to zip module files
bsv at kermitkiser.com
Fri Feb 29 00:05:52 MST 2008
I ran into the same problem recently when trying to do this on a Windows
XP system. Here is what I found:
7-zip worked OK to build the mods.d.tar.gz file but will not build an
acceptable zip file for distribution. (May be a UNIX vs Win issue.)
Info-Zip windows GUI WiZ works OK to build a zip file if the mods.d and
modules directories are placed in the root directory first.
PS: Note that the Sword module installer requires an anonymous FTP
server to distribute the zipped modules while the JSword installer
requires an HTTP server to distribute the modules. All the service
providers I checked with said that anonymous FTP is a security risk and
they would only provide it on a dedicated IP at much higher cost. I
don't really buy the security risk argument, but the money issue speaks
strong. If this list votes on enhancement requests, please add my vote
to allow Sword to use HTTP downloads. Thanks!
> Thanks, DM!
> I have done the editor to edit and generate the compressed module file
> through a click. It works fine. (Still prototype though.) It also
> supports importing existing modules into the editor.
> Right now, when I try to package the module and conf to a zip file so
> I can test export function as well as downloading, the program
> fails(jsword 1.5 api).
> Through debugger, I noticed that when it tries to unzip the zip file,
> it treat mods.d and other module structure (module, text, ztext, ....)
> as files instead of directories. thus the unzip operation failed.
> How do you run the simple recursive zip? That is what I am asking...
> God Bless!
> On Thu, Feb 28, 2008 at 8:03 PM, DM Smith <dmsmith555 at yahoo.com> wrote:
>> I'm not sure what you mean by zip? A module can be compressed with
>> mod2zmod. This program will compress the module internally. Both Sword
>> and JSword can read them. JSword at this time cannot create modules of
>> any type.
>> We also package the modules parts into a zip file, but that just a
>> simple recursive zip.
>> Hope this helps.
>> In Him,
>> On Feb 28, 2008, at 4:43 PM, NF wrote:
>> > Hi,
>> > I have being preparing make modules for sword platform.
>> > One thing is bugging me: my zip file does not work!
>> > I used 7zip and also winzip to zip the conf and moudle files. I can
>> > tell the the layout of the files are the same as what I downloaded
>> > from sword rawzip folder.
>> > I tried to use jsword, it tries to create mods.d as file, also, other
>> > directories as file, instead of directory.
>> > So instead of telling me to send in the files, can anyone tell me how
>> > you guys zip the modules?
>> > thanks!
>> > ZJ LI
>> > _______________________________________________
>> > sword-devel mailing list: sword-devel at crosswire.org
>> > http://www.crosswire.org/mailman/listinfo/sword-devel
>> > Instructions to unsubscribe/change your settings at above page
>> sword-devel mailing list: sword-devel at crosswire.org
>> Instructions to unsubscribe/change your settings at above page
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sword-devel