install libev on build scripts

+ fix: scanning system dirs on mac
This commit is contained in:
cwilvx
2025-04-03 14:25:44 +03:00
parent d6821bb6d3
commit 056c0456f9
7 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ def handle_build(*args, **kwargs):
f"--add-data=client{_s}client",
f"--add-data=version.txt{_s}.",
f"--add-data={flask_openapi_path}/templates/static{_s}flask_openapi3/templates/static",
f"--icon=assets/logo-fill.light.ico",
"--icon=assets/logo-fill.light.ico",
"-y",
]
)
+1 -2
View File
@@ -1,5 +1,4 @@
from dataclasses import asdict
import math
import os
from concurrent.futures import ProcessPoolExecutor
import platform
@@ -45,7 +44,7 @@ class CordinateMedia:
)
log.error(e) # REVIEW More informations = good
else:
log.warning(f"No internet connection. Downloading artist images suspended!")
log.warning("No internet connection. Downloading artist images suspended!")
# Re-process the new artist images.
if tried_to_download_new_images:
-4
View File
@@ -1,4 +1,3 @@
import math
import os
from functools import partial
from multiprocessing import Pool, cpu_count
@@ -116,9 +115,6 @@ class IndexTracks:
return unmodified_paths, modified_tracks
def get_untagged(self):
tracks = TrackTable.get_all()
@staticmethod
def _process_file(file: str, config: UserConfig) -> dict | None:
"""Worker function to process individual files"""
+10
View File
@@ -14,6 +14,16 @@ def run_fast_scandir(_dir: str, full=False) -> tuple[list[str], list[str]]:
Scans a directory for files with a specific extension.
Returns a list of files and folders in the directory.
"""
# if on mac, ignore Library folder and its children
if os.name == "posix":
dir_path = Path(_dir)
library_path = Path.home() / "Library"
if dir_path == library_path or library_path in dir_path.parents:
return [], []
# if the path contains "node_modules" ignore
if "node_modules" in _dir:
return [], []
if _dir == "":
return [], []