现在位置: 首页 > 博客文章 > 电脑相关 > IT开发 > 开发语言 > Flex > 正文
船舶报文系统项目之发布篇
2015年08月18日 15:46:20 Flex ⁄ 共 6492字 暂无评论 ⁄ 被围观 2,473次

前一段时间抽空写了《船舶报文系统项目之新建篇》和《船舶报文系统项目之开发篇》,分别说了说报文系统的开发流程以及开发中碰到的一些问题。这一篇,主要写一写项目后期的发布过程。

前面也提到过,岸端是 WEB 程序,而船端部分是桌面应用程序。至于 Web 的发布过程,这里不再详细写,很简单,做过 Web 项目的都知道发布,无外乎就是在 Tomcat 中发布项目,用它的 Manager 功能,很简单就可以把项目发布到 Tomcat 服务器上,然后直接访问即可,这里主要说说船端部分的发布过程。

在导出项目前,可以修改一些配置参数,比如修改安装后的程序图标,修改安装路径及安装名称,添加版本信息,描述信息等等,都在 XXX-app.xml 中,可以进行相应的配置,下面是报文系统大概用到的配置信息:

Code   ViewPrint
  1. <!-- 安装后文件夹名 -->
  2. <filename>DynaReport</filename>
  3. <!-- 安装时程序名 -->
  4. <name>报文系统</name>
  5. <!-- 版本号 -->
  6. <versionNumber>2.0.0</versionNumber>
  7. <!-- 安装时程序描述 -->
  8. <description>船端报文安装程序</description>
  9. <!-- 程序版权信息 -->
  10. <copyright>大连海大安信科技有限公司</copyright>
  11. <!-- 程序安装后快捷图标 -->
  12. <icon>
  13.     <image16x16>assets/16.png</image16x16>
  14.     <image32x32>assets/32.png</image32x32>
  15.     <image36x36>assets/36.png</image36x36>
  16.     <image48x48>assets/48.png</image48x48>
  17.     <image57x57>assets/57.png</image57x57>
  18.     <image72x72>assets/72.png</image72x72>
  19.     <image114x114>assets/114.png</image114x114>
  20.     <image128x128>assets/128.png</image128x128>
  21. </icon>
  22. <!-- 等等等等,都可以自定义导出的程序 -->

这里有网友大概整理了一份比较全面的注释文档,分享给大家,原文看这里

