build_config.yaml 2.6 KB

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