Philipp Hörist pushed to branch osx at gajim / gajim
Commits:
4585ec6d by Philipp Hörist at 2026-07-30T22:54:47+02:00
cq
- - - - -
2 changed files:
- mac/gajim.spec
- pyproject.toml
Changes:
=====================================
mac/gajim.spec
=====================================
@@ -1,9 +1,19 @@
# -*- mode: python -*-
-block_cipher = None
+import typing
+
+import sys
+import glob
+import os
+
+if typing.TYPE_CHECKING:
+ from PyInstaller.building.api import EXE, PYZ, COLLECT
+ from PyInstaller.building.build_main import Analysis
+
cwd = os.getcwd()
icon = os.path.join(cwd, "mac", "Gajim.icns")
+block_cipher = None
info_plist = {
"CFBundleDisplayName": "Gajim",
@@ -14,9 +24,6 @@ info_plist = {
"NSUIElement": True,
}
-import sys
-import glob
-
sys.path.insert(0, os.path.join(cwd))
modules = glob.glob("gajim/common/modules/*.py")
@@ -62,10 +69,7 @@ a = Analysis(
hookspath=[os.path.join(os.getcwd(), "mac", "hooks")],
hooksconfig={
"gi": {
- "module-versions": {
- "Gtk": "4.0",
- "GtkSource": "5"
- },
+ "module-versions": {"Gtk": "4.0", "GtkSource": "5"},
},
"gstreamer": {
"include_plugins": gst_include_plugins,
@@ -78,7 +82,9 @@ a = Analysis(
cipher=block_cipher,
noarchive=False,
)
+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
+
exe = EXE(
pyz,
a.scripts,
@@ -91,10 +97,12 @@ exe = EXE(
upx=True,
console=False,
)
+
coll = COLLECT(
exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=True, name="launch"
)
-app = BUNDLE(
+
+app = BUNDLE( # pyright: ignore
coll,
name="Gajim.app",
icon=icon,
=====================================
pyproject.toml
=====================================
@@ -148,6 +148,7 @@ exclude = [
"typings/pystray/*",
"typings/windows_toasts/*",
"win/misc/depcheck.py",
+ "mac/hooks/*",
]
[tool.ruff]
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4585ec6d15e8e4b890cd35390f5fd44d81c87e34
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4585ec6d15e8e4b890cd35390f5fd44d81c87e34
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]