-
-
Notifications
You must be signed in to change notification settings - Fork 93
79 lines (78 loc) · 2.51 KB
/
main.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: build
on:
push:
branches:
- master
jobs:
build-win64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
curl -L https://github.com/iwalton3/mpv-winbuild-cmake/releases/download/v20230304-git-362256e/mpv-dev-x86_64-20230304-git-362256e.7z > mpv.7z
7z x mpv.7z
mv libmpv-2.dll mpv-2.dll
pip install wheel
pip install git+https://github.com/pythonnet/pythonnet@438bcdd3f0b2e2ee358b407cfc96e4385e5783fc
pip install .[all] pywebview==3.4 pywin32==304
./gen_pkg.sh --skip-build
python ./get_pywebview_natives.py
shell: bash
- name: PyInstaller Bootloader
run: |
./gen_pkg.sh --get-pyinstaller; cd pyinstaller/bootloader; python ./waf distclean all; cd ..; pip install .
shell: bash
- name: Main Build
run: |
.\build-win.bat
shell: cmd
- name: Artifact Rename
run: |
./artifacts.sh standard
shell: bash
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: windows
path: ${{ github.workspace }}/publish/Installer/*.exe
build-win32:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
curl -L https://github.com/iwalton3/mpv-winbuild-cmake/releases/download/v20230304-git-362256e/mpv-dev-i686-20230304-git-362256e.7z > mpv.7z
7z x mpv.7z
mv libmpv-2.dll mpv-2.dll
pip install wheel
pip install git+https://github.com/pythonnet/pythonnet@438bcdd3f0b2e2ee358b407cfc96e4385e5783fc
pip install .[all] pywebview==3.4 pywin32==304
./gen_pkg.sh --skip-build
python ./get_pywebview_natives.py
shell: bash
- name: PyInstaller Bootloader
run: |
./gen_pkg.sh --get-pyinstaller; cd pyinstaller/bootloader; python ./waf distclean all; cd ..; pip install .
shell: bash
- name: Legacy Build
run: |
.\build-win-32.bat
shell: cmd
- name: Artifact Rename
run: |
./artifacts.sh legacy
shell: bash
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: windows-legacy32
path: ${{ github.workspace }}/publish/InstallerLegacy/*.exe