Fix variable naming and hardcoded path

Remove Dockerfile

init
This commit is contained in:
Rikka committed 2023-01-18 01:06:32 +08:00
1 parent 4ccbc05426
commit dcb48bb2a4
11 files changed
+45 -25

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@ from tools.helper import bcolors, get_download_dir, print_color, run
class Houdini(General):
download_loc = get_download_dir()
sys_image_mount = "./houdini"
copy_dir = "./houdini"
dl_links = {
"11.0.0": [
"https://github.com/supremegamers/vendor_intel_proprietary_houdini/archive/81f2a51ef539a35aead396ab7fce2adf89f46e88.zip",
@@ -44,9 +44,9 @@ class Houdini(General):
print_color("Copying libhoudini library files ...", bcolors.GREEN)
name = re.findall("([a-zA-Z0-9]+)\.zip", self.dl_link)[0]
shutil.copytree(os.path.join(self.extract_to, "vendor_intel_proprietary_houdini-" + name,
"prebuilts"), os.path.join(self.sys_image_mount, "vendor"), dirs_exist_ok=True)
"prebuilts"), os.path.join(self.copy_dir, "vendor"), dirs_exist_ok=True)
init_path = os.path.join(self.sys_image_mount, "system", "etc", "init", "houdini.rc")
init_path = os.path.join(self.copy_dir, "system", "etc", "init", "houdini.rc")
if not os.path.isfile(init_path):
os.makedirs(os.path.dirname(init_path), exist_ok=True)
with open(init_path, "w") as initfile: