feat: add support for configure scripts

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-09-11 07:24:46 +00:00
parent d510d14bc9
commit f2c2fa93c9
5 changed files with 28 additions and 0 deletions
+9
View File
@@ -25,6 +25,15 @@ class PkgComposer:
json.dump(link, f)
f.write("\n")
def add_configure(self, path: str, name: str = None):
if name is None:
name = os.path.basename(path)
configuredir = self.workdir + "/configure/"
dstpath = configuredir + name
os.makedirs(configuredir, exist_ok=True)
shutil.copy2(path, dstpath)
os.chmod(dstpath, 0o755)
def compose(self):
subprocess.run(
[