python-20 / video-downloader

A python application to download videos
GNU General Public License v3.0
10 stars 10 forks source link

[Feature/executable] Modify project to work with pyinstaller #72

Open cherylli opened 4 years ago

cherylli commented 4 years ago
  1. use .py instead of .ui for UI files, which means any changes made to the UI file will have to be re convert to py using the command python -m PyQt5.uic.pyuic -x youtubedl/ui/qt.ui -o MainWindow.py
  2. created setup.py
  3. exe and spec file is .gitignore'd, I've uploaded here https://drive.google.com/drive/u/3/folders/1m29gXjqKPOU2h0ka0YkccpmYBJzSgSJ4
chonix commented 4 years ago

pyinstaller -y -F --noupx --log-level DEBUG --debug all --hidden-import PyQt5 "{Path}/video-downloader/youtubedl/gui.py"

So I generate the .exe with that for win?

cherylli commented 4 years ago

pyinstaller -y -F --noupx --log-level DEBUG --debug all --hidden-import PyQt5 "{Path}/video-downloader/youtubedl/gui.py"

So I generate the .exe with that for win? Sorry thats old. Please refer to the other comment with google drive links. I put the spec file and the generated exe in there. sample command to use spec file, pyinstaller "C:\Documents and Settings\project\myscript.spec"

AlexPHorta commented 4 years ago

I tried the spec you provided, but had no success. I'll try other options.

AlexPHorta commented 4 years ago

I believe we could leave it that way for now, and check this project later...

https://github.com/python-poetry/poetry

It's in active development and provides a complete solution.

cherylli commented 4 years ago

could be because my config only works in windows? Yeah we can still look at other options