video2gif/video2gif.spec
wood chen 0decff023e chore(workflow): update build process with PyInstaller spec file
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.
2024-11-16 10:17:36 +08:00

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,
)