Skip to content

Commit

Permalink
Attempt to fix pyinstaller 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed May 13, 2024
1 parent 14b8827 commit 55b79ab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.11.2
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.11.2
python-version: 3.9
- name: Install dependencies
run: |
curl -L https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20240513/mpv-dev-x86_64-20240513-git-61f72bd.7z > mpv.7z
Expand Down Expand Up @@ -45,10 +45,10 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.11.2
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.11.2
python-version: 3.9
- name: Install dependencies
run: |
curl -L https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20240513/mpv-dev-i686-20240513-git-61f72bd.7z > mpv.7z
Expand Down
19 changes: 12 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,20 @@
packages = [
"jellyfin_mpv_shim",
"jellyfin_mpv_shim.display_mirror",
"jellyfin_mpv_shim.messages",
"jellyfin_mpv_shim.default_shader_pack",
"jellyfin_mpv_shim.default_shader_pack.shaders",
"jellyfin_mpv_shim.integration"

]

for dir in os.listdir("jellyfin_mpv_shim/messages"):
if os.path.isdir("jellyfin_mpv_shim/messages/" + dir + "/LC_MESSAGES"):
packages.append("jellyfin_mpv_shim.messages." + dir + ".LC_MESSAGES")
if not sys.platform.startswith("win32"):
packages.extend([
"jellyfin_mpv_shim.messages",
"jellyfin_mpv_shim.default_shader_pack",
"jellyfin_mpv_shim.default_shader_pack.shaders",
"jellyfin_mpv_shim.integration"
])

for dir in os.listdir("jellyfin_mpv_shim/messages"):
if os.path.isdir("jellyfin_mpv_shim/messages/" + dir + "/LC_MESSAGES"):
packages.append("jellyfin_mpv_shim.messages." + dir + ".LC_MESSAGES")

setup(
name="jellyfin-mpv-shim",
Expand Down

0 comments on commit 55b79ab

Please sign in to comment.