Repository navigation
两个 exe 加上版本信息,不再去掉符号表 - #107
Merged
Merged
Conversation
0.38.2 的 tools\modavd.exe 被 Defender 云端判成 Trojan:Win32/Bearfoos.A!ml,是机器学习规则的误报。 没签名、去了符号、没有版本信息的 Go 程序最容易被这类规则报,这两样先改掉。 - winres 改为一次生成两份 rsrc_windows_amd64.syso:cmd/modavd-gui/ 给 ModAVD.exe,根目录给 tools\modavd.exe(新增)。两份都带图标、清单和版本信息(RT_VERSION):ProductName ModAVD、 FileDescription、FileVersion / ProductVersion 取 buildinfo.Version、CompanyName、LegalCopyright、 OriginalFilename。输出照旧不带时间戳,逐字节可复现。 - build.ps1 编两个 exe 时去掉 -s -w(留符号表和 DWARF);客体里跑的 modavd-proxyd 照旧去符号, 它是 gzip 后嵌进 exe 的 Linux 程序。 - 单测:提交的两份 syso 和按当前 buildinfo.Version 生成的逐字节一致(改了版本号没重新生成就失败); 版本号解析;按 VerQueryValue 的走法逐层解析版本信息块,核长度、对齐、各字符串和 Translation。 - README(中英)写明不去符号、版本信息从哪来、改版本号后要 go generate ./cmd/modavd-gui。 验证:build.ps1 -Test 全部通过;两个 exe 在 Windows 的文件属性里显示 ModAVD 0.6.0 和对应说明; modavd.exe version --json 正常;exe 里没有本机路径,隐私扫描 0 失败;Defender 本地扫描没有报。 大小:modavd.exe 11.5 → 15.7 MB,ModAVD.exe 12.3 → 16.5 MB,各大了约三分之一。云端会不会再判,要等下一版发出去才知道。
qiyinxi
enabled auto-merge
November 8, 2026 16:41
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
0.38.2 的 tools\modavd.exe 被 Defender 云端判成 Trojan:Win32/Bearfoos.A!ml,是机器学习规则的误报。
没签名、去了符号、没有版本信息的 Go 程序最容易被这类规则报,这两样先改掉。
tools\modavd.exe(新增)。两份都带图标、清单和版本信息(RT_VERSION):ProductName ModAVD、
FileDescription、FileVersion / ProductVersion 取 buildinfo.Version、CompanyName、LegalCopyright、
OriginalFilename。输出照旧不带时间戳,逐字节可复现。
它是 gzip 后嵌进 exe 的 Linux 程序。
版本号解析;按 VerQueryValue 的走法逐层解析版本信息块,核长度、对齐、各字符串和 Translation。
验证:build.ps1 -Test 全部通过;两个 exe 在 Windows 的文件属性里显示 ModAVD 0.6.0 和对应说明;
modavd.exe version --json 正常;exe 里没有本机路径,隐私扫描 0 失败;Defender 本地扫描没有报。
大小:modavd.exe 11.5 → 15.7 MB,ModAVD.exe 12.3 → 16.5 MB,各大了约三分之一。云端会不会再判,要等下一版发出去才知道。