mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
install libev on build scripts
+ fix: scanning system dirs on mac
This commit is contained in:
@@ -77,7 +77,7 @@ jobs:
|
||||
- name: Activate virtualenv (linux)
|
||||
if: matrix.os == 'ubuntu-20.04'
|
||||
run: |
|
||||
source .venv/bin/activate && pip install bjoern
|
||||
apt-get install libev-dev && source .venv/bin/activate && pip install bjoern
|
||||
- name: Activate virtualenv (windows)
|
||||
if: matrix.os == 'windows-2019'
|
||||
run: |
|
||||
|
||||
@@ -32,3 +32,6 @@ testdata.py
|
||||
test.py
|
||||
nohup.out
|
||||
*s.json
|
||||
|
||||
|
||||
.DS_Store
|
||||
+1
-1
@@ -23,7 +23,7 @@ cd swingmusicbuilder
|
||||
|
||||
git clone --quiet https://github.com/swing-opensource/swingmusic-client.git
|
||||
git clone --quiet https://github.com/swing-opensource/swingmusic.git
|
||||
# Manual poetry installation as installers are broken.
|
||||
|
||||
python3.11 -m venv venv
|
||||
source venv/bin/activate
|
||||
|
||||
|
||||
+1
-1
@@ -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
@@ -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:
|
||||
|
||||
@@ -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"""
|
||||
|
||||
@@ -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 [], []
|
||||
|
||||
Reference in New Issue
Block a user