mirror of
https://github.com/woodchen-ink/video2gif.git
synced 2025-07-17 21:22:02 +08:00
Update the GitHub Actions workflow to use the PyInstaller spec file for building the application, ensuring proper inclusion of FFmpeg executables and improving the build process.
46 lines
903 B
Python
46 lines
903 B
Python
# video2gif.spec
|
|
block_cipher = None
|
|
|
|
a = Analysis(
|
|
['gui.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=[
|
|
('ffmpeg/ffmpeg.exe', 'ffmpeg'),
|
|
('ffmpeg/ffprobe.exe', 'ffmpeg'),
|
|
('README.md', '.')
|
|
],
|
|
hiddenimports=['ffmpeg', 'ffmpeg-python'],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
win_no_prefer_redirects=False,
|
|
win_private_assemblies=False,
|
|
cipher=block_cipher,
|
|
noarchive=False,
|
|
)
|
|
|
|
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.zipfiles,
|
|
a.datas,
|
|
[],
|
|
name='video2gif',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
runtime_tmpdir=None,
|
|
console=False,
|
|
disable_windowed_traceback=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
)
|