Debug files files on macos are actually folders.

This commit is contained in:
Roman Telezhynskyi 2024-03-29 15:58:06 +02:00
parent 291ac98c64
commit b7e2366cd1

View File

@ -5,6 +5,7 @@ import sys
import glob import glob
import zipfile import zipfile
import requests import requests
import shutil
database = "valentina" database = "valentina"
@ -135,7 +136,10 @@ def upload_symbols(install_root, val_version, commit_hash, qt_version, clean=Fal
print(f"PermissionError removing '{sym_file}': {e}") print(f"PermissionError removing '{sym_file}': {e}")
try: try:
os.remove(debug_file) if sys.platform == "darwin":
shutil.rmtree(debug_file)
else:
os.remove(debug_file)
print(f"Debug file '{debug_file}' removed.") print(f"Debug file '{debug_file}' removed.")
except PermissionError as e: except PermissionError as e:
print(f"PermissionError removing '{debug_file}': {e}") print(f"PermissionError removing '{debug_file}': {e}")