Skip to content

Commit 3e29a41

Browse files
authored
Merge pull request #33 from thorrak/pyinstaller6
Update to PyInstaller 6
2 parents 4c24664 + 7b0a191 commit 3e29a41

6 files changed

Lines changed: 62 additions & 8 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
push:
3+
branches:
4+
- pyinstaller6
5+
6+
7+
jobs:
8+
build:
9+
runs-on: 'windows-latest'
10+
11+
steps:
12+
- uses: actions/checkout@v4.1.1
13+
- uses: actions/setup-python@v4.7.1
14+
with:
15+
python-version: '3.11'
16+
17+
- run: pip install -r requirements.txt
18+
- name: rebuild bootloader
19+
run: |
20+
pip install wheel
21+
pip uninstall -y pyinstaller
22+
git clone https://github.com/pyinstaller/pyinstaller
23+
git checkout v6.1.0
24+
cd pyinstaller
25+
cd bootloader
26+
python3 ./waf distclean all
27+
cd ..
28+
pip install .
29+
cd ..
30+
- name: compile locales
31+
run: python3 compile_languages.py locales
32+
- run: pyinstaller --log-level=DEBUG --noconfirm build-on-win.spec
33+
34+
- name: upload artifact
35+
uses: actions/upload-artifact@v3.1.3
36+
with:
37+
path: dist/*

‎.github/workflows/build-windows.yaml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ jobs:
99
runs-on: 'windows-latest'
1010

1111
steps:
12-
- uses: actions/checkout@v3.5.3
13-
- uses: actions/setup-python@v4.6.1
12+
- uses: actions/checkout@v4.1.1
13+
- uses: actions/setup-python@v4.7.1
1414
with:
15-
python-version: '3.9'
15+
python-version: '3.11'
1616

1717
- run: pip install -r requirements.txt
1818
- name: rebuild bootloader
1919
run: |
2020
pip install wheel
2121
pip uninstall -y pyinstaller
2222
git clone https://github.com/pyinstaller/pyinstaller
23-
git checkout v5.13.0
23+
git checkout v6.1.0
2424
cd pyinstaller
2525
cd bootloader
2626
python3 ./waf distclean all
@@ -32,6 +32,6 @@ jobs:
3232
- run: pyinstaller --log-level=DEBUG --noconfirm build-on-win.spec
3333

3434
- name: upload artifact
35-
uses: actions/upload-artifact@v2
35+
uses: actions/upload-artifact@v3.1.3
3636
with:
3737
path: dist/*

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ staple.sh
112112

113113
# Exclude the pyinstaller directory (if it's here)
114114
pyinstaller/
115+
# Same with the cffi directory
116+
cffi/
115117

116118
dist-pkg/
117119
/*.pkg

‎build-universal-cffi.sh‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
source ./venv/bin/activate
4+
5+
git clone https://github.com/python-cffi/cffi.git
6+
cd cffi
7+
git checkout v1.16.0
8+
9+
python3 -m pip install build pytest
10+
11+
# The proper SDKROOT can be found by running `xcrun --sdk macosx --show-sdk-path` -- right now, it's 14.0
12+
MACOSX_DEPLOYMENT_TARGET='11.0' SDKROOT=macosx14.0 python3 -m build -w .
13+
python3 -m pip install dist/cffi-*universal2.whl --force-reinstall
14+
15+
# python3 -m pytest .

‎requirements.txt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
esptool==4.6.2
22
wxPython==4.2.1
3-
# Previously PyInstaller 3.4 was used - this has security vulnerabilities per GitHub
4-
PyInstaller==5.13.0
3+
PyInstaller==6.1.0
54
requests==2.31.0
65
pyserial==3.5
76
Babel==2.12.1 # For the command line utility so we can build the .mo files

‎update_pyinstaller.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
# application build. This is required for notarization to work on MacOS (and may prevent security warnings on Windows)
55

66
# Note - this command (at least the "pip install" bit) needs to be done from within the virtualenv
7+
pip uninstall -y pyinstaller
78
git clone https://github.com/pyinstaller/pyinstaller.git
89
cd pyinstaller
9-
git checkout v5.13
10+
git checkout v6.1.0
1011
cd bootloader
1112
python ./waf all
1213
pip install ..

0 commit comments

Comments
 (0)