Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19487

Windows: Generate missing app icons based on DefaultIcon.png

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.1.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2015 Sprint 20 SDK, 2015 Sprint 22 SDK, 2015 Sprint 23 SDK

      Description

      If any of the app icons are missing, then search for <project-dir>/platforms/windows/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
      });
      

      Here's a good article on MSDN about the assets for Windows apps: https://msdn.microsoft.com/en-us/library/windows/apps/mt412102.aspx

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                cbarber Chris Barber
                Reviewer:
                Christopher Williams
              • Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration