-
-
Notifications
You must be signed in to change notification settings - Fork 272
为win的exe文件增添附加的属性,便于区分版本 #307
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9666b76
build(.gitignore): 添加 .res 文件到忽略列表
a5e358f
feat(logo): 添加项目图标文件
de75aaa
docs(chsrc): 更新文档贡献者信息
b84f2f9
feat(build): 支持编译资源文件
1829f6e
feat(chsrc): 移除一处无用的宏定义,删除文档过时内容
6aac016
refactor(include): 更新头文件引用路径
91692d6
build(Makefile): 更新编译配置以包含新的头文件路径
717b0f9
feat(build): 增强Windows支持,动态检测目标机器类型
cfe8503
revert(Makefile): 彻底回退,未保留任何更改
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 hidden or 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 |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ | |
| *.dll | ||
| *.out | ||
| *.exe | ||
|
|
||
| *.res | ||
|
|
||
|
|
||
| ############################## | ||
|
|
||
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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
Mikachu2333 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,23 @@ | ||
| /** ------------------------------------------------------------ | ||
| * Copyright © 2023-2025 曾奥然, 郭恒 | ||
| * SPDX-License-Identifier: MIT | ||
| * ------------------------------------------------------------- | ||
| * Lib Authors : 曾奥然 <ccmywish@qq.com> | ||
| * Contributors : Mikachu2333 <mikachu.23333@zohomail.com> | ||
| * | | ||
| * Created On : <2025-10-10> | ||
| * Last Modified : <2025-10-10> | ||
|
|
||
| * !!!警告!!! | ||
| * 发布前请修改此处的内容 | ||
| * ------------------------------------------------------------*/ | ||
|
|
||
| #define Chsrc_Version "0.2.3" | ||
| #define Chsrc_Release_Date "2025/10/06" | ||
|
|
||
| // 以下宏仅用于 Windows | ||
| #if defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__) | ||
| #define CHSRC_VERSION_MAJOR 0 | ||
| #define CHSRC_VERSION_MINOR 2 | ||
| #define CHSRC_VERSION_PATCH 3 | ||
| #endif |
Mikachu2333 marked this conversation as resolved.
Show resolved
Hide resolved
|
Binary file not shown.
Mikachu2333 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,44 @@ | ||
| // chsrc.rc - Windows Resource Script | ||
| // SPDX-License-Identifier: GPL-3.0-or-later | ||
|
|
||
| #include <windows.h> | ||
| #include "version.h" | ||
|
|
||
| // 图标资源 | ||
| IDI_ICON1 ICON DISCARDABLE "logo.ico" | ||
|
|
||
| // 版本信息 | ||
| VS_VERSION_INFO VERSIONINFO | ||
| FILEVERSION CHSRC_VERSION_MAJOR,CHSRC_VERSION_MINOR,CHSRC_VERSION_PATCH,0 | ||
| PRODUCTVERSION CHSRC_VERSION_MAJOR,CHSRC_VERSION_MINOR,CHSRC_VERSION_PATCH,0 | ||
| FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | ||
| #ifdef _DEBUG | ||
| FILEFLAGS VS_FF_DEBUG | ||
| #else | ||
| FILEFLAGS 0x0L | ||
| #endif | ||
| FILEOS VOS_NT_WINDOWS32 | ||
| FILETYPE VFT_APP | ||
| FILESUBTYPE VFT2_UNKNOWN | ||
| BEGIN | ||
| BLOCK "StringFileInfo" | ||
| BEGIN | ||
| BLOCK "040904b0" | ||
| BEGIN | ||
| VALUE "CompanyName", "Github RubyMetric" | ||
| VALUE "FileDescription", "Change Source everywhere for every software" | ||
| VALUE "FileVersion", Chsrc_Version | ||
| VALUE "InternalName", "chsrc" | ||
| VALUE "LegalCopyright", "Copyright (c) 2023-2025 RubyMetric" | ||
| VALUE "OriginalFilename", "chsrc.exe" | ||
| VALUE "ProductName", "chsrc" | ||
| VALUE "ProductVersion", Chsrc_Release_Date | ||
| VALUE "Comments", "MIT License" | ||
| VALUE "LegalTrademarks", "" | ||
| END | ||
| END | ||
| BLOCK "VarFileInfo" | ||
| BEGIN | ||
| VALUE "Translation", 0x0804, 1200, 0x0409, 1200 // 简体中文和英语 | ||
| END | ||
| END |
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.
Uh oh!
There was an error while loading. Please reload this page.