💾 Save content in install.inf file

This commit is contained in:
ful1e5 2020-08-26 12:01:18 +05:30
parent 61ad38d41c
commit befee63177
2 changed files with 3 additions and 3 deletions

View file

@ -41,5 +41,5 @@ windows_cursors = {
# Windows install.inf file content # Windows install.inf file content
with open("./scripts/windows.inf") as f: with open("./scripts/windows.inf") as f:
data = f.read() data = f.read()
window_install_inf = data.replace( window_install_inf_content = data.replace(
"<inject_theme_name>", name+" Cursors").replace("<inject_author_name>", author) "<inject_theme_name>", name+" Cursors").replace("<inject_author_name>", author)

View file

@ -2,7 +2,7 @@ import shutil
import json import json
import sys import sys
from config import name, temp_folder, bitmaps_dir, win_out, x11_out, window_install_inf, windows_cursors from config import name, temp_folder, bitmaps_dir, win_out, x11_out, window_install_inf_content, windows_cursors
from os import path, listdir, rename, remove from os import path, listdir, rename, remove
@ -26,7 +26,7 @@ def window_bundle() -> None:
# creating install.inf file # creating install.inf file
install_inf_path = path.join(win_out_dir, "install.inf") install_inf_path = path.join(win_out_dir, "install.inf")
with open(install_inf_path, "w") as file: with open(install_inf_path, "w") as file:
file.write(install_inf_path) file.write(window_install_inf_content)
def init_build() -> None: def init_build() -> None: