I saw c# program's exe, often have an favicon.ico image bound together, which can be dragged to desktop.
Can dmd compile an icon image to an exe also?
Thread overview | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 12, 2023 Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
I saw c# program's exe, often have an favicon.ico image bound together, which can be dragged to desktop. Can dmd compile an icon image to an exe also? |
May 12, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Xu | On Friday, 12 May 2023 at 01:41:10 UTC, John Xu wrote: >I saw c# program's exe, often have an favicon.ico image bound together, which can be dragged to desktop. Can dmd compile an icon image to an exe also? you can, if i remember correctly create a and paste:
then put your
it should create an .exe that has the icon |
May 15, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ryuukk_ | On Friday, 12 May 2023 at 02:09:17 UTC, ryuukk_ wrote: >create a and paste:
then put your
Thanks for your quick reply. I'll give a try. |
May 15, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Xu | Found a related link: Where Adam D Ruppe informed rcc.exe from http://ftp.digitalmars.com/bup.zip But, I got problem:
Any help? My isp.ico was converted from a png with gimp, used in C# programs before, |
May 15, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Xu | On Monday, 15 May 2023 at 02:45:17 UTC, John Xu wrote: >Found a related link: Where Adam D Ruppe informed rcc.exe from http://ftp.digitalmars.com/bup.zip I figured out that the rcc on ftp.digitalmars.com only supports |
May 15, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Xu | That is only for OMF target. You need rc that comes with Visual Studio C++ build tools. Alternatively windres from mingw may work (I haven't tested). |
May 18, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Richard (Rikki) Andrew Cattermole | On Monday, 15 May 2023 at 03:54:03 UTC, Richard (Rikki) Andrew Cattermole wrote:
> That is only for OMF target.
>
> You need rc that comes with Visual Studio C++ build tools.
>
> Alternatively windres from mingw may work (I haven't tested).
How can I add this step to dub.sdl ?
|
May 19, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Xu |
On 19/05/2023 2:19 AM, John Xu wrote:
> On Monday, 15 May 2023 at 03:54:03 UTC, Richard (Rikki) Andrew Cattermole wrote:
>> That is only for OMF target.
>>
>> You need rc that comes with Visual Studio C++ build tools.
>>
>> Alternatively windres from mingw may work (I haven't tested).
>
> How can I add this step to dub.sdl ?
You would use one of the build commands and then put the result file name into source files.
However you may not want to require it in normal builds (since the file it outputs won't change you can just commit that) just to ensure your build is reproducible.
|
May 19, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Richard (Rikki) Andrew Cattermole | On Thursday, 18 May 2023 at 15:39:05 UTC, Richard (Rikki) Andrew Cattermole wrote:
>
> On 19/05/2023 2:19 AM, John Xu wrote:
>> On Monday, 15 May 2023 at 03:54:03 UTC, Richard (Rikki) Andrew Cattermole wrote:
>>> That is only for OMF target.
>>>
>>> You need rc that comes with Visual Studio C++ build tools.
>>>
>>> Alternatively windres from mingw may work (I haven't tested).
>>
>> How can I add this step to dub.sdl ?
>
> You would use one of the build commands and then put the result file name into source files.
>
> However you may not want to require it in normal builds (since the file it outputs won't change you can just commit that) just to ensure your build is reproducible.
sourceFiles ?
or
libFiles ?
|
May 20, 2023 Re: Can dmd compile a favicon.ico to exe file ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Xu |
On 19/05/2023 9:39 PM, John Xu wrote:
> On Thursday, 18 May 2023 at 15:39:05 UTC, Richard (Rikki) Andrew Cattermole wrote:
>>
>> On 19/05/2023 2:19 AM, John Xu wrote:
>>> On Monday, 15 May 2023 at 03:54:03 UTC, Richard (Rikki) Andrew Cattermole wrote:
>>>> That is only for OMF target.
>>>>
>>>> You need rc that comes with Visual Studio C++ build tools.
>>>>
>>>> Alternatively windres from mingw may work (I haven't tested).
>>>
>>> How can I add this step to dub.sdl ?
>>
>> You would use one of the build commands and then put the result file name into source files.
>>
>> However you may not want to require it in normal builds (since the file it outputs won't change you can just commit that) just to ensure your build is reproducible.
>
> sourceFiles ?
> or
> libFiles ?
sourceFiles.
libFiles is for shared libraries.
|