13

correct me if i'm wrong, but Adobe AIR currently only allows applications to have maximum size icon of 256x256.

  • is there a way to supply an application with a 512x512 icon?
  • will 512x512 icons be supported in the new upcoming Adobe AIR 2?

update: AIR 2 still doesn't support importing 512x512 sized icons.

update 2: AIR 2.7 still doesn't support importing icon sizes larger than 128 x 128. ludicrous!

alt text

Community
  • 1
  • 1
Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162

2 Answers2

1

while larger icons are not officially supported by Adobe, until then, i've discovered that it's pretty easy to include your own larger sized icons for AIR applications with native installers - at least on .dmg installers for Mac OS X.

with Mac OS X, you can drag the installer out of the .dmg onto your desktop, right-click the installer application to "show package contents", jump thru the folders until you see Icon.icns and then simply replace that with your own Icon.icns file. after that, you can just repackage the installer into a new .dmg. it's kind of a hassle, but it beats having pixelated icons.

this method requires you to build your native installer with an icon, however, foolishly, the included .png icon is never deleted from the bundle by the installer, even though it's only used once to create the Icon.icns file. therefore, i suggest you only import a 16x16 .png white square with a tiny file size. if you try deleting it the installer will say the package is corrupt, which it is since the application.xml file refers to the included icon. removing the icon entry from the .xml will result in the installer not using your custom Icon.icns file.

for those who don't know how to make an .icns file on Mac. you can download/install XCode developer tools and use the included program called "Icon Composer". it's a basic drag-and-drop .icns file creator.

i'm not sure how this process can be emulated on Windows or Linux, so if anyone reading knows please post an answer.

Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
  • But that sort of defeats the whole purpose of being cross-platform. –  Oct 15 '10 at 11:31
1

According to this Link 512x512 is supported in AIR 2.0

Jeffin
  • 1,099
  • 12
  • 23
Clintm
  • 4,505
  • 3
  • 41
  • 54
  • interesting. i've manually written the tag in the descriptor file and included the file but i'm receiving incorrect argument when packaging. can you get this to work with Flash Professional CS5? – Chunky Chunk Dec 23 '10 at 23:20
  • sounds like bad command line syntax... can you paste the command you're using to package the app? When I package the app I use the Flex SDK and the ADT command line tool – Clintm Jan 04 '11 at 23:58
  • i've attempted this with AIR 2.7 SDK using ADT on the command line to package my AIR application. it doesn't throw any errors now, but writing `myIcon.png` in the descriptor file and including the icon file with the command line package is ignored. the package is created with the default system icon. it still doesn't work. – Chunky Chunk Jun 30 '11 at 03:58
  • These links look pretty clear that it should work... http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d129907d2886-8000.html http://help.adobe.com/en_US/air/build/WSfffb011ac560372f3cb56e2a12cc36970aa-8000.html – Clintm Jun 30 '11 at 22:48
  • according to that link it will work on iOS. i'm referring to Deskop applications (Windows / Mac / Linux). now this is even more ridiculous since it's available for iOS. try it. let me know if you can make it work. – Chunky Chunk Jun 30 '11 at 23:07