mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-19 01:35:11 -04:00
💾 Store actual content in install.inf
This commit is contained in:
parent
424ff294b4
commit
8b9bf98011
2 changed files with 3 additions and 3 deletions
|
@ -50,5 +50,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)
|
||||||
|
|
|
@ -5,7 +5,7 @@ import json
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from os import path, listdir, rename, remove
|
from os import path, listdir, rename, remove
|
||||||
from config import name, bitmaps_dir, out_dir, window_install_inf, windows_cursors
|
from config import name, bitmaps_dir, out_dir, window_install_inf_content, windows_cursors
|
||||||
|
|
||||||
|
|
||||||
def window_bundle(win_out_dir: str) -> None:
|
def window_bundle(win_out_dir: str) -> None:
|
||||||
|
@ -23,7 +23,7 @@ def window_bundle(win_out_dir: str) -> 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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue