IBM Worklight - 如何重命名应用程序并更改其图标,启动图像 [英] IBM Worklight - how to rename an application and change its icon, splash image

查看:82
本文介绍了IBM Worklight - 如何重命名应用程序并更改其图标,启动图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用现有的示例应用程序来开始使用Worklight进行概念验证,我们对原始代码进行了大量更改,我们希望更改应用程序名称并自定义其图标和启动图像。我们已经设法在xCode中进行上述更改(名称,图标和启动),但是这不适用于从Worklight到ipa的自动构建的未来目的。



<您能告诉我们涉及的步骤:


  1. 如何在Worklight中重命名现有应用程序(仅更改应用程序 - descriptor.xml不会更改生成的二进制文件。)

  2. 如何更改应用程序的图标和启动画面。


解决方案

为Worklight项目创建新应用程序时,应用程序名称将用于多个文件,因此您需要查找给定应用程序名称的所有实例并改变它们。它们是:




  • 主要HTML文件名

  • 主要CSS文件名

  • 主要HTML文件名中的
  • 主JavaScript文件名

  • (主要CSS和JavaScript文件的引用,标题)

  • 内部application-descriptor.xml (元素: displayName description mainFile



注意,文件名对你来说无关紧要。在未来,他们希望总是得到一个通用名称(如index.html或main.css ....)。



设备中的应用程序图标标题由application-descriptor.xml中的 displayName 元素控制。



对于图标和启动图像,您只需在nativeResources文件夹中放置适当的文件名即可(常规图标,视网膜图标,启动图像,视网膜启动图像) (位于native文件夹旁边),它们将在构建期间复制到本机项目(最终将在Xcode中打开)。



您可以在native >> Resources文件夹中找到正确的文件名。






quote:


然而,这不适用于从Worklight到ipa的自动构建
的未来目的。




<当然,Worklight永远不会为你创建一个.ipa文件......这就是Xcode的作用。


We've used an existing example application to start a proof of concept with Worklight, we've made a lot of changes to the original code and we would like to change the application name and customize its icons and splash image. We've managed to make the aforementioned changes (Name, icons and splash) inside xCode, however this doesn't serve the future purpose of an automated build from Worklight to ipa.

Could you please let us know what steps are involved to:

  1. How to rename an existing application in Worklight (changing only the application-descriptor.xml doesn't change the generated binaries though).
  2. How to change icons and splash screens for app.

解决方案

When you create a new application for a Worklight project, the application name is used throughout several files, so you will need to find all occurrences of the given application name and change them. These are:

  • main HTML filename
  • main CSS filename
  • main JavaScript filename
  • inside main HTML filename (references to the main CSS and JavaScript files, title)
  • Inside application-descriptor.xml (the elements: displayName, description, mainFile)

Note, the filenames should not matter to you. In the future they will, hopefully, always get a generic name (like index.html or main.css. ...).

The app icon title in the device is controlled by the displayName element in application-descriptor.xml.

As for the icons and splash images, you can simply place thme (regular icon, retina icon, splash image, retina splash image) with the appropriate filenames in the "nativeResources" folder (sits next to the "native" folder) and they will be copied during build time to the native project (which you will eventually open in Xcode).

You can find out the correct filenames inside the native >> Resources folder.


quote:

however this doesn't serve the future purpose of an automated build from Worklight to ipa.

Worklight will, of course, never create an .ipa file for you... that's the role of Xcode.

这篇关于IBM Worklight - 如何重命名应用程序并更改其图标,启动图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