-
-
Notifications
You must be signed in to change notification settings - Fork 93
85 lines (84 loc) · 2.67 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
80
81
82
83
84
85
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@v5
with:
python-version: 3.9
- uses: git-for-windows/setup-git-for-windows-sdk@v1
with:
flavor: minimal
- name: Install dependencies
run: |
curl -L https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20240513/mpv-dev-x86_64-20240513-git-61f72bd.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@v4
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@v5
with:
python-version: 3.9
- uses: git-for-windows/setup-git-for-windows-sdk@v1
with:
flavor: minimal
- name: Install dependencies
run: |
curl -L https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20240513/mpv-dev-i686-20240513-git-61f72bd.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@v4
with:
name: windows-legacy32
path: ${{ github.workspace }}/publish/InstallerLegacy/*.exe