Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

Commit db5bd6c

Browse files
committed
new libraries, fixed pyinstaller (hopefully)
1 parent 5612430 commit db5bd6c

3 files changed

Lines changed: 33 additions & 6 deletions

File tree

.github/workflows/building.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ jobs:
5757
gir1.2-ayatanaappindicator3-0.1 \
5858
dbus \
5959
libdbus-1-dev \
60-
gir1.2-dbusmenu-gtk3-0.4
60+
gir1.2-dbusmenu-gtk3-0.4 \
61+
gir1.2-dbus-1.0
6162
6263
- name: Install Python dependencies
6364
run: pip install -r requirements.txt

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ jobs:
6464
gir1.2-ayatanaappindicator3-0.1 \
6565
dbus \
6666
libdbus-1-dev \
67-
gir1.2-dbusmenu-gtk3-0.4
67+
gir1.2-dbusmenu-gtk3-0.4 \
68+
gir1.2-dbus-1.0
6869
6970
- name: Install Python dependencies
7071
run: pip install -r requirements.txt

build.spec

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,48 @@ import os
55

66
block_cipher = None
77

8-
# Detect platform for the icon
98
if sys.platform == 'win32':
109
icon_file = os.path.join('assets', 'icon', 'SendYourFiles.ico')
1110
elif sys.platform == 'darwin':
1211
icon_file = os.path.join('assets', 'icon', 'SendYourFiles.icns')
1312
else:
1413
icon_file = os.path.join('assets', 'icon', 'SendYourFiles.png')
1514

15+
linuxData = []
16+
linuxHiddenImports = []
17+
if sys.platform.startswith('linux'):
18+
linuxData = [
19+
('/usr/lib/girepository-1.0/DBus-1.0.typelib', 'gi_typelibs/DBus-1.0.typelib'),
20+
('/usr/lib/girepository-1.0/AyatanaAppIndicator3-0.1.typelib', 'gi_typelibs/AyatanaAppIndicator3-0.1.typelib'),
21+
('/usr/lib/girepository-1.0/AppIndicator3-0.1.typelib', 'gi_typelibs/AppIndicator3-0.1.typelib'), # fallback
22+
('/usr/lib/girepository-1.0/Gtk-3.0.typelib', 'gi_typelibs/Gtk-3.0.typelib'),
23+
('/usr/lib/girepository-1.0/GObject-2.0.typelib', 'gi_typelibs/GObject-2.0.typelib'),
24+
]
25+
26+
linuxHiddenImports = [
27+
'gi',
28+
'gi.repository',
29+
'gi.repository.GObject',
30+
'gi.repository.Gtk',
31+
'gi.repository.DBus',
32+
'gi.repository.AyatanaAppIndicator3',
33+
'gi.repository.AppIndicator3',
34+
'pystray._appindicator',
35+
'pystray._util.gtk',
36+
'pystray._util.notify_dbus',
37+
]
38+
1639
a = Analysis(
1740
['main.py'],
1841
pathex=[],
1942
binaries=[],
43+
2044
datas=[
2145
('src', 'src'),
2246
('assets', 'assets'),
2347
('version.txt', '.'),
2448
('src/back/extra/settings.json', 'src/back/system/extra'),
25-
],
49+
] + linuxData,
2650
hiddenimports=[
2751
'webview.platforms.winforms',
2852
'webview.platforms.cocoa',
@@ -31,7 +55,8 @@ a = Analysis(
3155
'desktop_notifier',
3256
'desktop_notifier.resources',
3357
'pystray._win32',
34-
],
58+
] + linuxHiddenImports,
59+
3560
hookspath=[],
3661
hooksconfig={},
3762
runtime_hooks=[],
@@ -65,4 +90,4 @@ exe = EXE(
6590
codesign_identity=None,
6691
entitlements_file=None,
6792
icon=icon_file,
68-
)
93+
)

0 commit comments

Comments
 (0)