diff --git a/.github/workflows/package-mac.yml b/.github/workflows/package-mac.yml index c5baeea..f9052e8 100644 --- a/.github/workflows/package-mac.yml +++ b/.github/workflows/package-mac.yml @@ -92,7 +92,7 @@ jobs: python3 -m venv venv source venv/bin/activate pip install -r requirements-mac.txt - pyinstaller package-mac.spec --noconfirm + pyinstaller package-server.spec --noconfirm deactivate - name: Move Python Server to resources folder diff --git a/Transcription-Server/server.py b/Transcription-Server/server.py index 225ba4c..ea80a44 100644 --- a/Transcription-Server/server.py +++ b/Transcription-Server/server.py @@ -16,8 +16,10 @@ os.environ['PYTHONIOENCODING'] = 'utf-8' # Define a base cache directory using appdirs -cache_dir = appdirs.user_cache_dir( - "AutoSubs", "") # Empty string for appauthor +if platform.system() == 'Windows': + cache_dir = appdirs.user_cache_dir("AutoSubs-Cache", "") +else: + cache_dir = appdirs.user_cache_dir("AutoSubs", "") # Matplotlib cache directory matplotlib_cache_dir = os.path.join(cache_dir, 'matplotlib_cachedir')