# rcedit **Repository Path**: godotengine_mirror/rcedit ## Basic Information - **Project Name**: rcedit - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-28 - **Last Updated**: 2023-11-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rcedit [![Build status](https://ci.appveyor.com/api/projects/status/99eokln2emhidcej?svg=true)](https://ci.appveyor.com/project/zcbenz/rcedit/branch/master) 用命令行工具来编辑Windows上.exe文件的资源。 ## Executables 可以在appveyor jobs的工件中找到预构建的二进制文件。 ## 构建 1. clone该仓库 2. 使用使用Visual Studio 2015或更高版本打开`rcedit.sln` 3. Build构建 ## 生成解决方案文件 如果修改了gyp文件,则应重新生成解决方案文件:: 1. 确保你的系统上配置了gyp。如果没有,则从https://chromium.googlesource.com/external/gyp 2. 运行`gyp rcedit.gyp --depth .` ## 文档 显示帮助: ```bash $ rcedit -h ``` 设置版本字符串: ```bash $ rcedit "path-to-exe-or-dll" --set-version-string "Comments" "This is an exe" ``` 如MSDN文档中所述, [使用此选项](https://msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx)更改任何受支持的属性 设置文件版本: ```bash $ rcedit "path-to-exe-or-dll" --set-file-version "10.7" ``` 设置产品版本: ```bash $ rcedit "path-to-exe-or-dll" --set-product-version "10.7" ``` 设置图标: ```bash $ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico" ``` 设置资源字符串: ```bash $ rcedit "path-to-exe-or-dll" --set-resource-string id_number "new string value" ``` 在manifest中设置[请求的执行级别](https://msdn.microsoft.com/en-us/library/6ad1fshk.aspx#Anchor_9) (`asInvoker` | `highestAvailable` | `requireAdministrator`): ```bash $ rcedit "path-to-exe-or-dll" --set-requested-execution-level "requireAdministrator" ``` 设置[应用程序单](https://msdn.microsoft.com/en-us/library/windows/desktop/aa374191.aspx): ```bash $ rcedit "path-to-exe-or-dll" --application-manifest ./path/to/manifest/file ``` 您可以在一个命令中更改多个内容: ```bash $ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico" --set-file-version "10.7" ``` 获取版本字符串: ```bash $ rcedit "path-to-exe-or-dll" --get-version-string "property" ``` 使用与`--set-version-string`相同的属性. 使用 `"FileVersion"` 得到和 `--set-file-version`相同的结果, 使用 `"ProductVersion"`得到和`--get-product-version`相同的结果. 获取字符串: ```bash $ rcedit "path-to-exe-or-dll" --get-resource-string id_number ```