Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19650] Windows: Builder.createAppIconSet ignores existing assets

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-10-05T12:40:11.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.2.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeGary Mathews
Created2015-09-30T21:03:09.000+0000
Updated2018-08-06T17:49:27.000+0000

Description

Let say we want to create app icons with several sizes and create them during build process like below.
	function createAppIconSet(next) {
		var appIconSetDir = path.join(this.buildDir, 'Assets'),
			missingIcons = [
			// Square44x44Logo
			{
				description: 'Square44x44Logo.png - Used for logo',
				file: path.join(appIconSetDir, 'Square44x44Logo.png'),
				width: 44,
				height: 44,
				required: true
			},

			// Square71x71Logo
			{
				description: 'Square71x71Logo.png - Used for logo',
				file: path.join(appIconSetDir, 'Square71x71Logo.png'),
				width: 71,
				height: 71,
				required: true
			},

			// Square150x150Logo
			{
				description: 'Square150x150Logo.png - Used for logo',
				file: path.join(appIconSetDir, 'Square150x150Logo.png'),
				width: 150,
				height: 150,
				required: true
			}
		];
		this.generateAppIcons(missingIcons, next);
	}
Even 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. !vs.png|thumbnail!

Attachments

FileDateSize
vs.png2015-09-30T21:02:21.000+000016959

Comments

  1. Christopher Williams 2015-09-30

    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.
  2. Gary Mathews 2015-10-02

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/446
  3. Josh Longton 2016-02-11

    [~gmathews] Does this only work for an alloy project.
  4. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source