Login | Register
My pages Projects Community openCollabNet

Plugin的发布规范

作者:limodou
联系:chatme@263.net
日期:2004-07-23
版本:plugin_spec.txt,v 1.1 2004/07/23 17:28:32 limodou Exp
主页:http://newedit.tigris.org/
BLOG:http://www.donews.net/limodou
版权:GPL

说明

每一个plugin都应发布到plugins目录下,需要提供一个说明文件,如:plugin.pin,和一个plugin程序。如果plugin 带有自已编写的其它模块,可以放在任何地方,但在plugin应可以访问得到。建议除了上述两个文件外,将其它文件放在 plugins目录的一个子目录下,子目录名可以为plugin的名字,如:

plugins
  \------myplugin.pin
  \------myplugin.py
  \------myplugin
         \---other files
         ...

.pin的作用是作为一个插件的标识文件,内容可以为空,如果不为空应包括以下信息:

[info]
author=xxx
date=xxx
version=xxx
description=xxx
others...

其中,author, date, version, description必须要有,但内容可以为空。其它你可以自行增加。

[返回]