-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bundler): add --windows-icon, --windows-no-console, fix bun.exe'…
…s main icon (#15894) Co-authored-by: Dylan Conway <[email protected]> Co-authored-by: Jarred Sumner <[email protected]> Co-authored-by: Dylan Conway <[email protected]>
- Loading branch information
1 parent
0c50b0f
commit 7b3554f
Showing
10 changed files
with
1,435 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "root.h" | ||
#include "rescle.h" | ||
|
||
extern "C" int rescle__setIcon(const WCHAR* exeFilename, const WCHAR* iconFilename) | ||
{ | ||
rescle::ResourceUpdater updater; | ||
if (!updater.Load(exeFilename)) | ||
return -1; | ||
if (!updater.SetIcon(iconFilename)) | ||
return -2; | ||
if (!updater.Commit()) | ||
return -3; | ||
return 0; | ||
} |
Oops, something went wrong.