From af7ff46cee13ed9f127836d58a742a2f62256569 Mon Sep 17 00:00:00 2001 From: ExaellaSS Date: Wed, 12 Jun 2024 01:48:41 +0300 Subject: [PATCH] Update README.md --- README.md | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bad603d..3e187a1 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,50 @@ If you prefer to distribute the application as an executable file, follow these 2. Place the `ffmpeg` executable in `ffmpeg/bin/ffmpeg.exe` and your icon file in `resources/icon.ico`. -3. Create the executable using the provided spec file: +3. Create custom `youtube_downloader.spec`. Example: + ```python + # -*- mode: python ; coding: utf-8 -*- + a = Analysis( + ['youtube_downloader.py'], + pathex=[], + binaries=[('ffmpeg/bin/ffmpeg.exe', '.')], + datas=[('resources/icon.ico', 'resources')], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, + ) + pyz = PYZ(a.pure) + + exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='youtube_downloader', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['resources\\icon.ico'], + ) + ``` + +5. Create the executable using the provided spec file: ```bash - pyinstaller --onefile youtube_downloader.spec + pyinstaller youtube_downloader.spec ``` ### Pre-built Executable