翻译成英文: 是否能通过Ⅰ的"URL to…
- User
翻译成英文:
是否能通过Ⅰ的"URL to file"直接下载整个目录,然后用某种算法计算它的hash值(是md5吗?)与现在的hash值进行对比来验证下载文件完整性?如果只下载conan_package.tgz,我需要自行计算它的hash值并保存下来。
- Assistant
Is it possible to directly download the entire directory through "URL to file" in Ⅰ, and then calculate its hash value (is it MD5?) using some algorithm and compare it with the current hash value to verify the integrity of the downloaded files? If only conan_package.tgz is downloaded, I need to calculate its hash value myself and save it.
- User
翻译成英文:
是否能通过Ⅰ的"URL to file"直接下载整个目录,然后用某种算法计算它的hash值(是md5吗?)与现在的hash值进行对比来验证下载文件完整性?如果单独下载conan_package.tgz,我需要自行计算它的hash值并保存下来。
- Assistant
Is it possible to directly download the entire directory through "URL to file" in Ⅰ, and then calculate its hash value using some algorithm (is it MD5?) and compare it with the current hash value to verify the integrity of the downloaded files? If only downloading conan_package.tgz separately, I need to calculate its hash value myself and save it.
- User
翻译成英文:目前我的项目只需要管理预构建的二进制包,我觉得可以在项目中维护一个记录库信息(包含hash值)的文件,在需要库的时候用脚本读取该文件,找到需要的库信息并拼凑出库的conan_package.tgz文件url,然后通过url从远程库下载解压它(在conanfile.py中配置库的include、lib目录,保持使用相同的目录结构接入项目),这样可以仅在我的服务器上运行Conan内容,而不是每个运行项目的客户端都需要引入Conan。
- Assistant
Currently, my project only needs to manage pre-built binary packages. I think it's possible to maintain a record file in the project that contains package information (including hash values). When a library is needed, a script can be used to read the file, find the required library information, and construct the URL for the conan_package.tgz file. The file can then be downloaded from the remote repository via the URL and extracted (configure the include and lib directories in conanfile.py file to maintain the same directory structure when accessing the project). This way, Conan content can be run only on my server, rather than every client running the project having to import Conan.
- User
翻译成英文:目前我的项目只需要管理预构建的二进制包,我觉得可以在项目中维护一个记录库信息(包含hash值)的文件,在需要库的时候用脚本读取该文件,从中找到需要的库信息并拼凑出库的conan_package.tgz文件的url,然后通过url从远程库下载解压它(在conanfile.py中配置库的include、lib目录,保持使用相同的目录结构接入项目),这样可以仅在我的服务器上运行Conan内容,而不是每个运行项目的客户端都需要引入Conan。
- Assistant
Currently, my project only needs to manage pre-built binary packages. I think it's possible to maintain a record file in the project that contains package information (including hash values). When a library is needed, a script can be used to read the file, find the required library information, and construct the URL for the conan_package.tgz file. The file can then be downloaded from the remote repository via the URL and extracted (configure the include and lib directories in conanfile.py file to maintain the same directory structure when accessing the project). This way, Conan content can be run only on my server, so that every client running the project does not have to import Conan.