English 中文(简体)
更改(appcelerator titanium)桌面应用程序中的图标
原标题:Change the icon in a (appcelerator titanium) desktop app

如果我用我的更改默认的default_app_logo.png,我会得到:打包失败,并显示消息:NoneType对象没有属性rfind

我正在做一个桌面应用程序。我能做什么?

我尝试了各种PNG格式。。。

我正在windows平台上做这个程序包。

问题回答

我也遇到了同样的问题,只有在尝试打包mac版本时才会出现这种情况。我也在使用自定义图标。

和你一样,我用我的替换了default_app_logo.png,这就是问题所在。出于某种原因,Titanium不喜欢我给这张图片的PNG格式。

所以我所做的是在GIMP中打开default_app_logo.png,在GIMP中将我的图标打开,将我的图标复制到新层中的默认徽标图像,隐藏原始图像层(背景)并点击保存。

经过这种操作后,Mac的打包工作非常完美。我不知道两者有什么不同,因为它们的大小完全相同,但事实是一个给出了错误,另一个没有。。。





相关问题
Multiple developers on a Titanium project

I m making an iPhone app with Appcelerator Titanium and I want to share the source code with a few more programmers. I will use a SCM repository which at some point might be open to the general ...

iPhone SDK "loading" on Titanium Developer

I have tried this question on the site of Titanium and several tweets to their account, but they either ignore me or refuse to answer. I want to start using their framework, but for some reason the ...

can appcelerator use NSUserDefaults on iphone?

I m trying out the version 1.2 appcelerator and wanted to use the NSUserDefaults with it... has anyone tried that before?? I can find it in the docs... :{ thanks!!

How to organize JS files in a Appcelerator Titanium project

I have recently started creating an iPhone application using Appcelerator s Titanium. Since the application is essentially all JS, I needed some advice on how I should organize this project. It s ...

Appcelerator Titanium: Android SDK doesn t load

I started developing with Titanium and now I really stuck on one part. I downloaded the Adroid SDK and added the path to Titanium: /Users/michael/Downloads/android-sdk-mac_86/ I can open e.g. ...

Titanium vs The Native Tools

I m still checking everything out. I m wondering what the limitations are if we develop the app using Titanium. What cannot be done using Titanium, for iPhone and for Android? What things can only be ...

热门标签