feat: 更新可执行文件构建工作流,添加 Windows 和 macOS 支持,并修改依赖版本

This commit is contained in:
nymiro
2025-10-23 21:01:46 +13:00
parent 3d63404c51
commit 2658bb97a2
11 changed files with 211 additions and 6 deletions
+24
View File
@@ -37,6 +37,30 @@ pip install -e .[full]
---
### Windows & macOS standalone binaries
Need an executable without Python? Trigger the **Build Samsung Live Photo binaries** workflow in GitHub Actions (or wait for an automatic run) and download the `SamsungToLivePhoto-windows` / `SamsungToLivePhoto-macos` artifacts. Each archive ships with a short README that mirrors `packaging/README_windows.txt` and `packaging/README_macos.txt`.
To build locally on the target OS:
```bash
# Windows (PowerShell)
python -m pip install ".[full]" pyinstaller
pyinstaller --noconfirm --onefile --name SamsungToLivePhoto `
--collect-all pillow_heif --collect-all pyheic_struct `
scripts/samsung_to_live_photo.py
# macOS (bash/zsh)
python3 -m pip install ".[full]" pyinstaller
pyinstaller --noconfirm --onefile --name SamsungToLivePhoto \
--collect-all pillow_heif --collect-all pyheic_struct \
scripts/samsung_to_live_photo.py
```
The resulting executables live under `dist/`: `SamsungToLivePhoto.exe` on Windows and `SamsungToLivePhoto` on macOS.
---
## Quick Start
### CLI conversion