Working on the Linux Build Issues #5

Merged
jknapp merged 1 commits from fix-linux-update into main 2025-06-05 22:21:49 +00:00
2 changed files with 26 additions and 8 deletions
Showing only changes of commit f0af9ad84e - Show all commits

View File

@ -76,16 +76,20 @@ jobs:
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y python3-tk python3-dev sudo apt-get install -y python3-tk python3-dev
sudo apt-get install -y libappindicator3-dev gir1.2-appindicator3-0.1 # Pystray requirements
sudo apt-get install -y libgtk-3-dev python3-gi python3-gi-cairo gir1.2-gtk-3.0
# Direct dependencies for system tray functionality
sudo apt-get install -y gir1.2-appindicator3-0.1
# Additional libraries
sudo apt-get install -y libcairo2-dev libgirepository1.0-dev sudo apt-get install -y libcairo2-dev libgirepository1.0-dev
# For QR code display
sudo apt-get install -y python3-pil.imagetk
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pyinstaller pip install pyinstaller
pip install -r requirements.txt pip install -r requirements.txt
pip install pycairo PyGObject
- name: Build executable - name: Build executable
run: | run: |
pyinstaller macropad_linux.spec pyinstaller macropad_linux.spec

View File

@ -1,25 +1,39 @@
# -*- mode: python ; coding: utf-8 -*- # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis( a = Analysis(
['main.py'], ['main.py'],
pathex=[], pathex=[],
binaries=[], binaries=[],
datas=[], datas=[],
hiddenimports=['qrcode', 'PIL', 'PIL._tkinter_finder', 'pystray._base', 'gi', 'gi.repository.AppIndicator3'], hiddenimports=[
'qrcode',
'PIL._tkinter_finder',
'pystray._base',
'gi',
'gi.repository.Gtk',
'gi.repository.AppIndicator3',
'gi.repository.GdkPixbuf',
'packaging.version',
'packaging.specifiers',
'packaging.requirements',
],
hookspath=[], hookspath=[],
hooksconfig={}, hooksconfig={},
runtime_hooks=[], runtime_hooks=[],
excludes=[], excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False, noarchive=False,
optimize=0,
) )
pyz = PYZ(a.pure) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE( exe = EXE(
pyz, pyz,
a.scripts, a.scripts,
a.binaries, a.binaries,
a.zipfiles,
a.datas, a.datas,
[], [],
name='macropad', name='macropad',
@ -29,7 +43,7 @@ exe = EXE(
upx=True, upx=True,
upx_exclude=[], upx_exclude=[],
runtime_tmpdir=None, runtime_tmpdir=None,
console=True, # Setting to True temporarily for debugging console=True, # Set to True for debugging
disable_windowed_traceback=False, disable_windowed_traceback=False,
argv_emulation=False, argv_emulation=False,
target_arch=None, target_arch=None,