change default icon on desktop version!

Hi, i’ve made a build on windows but the icon is the default corona icon. i tried to change it doing this:

first, got a 1024x1024 png image.

second, I converted using 2 different online websites (don’t know if the fault is here so i tried 2 different companies) to create a Icon-win32.ico with the 3 resolution required (16x16, 32x32 and 48x48).

third, i put the .ico file in my root directory where main.lua was. created a build, but nothing changed.

What i’m doing wrong?

regards,

Carlos Costa.

is anyone able to change the icon in a windows build? if so how did you do? i’m using windows 10. never had a problem with icons on other builds.

I’ll see what I can find out about this.

thanks Rob, I appreciate.

I just did a test. I used:  http://icoconvert.com/

I chose Custom Size ( Multi-size in one icon). I selected the three sizes (16x16, 32x32, 48x48) downloaded, copied to my project.

I renamed the file to Icon-win32.ico.

I built the app. The Icon of the app running in the doc is my Icon. If I open the folder with the built .exe file and the .exe had my icon. So it works from my test.

Make sure to check first letter to make sure it’s a capital I (eye) and not a lower case L.

Rob

Rob, i did exactly what you did, and used the same website (and another one) but didn’t worked.

I tried again today (with a new corona build) and it did work, with the same image i tried before. so the problem was, corona build or the capital “I” like you said (this time i wrote it myself and not copy paste from corona website. those where the only 2 different things i done from previews tries. Now all looks good, thanks for the help, like always. :slight_smile:

If you paste the text from the Corona build docs page into Excel or Word, it becomes:

Icon­–win32.ico

i.e. It has two dashes. So the solution is to type the file name manually rather than paste it from the website.

if i copied and pasted I notice the 2 dashes…i just removed one. and made the build with that. i will make further tests to see why it failed first time with this corona build. i remember now the importances of the name and i deleted the first letter, the “I” and introduced myself the “I” still with no luck.

*edit*

i just tried with a file “Icon-win32.ico” i had before from a failed previews build and put it on this new build and still didn’t work so the corona build was not the problem. i deleted the “I” and put it myself, it still didn’t worked. I then removed the “-” and put another one and it worked. so i guess the “–” from the start that i removed 1 dash was the problem.

thanks all.

Apparently there are four types of dash with different lengths and unicodes -  hyphen, minus sign, n-dash and m-dash. When you paste from the website it must be misinterpreting what symbol to use.

The hypen to n-dash conversion shouldn’t be happening. Though if you’re getting two hyphens, then that sounds more like an m-dash. Still I know we are not typing in those code, just an ASCII hyphen. But it’s good to clear the hypens and re-type them.

The other thing to be aware of. Microsoft likes to hide the file extension. You might just see Icon-win32 as the file name as the .ico is hidden. If you change the file name to be Icon-win32.ico to where you can see the .ico and your extensions are hidden you’re actually creating Icon-win32.ico.ico which will also fail.

Rob

We’ve confirmed that that this Unicode dash ‘-’ character was an issue in our HTML file  (it’s not a browser issue).

We’ve corrected it and it’s now an ASCII dash ‘-’ character.

Thank you for reporting this issue and sorry about the inconvenience.

is anyone able to change the icon in a windows build? if so how did you do? i’m using windows 10. never had a problem with icons on other builds.

I’ll see what I can find out about this.

thanks Rob, I appreciate.

I just did a test. I used:  http://icoconvert.com/

I chose Custom Size ( Multi-size in one icon). I selected the three sizes (16x16, 32x32, 48x48) downloaded, copied to my project.

I renamed the file to Icon-win32.ico.

I built the app. The Icon of the app running in the doc is my Icon. If I open the folder with the built .exe file and the .exe had my icon. So it works from my test.

Make sure to check first letter to make sure it’s a capital I (eye) and not a lower case L.

Rob

Rob, i did exactly what you did, and used the same website (and another one) but didn’t worked.

I tried again today (with a new corona build) and it did work, with the same image i tried before. so the problem was, corona build or the capital “I” like you said (this time i wrote it myself and not copy paste from corona website. those where the only 2 different things i done from previews tries. Now all looks good, thanks for the help, like always. :slight_smile:

If you paste the text from the Corona build docs page into Excel or Word, it becomes:

Icon­–win32.ico

i.e. It has two dashes. So the solution is to type the file name manually rather than paste it from the website.

if i copied and pasted I notice the 2 dashes…i just removed one. and made the build with that. i will make further tests to see why it failed first time with this corona build. i remember now the importances of the name and i deleted the first letter, the “I” and introduced myself the “I” still with no luck.

*edit*

i just tried with a file “Icon-win32.ico” i had before from a failed previews build and put it on this new build and still didn’t work so the corona build was not the problem. i deleted the “I” and put it myself, it still didn’t worked. I then removed the “-” and put another one and it worked. so i guess the “–” from the start that i removed 1 dash was the problem.

thanks all.

Apparently there are four types of dash with different lengths and unicodes -  hyphen, minus sign, n-dash and m-dash. When you paste from the website it must be misinterpreting what symbol to use.

The hypen to n-dash conversion shouldn’t be happening. Though if you’re getting two hyphens, then that sounds more like an m-dash. Still I know we are not typing in those code, just an ASCII hyphen. But it’s good to clear the hypens and re-type them.

The other thing to be aware of. Microsoft likes to hide the file extension. You might just see Icon-win32 as the file name as the .ico is hidden. If you change the file name to be Icon-win32.ico to where you can see the .ico and your extensions are hidden you’re actually creating Icon-win32.ico.ico which will also fail.

Rob