-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (51 loc) · 1.64 KB
/
betube64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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, '-') }}