Skip to content

Commit

Permalink
Improve Windows deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kleag committed Aug 23, 2024
1 parent 0acccb3 commit 06b686a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ using OpenUnmix.
pip install yaas
```

If you are under Windows, you will have to ensure to have a working python installation and to have ffmpeg installed.

## Usage

Just run
Expand Down
8 changes: 8 additions & 0 deletions src/yaas.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@

from worker import Worker

try:
from ctypes import windll # Only exists on Windows.
myappid = 'kleag.yaas.0'
windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
except ImportError:
pass


class MainWindow(QWidget):
def __init__(self):
super().__init__()
Expand Down
3 changes: 1 addition & 2 deletions yaas.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ a = Analysis(
pathex=['.'],
binaries=[],
datas=[],
hiddenimports=['PySide6', 'pytube', 'pydub', 'torch', 'torchaudio', 'openunmix', 'moviepy', 'ffmpeg'],
hiddenimports=['PySide6', 'pytubefix', 'pydub', 'torch', 'torchaudio', 'openunmix', 'moviepy', 'ffmpeg', 'PySoundFile'],
hookspath=[],
runtime_hooks=[],
excludes=[],
Expand All @@ -19,7 +19,6 @@ a = Analysis(
)
# cipher=block_cipher,


pyz = PYZ(a.pure, a.zipped_data, cipher=None)

exe = EXE(
Expand Down

0 comments on commit 06b686a

Please sign in to comment.