versión para soportar el nuevo consent de YT #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: VeTube-x64 | |
on: | |
push: | |
tags: ["*"] | |
branches: [ master , piper ] | |
pull_request: | |
branches: [ master , piper ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Source checkout | |
uses: actions/checkout@v3 | |
- name: Configure Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.11 | |
architecture: x64 | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip wheel setuptools | |
pip install -r requirements.txt | |
pip install pyinstaller gdown | |
pip install --upgrade pyzmq httpx httpcore future | |
git clone https://github.com/mush42/espeak-phonemizer-windows | |
- name: Compiling | |
run: | | |
pyinstaller VeTube.py --windowed | |
gdown 1ZtF6zus0A7kC9Lwr_kTUbw0MiOoZq29H -O dist/VeTube/bootstrap.exe | |
cp -R chat_downloader dist/VeTube/ | |
cp -R doc dist/VeTube/ | |
cp -R locales dist/VeTube/ | |
cp -R sounds dist/VeTube/ | |
cp -R espeak-phonemizer-windows/espeak_phonemizer dist/VeTube/ | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: VeTube-x64 | |
path: dist/VeTube | |
if-no-files-found: error | |
- name: zip packaging | |
run: | | |
cd dist/VeTube | |
7z a ../../VeTube-x64.zip . | |
cd ../../ | |
- name: vetube_release | |
uses: softprops/action-gh-release@v1 | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
with: | |
files: VeTube-x64.zip | |
prerelease: ${{ contains(github.ref, '-') }} |