Code   ViewPrint
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <application xmlns="http://ns.adobe.com/air/application/2.6">
  3.     <!-- The application identifier string, unique to this application. Required. -->
  4.     <id>AIRTest1</id><!-- 软件ID,当安装时系统将会检测同一ID软件版本,版本高的即做更新操作 -->
  5.     <!-- Used as the filename for the application. Required. -->
  6.     <filename>AIRTest_filename</filename><!-- 安装界面中 Application: -->
  7.     <!-- The name that is displayed in the AIR application installer. Optional. -->
  8.     <name>AIRTest_name</name><!-- 桌面快捷方程式及窗口和系统控制面板添加程序中名称 -->
  9.     <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
  10.     <versionNumber>0.0.0</versionNumber><!-- 软件版本 -->
  11.     <!-- Description, displayed in the AIR application installer. Optional. -->
  12.     <description>AIRTest_description</description><!-- 安装第二个界面中的 description -->
  13.     <!-- Copyright information. Optional -->
  14.     <copyright>AIRTest_copyright</copyright>
  15.     <!-- Settings for the application's initial window. Required. -->
  16.     <initialWindow>
  17.         <!-- The main SWF or HTML file of the application. Required. -->
  18.         <!-- Note: In Flex Builder, the SWF reference is set automatically. -->
  19.         <content>[This value will be overwritten by Flex Builder in the output app.xml]</content>
  20.         <!-- The title of the main window. Optional. -->
  21.         <title>AIRTest_title</title><!-- 窗体标题,当此处为注释状态时取 name标签中内容 -->
  22.         <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
  23.         <systemChrome>none</systemChrome><!-- standard为标准窗体,none 为圆滑窗体 -->
  24.         <!-- Whether the window is transparent. Only applicable when systemChrome is false. Optional. Default false. -->
  25.         <transparent>true</transparent><!-- 背景是否透明 -->
  26.         <!-- Whether the window is initially visible. Optional. Default false. -->
  27.         <visible>true</visible><!-- 窗体初始化的时候是否可见 -->
  28.         <!-- Whether the user can minimize the window. Optional. Default true. -->
  29.         <minimizable>true</minimizable><!-- 是否允许最小化 -->
  30.         <!-- Whether the user can maximize the window. Optional. Default true. -->
  31.         <!-- <maximizable></maximizable> --><!-- 是否允许最大化 -->
  32.         <!-- Whether the user can resize the window. Optional. Default true. -->
  33.         <!-- <resizable></resizable> --><!-- 是否允许缩放窗体 -->
  34.         <!-- The window's initial width. Optional. -->
  35.         <!-- <width></width> --><!-- 窗体宽 -->
  36.         <!-- The window's initial height. Optional. -->
  37.         <!-- <height></height> --><!-- 窗体高 -->
  38.         <!-- The window's initial x position. Optional. -->
  39.         <!-- <x></x> --><!-- 窗体X位置坐标 -->
  40.         <!-- The window's initial y position. Optional. -->
  41.         <!-- <y></y> --><!-- 窗体Y位置坐标 -->
  42.         <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. -->
  43.         <!-- <minSize></minSize> --><!-- 窗体最小化值 -->
  44.         <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. -->
  45.         <!-- <maxSize></maxSize> --><!-- 窗体最大化值 -->
  46.     </initialWindow>
  47.     <!-- The subpath of the standard default installation location to use. Optional. -->
  48.     <installFolder>AIRInstrallField/AIR</installFolder><!-- 默认安装路径 C:\Program Files\AIRInstrallField\AIR -->
  49.     <!-- The subpath of the Windows Start/Programs menu to use. Optional. -->
  50.     <programMenuFolder>AIRTest_programMenuFolder</programMenuFolder><!-- 开始/程序 快捷方程式所在文件夹 -->
  51.     <!-- The icon the system uses for the application. For at least one resolution,
  52.          specify the path to a PNG file included in the AIR package. Optional. -->
  53.     <!-- 图标的大小必须和标签中标写的尺寸一致 -->
  54.     <icon>
  55.         <image16x16>icons/logo.png</image16x16><!-- 系统菜单中及系统控制面板添加程序中的图标 -->
  56.         <image32x32>icons/logo_32.png</image32x32><!-- 桌面图标,窗口图标 -->
  57.         <image48x48>icons/logo_48.png</image48x48><!-- 安装目录EXE文件图标 -->
  58.         <image128x128>icons/logo_128.png</image128x128><!-- 未知 -->
  59.     </icon>
  60.     <!-- Whether the application handles the update when a user double-clicks an update version
  61.     of the AIR file (true), or the default AIR application installer handles the update (false).
  62.     Optional. Default false. -->
  63.     <!-- <customUpdateUI></customUpdateUI> --><!-- 是否为同一版本的时候双击直接更新 -->
  64.     <!-- Whether the application can be launched when the user clicks a link in a web browser.
  65.     Optional. Default false. -->
  66.     <!-- <allowBrowserInvocation></allowBrowserInvocation> --><!-- 是否应用程序可以通过浏览器激活 -->
  67.     <!-- Listing of file types for which the application can register. Optional. -->
  68.     <!-- <fileTypes> -->
  69.         <!-- Defines one file type. Optional. -->
  70.         <!-- <fileType> -->
  71.             <!-- The name that the system displays for the registered file type. Required. -->
  72.             <!-- <name></name> -->
  73.             <!-- The extension to register. Required. -->
  74.             <!-- <extension></extension> -->
  75.             <!-- The description of the file type. Optional. -->
  76.             <!-- <description></description> -->
  77.             <!-- The MIME type. Optional. -->
  78.             <!-- <contentType></contentType> -->
  79.             <!-- The icon to display for the file type. Optional. -->
  80.             <!-- <icon>
  81.                 <image16x16></image16x16>
  82.                 <image32x32></image32x32>
  83.                 <image48x48></image48x48>
  84.                 <image128x128></image128x128>
  85.             </icon> -->
  86.         <!-- </fileType> -->
  87.     <!-- </fileTypes> -->
  88. </application>

这里主要是项目的导出,至于如何安装项目,抽空再写吧。

给我留言

留言无头像?