chore(workflow): simplify PyInstaller build command in release workflow

This commit is contained in:
wood chen 2024-11-16 09:57:32 +08:00
parent dac061da63
commit e809a2e6f7

View File

@ -60,19 +60,9 @@ jobs:
pip install pyinstaller pip install pyinstaller
- name: Build with PyInstaller - name: Build with PyInstaller
shell: cmd
run: | run: |
pyinstaller --name video2gif ^ pyinstaller --name video2gif --onefile --windowed --add-data "ffmpeg/ffmpeg.exe;ffmpeg" --add-data "ffmpeg/ffprobe.exe;ffmpeg" --add-data "README.md;." --clean --noconfirm --log-level=INFO gui.py
--onefile ^
--windowed ^
--icon=icon.ico ^
--add-data "ffmpeg/ffmpeg.exe;ffmpeg" ^
--add-data "ffmpeg/ffprobe.exe;ffmpeg" ^
--add-data "README.md;." ^
--clean ^
--noconfirm ^
--noupx ^
--log-level=INFO ^
gui.py
- name: Upload Release Asset - name: Upload Release Asset
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1