Skip to content

fix: public key resource file name mismatch causing 'Public key not found'#2

Open
ZenthXSin wants to merge 1 commit into
DeterMination-Wind:mainfrom
ZenthXSin:fix/public-key-resource-name
Open

fix: public key resource file name mismatch causing 'Public key not found'#2
ZenthXSin wants to merge 1 commit into
DeterMination-Wind:mainfrom
ZenthXSin:fix/public-key-resource-name

Conversation

@ZenthXSin
Copy link
Copy Markdown

问题

IntegrityChecker.getPublicKey()/assets/xenon_signature_publickey.der 加载公钥,但这个文件不存在。实际存在的文件是 assets/hmcl_signature_publickey.der(HMCL 改名旧遗留),导致 getResourceAsStream() 返回 null → IOException: Public key not found

这进一步导致 checkUpdate()isSelfVerified()Self verification failed,阻止更新检查。

修复

将常量 PUBLIC_KEY_FILEassets/xenon_signature_publickey.der 改为 assets/hmcl_signature_publickey.der,与实际文件名匹配。

验证

已确认仓库中存在文件 Xenon/src/main/resources/assets/hmcl_signature_publickey.der(550 bytes),而 xenon_signature_publickey.der 不存在。

相关

  • 此 fork 使用 _migration_logs/rewrite_hmcl_brand.py 进行品牌重写,公钥文件名的迁移被遗漏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants