Update leenkx/blender/lnx/make.py

This commit is contained in:
Gorochu
2026-05-29 22:23:38 +00:00
parent 5aec4c9c30
commit c3c8dc2dce

View File

@ -223,8 +223,8 @@ def export_data_impl(fp, sdk_path):
shutil.rmtree(build_dir + '/windows-resources', onerror=remove_readonly) shutil.rmtree(build_dir + '/windows-resources', onerror=remove_readonly)
if os.path.isdir(build_dir + '/linux-resources'): if os.path.isdir(build_dir + '/linux-resources'):
shutil.rmtree(build_dir + '/linux-resources', onerror=remove_readonly) shutil.rmtree(build_dir + '/linux-resources', onerror=remove_readonly)
if os.path.isdir(build_dir + '/osx-resources'): if os.path.isdir(build_dir + '/macos-resources'):
shutil.rmtree(build_dir + '/osx-resources', onerror=remove_readonly) shutil.rmtree(build_dir + '/macos-resources', onerror=remove_readonly)
if os.path.isdir(build_dir + '/compiled/Shaders'): if os.path.isdir(build_dir + '/compiled/Shaders'):
shutil.rmtree(build_dir + '/compiled/Shaders', onerror=remove_readonly) shutil.rmtree(build_dir + '/compiled/Shaders', onerror=remove_readonly)
@ -531,7 +531,7 @@ def build(target, is_play=False, is_publish=False, is_export=False):
target = 'windows-hl' target = 'windows-hl'
elif current_os == 'linux': elif current_os == 'linux':
target = 'linux-hl' target = 'linux-hl'
elif current_os == 'mac' or current_os == 'macos': elif current_os == 'mac' or current_os == 'osx' or current_os == 'macos':
target = 'macos-hl' target = 'macos-hl'
else: else:
log.error(f"Unsupported OS '{current_os}' for Hashlink runtime.") log.error(f"Unsupported OS '{current_os}' for Hashlink runtime.")
@ -1312,7 +1312,7 @@ def build_success():
if target_name == 'html5': if target_name == 'html5':
project_path = files_path project_path = files_path
print('Exported HTML5 package to ' + project_path) print('Exported HTML5 package to ' + project_path)
elif target_name.startswith('ios') or target_name.startswith('osx'): # TODO: to macos elif target_name.startswith('ios') or target_name.startswith('osx') or target_name.startswith('macos'):
project_path = files_path + '-build' project_path = files_path + '-build'
print('Exported XCode project to ' + project_path) print('Exported XCode project to ' + project_path)
elif target_name.startswith('windows'): elif target_name.startswith('windows'):