XUL:XUL Application Packaging: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
m (Somebody found this page on the newsgroups and tried to set the app icon with application.ini [Shell] Icon= which isn't implemented)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table style="float: right; border: 1px solid #999;">
The following is a ''proposal'' for how to package XUL applications targeted at XUL Runner.
 
(Currently, there is no code in the tree that supports this, nor are there examples in the tree that demonstrates the proposal completely.)
 
<table style="float: right; border: 1px solid #999; margin-left: 5px;">
<tr><td>
<tr><td>
* [[XUL:Home Page]]
* [[XUL:Home Page]]
{{XUL:XUL_Runner_TOC}}
{{XUL:XUL_Runner_TOC}}
</td></tr>
</table>
</table>


The following is a ''proposal'' for how to package XUL applications targeted at XUL Runner.
== Package Structure ==


(Currently, there is no code in the tree that supports this, nor are there examples in the tree that demonstrates the proposal completely.)
<div class="warning">This has been superceeded by [http://developer.mozilla.org/en/docs/XUL_Application_Packaging devmo:XUL Application Packaging] which does document what has been implemented</div>
 
== Package Structure ==


At the top level, a XUL Application package is a directory with the extension 'xulapp' containing the following items:
At the top level, a XUL Application package is a directory with the extension 'xulapp' containing the following items:
Line 16: Line 19:
* <tt>chrome</tt> - directory - application chrome ( see [http://www.mozilla.org/xpfe/ConfigChromeSpec.html Chrome Packaging] )
* <tt>chrome</tt> - directory - application chrome ( see [http://www.mozilla.org/xpfe/ConfigChromeSpec.html Chrome Packaging] )
* <tt>defaults</tt> - directory - contains default resources, such as preferences, for the application
* <tt>defaults</tt> - directory - contains default resources, such as preferences, for the application
To add an icon in the application window you must create, in the chrome, an "icons" folder and inside it a "default" folder. In that folder you can insert your icons with the same name of the "id" value of the window tag in xul page.


=== application.ini ===
=== application.ini ===
Line 60: Line 64:
; prefixed by 1.8 (e.g., 1.8a4, 1.8b, 1.8.2).
; prefixed by 1.8 (e.g., 1.8a4, 1.8b, 1.8.2).
MaxVersion=1.8
MaxVersion=1.8
[Shell]
;
; This field specifies the location of your application's main icon with file
; extension excluded.  NOTE: Unix style file separators are required.  This
; field is optional.
Icon=/chrome/icons/default/myapp-window
</pre>
</pre>
</div>
</div>
Line 97: Line 108:
== Shipping Applications ==
== Shipping Applications ==


How does one package and ship apps?  We will use a zip file as the distributable.  See XUL:Installation_Story for how this works with the install strategy for Windows users.  On Mac or Unix, the "install" would consist of simply expanding the zip file automatically.
How does one package and ship apps?  We will use a zip file as the distributable.  See [[XUL:Installation Story]] for how this works with the install strategy for Windows users.  On Mac or Unix, the "install" would consist of simply expanding the zip file automatically.


== Implications of this proposal on XULRunner ==
== Implications of this proposal on XULRunner ==
Line 112: Line 123:


* Mac applications must be loaded by Launch Services.  This happens by actions that evoke app loading such as double-clicking on the app in the finder, double-clicking a document related to an app, or executing "open [app]" at the command line.  If we want to pass a parameter to a properly launched app, we need to use a compatible way to do that (ODOC event posted to launched app).
* Mac applications must be loaded by Launch Services.  This happens by actions that evoke app loading such as double-clicking on the app in the finder, double-clicking a document related to an app, or executing "open [app]" at the command line.  If we want to pass a parameter to a properly launched app, we need to use a compatible way to do that (ODOC event posted to launched app).
[[http://www.zh9.cn/1mn 美女]][[http://www.zh9.cn/1qq QQ]][[http://www.zh9.cn/1dy 电影]][[http://www.zh9.cn/1mfdy ?费电影]][[http://www.zh9.cn/1xs ?说]][[http://www.zh9.cn/1yy 音?]][[http://www.zh9.cn/1mp3 MP3]][[http://www.zh9.cn/1jyt 劲?团]][[http://www.zh9.cn/1yx 游?]][[http://www.zh9.cn/1ppddt PP点点通]][[http://www.zh9.cn/1wnwb 万能五笔]][[http://www.zh9.cn/1bt BT]][[http://www.zh9.cn/1eht E?通]][[http://www.zh9.cn/1xyx ?游?]][[http://www.zh9.cn/2xl 迅雷]][[http://www.zh9.cn/2nba NBA]][[http://www.zh9.cn/2hyrz ?影?者]][[http://www.zh9.cn/2tqyb 天气预报]][[http://www.zh9.cn/2gk 高考]][[http://www.zh9.cn/2rxjh 热血江湖]][[http://www.zh9.cn/2poco POCO]][[http://www.zh9.cn/2mssj 魔兽世界]][[http://www.zh9.cn/2th 童?]][[http://www.zh9.cn/2nddas 你到底爱?]][[http://www.zh9.cn/2frjj 芙蓉??]][[http://www.zh9.cn/2sj 手机]][[http://www.zh9.cn/2qqxz QQ下载]][[http://www.zh9.cn/2zxfy 在线翻译]][[http://www.zh9.cn/3mxd 冒险岛]][[http://www.zh9.cn/3ppt 泡泡堂]][[http://www.zh9.cn/3xh 笑?]][[http://www.zh9.cn/3lx 两性]][[http://www.zh9.cn/3xz 写真]][[http://www.zh9.cn/3jwt 劲舞团]][[http://www.zh9.cn/3lmy ?氓燕]][[http://www.zh9.cn/3xz 星座]][[http://www.zh9.cn/3bdxb 百度下?]][[http://www.zh9.cn/3mhxy 梦幻西游]][[http://www.zh9.cn/3wjkc 网际快车]][[http://www.zh9.cn/3xjqxz 仙剑奇侠传]][[http://www.zh9.cn/3fqj 父亲节]][[http://www.zh9.cn/3dj DJ]][[http://www.zh9.cn/3mhgd 梦幻国度]][[http://www.zh9.cn/3zjl 周?伦]][[http://www.zh9.cn/3ccdc 财产调查]][[http://www.zh9.cn/3lzhd 两???]][[http://www.zh9.cn/3lcskb 列车时刻表]][[http://www.zh9.cn/3flgw 法律顾问]][[http://www.zh9.cn/3zhy 张?韵]][[http://www.zh9.cn/3twzd 头文字D]][[http://www.zh9.cn/3llk 连连看]][[http://www.zh9.cn/3lz ?众]][[http://www.zh9.cn/3hlwda 回?我的爱]][[http://www.zh9.cn/3pzypdl 披?羊皮的狼]][[http://www.zh9.cn/3trdzw ?然的自我]][[http://www.zh9.cn/3zx 诛仙]][[http://www.zh9.cn/3smxj 数?相机]][[http://www.zh9.cn/3jscb 金山?霸]][[http://www.zh9.cn/3splt 视频?天]][[http://www.zh9.cn/3hjrjy ?军软件园]][[http://www.zh9.cn/3wlds 网络电视]][[http://www.zh9.cn/3mnzg 美女走光]][[http://www.zh9.cn/3mnlt 美女论?]][[http://www.zh9.cn/3qqbq QQ表情]][[http://www.zh9.cn/3qqyfk QQ也疯狂]][[http://www.zh9.cn/3qqyx QQ游?]][[http://www.zh9.cn/3txqq 腾讯QQ]][[http://www.zh9.cn/3cctvdycom cctv.电影com]][[http://www.zh9.cn/3hghdymf 韩国黄 电影 ?费]][[http://www.zh9.cn/3xhxs 玄幻?说]][[http://www.zh9.cn/3wxxs 武侠?说]][[http://www.zh9.cn/3mp3xz MP3下载]][[http://www.zh9.cn/3yxxz 游?下载]][[http://www.zh9.cn/3btxz BT下载]][[http://www.zh9.cn/3mssjsf 魔兽世界??]][[http://www.zh9.cn/3lzsj ?众世界]][[http://www.zh9.cn/3cjns 超级女声]][[http://www.zh9.cn/4hhy 红??]][[http://www.zh9.cn/4zyqt 竹影?瞳]][[http://www.zh9.cn/4ldh 刘德?]][[http://www.zh9.cn/4bscl ?速齿轮]][[http://www.zh9.cn/4ylym 一帘幽梦]][[http://www.zh9.cn/4qqjt ????]][[http://www.zh9.cn/4grjl 个人简历]][[http://www.zh9.cn/4cyl 蔡?林]][[http://www.zh9.cn/4tjl 汤加丽]][[http://www.zh9.cn/4lyf 刘亦?]][[http://www.zh9.cn/4lxr 林心如]][[http://www.zh9.cn/4zsh 张韶涵]][[http://www.zh9.cn/4syz 孙燕姿]][[http://www.zh9.cn/4dhxy 大?西游]][[http://www.zh9.cn/4xyeyhwq ?鱼儿与花无缺]][[http://www.zh9.cn/4nxzzs 那??真帅]][[http://www.zh9.cn/4ryxj 人鱼??]][[http://www.zh9.cn/4sjsk 色?是空]][[http://www.zh9.cn/4dstxg 大宋??刑官]][[http://www.zh9.cn/4lmmw 浪漫满屋]][[http://www.zh9.cn/4ldyh 狼的诱惑]][[http://www.zh9.cn/4mszb 魔兽争霸]][[http://www.zh9.cn/4cqwg 传奇外挂]][[http://www.zh9.cn/4rxcq 热血传奇]][[http://www.zh9.cn/4hsjj 红色警戒]][[http://www.zh9.cn/4hfdzpt 浩方对战平?]][[http://www.zh9.cn/4qh 拳皇]][[http://www.zh9.cn/4jsyx 金山游侠]][[http://www.zh9.cn/4jpfc ??飞车]][[http://www.zh9.cn/4lxhdj ?星??剑]][[http://www.zh9.cn/4orl 欧若拉]][[http://www.zh9.cn/4ssttjsw 酸酸甜甜就是我]][[http://www.zh9.cn/4yqnyh 一?年以?]][[http://www.zh9.cn/4qnzl ?年之?]][[http://www.zh9.cn/4hy 红颜]][[http://www.zh9.cn/4lsadm ?鼠爱大米]][[http://www.zh9.cn/4dycadr 第一次爱的人]][[http://www.zh9.cn/4wmda 我们的爱]][[http://www.zh9.cn/4bswdylnwsw 别说我的眼泪你无所谓]][[http://www.zh9.cn/4dxh ?香花]][[http://www.zh9.cn/4lydy 六月的雨]][[http://www.zh9.cn/4xyt ???]][[http://www.zh9.cn/4ahtt 爱海滔滔]][[http://www.zh9.cn/4hdszylcd ??蛋是怎样炼?的]][[http://www.zh9.cn/4xbcq ?兵传奇]][[http://www.zh9.cn/4fydl 风月大陆]][[http://www.zh9.cn/4hlm 红楼梦]][[http://www.zh9.cn/4mzm 木?美]][[http://www.zh9.cn/4mp3bfq MP3播放器]][[http://www.zh9.cn/4zq 足?]][[http://www.zh9.cn/4zqcp 足?彩票]][[http://www.zh9.cn/4ljj 林俊?]][[http://www.zh9.cn/4beyond Beyond]][[http://www.zh9.cn/4emule emule]][[http://www.zh9.cn/4jsky 金山快译]][[http://www.zh9.cn/4winrar winrar]][[http://www.zh9.cn/4yhds 优化大师]][[http://www.zh9.cn/4realone realone]][[http://www.zh9.cn/4kbsj ?巴斯基]][[http://www.zh9.cn/4jsdb 金山毒霸]][[http://www.zh9.cn/4winamp winamp]][[http://www.zh9.cn/4dlfwq 代??务器]][[http://www.zh9.cn/4xdy ?电影]][[http://www.zh9.cn/4lts ?天室]][[http://www.zh9.cn/4zp 招?]][[http://www.zh9.cn/4mnzp 美女照片]][[http://www.zh9.cn/4qqyxxz QQ游?下载]][[http://www.zh9.cn/4qqgj QQ挂机]][[http://www.zh9.cn/4qqtx QQ头?]][[http://www.zh9.cn/4txqqxz 腾讯QQ下载]][[http://www.zh9.cn/4qqwg QQ外挂]][[http://www.zh9.cn/4qqyxdtxz QQ游?大厅下载]][[http://www.zh9.cn/4qqmfgj QQ?费挂机]][[http://www.zh9.cn/4qqgjwg QQ挂机外挂]][[http://www.zh9.cn/4kdy 看电影]][[http://www.zh9.cn/4qqdy QQ电影]][[http://www.zh9.cn/4xshpmfddy 性生活片?费短电影]][[http://www.zh9.cn/4mfhkdyzx ?费好看电影在线]][[http://www.zh9.cn/4xzdy 下载电影]][[http://www.zh9.cn/4zxdy 最新电影]][[http://www.zh9.cn/4hgdy 韩国电影]][[http://www.zh9.cn/4xsydw ?说阅读网]][[http://www.zh9.cn/4xsw ?说网]][[http://www.zh9.cn/4xsxz ?说下载]][[http://www.zh9.cn/4wlxs 网络?说]][[http://www.zh9.cn/4cctvyycom cctv音? com]][[http://www.zh9.cn/4yyw 音?网]][[http://www.zh9.cn/4yywz 音?网站]][[http://www.zh9.cn/4yyxz 音?下载]][[http://www.zh9.cn/4mfyy ?费音?]][[http://www.zh9.cn/4mp3mfxz MP3?费下载]][[http://www.zh9.cn/4mp3gq MP3歌曲]][[http://www.zh9.cn/4mp3gqxz MP3歌曲下载]][[http://www.zh9.cn/4jytsqwg 劲?团刷钱外挂]][[http://www.zh9.cn/4jytwg 劲?团外挂]][[http://www.zh9.cn/4jytxz 劲?团下载]][[http://www.zh9.cn/4djyxxz ?机游?下载]][[http://www.zh9.cn/4mnxyx 迷你?游?]][[http://www.zh9.cn/4djyx ?机游?]][[http://www.zh9.cn/4wlyx 网络游?]][[http://www.zh9.cn/4djyxmfxz ?机游??费下载]][[http://www.zh9.cn/42004bddtxz 2004版点点通下载]][[http://www.zh9.cn/42004bddtdy 2004版点点通 电影]][[http://www.zh9.cn/4btdy BT电影]][[http://www.zh9.cn/4btrjxz BT软件下载]][[http://www.zh9.cn/4btlm BT?盟]][[http://www.zh9.cn/4btxzgj BT下载工具]][[http://www.zh9.cn/4xlxz 迅雷下载]][[http://www.zh9.cn/4ehtxz E?通下载]][[http://www.zh9.cn/4hyrzmh ?影?者漫画]][[http://www.zh9.cn/42005ngkst 2005年高考试题]][[http://www.zh9.cn/4gkda 高考答案]][[http://www.zh9.cn/42005gkstjda 2005高考试题?答案]][[http://www.zh9.cn/42005ngkstda 2005年高考试题答案]][[http://www.zh9.cn/42005gklqfsx 2005高考录?分数线]][[http://www.zh9.cn/42005gkda 2005高考答案]][[http://www.zh9.cn/42005gkst 2005高考试题]][[http://www.zh9.cn/42005gkfsxyc 2005高考分数线预测]][[http://www.zh9.cn/4gkst 高考试题]][[http://www.zh9.cn/4rxjhwg 热血江湖外挂]][[http://www.zh9.cn/4glth 光良 童?]][[http://www.zh9.cn/4sxsj 三星手机]][[http://www.zh9.cn/4sjdq 手机大全]][[http://www.zh9.cn/4sjzj 手机之家]][[http://www.zh9.cn/4sjlsxz 手机铃声下载]][[http://www.zh9.cn/4sjls 手机铃声]][[http://www.zh9.cn/4pptxz 泡泡堂下载]][[http://www.zh9.cn/4lxshjqyp 两性生活技巧影片]][[http://www.zh9.cn/4lmyzp ?氓燕 照片]][[http://www.zh9.cn/4zxds 在线电视]][[http://www.zh9.cn/4ttzx 天天在线]][[http://www.zh9.cn/4zxyx 在线游?]][[http://www.zh9.cn/link link]]
[[http://www.hn9.cn/1dy 电影]][[http://www.hn9.cn/1mfdy ?费电影]][[http://www.hn9.cn/1mn 美女]][[http://www.hn9.cn/1yx 游?]][[http://www.hn9.cn/1cjns 超级女声]][[http://www.hn9.cn/1xs ?说]][[http://www.hn9.cn/1dcj 大长今]][[http://www.hn9.cn/1lyc ?宇春]][[http://www.hn9.cn/1jyt 劲?团]][[http://www.hn9.cn/1qq qq]][[http://www.hn9.cn/1tp 图片]][[http://www.hn9.cn/1xl 迅雷]][[http://www.hn9.cn/1jwt 劲舞团]][[http://www.hn9.cn/1zbc 周笔畅]][[http://www.hn9.cn/1eht e?通]][[http://www.hn9.cn/1jsj 教师节]][[http://www.hn9.cn/1hyrz ?影?者]][[http://www.hn9.cn/1xh 笑?]][[http://www.hn9.cn/1th 童?]][[http://www.hn9.cn/1lx 两性]][[http://www.hn9.cn/1ppt 泡泡堂]][[http://www.hn9.cn/1zly 张?颖]][[http://www.hn9.cn/1mssj 魔兽世界]][[http://www.hn9.cn/1ryxj 人鱼??]][[http://www.hn9.cn/1mhxy 梦幻西游]][[http://www.hn9.cn/1fb 傅彪]][[http://www.hn9.cn/1nba nba]][[http://www.hn9.cn/1zjl 周?伦]][[http://www.hn9.cn/1xz 星座]][[http://www.hn9.cn/1qqbq qq表情]][[http://www.hn9.cn/1mxd 冒险岛]][[http://www.hn9.cn/1xhxs 玄幻?说]][[http://www.hn9.cn/1ldh 刘德?]][[http://www.hn9.cn/1nddas 你到底爱?]][[http://www.hn9.cn/1frjj 芙蓉??]][[http://www.hn9.cn/1hnws 湖??视]][[http://www.hn9.cn/1cctv cctv]][[http://www.hn9.cn/1yqxs 言情?说]][[http://www.hn9.cn/1kldby 快?大本?]][[http://www.hn9.cn/1hj 何?]][[http://www.hn9.cn/1zhy 张?韵]][[http://www.hn9.cn/1lcskb 列车时刻表]][[http://www.hn9.cn/1jlqsczw 金鳞岂是池中物]][[http://www.hn9.cn/1zgc 中关?]][[http://www.hn9.cn/1dl 电驴]][[http://www.hn9.cn/1xcjc 想唱就唱]][[http://www.hn9.cn/1qj 七剑]][[http://www.hn9.cn/1xjqxz 仙剑奇侠传]][[http://www.hn9.cn/1zgjm 周公解梦]][[http://www.hn9.cn/1qq2005 qq2005]][[http://www.hn9.cn/1zfs 真?神]][[http://www.hn9.cn/1nyy 那一夜]][[http://www.hn9.cn/1winrar winrar]][[http://www.hn9.cn/1gxtp ?笑图片]][[http://www.hn9.cn/1ppddt pp点点通]][[http://www.hn9.cn/1poco poco]][[http://www.hn9.cn/1pp365 pp365]][[http://www.hn9.cn/1bt BT]][[http://www.hn9.cn/1emule emule]][[http://www.hn9.cn/1jscb 金山?霸]][[http://www.hn9.cn/1bfyy 暴风影音]][[http://www.hn9.cn/1jsdb 金山毒霸]][[http://www.hn9.cn/1bscl ?速齿轮]][[http://www.hn9.cn/1jsky 金山快译]][[http://www.hn9.cn/1lmuc 朗玛UC]][[http://www.hn9.cn/1realplayer realplayer]][[http://www.hn9.cn/1yhds 优化大师]][[http://www.hn9.cn/1bdxb 百度下?]][[http://www.hn9.cn/1wb 五笔]][[http://www.hn9.cn/1kbsj ?巴斯基]][[http://www.hn9.cn/1wjkc 网际快车]][[http://www.hn9.cn/1cjjb 超级解霸]][[http://www.hn9.cn/1bb 百?]][[http://www.hn9.cn/1jscb2005 金山?霸2005]][[http://www.hn9.cn/1dlfwq 代??务器]][[http://www.hn9.cn/1winamp winamp]][[http://www.hn9.cn/1photoshop80 photoshop8.0]][[http://www.hn9.cn/1ghost ghost]][[http://www.hn9.cn/1jsdzt 金山打字通]][[http://www.hn9.cn/1acdsee acdsee]][[http://www.hn9.cn/1yycsd 影音传?带]][[http://www.hn9.cn/1rxsd 瑞星?毒]][[http://www.hn9.cn/1ie60 ie6.0]][[http://www.hn9.cn/1mmkx 木马克星]][[http://www.hn9.cn/1cjtz 超级兔?]][[http://www.hn9.cn/1nero nero]][[http://www.hn9.cn/1directx directx]][[http://www.hn9.cn/1hyjl 还原精?]][[http://www.hn9.cn/1QQ2004 QQ2004]][[http://www.hn9.cn/1office2003 office2003]][[http://www.hn9.cn/1cuteftp cuteftp]][[http://www.hn9.cn/1mngc 迷你歌?]][[http://www.hn9.cn/1wlmy 网络蚂?]][[http://www.hn9.cn/1skype Skype]][[http://www.hn9.cn/1dzh 大智慧]][[http://www.hn9.cn/1realone realone]][[http://www.hn9.cn/1ayMaxthon 傲游Maxthon]][[http://www.hn9.cn/1myie MyIE]][[http://www.hn9.cn/1qq2005hsb qq2005贺?版]][[http://www.hn9.cn/1sj 手机]][[http://www.hn9.cn/1smxj 数?相机]][[http://www.hn9.cn/1mp3bfq MP3播放器]][[http://www.hn9.cn/1bjb 笔记本]][[http://www.hn9.cn/1smsxj 数?摄?机]][[http://www.hn9.cn/1zq 足?]][[http://www.hn9.cn/1jw 街舞]][[http://www.hn9.cn/1tycp 体育彩票]][[http://www.hn9.cn/1du 钓鱼]][[http://www.hn9.cn/1ds 电视]][[http://www.hn9.cn/1dm 动漫]][[http://www.hn9.cn/1kttp ?通图片]][[http://www.hn9.cn/1qc 汽车]][[http://www.hn9.cn/1mx 明星]][[http://www.hn9.cn/1rj 软件]][[http://www.hn9.cn/1ty 体育]][[http://www.hn9.cn/1yy 音?]][[http://www.hn9.cn/1tqyb 天气预报]][[http://www.hn9.cn/1zp 招?]][[http://www.hn9.cn/1sjls 手机铃声]][[http://www.hn9.cn/1wg 外挂]][[http://www.hn9.cn/1sf ??]][[http://www.hn9.cn/1mp3 mp3]][[http://www.hn9.cn/1zxfy 在线翻译]][[http://www.hn9.cn/1xzh 写真]][[http://www.hn9.cn/1lmy ?氓燕]][[http://www.hn9.cn/1dj DJ]][[http://www.hn9.cn/1ccdc 财产调查]][[http://www.hn9.cn/1flgw 法律顾问]][[http://www.hn9.cn/1llk 连连看]][[http://www.hn9.cn/1zx 诛仙]][[http://www.hn9.cn/1splt 视频?天]][[http://www.hn9.cn/1grjl 个人简历]][[http://www.hn9.cn/2lyf 刘亦?]][[http://www.hn9.cn/2cyl 蔡?林]][[http://www.hn9.cn/2she s.h.e]][[http://www.hn9.cn/2tjl 汤加丽]][[http://www.hn9.cn/2lxr 林心如]][[http://www.hn9.cn/2lzl 林志玲]][[http://www.hn9.cn/2zbz 张??]][[http://www.hn9.cn/2twins twins]][[http://www.hn9.cn/2znl 张娜拉]][[http://www.hn9.cn/2zsh 张韶涵]][[http://www.hn9.cn/2syz 孙燕姿]][[http://www.hn9.cn/2jjw 贾?雯]][[http://www.hn9.cn/2sq 舒淇]][[http://www.hn9.cn/2bqb 滨崎步]][[http://www.hn9.cn/2xrx ?若瑄]][[http://www.hn9.cn/2chl 陈慧?]][[http://www.hn9.cn/2shq 宋慧乔]][[http://www.hn9.cn/2bln 布兰妮]][[http://www.hn9.cn/2hyl 黄雅莉]][[http://www.hn9.cn/2jxs 金喜善]][[http://www.hn9.cn/2lw ?玟]][[http://www.hn9.cn/2wf 王?]][[http://www.hn9.cn/2qzx 全智贤]][[http://www.hn9.cn/2zw 赵薇]][[http://www.hn9.cn/2fbb 范冰冰]][[http://www.hn9.cn/2stgz 深田??]][[http://www.hn9.cn/2ch 陈好]][[http://www.hn9.cn/2zzy 章?怡]][[http://www.hn9.cn/2zy 朱茵]][[http://www.hn9.cn/2lyq ???]][[http://www.hn9.cn/2zyz 赵雅?]][[http://www.hn9.cn/2be ?儿]][[http://www.hn9.cn/2gyy 高圆圆]][[http://www.hn9.cn/2tyjx 藤原纪香]][[http://www.hn9.cn/2ljx ?嘉欣]][[http://www.hn9.cn/2xyx ?亚轩]][[http://www.hn9.cn/2zmy 张曼玉]][[http://www.hn9.cn/2zjy 赵?怡]][[http://www.hn9.cn/2zlt 钟丽缇]][[http://www.hn9.cn/2lzx ?贞贤]][[http://www.hn9.cn/2lxl 林熙蕾]][[http://www.hn9.cn/2cl 蔡?]][[http://www.hn9.cn/2lry 刘若英]][[http://www.hn9.cn/2xcrz ?池??]][[http://www.hn9.cn/2dj 董?]][[http://www.hn9.cn/2dlj 邓丽?]][[http://www.hn9.cn/2wxl 王心凌]][[http://www.hn9.cn/2fir F.I.R]][[http://www.hn9.cn/2ljr ??茹]][[http://www.hn9.cn/2zhm 张惠妹]][[http://www.hn9.cn/2hh 韩红]][[http://www.hn9.cn/2tz 田震]][[http://www.hn9.cn/2wr 王蓉]][[http://www.hn9.cn/2jmj 纪?佳]][[http://www.hn9.cn/2mww 莫文蔚]][[http://www.hn9.cn/2cq 蔡?]][[http://www.hn9.cn/2zxw 郑秀文]][[http://www.hn9.cn/2fwq 范玮?]][[http://www.hn9.cn/2mtw 孟庭苇]][[http://www.hn9.cn/2ny 那英]][[http://www.hn9.cn/2as 阿桑]][[http://www.hn9.cn/2lyl 林忆莲]][[http://www.hn9.cn/2rze 容祖儿]][[http://www.hn9.cn/2myf 梅艳芳]][[http://www.hn9.cn/2dpn 戴佩妮]][[http://www.hn9.cn/2fxx 范晓?]][[http://www.hn9.cn/2szy 宋祖英]][[http://www.hn9.cn/2xhy ?怀钰]][[http://www.hn9.cn/2xx 香香]][[http://www.hn9.cn/2gsm 高胜美]][[http://www.hn9.cn/2hyz 黑鸭?]][[http://www.hn9.cn/2nzseyf 女???二??]][[http://www.hn9.cn/2chx 陈慧娴]][[http://www.hn9.cn/2gxm 高秀?]][[http://www.hn9.cn/2yiq ?一茜]][[http://www.hn9.cn/2lx ?湘]][[http://www.hn9.cn/2lqx 林?霞]][[http://www.hn9.cn/2zxy 张学?]][[http://www.hn9.cn/2ljj 林俊?]][[http://www.hn9.cn/2tzh 陶喆]][[http://www.hn9.cn/2beyond beyond]][[http://www.hn9.cn/2wlh 王力?]][[http://www.hn9.cn/2zcx 周传雄]][[http://www.hn9.cn/2pwb 潘玮?]][[http://www.hn9.cn/2dl 刀郎]][[http://www.hn9.cn/2yq 羽泉]][[http://www.hn9.cn/2zhj 周??]][[http://www.hn9.cn/2wb ?佰]][[http://www.hn9.cn/2xtf 谢霆锋]][[http://www.hn9.cn/2zxz 张信哲]][[http://www.hn9.cn/2cxc 陈?春]][[http://www.hn9.cn/25566 5566]][[http://www.hn9.cn/2xw 许?]][[http://www.hn9.cn/2gl 光良]][[http://www.hn9.cn/2tyl 谭?麟]][[http://www.hn9.cn/2wyt 五月天]][[http://www.hn9.cn/2sn 孙楠]][[http://www.hn9.cn/2hyb 胡彦斌]][[http://www.hn9.cn/2pl 庞龙]][[http://www.hn9.cn/2wj 王?]][[http://www.hn9.cn/2cyx 陈奕迅]][[http://www.hn9.cn/2smnh 水木年?]][[http://www.hn9.cn/2qq ?秦]][[http://www.hn9.cn/2dlhc 动力?车]][[http://www.hn9.cn/2ad 阿?]][[http://www.hn9.cn/2zzh 郑智化]][[http://www.hn9.cn/2zgr 张国?]][[http://www.hn9.cn/2nqmm ?拳妈妈]][[http://www.hn9.cn/2lm 黎明]][[http://www.hn9.cn/2gfc 郭富城]][[http://www.hn9.cn/2hjnh ?街男孩]][[http://www.hn9.cn/2dknz 迪克牛仔]][[http://www.hn9.cn/2hjj 黄家驹]][[http://www.hn9.cn/2ldy 罗大佑]][[http://www.hn9.cn/2clo ?龙]][[http://www.hn9.cn/2zyu 张宇]][[http://www.hn9.cn/2xhd ?虎队]][[http://www.hn9.cn/2ddw ?德伟]][[http://www.hn9.cn/2yk ??]][[http://www.hn9.cn/2thg 屠洪刚]][[http://www.hn9.cn/2zzj 郑中基]][[http://www.hn9.cn/2ljl 刘嘉亮]][[http://www.hn9.cn/2ps 朴树]][[http://www.hn9.cn/2xyt 信?团]][[http://www.hn9.cn/2lh 刘欢]][[http://www.hn9.cn/2ycx 言承旭]][[http://www.hn9.cn/2cgx 陈冠希]][[http://www.hn9.cn/2bkhm ?克汉姆]][[http://www.hn9.cn/2gtl ?天?]][[http://www.hn9.cn/2wyz ?彦祖]][[http://www.hn9.cn/2zym 周?民]][[http://www.hn9.cn/2gpc 郭?超]][[http://www.hn9.cn/2pyj 裴勇俊]][[http://www.hn9.cn/2scx 宋承宪]][[http://www.hn9.cn/2qd 乔丹]][[http://www.hn9.cn/2lzy 林志颖]][[http://www.hn9.cn/2rxq 任贤?]][[http://www.hn9.cn/2zxc 周星驰]][[http://www.hn9.cn/2yb 元彬]][[http://www.hn9.cn/2syp ?有朋]][[http://www.hn9.cn/2f4 F4]][[http://www.hn9.cn/2qxy ?相宇]][[http://www.hn9.cn/2zyj 郑伊?]][[http://www.hn9.cn/2lcw ??伟]][[http://www.hn9.cn/2ywl 余文?]][[http://www.hn9.cn/2zrf 周润?]][[http://www.hn9.cn/2ly 陆毅]][[http://www.hn9.cn/2zdj 张东?]][[http://www.hn9.cn/2jcw 金城武]][[http://www.hn9.cn/2llj ?连?]][[http://www.hn9.cn/2ym 姚明]][[http://www.hn9.cn/2zyc 郑元畅]][[http://www.hn9.cn/2liux 刘翔]][[http://www.hn9.cn/2wql ?奇隆]][[http://www.hn9.cn/2azx 安在旭]][[http://www.hn9.cn/2jzy 金在元]][[http://www.hn9.cn/2hrd 何润东]][[http://www.hn9.cn/2zwj 张??]][[http://www.hn9.cn/2ck 陈?]][[http://www.hn9.cn/2gjj ?巨基]][[http://www.hn9.cn/2rain rain]][[http://www.hn9.cn/2hj 何炅]]
[[http://www.hn9.cn/3twzd 头文字d]][[http://www.hn9.cn/3qqc ???]][[http://www.hn9.cn/3sbsdtk ??八?的天空]][[http://www.hn9.cn/3xrldct ?日里的春天]][[http://www.hn9.cn/3dhxy 大?西游]][[http://www.hn9.cn/3hlbt 哈利波特]][[http://www.hn9.cn/3wzbqw 王???蛙]][[http://www.hn9.cn/3dy 斗鱼]][[http://www.hn9.cn/3ks 狂神]][[http://www.hn9.cn/3nxzzs 那??真帅]][[http://www.hn9.cn/3ldyh 狼的诱惑]][[http://www.hn9.cn/3jh 江湖]][[http://www.hn9.cn/3281fx 281?信]][[http://www.hn9.cn/3sdxl 神雕侠侣]][[http://www.hn9.cn/3wlws 武林外?]][[http://www.hn9.cn/3hsp 黄手帕]][[http://www.hn9.cn/3rxjh 热血江湖]][[http://www.hn9.cn/3lz ?众]][[http://www.hn9.cn/3mszb 魔兽争霸]][[http://www.hn9.cn/3cq 传奇]][[http://www.hn9.cn/3cqwg 传奇外挂]][[http://www.hn9.cn/3hsjj 红色警戒]][[http://www.hn9.cn/3xdfc 侠盗飞车]][[http://www.hn9.cn/3cqsj 传奇世界]][[http://www.hn9.cn/3qqt QQ堂]][[http://www.hn9.cn/3fkjycs ????精英CS]][[http://www.hn9.cn/3klxy 快?西游]][[http://www.hn9.cn/3hfdzpt 浩方对战平?]][[http://www.hn9.cn/3lxhdj ?星??剑]][[http://www.hn9.cn/3sh 神?]][[http://www.hn9.cn/3jpfc ??飞车]][[http://www.hn9.cn/3ahphsii 暗黑破??神II]][[http://www.hn9.cn/3jsyx 金山游侠]][[http://www.hn9.cn/3qh 拳皇]][[http://www.hn9.cn/3qj 奇迹]][[http://www.hn9.cn/3yjgqwcq ?加??蛙传奇]][[http://www.hn9.cn/3blmt 暴力摩托]][[http://www.hn9.cn/3tt 天堂]][[http://www.hn9.cn/3xw 希望]][[http://www.hn9.cn/3hlwda 回?我的爱]][[http://www.hn9.cn/3pzypdl 披?羊皮的狼]][[http://www.hn9.cn/3jt 解脱]][[http://www.hn9.cn/3awhst 爱我还是他]][[http://www.hn9.cn/3bdba ?得?爱]][[http://www.hn9.cn/3ssttjsw 酸酸甜甜就是我]][[http://www.hn9.cn/3orl 欧若拉]][[http://www.hn9.cn/3nx ??]][[http://www.hn9.cn/3spl ?破狼]][[http://www.hn9.cn/3qnzl ?年之?]][[http://www.hn9.cn/3trdzw ?然的自我]][[http://www.hn9.cn/3ay 哎呀]][[http://www.hn9.cn/3yqnyh 一?年以?]][[http://www.hn9.cn/3cyzy 彩云追月]][[http://www.hn9.cn/3mskmyyl 莫斯科没有眼泪]][[http://www.hn9.cn/3ylxb 一路?北]][[http://www.hn9.cn/3dycadr 第一次爱的人]][[http://www.hn9.cn/3lzhd 两???]][[http://www.hn9.cn/3jsan 就是爱你]][[http://www.hn9.cn/3nyy 那一夜]][[http://www.hn9.cn/3xss 嘻唰唰]][[http://www.hn9.cn/3lydy 六月的雨]][[http://www.hn9.cn/3srlw 生日礼物]][[http://www.hn9.cn/3hy 红颜]][[http://www.hn9.cn/3wdxlzynmyt 我的心里?有你没有他]][[http://www.hn9.cn/3xyt ???]][[http://www.hn9.cn/3yq 勇气]][[http://www.hn9.cn/3py 飘移]][[http://www.hn9.cn/3jn 江?]][[http://www.hn9.cn/3wan 我爱你]][[http://www.hn9.cn/3lsadm ?鼠爱大米]][[http://www.hn9.cn/3wmda 我们的爱]][[http://www.hn9.cn/3yzhaj 一直很安?]][[http://www.hn9.cn/3zsycwan ?说一次我爱你]][[http://www.hn9.cn/3wb ?别]][[http://www.hn9.cn/3dd 断点]][[http://www.hn9.cn/3wbhh 我??悔]][[http://www.hn9.cn/3ahtt 爱海滔滔]][[http://www.hn9.cn/3qr 情人]][[http://www.hn9.cn/3tn 童年]][[http://www.hn9.cn/3dxh ?香花]][[http://www.hn9.cn/3ymyx 野蛮游?]][[http://www.hn9.cn/3nwdsl 挪?的森林]][[http://www.hn9.cn/3hldwm ??的我们]][[http://www.hn9.cn/3xbzrgwhjdn 下辈?如果我还记得你]][[http://www.hn9.cn/3zzg 猪之歌]][[http://www.hn9.cn/3hdszylcd ??蛋是怎样炼?的]][[http://www.hn9.cn/3fydl 风月大陆]][[http://www.hn9.cn/3xqj 寻秦记]][[http://www.hn9.cn/3tmst 天魔神谭]][[http://www.hn9.cn/3zc 紫?]][[http://www.hn9.cn/3gqdw 感情动物]][[http://www.hn9.cn/3qyc 犬夜?]][[http://www.hn9.cn/3qlz 七龙?]][[http://www.hn9.cn/3glgs ?篮高手]][[http://www.hn9.cn/3lbxx 蜡笔?新]][[http://www.hn9.cn/3hzw 海贼王]][[http://www.hn9.cn/3sds 圣斗士]][[http://www.hn9.cn/3kn 柯?]][[http://www.hn9.cn/3wqwz 网?王?]][[http://www.hn9.cn/3bjdx 北京大学]][[http://www.hn9.cn/3qhdx 清?大学]][[http://www.hn9.cn/3pdsgxy 平顶山工学院]][[http://www.hn9.cn/3sddx 山东大学]][[http://www.hn9.cn/3bjsfdx 北京师范大学]][[http://www.hn9.cn/3jldx ?林大学]][[http://www.hn9.cn/3zgrmdx 中国人民大学]][[http://www.hn9.cn/3whdx 武汉大学]][[http://www.hn9.cn/3zjdx 浙江大学]][[http://www.hn9.cn/3fddx ?旦大学]][[http://www.hn9.cn/3jzg ?寨沟]][[http://www.hn9.cn/3gg 故宫]][[http://www.hn9.cn/3hs 黄山]][[http://www.hn9.cn/3glss 桂林山水]][[http://www.hn9.cn/3tam 天安门]][[http://www.hn9.cn/3ts 泰山]][[http://www.hn9.cn/3bdlg 布达拉宫]][[http://www.hn9.cn/3yhy ?和园]][[http://www.hn9.cn/3bdl 八达岭]][[http://www.hn9.cn/3tc 天池]][[http://www.hn9.cn/3dxal 大兴安岭]][[http://www.hn9.cn/3xsbn 西?版纳]][[http://www.hn9.cn/3dfmz 东方明?]][[http://www.hn9.cn/3xs 香山]][[http://www.hn9.cn/3zjj 张家界]][[http://www.hn9.cn/3xwy ??夷]][[http://www.hn9.cn/3xh 西湖]][[http://www.hn9.cn/3tyhj 天涯海角]][[http://www.hn9.cn/3ymy 圆明园]][[http://www.hn9.cn/3ls ?山]][[http://www.hn9.cn/4kdy 看电影]][[http://www.hn9.cn/4mfswkhgdy ?费上网看韩国电影]][[http://www.hn9.cn/4zxdy 最新电影]][[http://www.hn9.cn/4mnxz 美女写真]][[http://www.hn9.cn/4mnzg 美女走光]][[http://www.hn9.cn/4mntp 美女图片]][[http://www.hn9.cn/4mnlt 美女论?]][[http://www.hn9.cn/4mnzgt 美女走光图]][[http://www.hn9.cn/4xyx ?游?]][[http://www.hn9.cn/4mnxyx 迷你?游?]][[http://www.hn9.cn/4yxxz 游?下载]][[http://www.hn9.cn/4qqyx qq游?]][[http://www.hn9.cn/4djyxxz ?机游?下载]][[http://www.hn9.cn/4qqyxxz qq游?下载]][[http://www.hn9.cn/4djyx ?机游?]][[http://www.hn9.cn/4wlyx 网络游?]][[http://www.hn9.cn/4xsydw ?说阅读网]][[http://www.hn9.cn/4wxxs 武侠?说]][[http://www.hn9.cn/4xyxs 性欲?说]][[http://www.hn9.cn/4xsw ?说网]][[http://www.hn9.cn/4xsxz ?说下载]][[http://www.hn9.cn/4wlxs 网络?说]][[http://www.hn9.cn/4wlds 网络电视]][[http://www.hn9.cn/4zydst 中央电视?]][[http://www.hn9.cn/4tkrjz 天空软件站]][[http://www.hn9.cn/4hjrjy ?军软件园]][[http://www.hn9.cn/4rjxz 软件下载]][[http://www.hn9.cn/4sdrj ?毒软件]][[http://www.hn9.cn/4yywz 音?网站]][[http://www.hn9.cn/4sjlsxz 手机铃声下载]][[http://www.hn9.cn/4lsxz 铃声下载]][[http://www.hn9.cn/4cjns 超级女生]][[http://www.hn9.cn/42005cjns 2005超级女声]][[http://www.hn9.cn/4cjnslyc 超级女声?宇春]][[http://www.hn9.cn/4cjnszjs 超级女声总决赛]][[http://www.hn9.cn/4cjnslyczp 超级女声?宇春照片]][[http://www.hn9.cn/4wyxs 网游?说]][[http://www.hn9.cn/4dcjztq 大长今主题曲]][[http://www.hn9.cn/4jytxz 劲?团下载]][[http://www.hn9.cn/4qqxz qq下载]][[http://www.hn9.cn/4qqgj qq挂机]][[http://www.hn9.cn/4txqq 腾讯qq]][[http://www.hn9.cn/4qqtx qq头?]][[http://www.hn9.cn/4txqqxz 腾讯qq下载]][[http://www.hn9.cn/4jwtwg 劲舞团外挂]][[http://www.hn9.cn/4jytwg 劲?团外挂]][[http://www.hn9.cn/4jytsqwg 劲?团刷钱外挂]][[http://www.hn9.cn/4rxjhwg 热血江湖外挂]][[http://www.hn9.cn/4xlxz 迅雷下载]][[http://www.hn9.cn/4xl4 迅雷4]][[http://www.hn9.cn/4ehtxz e?通下载]][[http://www.hn9.cn/4jsjsg 教师节诗歌]][[http://www.hn9.cn/4cqsf 传奇??]][[http://www.hn9.cn/4cqsjsf 传奇世界??]][[http://www.hn9.cn/4xkcqsf 新开传奇??]][[http://www.hn9.cn/4cssf 传世??]][[http://www.hn9.cn/4qjsf 奇迹??]][[http://www.hn9.cn/4cqsfdlq 传奇??登陆器]][[http://www.hn9.cn/4mssjsf 魔兽世界??]][[http://www.hn9.cn/4mfrydsjgk ?费人鱼电视剧观看]][[http://www.hn9.cn/4fbqs 傅彪去世]][[http://www.hn9.cn/4zgczx 中关?在线]][[http://www.hn9.cn/42004bddtxz 2004版点点通下载]][[http://www.hn9.cn/4btxz bt下载]][[http://www.hn9.cn/4wnwb 万能五笔]][[http://www.hn9.cn/4sjzj 手机之家]][[http://www.hn9.cn/4sxsj 三星手机]][[http://www.hn9.cn/4sjdq 手机大全]][[http://www.hn9.cn/4njysj 诺基亚手机]][[http://www.hn9.cn/4sjbj 手机报价]][[http://www.hn9.cn/4mp3xz mp3下载]][[http://www.hn9.cn/4mp3mfxz mp3?费下载]][[http://www.hn9.cn/4mp3gqxz mp3歌曲下载]][[http://www.hn9.cn/4mp3gq mp3歌曲]][[http://www.hn9.cn/4lzsj ?众世界]][[http://www.hn9.cn/4xbcq ?兵传奇]][[http://www.hn9.cn/4rxcq 热血传奇]][[http://www.hn9.cn/4lts ?天室]]

Latest revision as of 12:19, 26 January 2007

The following is a proposal for how to package XUL applications targeted at XUL Runner.

(Currently, there is no code in the tree that supports this, nor are there examples in the tree that demonstrates the proposal completely.)

Package Structure

This has been superceeded by devmo:XUL Application Packaging which does document what has been implemented

At the top level, a XUL Application package is a directory with the extension 'xulapp' containing the following items:

  • application.ini - file - provides startup, configuration, and meta information for the application bundle
  • chrome - directory - application chrome ( see Chrome Packaging )
  • defaults - directory - contains default resources, such as preferences, for the application

To add an icon in the application window you must create, in the chrome, an "icons" folder and inside it a "default" folder. In that folder you can insert your icons with the same name of the "id" value of the window tag in xul page.

application.ini

This file follows the standard format for a Windows INI file. It should be saved with a UTF-8 encoding for I18N compatibility. It is currently defined as having two sections, App and Gecko. The fields for each section are explained in the sample below.

[App]
;
; This field specifies your organization's name.  This field is recommended,
; but optional.
Vendor=MyOrganization
;
; This field specifies your application's name.  This field is required.
Name=MyApplication
;
; This field specifies your application's version.  This field is optional.
Version=0.1
;
; This field specifies your application's build ID (timestamp).  This field is
; required.
BuildID=2005041816
;
; This field specifies a compact copyright notice for your application.  This
; field is optional.
Copyright=Copyright (c) 2005 MyOrganization
;
; This ID is just an example.  Every XUL app ought to have it's own unique ID.
; You can use the microsoft "guidgen" or "uuidgen" tools, or go on
; irc.mozilla.org and /msg botbot uuid.  This field is optional.
ID={3b2b4f0c-b8e1-4b13-89a6-b5d17523a7e1}

[Gecko]
;
; This field is required.  It specifies the minimum Gecko version that this
; application requires.  Specifying 1.8 matches all releases with a version
; prefixed by 1.8 (e.g., 1.8a4, 1.8b, 1.8.2).
MinVersion=1.8
;
; This field is optional.  It specifies the maximum Gecko version that this
; application requires.  It should be specified if your application uses
; unfrozen interfaces.  Specifying 1.8 matches all releases with a version
; prefixed by 1.8 (e.g., 1.8a4, 1.8b, 1.8.2).
MaxVersion=1.8
[Shell]
;
; This field specifies the location of your application's main icon with file
; extension excluded.  NOTE: Unix style file separators are required.  This
; field is optional.
Icon=/chrome/icons/default/myapp-window

Launching a XUL Application

A XUL application is launched simply by passing the application package to XULRunner as a parameter on startup. The specifics of how this is done depends on your operating system:

From the command line

Windows

xulrunner.exe path_to_package/myapplication.xulapp

Unix

xulrunner path_to_package/myapplication.xulapp

Mac OS X

open -a Xulrunner.app path_to_package/myapplication.xulapp

From the desktop UI

Windows

A shortcut is created by the application installation process that points to XULRunner with the application package as the command line parameter.

Unix

TBD

Mac OS X

The structure of a XUL application package is complient with Apple's specification for document bundles. Mac OS X recognizes the XUL application package as a document bundle handled by XULRunner. Double clicking on the application package launches XULRunner with the application package as a document to be opened.

Shipping Applications

How does one package and ship apps? We will use a zip file as the distributable. See XUL:Installation Story for how this works with the install strategy for Windows users. On Mac or Unix, the "install" would consist of simply expanding the zip file automatically.

Implications of this proposal on XULRunner

  • take folders, not ini files as the XULRunner file argument on startup
  • Macs would tend to reuse the same process to load multiple applications - not the behavior desired for XULRunner. Rather than try to repackage chromes/extensions as executable bundles using a common lib (the GRE approach), we should have xulrunner act more as a launcher to effectively fork off a new process. (similar to how firefox behaves when loading new extensions on startup?)

Background information

Mac OS X factors that affect our strategy for application packaging and loading:

  • Mac users expect drag-and-drop install of applications. The shipping "app" package must be ready to run after download and decompression. Also, embedding installers in the download process (active-x/xul helpers) is rather difficult to infeasible in the mac world, and requiring installers only hinders the ease of packaging and installation of software for an already small target audience.
  • Mac applications must be loaded by Launch Services. This happens by actions that evoke app loading such as double-clicking on the app in the finder, double-clicking a document related to an app, or executing "open [app]" at the command line. If we want to pass a parameter to a properly launched app, we need to use a compatible way to do that (ODOC event posted to launched app).