This repository was archived by the owner on Feb 27, 2026. It is now read-only.
添加更多系统的架构和兼容性识别#71
Merged
Hill23333 merged 27 commits intoPCL-Community:mainfrom May 8, 2025
AnemoFlower:main
Merged
Conversation
Contributor
Author
|
|
bugFix: output应该先判断是不是fat file再split
… feature/unix_java_path_fix
feat: 全面的异步调用和兼容性优化
Contributor
Author
雀食 |
feat: enhance Java management with initialization and refresh capabil…
Member
|
话说, |
Contributor
Author
输出不一样 (可恶的Gitify,有新Notification不通知我) |
Member
Contributor
Author
Hill 不是说周末写个库吗,理论上这个 PR 可以 Close 了( |
Contributor
Author
|
将判断架构的代码迁移到 |
Contributor
Author
周二了…… |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.


通过
file -L ...判断文件架构。-L参数会递归解析符号链接,输出格式:/usr/bin/java: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=2d06c32477208907961eec451ac46d1871803913, for GNU/Linux 3.7.0, stripped命令仅在 Ubuntu 上经过测试。
自提交 06a7930 起,Linux 架构通过读取 ELF 文件头判断。
自提交 874c314 起,Windows 架构通过读取 PE 文件头判断,macOS 架构通过读取 mach-O 文件头判断。