Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
ded281cc64 | |||
f0af9ad84e | |||
00120c8562 | |||
073bfbf7d9 | |||
c4d151a6d2 | |||
45dfe44b59 |
@ -34,6 +34,11 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
@ -61,18 +66,30 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y python3-tk python3-dev
|
||||||
|
# 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
|
||||||
|
# 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
|
||||||
|
|
||||||
- name: Build executable
|
- name: Build executable
|
||||||
run: |
|
run: |
|
||||||
pyinstaller macropad_linux.spec
|
pyinstaller macropad_linux.spec
|
||||||
|
@ -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=[],
|
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=False,
|
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,
|
||||||
|
@ -5,4 +5,3 @@ flask
|
|||||||
waitress
|
waitress
|
||||||
netifaces
|
netifaces
|
||||||
qrcode
|
qrcode
|
||||||
tkinter
|
|
Loading…
x
Reference in New Issue
Block a user