Skip to content

Commit

Permalink
try using qemu to do the pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Dec 6, 2024
1 parent 58038cd commit 25b5301
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/kcpp-build-release-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- name: Setup Build Environment
id: setup_environment
run: |
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install -y \
build-essential \
Expand All @@ -39,13 +40,10 @@ jobs:
- name: Install ARM64 Python Environment
id: install_arm_python
run: |
# Install ARM64 Python with QEMU emulation
sudo apt-get install -y python3-arm64 python3-pip-arm64
sudo ln -sf /usr/bin/python3-arm64 /usr/bin/python3-arm
sudo ln -sf /usr/bin/pip3-arm64 /usr/bin/pip3-arm
# Install necessary Python packages in ARM64 environment
python3-arm -m pip install --no-cache-dir customtkinter pyinstaller tk psutil
# Install ARM64 Python packages using qemu
python3 -m pip install --upgrade pip
sudo apt-get install -y python3-arm64 python3-pip-arm64 || true
python3 -m pip install --no-cache-dir customtkinter pyinstaller tk psutil
- name: Build for ARM
id: build_binary
Expand All @@ -64,7 +62,7 @@ jobs:
./create_ver_file.sh
# Package with ARM64 PyInstaller
python3-arm -m pyinstaller \
python3-arm64 -m pyinstaller \
--noconfirm \
--onefile \
--collect-all customtkinter \
Expand Down

0 comments on commit 25b5301

Please sign in to comment.