Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ExaellaSS authored Jun 11, 2024
1 parent ebc70e3 commit af7ff46
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af7ff46

Please sign in to comment.