mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
try using qemu to do the pyinstaller
This commit is contained in:
@@ -19,6 +19,7 @@ jobs:
|
|||||||
- name: Setup Build Environment
|
- name: Setup Build Environment
|
||||||
id: setup_environment
|
id: setup_environment
|
||||||
run: |
|
run: |
|
||||||
|
sudo dpkg --add-architecture arm64
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
@@ -39,13 +40,10 @@ jobs:
|
|||||||
- name: Install ARM64 Python Environment
|
- name: Install ARM64 Python Environment
|
||||||
id: install_arm_python
|
id: install_arm_python
|
||||||
run: |
|
run: |
|
||||||
# Install ARM64 Python with QEMU emulation
|
# Install ARM64 Python packages using qemu
|
||||||
sudo apt-get install -y python3-arm64 python3-pip-arm64
|
python3 -m pip install --upgrade pip
|
||||||
sudo ln -sf /usr/bin/python3-arm64 /usr/bin/python3-arm
|
sudo apt-get install -y python3-arm64 python3-pip-arm64 || true
|
||||||
sudo ln -sf /usr/bin/pip3-arm64 /usr/bin/pip3-arm
|
python3 -m pip install --no-cache-dir customtkinter pyinstaller tk psutil
|
||||||
|
|
||||||
# Install necessary Python packages in ARM64 environment
|
|
||||||
python3-arm -m pip install --no-cache-dir customtkinter pyinstaller tk psutil
|
|
||||||
|
|
||||||
- name: Build for ARM
|
- name: Build for ARM
|
||||||
id: build_binary
|
id: build_binary
|
||||||
@@ -64,7 +62,7 @@ jobs:
|
|||||||
./create_ver_file.sh
|
./create_ver_file.sh
|
||||||
|
|
||||||
# Package with ARM64 PyInstaller
|
# Package with ARM64 PyInstaller
|
||||||
python3-arm -m pyinstaller \
|
python3-arm64 -m pyinstaller \
|
||||||
--noconfirm \
|
--noconfirm \
|
||||||
--onefile \
|
--onefile \
|
||||||
--collect-all customtkinter \
|
--collect-all customtkinter \
|
||||||
|
|||||||
Reference in New Issue
Block a user