| 1 | # Windows Package Build Configuration |
| 2 | |
| 3 | # Package information |
| 4 | package: |
| 5 | name: Pixelle-Video |
| 6 | version_source: pyproject.toml # Read version from pyproject.toml |
| 7 | architecture: win64 |
| 8 | |
| 9 | # Python configuration |
| 10 | python: |
| 11 | version: "3.11.9" |
| 12 | download_url: "https://www.python.org/ftp/python/3.11.9/python-3.11.9-embed-amd64.zip" |
| 13 | # Mirror for China users (optional) |
| 14 | mirror_url: "https://mirrors.huaweicloud.com/python/3.11.9/python-3.11.9-embed-amd64.zip" |
| 15 | |
| 16 | # FFmpeg configuration |
| 17 | ffmpeg: |
| 18 | version: "6.1.1" |
| 19 | download_url: "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip" |
| 20 | # Alternative mirror |
| 21 | mirror_url: "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip" |
| 22 | |
| 23 | # Playwright configuration (for HTML template rendering) |
| 24 | playwright: |
| 25 | install_browsers: true # Run 'playwright install chromium' during build |
| 26 | note: "Playwright manages its own Chromium binary, no system Chrome needed" |
| 27 | |
| 28 | # Build options |
| 29 | build: |
| 30 | # Files/folders to exclude from project copy |
| 31 | exclude_patterns: |
| 32 | - ".git" |
| 33 | - ".github" |
| 34 | - "__pycache__" |
| 35 | - "*.pyc" |
| 36 | - ".pytest_cache" |
| 37 | - ".ruff_cache" |
| 38 | - "*.log" |
| 39 | - ".DS_Store" |
| 40 | - "output/*" # Don't include output files |
| 41 | - "temp/*" |
| 42 | - "plans/*" # Don't include planning docs |
| 43 | - "repositories/*" # Don't include referenced repos |
| 44 | - "docs/en/*" # Don't include English docs |
| 45 | - "docs/zh/*" # Don't include Chinese docs |
| 46 | - "docs/gallery/*" # Don't include gallery docs |
| 47 | - "docs/stylesheets/*" # Don't include doc stylesheets |
| 48 | # Note: FAQ.md and FAQ_CN.md are included for in-app FAQ feature |
| 49 | - "test_*.py" # Don't include test files |
| 50 | - ".venv" |
| 51 | - "venv" |
| 52 | - "node_modules" |
| 53 | - "uv.lock" |
| 54 | - "config.yaml" # User configuration file (sensitive) |
| 55 | - "config.yaml.bak" # Configuration backup |
| 56 | - "*.yaml.bak" # All YAML backups |
| 57 | - ".env" # Environment variables |
| 58 | |
| 59 | # Dependencies installation |
| 60 | use_uv: true # Use uv for faster dependency installation |
| 61 | pre_install_deps: true # Install deps during build (recommended for end users) |
| 62 | |
| 63 | # Output |
| 64 | output_dir: "dist/windows" |
| 65 | create_zip: true |
| 66 | zip_compression: "deflate" # deflate, bzip2, lzma |
| 67 | |
| 68 | # Additional options |
| 69 | include_readme: true |
| 70 | include_license: true |
| 71 | create_empty_dirs: |
| 72 | - "data" |
| 73 | - "output" |
| 74 | |
| 75 | # Download cache |
| 76 | cache: |
| 77 | enabled: true |
| 78 | cache_dir: "packaging/windows/.cache" |
| 79 | |
| 80 | # Mirror settings (for China users) |
| 81 | mirrors: |
| 82 | use_cn_mirror: false # Set to true for faster downloads in China |
| 83 | pypi_mirror: "https://pypi.tuna.tsinghua.edu.cn/simple" |
| 84 | |
| 85 |