Skip to content

Commit 5ca38ab

Browse files
committed
bug fix
temporary fix for invalid template url
1 parent 792bbd9 commit 5ca38ab

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,8 @@ venv.bak/
108108
.idea
109109

110110
# peotry
111-
112111
poetry.lock
112+
113+
# Custom
114+
config.yml
115+
export

magisk-module-installer-master.zip

6.38 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = ["Zarcher <[email protected]>"]
77
readme = "README.md"
88

99
[tool.poetry.dependencies]
10-
python = "^3.7"
10+
python = "^3.8"
1111
PrintTags = "*"
1212
pillow = "*"
1313
tqdm = "*"

run.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def main(config):
107107

108108
template_file_name = 'magisk-module-installer-master.zip'
109109
template_download_url = 'https://github.com/topjohnwu/magisk-module-installer/archive/master.zip'
110+
# template_download_url = 'https://github.com/topjohnwu/magisk-module-installer/archive/73dbc1c90dfff16c2d36f453acdeb4b750ca460b.zip'
110111
template_dir_path = os.path.join(export_temp_dir_path, 'magisk-module-installer-master')
111112
module_installer_sh_url = "https://raw.githubusercontent.com/topjohnwu/Magisk/master/scripts/module_installer.sh"
112113
update_binary_file_path = os.path.join(template_dir_path, 'META-INF', 'com', 'google', 'android', 'update-binary')
@@ -338,6 +339,10 @@ def main(config):
338339
# Make module
339340

340341
pt.info(show_text.get("MODULE_MAKE"))
342+
343+
# temporary fix for invalid template url
344+
shutil.copy(template_file_name, export_dir_path)
345+
341346
# Prepare Magisk template
342347
template_prepare(
343348
template_dir_path=export_dir_path,

0 commit comments

Comments
 (0)