crystal
crystal copied to clipboard
Add icon and metadata to Windows Crystal compiler binary
This PR sets up generation of a Windows resource file and embeds it into the Crystal compiler binary, giving us some nice metadata:
The information is pulled straight from the Makefile. This is important because we cannot simply pull the data from bin\crystal --version
before building a fresh compiler with the updated information. However, if we are going to do this with shards.exe
as well, or even anything built on Windows, then perhaps compiler support is necessary.
The 1
after the patch number has the same meaning as it does in Crystal's release packages (e.g. crystal-1.5.1-1
. It is not customizable yet.
The icon shares the same file with the playground's favicon. It has been updated to include a 256×256 subimage since it is the largest size that Windows supports.
The icon shares the same file with the playground's favicon. It has been updated to include a 256×256 subimage since it is the largest size that Windows supports.
@HertzDevil I'd suggest using a separate icon file instead of downsizing the playground icon.
The favicon was originally at 128x128