如何部署 OpenLaszlo 单独应用程序?
我一直在关注 OpenLaszlo。 我找不到如何部署单独的应用程序。 我必须复制什么或我必须运行哪些程序?
我知道部署类型可以是 dhtml 或 flash...
提前致谢。
I have been looking at OpenLaszlo. I could not find how to deploy a solo application..
What do I have to copy or what programs do I have to run?
I know the deployment type can be dhtml or flash...
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 SOLO 模式,您采用 OpenLaszlo .lzx 源“程序”(以 XML 格式表示)并使用 lzc 实用程序将其“编译”为 Adobe Flash .swf 文件。
例如,hello.lzx 源代码将按以下方式编译
为名为hello.sw8.swf
的 Flash 应用程序,
然后
您只需将 .swf 嵌入到 HTML 页面中,就像嵌入任何其他 Flash 内容一样。 客户端浏览器必须具有 Adobe Flash Player 版本 8 或版本 9 才能播放 .swf Flash 应用程序。
要查看 Flash 应用程序在开发计算机的磁盘上立即运行,只需将浏览器直接指向本地 .swf 文件,它就会显示在浏览器中。
For SOLO mode, you take the OpenLaszlo .lzx source "program" (expressed in XML format) and "compile" it into an Adobe Flash .swf file using the lzc utility.
For example, a hello.lzx source would be compiled as follows
lzc hello.lzx
into a Flash application called
hello.sw8.swf
Then you simply embed the .swf into an HTML page as you would any other Flash content. The client browser must have the Adobe Flash Player version 8 or version 9 to play the .swf Flash application.
To see the Flash application work right off the disk of your development machine, just point your browser directly at the local .swf file and it should show up in the browser.
OpenLaszlo 文档包含一个部分,其中包含有关如何部署应用程序的一些信息:
http://www.openlaszlo.org /lps3.4/docs/deploy/deployers-guide.html#deployers-guide.steps
文档中还有另一节描述 SOLO 和代理部署模式。
http://www.openlaszlo.org/lps4.9/docs/developers /proxied.html
该文档可能有点令人困惑,因为它在过去几年没有更新。
部署应用程序的最简单方法是使用开发人员控制台,该控制台显示在浏览器中 OpenLaszlo 应用程序的下方。 您将在控制台中看到一个“SOLO”按钮,该按钮将启动为您的 OpenLaszlo 应用程序生成嵌入 HTML 页面的过程,将所有静态资源捆绑到一个 ZIP 文件中,该文件可以通过自动构建脚本进行处理以生成您的软件的新版本。
所有编译和部署步骤都可以从命令行运行,使用“lzc”命令进行编译,并使用“lzdeploy”命令生成部署 ZIP 文件。 这两个工具都可以集成到 Ant 中。 这些命令可以在文件夹中找到
查看 OpenLaszlo 项目博客中的这篇博文,了解有关 lzdeploy 工具的更多信息(官方文档中似乎没有记录):
http:// weblog.openlaszlo.org/archives/2008/04/lzdeploy-new-command-line-utility-for-deploying-solo-applications/
The OpenLaszlo documentation contains a section with some information on how to deploy an application:
http://www.openlaszlo.org/lps3.4/docs/deploy/deployers-guide.html#deployers-guide.steps
There's another section in the docs describing the SOLO and proxied deployment mode.
http://www.openlaszlo.org/lps4.9/docs/developers/proxied.html
The documentation can be a bit confusing, since it has not been updated over the past years.
The simplest way to deploy an application is to use the developer console, which is displayed below the OpenLaszlo application in the browser. You'll see a "SOLO" button in the console, which will start the process of generating an embedding HTML page for you OpenLaszlo application, bundle up all static resources into a ZIP file, which can be processed by automated build scripts to generate a new version of your software.
All the compilation and deployment steps can be run from the command line using the "lzc" command for compilation, and the "lzdeploy" command to generate the deployment ZIP file. Both tools can be integrated into Ant. The commands can be found in folder
Check this blog post in the OpenLaszlo project blog for more information on the lzdeploy tool (which does not seem to be documented in the official documentation):
http://weblog.openlaszlo.org/archives/2008/04/lzdeploy-new-command-line-utility-for-deploying-solo-applications/
关于使用 Apache Ant 自动构建 OpenLaszlo SOLO 应用程序也存在类似的问题。 答案包含一个完整的构建脚本,用于编译 SWF 或 DHTML/HTML5 应用程序,包括所有必需的资源。 讨论可以在这里找到:
如何使用 Apache Ant 构建 OpenLaszlo DHTML 应用程序
There has been a similar question regarding automated builds of an OpenLaszlo SOLO application using Apache Ant. The answer contains a full build script to compile either an SWF or DHTML/HTML5 application, including all required resources. The discussion can be found here:
How to build an OpenLaszlo DHTML application using Apache Ant