<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    簡(jiǎn)易語(yǔ)言

    數(shù)字溝通

     

    打包——izpack(2)

     

    現(xiàn)在我們接著玩上次的試驗(yàn)結(jié)果,雙擊生成的install.jar運(yùn)行安裝,如下圖:


    lzPack1-1

    下一步如圖:(你發(fā)現(xiàn)和lzPack本身的安裝過(guò)程和界面是一樣的,不過(guò)也已經(jīng)夠漂亮了,是吧)(以后都是下一步的圖)


    lzPack1-2


    圖lzPack1-3


    圖lzPack1-4


    圖lzPack1-5


    圖lzPack1-6

    圖lzPack1-7


    圖lzPack1-8

      點(diǎn)擊Done完成安裝

      看看我們sample的結(jié)構(gòu)(即要安裝的軟件)


    lzPack1-9

      看看安裝好的文件結(jié)構(gòu)


    lzPack1-10

    少了一個(gè)文件listener,多了一個(gè)文件uninstaller,進(jìn)入uninstaller雙擊uninstaller.jar就看到卸載界面了(超簡(jiǎn)單的界面,就不貼了)。我們?cè)诨仡^看看那個(gè)配置文件install.xml,如下:

    <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

    - <!--

     
        A sample installation file.
        Use it as a base for your own installers :-)
        
        To compile it :
        - go in the bin directory where you installed IzPack
        - call "compile ../sample/install.xml -b ../sample"

      -->

    - <installation version="1.0">

    - <!--

     
            The info section.
            The meaning of the tags should be natural ...
        

      -->

    - <info>

      <appname>Sample Installation</appname>

      <appversion>1.4 beta 666</appversion>

    - <authors>

      <author name="JPz" email="jpz@superman.org" />

      <author name="Hidden Man" email="hidden@hisdomain.com" />

      </authors>

      <url>http://www.anotherworld-inspace-website.net/</url>

      </info>

    - <!--

     
            The gui preferences indication.
            Sets the installer window to 640x480. It will not be able to change the size.
        

      -->

      <guiprefs width="640" height="480" resizable="no" />

    - <!--

     
            The locale section.
            Asks here to include the English and French langpacks.
        

      -->

    - <locale>

      <langpack iso3="eng" />

      <langpack iso3="fra" />

      </locale>

    - <!--

     
            The resources section.
            The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
        

      -->

    - <resources>

      <res id="LicencePanel.licence" src="Licence.txt" />

      <res id="InfoPanel.info" src="Readme.txt" />

      </resources>

    - <!--

     
            The panels section.
            We indicate here which panels we want to use. The order will be respected.
        

      -->

    - <panels>

      <panel classname="HelloPanel" />

      <panel classname="InfoPanel" />

      <panel classname="LicencePanel" />

      <panel classname="TargetPanel" />

      <panel classname="PacksPanel" />

      <panel classname="InstallPanel" />

      <panel classname="FinishPanel" />

      </panels>

    - <!--

     
            The packs section.
            We specify here our packs.
        

      -->

    - <packs>

    - <pack name="Base" required="yes">

      <description>The base files</description>

      <file src="Readme.txt" targetdir="$INSTALL_PATH" />

      <file src="Licence.txt" targetdir="$INSTALL_PATH" />

      <file src="script.bat" targetdir="$INSTALL_PATH" />

      <parsable targetfile="$INSTALL_PATH/script.bat" />

    - <!--

     The file will be parsed 

      -->

      </pack>

    - <pack name="Docs" required="no">

      <description>The documentation</description>

      <file src="doc" targetdir="$INSTALL_PATH" />

    - <!--

     Reccursive adding 

      -->

      </pack>

    - <pack name="Sources" required="no">

      <description>The sources</description>

      <file src="src" targetdir="$INSTALL_PATH" />

      </pack>

      </packs>

      </installation>

     我算它是七段,第一段

    <installation version="1.0">

     聲明安裝的版本

    第二段

    <info>

      <appname>Sample Installation</appname>

      <appversion>1.4 beta 666</appversion>

    - <authors>

      <author name="JPz" email="jpz@superman.org" />

      <author name="Hidden Man" email="hidden@hisdomain.com" />

      </authors>

      <url>http://www.anotherworld-inspace-website.net/</url>

      </info>

     聲明軟件的基本信息:名稱、版本、各個(gè)作者和聯(lián)系方式、公司主頁(yè)。對(duì)應(yīng)圖lzPack1-2

    第三段

    <guiprefs width="640" height="480" resizable="no" />

    設(shè)置安裝導(dǎo)航的寬高等屬性。

    第四段

    <locale>

      <langpack iso3="eng" />

      <langpack iso3="fra" />

      </locale>

     語(yǔ)言選擇,對(duì)應(yīng)圖lzPack1-1

    第五段

    <resources>

      <res id="LicencePanel.licence" src="Licence.txt" />

      <res id="InfoPanel.info" src="Readme.txt" />

      </resources>

     提供兩個(gè)資源給客戶閱讀,對(duì)應(yīng)兩個(gè)界面,圖lzPack1-3lzPack1-4。分別為軟件說(shuō)明和基本條款。

    第六段

    <panels>

      <panel classname="HelloPanel" />

      <panel classname="InfoPanel" />

      <panel classname="LicencePanel" />

      <panel classname="TargetPanel" />

      <panel classname="PacksPanel" />

      <panel classname="InstallPanel" />

      <panel classname="FinishPanel" />

      </panels>

     說(shuō)明順序下來(lái)都經(jīng)過(guò)那些界面。

    第七段

    <packs>

    - <pack name="Base" required="yes">

      <description>The base files</description>

      <file src="Readme.txt" targetdir="$INSTALL_PATH" />

      <file src="Licence.txt" targetdir="$INSTALL_PATH" />

      <file src="script.bat" targetdir="$INSTALL_PATH" />

      <parsable targetfile="$INSTALL_PATH/script.bat" />

    - <!--

     The file will be parsed 

      -->

      </pack>

    - <pack name="Docs" required="no">

      <description>The documentation</description>

      <file src="doc" targetdir="$INSTALL_PATH" />

    - <!--

     Reccursive adding 

      -->

      </pack>

    - <pack name="Sources" required="no">

      <description>The sources</description>

      <file src="src" targetdir="$INSTALL_PATH" />

      </pack>

      </packs>

      提供了要復(fù)制的文件夾結(jié)構(gòu),由<packs>標(biāo)簽包括

      共有三個(gè)包,每個(gè)包由<pack>標(biāo)簽標(biāo)識(shí) name=”base” 的包為基本包,包括所有文件和文件夾的文件夾,其下包括三個(gè)文件。$INSTALL_PATH即安裝路徑,由用戶給出

      包Docs 是文件夾doc

      <file >元素標(biāo)明文件或文件夾,src屬性為文件或文件夾名,targetdir屬性為要放到的路徑

      包Sources是文件夾src

      整個(gè)文件結(jié)構(gòu)和關(guān)系就由最后這一段來(lái)闡釋。

        另外,包<pack>還可以有其他的用途,下一節(jié)是個(gè)較實(shí)用的實(shí)例,你會(huì)看到它的用途,要不我們打的包都和izpack一樣光禿禿的,沒(méi)快捷鍵,沒(méi)環(huán)境變量,在實(shí)踐中我們慢慢發(fā)現(xiàn)光明,原來(lái)有趣的東西等著我們?nèi)ヌ剿鳌?/span>



    一種更好的態(tài)度,更好的學(xué)習(xí)、思維方式。它會(huì)是網(wǎng)絡(luò)極佳的生存方式,你喜歡就對(duì)。

    posted on 2008-11-24 20:01 yangyusong 閱讀(2207) 評(píng)論(0)  編輯  收藏 所屬分類: 打包


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     

    導(dǎo)航

    統(tǒng)計(jì)

    常用鏈接

    留言簿(3)

    隨筆分類

    隨筆檔案

    文章分類

    搜索

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 国产美女精品久久久久久久免费| 亚洲精品A在线观看| 亚洲AV色无码乱码在线观看| 精品97国产免费人成视频 | 老汉色老汉首页a亚洲| 在线亚洲午夜理论AV大片| 亚洲熟妇无码一区二区三区导航| 免费又黄又爽的视频| 免费观看黄网站在线播放| 亚洲国产精品无码中文lv| 国产亚洲?V无码?V男人的天堂| 性色av免费观看| 日本最新免费网站| 久久国产精品免费专区| 国产亚洲精品免费视频播放| 亚洲精品白色在线发布| 狠狠久久永久免费观看| 久草视频在线免费| 日韩免费无码一区二区三区 | 四虎影视免费在线| baoyu777永久免费视频| 免费精品国自产拍在线播放 | 国产大片91精品免费看3| 国产色无码精品视频免费| 亚洲AV综合色区无码二区爱AV| 亚洲最大的成网4438| 亚洲av无码不卡| 国产成A人亚洲精V品无码| 国产亚洲综合一区柠檬导航| 成人免费视频网址| 热99re久久精品精品免费| 免费观看理论片毛片| 国产成人精品免费直播| 四虎AV永久在线精品免费观看| 久久午夜羞羞影院免费观看| 男人都懂www深夜免费网站| 无码日韩精品一区二区三区免费| 国产亚洲视频在线播放大全| 久久水蜜桃亚洲AV无码精品| 亚洲视频在线观看免费视频| 亚洲沟沟美女亚洲沟沟|