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.
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, 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.
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.
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.
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, 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.
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.
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.