diff --git a/.github/workflows/Manually_build_executable_programs.yml b/.github/workflows/Manually_build_executable_programs.yml index 36dcc288..cbf583e1 100644 --- a/.github/workflows/Manually_build_executable_programs.yml +++ b/.github/workflows/Manually_build_executable_programs.yml @@ -29,13 +29,13 @@ jobs: - name: 构建 Win 可执行文件 if: runner.os == 'Windows' run: | - pyinstaller --icon=./static/images/TikTokDownloader.ico --add-data "static:static" --add-data "templates:templates" --collect-all emoji main.py + pyinstaller --icon=./static/images/TikTokDownloader.ico --add-data "static:static" --add-data "locale:locale" --add-data "templates:templates" --collect-all emoji main.py shell: pwsh - name: 构建 Mac 可执行文件 if: runner.os == 'macOS' run: | - pyinstaller --icon=./static/images/TikTokDownloader.icns --add-data "static:static" --add-data "templates:templates" --collect-all emoji main.py + pyinstaller --icon=./static/images/TikTokDownloader.icns --add-data "static:static" --add-data "locale:locale" --add-data "templates:templates" --collect-all emoji main.py - name: 上传文件 uses: actions/upload-artifact@v4 diff --git a/.github/workflows/Release_build_executable_program.yml b/.github/workflows/Release_build_executable_program.yml index d47b15a2..aa9c7517 100644 --- a/.github/workflows/Release_build_executable_program.yml +++ b/.github/workflows/Release_build_executable_program.yml @@ -34,13 +34,13 @@ jobs: - name: 构建 Win 可执行文件 if: runner.os == 'Windows' run: | - pyinstaller --icon=./static/images/TikTokDownloader.ico --add-data "static:static" --add-data "templates:templates" --collect-all emoji main.py + pyinstaller --icon=./static/images/TikTokDownloader.ico --add-data "static:static" --add-data "locale:locale" --add-data "templates:templates" --collect-all emoji main.py shell: pwsh - name: 构建 Mac 可执行文件 if: runner.os == 'macOS' run: | - pyinstaller --icon=./static/images/TikTokDownloader.icns --add-data "static:static" --add-data "templates:templates" --collect-all emoji main.py + pyinstaller --icon=./static/images/TikTokDownloader.icns --add-data "static:static" --add-data "locale:locale" --add-data "templates:templates" --collect-all emoji main.py - name: 创建压缩包 run: |