Skip to content

Commit

Permalink
Merge branch 'pr/90' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMi460 committed Jul 3, 2023
2 parents c098d7d + dfc115f commit 78addbc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.10.11
python-version: 3.11.4

# Windows Build
- name: "Build"
Expand Down Expand Up @@ -65,11 +65,11 @@ jobs:
- uses: actions/checkout@v3

# MacOS Build
- name: "Install Python 3.10.11 and build NSO-RPC"
- name: "Install Python 3.11.4 and build NSO-RPC"
run: |
curl https://www.python.org/ftp/python/3.10.11/python-3.10.11-macos11.pkg -o python-3.10.11-macos11.pkg
sudo installer -verbose -pkg python-3.10.11-macos11.pkg -target / &&
python3.10 -m pip install PyQt6 &&
curl https://www.python.org/ftp/python/3.11.4/python-3.11.4-macos11.pkg -o python-3.11.4-macos11.pkg
sudo installer -verbose -pkg python-3.11.4-macos11.pkg -target / &&
python3.11 -m pip install PyQt6 &&
cd scripts/macos-universal2 &&
bash ./build.sh &&
python3 debloat-qt.py &&
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if "%PYQT_PACKAGE%"=="" (
echo Building with %PYQT_PACKAGE%

REM Install requirements
python -m pip install -r ./requirements.txt pypiwin32 winshell pyinstaller==5.10.1 pyinstaller-hooks-contrib==2023.2
python -m pip install -r ../client/requirements.txt pypiwin32 winshell pyinstaller>=5.12 pyinstaller-hooks-contrib==2023.4

REM Build the executable using PyInstaller
python -m PyInstaller --onefile --clean --noconsole --exclude-module autopep8 --noupx --add-data "*.png;." --icon=icon.ico --name=NSO-RPC ..\client\app.py
Expand Down
4 changes: 2 additions & 2 deletions scripts/macos-universal2/prep-PyQt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Provided by @spotlightishere on Github
# https://github.com/MCMi460/NSO-RPC/pull/86#issuecomment-1605700512

alias python3=python3.10
alias python3=python3.11

# Download and unpack
python3 -m pip download --only-binary=:all: --platform=macosx_13_0_x86_64 PyQt6_Qt6
Expand All @@ -28,5 +28,5 @@ export -f merge_frameworks
find universal -perm +111 -type f -exec sh -c 'merge_frameworks "$1"' _ {} \;
python3 -m wheel pack universal/PyQt6_*

# Finally, install our universal python3.10 -m wheel.
# Finally, install our universal python3.11 -m wheel.
python3 -m pip install PyQt6_*universal2.whl --force-reinstall

0 comments on commit 78addbc

Please sign in to comment.