This commit is contained in:
friedkeenan 2020-04-09 19:30:33 -05:00 committed by Nichole Mattera
parent 29db8b59cf
commit 260c089056
16 changed files with 6 additions and 7 deletions

View file

@ -1,5 +0,0 @@
{
"name" : "sys-ftpd-light",
"tid" : "420000000000000E",
"requires_reboot": false
}

0
Builder/builder.py Normal file → Executable file
View file

View file

@ -46,6 +46,9 @@ def delete_path(path):
def copy_module_file(module_name, file_name, destination):
return shutil.copyfile(os.path.join(os.getcwd(), 'Modules', module_name, file_name), destination)
def copy_module_folder(module_name, folder_name, destination):
return shutil.copytree(os.path.join(os.getcwd(), 'Modules', module_name, folder_name), destination)
def find_file(pattern):
return glob.glob(pattern, recursive=False)

View file

@ -126,8 +126,10 @@ def download_atmosphere(module, temp_directory, kosmos_version, kosmos_build):
common.mkdir(os.path.join(temp_directory, 'bootloader', 'payloads'))
shutil.move(payload_path, os.path.join(temp_directory, 'bootloader', 'payloads', 'fusee-primary.bin'))
common.copy_module_file('atmosphere', 'system_settings.ini', os.path.join(temp_directory, 'atmosphere', 'config', 'system_settings.ini'))
common.copy_module_folder('atmosphere', 'exefs_patches', os.path.join(temp_directory, 'atmosphere', 'exefs_patches'))
if not kosmos_build:
common.delete_path(os.path.join(temp_directory, 'hbmenu.nro'))
@ -376,7 +378,6 @@ def download_sys_ftpd_light(module, temp_directory, kosmos_version, kosmos_build
common.delete_path(bundle_path)
if kosmos_build:
common.delete_path(os.path.join(temp_directory, 'atmosphere', 'contents', '420000000000000E', 'flags', 'boot2.flag'))
common.copy_module_file('sys-ftpd-light', 'toolbox.json', os.path.join(temp_directory, 'atmosphere', 'contents', '420000000000000E', 'toolbox.json'))
return release.tag_name