Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19485] MobileWeb: Generate missing app icons based on DefaultIcon.png

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T23:05:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb, Tooling
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2015-09-09T21:44:16.000+0000
Updated2018-04-04T23:20:17.000+0000

Description

If any of the app icons are missing, then search for <project-dir>/platforms/mobileweb/DefaultIcon.png and <project-dir>/DefaultIcon.png and us it to generate missing app icons. You simply need to the base Builder object's generateAppIcons() method:
var missingIcons = [
    {
        description: 'Resources/<platform>/appicon.png - Used for iPhone', // some meaningful description... iOS build dynamically generates this
        file: '/path/to/dest.png', // MUST be a png and MUST have an extension
        width: 100, // whatever is required
        height: 100, // should match width
        required: true // when DefaultIcon.png isn't big enough, true will trigger an error and false will skip the icon
    }
];

this.generateAppIcons(missingIcons, function (err) {
    // err is either true if there was an error or undefined if it was successful
});

Comments

  1. Lee Morris 2017-06-26

    Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source