From 308ef9704aae8866a8f83813d8477e1ff38e68c2 Mon Sep 17 00:00:00 2001 From: coldsofttech Date: Sat, 13 Apr 2024 14:47:31 +0100 Subject: [PATCH] Updated Pipeline To Support Multi-OS & Added Support for PyPI Release --- .github/workflows/pipeline.yml | 13 ------------- src/__init__.py | 4 ++++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index cc6b168..2f8adfd 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -65,19 +65,6 @@ jobs: pip install pytest pip install -r requirements.txt - - name: Install Dependencies (Ubuntu) - if: matrix.os == 'ubuntu-latest' - run: | - sudo apt-get install -y python3-tk - sudo apt-get install -y xvfb - - - name: Start Virtual Display (Ubuntu) - if: matrix.os == 'ubuntu-latest' - run: | - Xvfb :99 -screen 0 1024x768x16 & - export DISPLAY=:99 - ps aux | grep Xvfb - - name: Run Tests run: | pytest tests -vv -rEPW -o pytest_collection_order=alphabetical --cache-clear --color=yes diff --git a/src/__init__.py b/src/__init__.py index a5d9766..59819a6 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -459,6 +459,10 @@ def _open_license(self, event) -> None: def main(): + if os.environ.get('DISPLAY', '') == '': + print('No display found. Using: 0.0') + os.environ.__setitem__('DISPLAY', ':0.0') + root = tk.Tk() M3U8DownloaderUI(root) root.mainloop()