{ "id": "151629", "key": "TIMOB-19650", "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": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-05T12:40:11.000+0000", "created": "2015-09-30T21:03:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "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" }, "inwardIssue": { "id": "151617", "key": "TIMOB-19645", "fields": { "summary": "CLI: Builder.generateAppIcons 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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:49:27.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": "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": "56860", "filename": "vs.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-30T21:02:21.000+0000", "size": 16959, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Builder.createAppIconSet 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": null, "closedSprints": [ { "id": 494, "state": "closed", "name": "2015 Sprint 20 SDK", "startDate": "2015-09-26T00:29:19.845Z", "endDate": "2015-10-10T00:29:00.000Z", "completeDate": "2015-10-12T05:33:30.964Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "365496", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Yeah, we need to be doing the check on our side whether these icon files exist before we add them to the \"missingIcons\" array we pass to Builder.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-09-30T23:50:26.000+0000", "updated": "2015-09-30T23:50:26.000+0000" }, { "id": "365691", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_windows/pull/446", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-02T18:29:19.000+0000", "updated": "2015-10-02T18:29:19.000+0000" }, { "id": "376575", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "[~gmathews] Does this only work for an alloy project.", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-11T00:45:16.000+0000", "updated": "2016-02-11T00:50:04.000+0000" }, { "id": "440172", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:27.000+0000", "updated": "2018-08-06T17:49:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }