{ "id": "151617", "key": "TIMOB-19645", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-09-30T16:25:09.000+0000", "created": "2015-09-30T10:59:51.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "appicon" ], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [ { "id": "49159", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "151629", "key": "TIMOB-19650", "fields": { "summary": "Windows: Builder.createAppIconSet ignores existing assets", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "49151", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "151153", "key": "TIMOB-19509", "fields": { "summary": "DefaultIcon.png needs to support platform specific versions", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "49152", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "151061", "key": "TIMOB-19487", "fields": { "summary": "Windows: Generate missing app icons based on DefaultIcon.png", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:31:41.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10207", "name": "Tooling" }, { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Let say we want to create app icons with several sizes and create them during build process like below.\r\n\r\n{code:title=cli/commands/_build/copy.js}\r\n\tfunction createAppIconSet(next) {\r\n\t\tvar appIconSetDir = path.join(this.buildDir, 'Assets'),\r\n\t\t\tmissingIcons = [\r\n\t\t\t// Square44x44Logo\r\n\t\t\t{\r\n\t\t\t\tdescription: 'Square44x44Logo.png - Used for logo',\r\n\t\t\t\tfile: path.join(appIconSetDir, 'Square44x44Logo.png'),\r\n\t\t\t\twidth: 44,\r\n\t\t\t\theight: 44,\r\n\t\t\t\trequired: true\r\n\t\t\t},\r\n\r\n\t\t\t// Square71x71Logo\r\n\t\t\t{\r\n\t\t\t\tdescription: 'Square71x71Logo.png - Used for logo',\r\n\t\t\t\tfile: path.join(appIconSetDir, 'Square71x71Logo.png'),\r\n\t\t\t\twidth: 71,\r\n\t\t\t\theight: 71,\r\n\t\t\t\trequired: true\r\n\t\t\t},\r\n\r\n\t\t\t// Square150x150Logo\r\n\t\t\t{\r\n\t\t\t\tdescription: 'Square150x150Logo.png - Used for logo',\r\n\t\t\t\tfile: path.join(appIconSetDir, 'Square150x150Logo.png'),\r\n\t\t\t\twidth: 150,\r\n\t\t\t\theight: 150,\r\n\t\t\t\trequired: true\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.generateAppIcons(missingIcons, next);\r\n\t}\r\n{code} \r\n\r\nEven when you want to use custom images and place those images in your project (e.g. place custom images under platform/windows/ or project root directory), they are always ignored by the builder during the build.\r\n\r\n!vs.png|thumbnail!", "attachment": [ { "id": "56849", "filename": "vs.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-30T10:57:14.000+0000", "size": 16959, "mimeType": "image/png" } ], "flagged": false, "summary": "CLI: Builder.generateAppIcons ignores existing assets", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK 5.1.0.v20150927160437", "comment": { "comments": [ { "id": "365434", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Builder.js is the base class for the WindowsBuilder.js and thus {{Builder.generateAppIcon()}} is meant to be a utility function. It generates the icons you tell it to. It's not responsible for detecting which icons are missing. That's platform specific. That means your {{_build.js}} must determine what icons exist and which ones are missing. If there are any missing icons, tell {{Builder.generateAppIcon()}} and it will generate only the icons you told it to.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-09-30T16:25:09.000+0000", "updated": "2015-09-30T16:25:09.000+0000" }, { "id": "415395", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:31:41.000+0000", "updated": "2017-03-23T21:31:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }