我正在从预编译的库(Zip文件)中创建一个包。 Zip文件包含一个名为codegen的文件,该文件具有可执行权限(-rwxr-xr-x)。 但是当我检查柯南包装时,我只有读权限(-rw-r--r-)。
我从柯南那里检查了复制方法,但是对于像这样的东西却没有参数。
这是我的conanfile.py
from conans import ConanFile, CMake, tools
class external-libConan(ConanFile):
name = "external-ib"
version = "0.6.0"
license = "<Put the package license here>"
author = "me"
url = "<Package recipe repository url here, for issues about the package>"
description = "<Description of external-lib here>"
topics = ("<Put some tag here>", "<here>", "<and here>")
settings = "os", "compiler", "build_type", "arch"
def build(self):
url = ("http://url/external-lib.zip")
tools.get(url)
self.run("cp -R external-lib/* ./")
self.run("rm -rf external-lib")
def package(self):
self.copy("*")
def package_info(self):
self.cpp_info.builddirs = ["", "lib/cmake/external-lib"]
有人知道如何将文件权限复制到柯南包中吗?