-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon for odin.exe #2600
Merged
Merged
Icon for odin.exe #2600
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,6 +266,9 @@ bin/ | |
*.exe | ||
*.obj | ||
*.pdb | ||
*.res | ||
desktop.ini | ||
Thumbs.db | ||
|
||
# - Linux/MacOS | ||
odin | ||
|
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,75 @@ | ||
|
||
#define Filename "demo.exe" | ||
#define FileDescription "Odin demo project." | ||
#define ProductName "Odin Programming Language Demo" | ||
|
||
#include "winres.h" | ||
|
||
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT | ||
#pragma code_page(65001) | ||
|
||
#define IDI_ICON1 101 | ||
|
||
#define Q(x) #x | ||
#define QUOTE(x) Q(x) | ||
#define FMTVER(x,y,z,w) QUOTE(x.y.z.w) | ||
|
||
#ifndef V1 | ||
#define V1 1 | ||
#endif | ||
#ifndef V2 | ||
#define V2 0 | ||
#endif | ||
#ifndef V3 | ||
#define V3 0 | ||
#endif | ||
#ifndef V4 | ||
#define V4 0 | ||
#endif | ||
#ifndef ODIN_VERSION | ||
#define ODIN_VERSION FMTVER(V1,V2,V3,V4) | ||
#endif | ||
#ifndef GIT_SHA | ||
#define GIT_SHA _ | ||
#endif | ||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION V1,V2,V3,V4 | ||
PRODUCTVERSION V1,V2,V3,V4 | ||
FILEFLAGSMASK 0x3fL | ||
#ifdef _DEBUG | ||
FILEFLAGS 0x1L | ||
#else | ||
FILEFLAGS 0x0L | ||
#endif | ||
FILEOS 0x40004L | ||
FILETYPE 0x1L | ||
FILESUBTYPE 0x0L | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "0409FDE9" | ||
BEGIN | ||
VALUE "CompanyName", "https://odin-lang.org/" | ||
VALUE "FileDescription", "Odin Demo" | ||
VALUE "FileVersion", FMTVER(V1,V2,V3,V4) | ||
VALUE "InternalName", "demo.exe" | ||
VALUE "LegalCopyright", "Copyright (c) 2016-2024 Ginger Bill. All rights reserved." | ||
VALUE "OriginalFilename", "demo.exe" | ||
VALUE "ProductName", "Odin Programming Language Demo" | ||
VALUE "ProductVersion", QUOTE(ODIN_VERSION) | ||
VALUE "Comments", QUOTE(ODIN_VERSION) | ||
// PrivateBuild | ||
// SpecialBuild | ||
// custom values | ||
VALUE "GitSha", QUOTE(GIT_SHA) | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
//0xFDE9=65001=CP_UTF8 | ||
VALUE "Translation", 0x0409, 0xFDE9 | ||
END | ||
END | ||
|
||
IDI_ICON1 ICON "..\\..\\misc\\sourcefile.ico" |
Binary file not shown.
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,8 @@ | ||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?> | ||
<assembly xmlns='urn:schemas-microsoft-com:asm.v3' manifestVersion='1.0'> | ||
<application> | ||
<windowsSettings xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings"> | ||
<activeCodePage>UTF-8</activeCodePage> | ||
</windowsSettings> | ||
</application> | ||
</assembly> |
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,75 @@ | ||
|
||
#include "winres.h" | ||
|
||
// https://learn.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block | ||
|
||
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT | ||
#pragma code_page(65001) // CP_UTF8 | ||
|
||
#define IDI_ICON1 101 | ||
#define IDI_ICON2 102 | ||
|
||
#ifndef V1 | ||
#define V1 1 | ||
#endif | ||
#ifndef V2 | ||
#define V2 0 | ||
#endif | ||
#ifndef V3 | ||
#define V3 0 | ||
#endif | ||
#ifndef V4 | ||
#define V4 0 | ||
#endif | ||
#ifndef VF | ||
#define VF "1.0.0.0" | ||
#endif | ||
#ifndef VP | ||
#define VP "1.0.0.0" | ||
#endif | ||
#ifndef GIT_SHA | ||
#define GIT_SHA 0 | ||
#endif | ||
|
||
#define Q(x) #x | ||
#define QUOTE(x) Q(x) | ||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION V1,V2,V3,V4 | ||
PRODUCTVERSION V1,V2,V3,V4 | ||
FILEFLAGSMASK 0x3fL | ||
#ifdef _DEBUG | ||
FILEFLAGS 0x1L | ||
#else | ||
FILEFLAGS 0x0L | ||
#endif | ||
FILEOS 0x40004L | ||
FILETYPE 0x1L | ||
FILESUBTYPE 0x0L | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "0409FDE9" | ||
BEGIN | ||
VALUE "CompanyName", "https://odin-lang.org/" | ||
VALUE "FileDescription", "Odin general-purpose programming language." // note this is shown in the task manager | ||
VALUE "FileVersion", QUOTE(VF) | ||
VALUE "InternalName", "odin.exe" | ||
VALUE "LegalCopyright", "Copyright (c) 2016-2024 Ginger Bill. All rights reserved." | ||
VALUE "OriginalFilename", "odin.exe" | ||
VALUE "ProductName", "The Odin Programming Language" | ||
VALUE "ProductVersion", QUOTE(VP) | ||
VALUE "Comments", QUOTE(git-sha: GIT_SHA) | ||
// custom values | ||
VALUE "GitSha", QUOTE(GIT_SHA) | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
//0xFDE9=65001=CP_UTF8 | ||
VALUE "Translation", 0x0409, 0xFDE9 | ||
END | ||
END | ||
|
||
IDI_ICON1 ICON "emblem.ico" | ||
IDI_ICON2 ICON "sourcefile.ico" |
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i tried to keep the output to a minimum, not sure if the
-v
here is good here, it will outputsee https://github.com/odin-lang/Odin/pull/2600/checks