Philipp Hörist pushed to branch master at gajim / gajim


Commits:
5bbda65d by Philipp Hörist at 2026-06-27T21:17:23+02:00
fix: Windows: Fix broken reaction emojis

This seems to be a new bug in Pango

Fixes #12730

- - - - -
146855c2 by Philipp Hörist at 2026-06-27T21:17:23+02:00
perf: Windows: Compile python files so startup is faster

- - - - -
bce7205e by Philipp Hörist at 2026-06-27T21:17:23+02:00
ci: Windows: Make Windows build easier to execute locally

- - - - -


2 changed files:

- win/_base.sh
- win/misc/create_launcher.py


Changes:

=====================================
win/_base.sh
=====================================
@@ -88,8 +88,8 @@ function build_pacman {
     pacman --root "${BUILD_ROOT}" "$@"
 }
 
-function build_pip {
-    "${BUILD_ROOT}"/"${MSYSTEM_PREFIX:1}"/bin/"${PYTHON_ID}".exe -m pip "$@"
+function build_pip_install {
+    "${BUILD_ROOT}"/"${MSYSTEM_PREFIX:1}"/bin/"${PYTHON_ID}".exe -m pip 
install --break-system-packages "$@"
 }
 
 function build_python {
@@ -97,7 +97,7 @@ function build_python {
 }
 
 function build_compileall {
-    build_python -m compileall -b "$@"
+    build_python -m compileall -q -f "$@"
 }
 
 function install_pre_deps {
@@ -123,12 +123,14 @@ function create_root {
 }
 
 function install_mingw_deps {
+    # Downgrade pango https://dev.gajim.org/gajim/gajim/-/issues/12730
+    build_pacman --noconfirm -U 
https://repo.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-pango-1.56.4-3-any.pkg.tar.zst
     build_pacman --noconfirm -S ${MINGW_DEPS}
 }
 
 function install_python_deps {
-    build_pip install precis-i18n
-    build_pip install $(echo "$PYTHON_REQUIREMENTS" | tr ["\\n"] [" "])
+    build_pip_install precis-i18n
+    build_pip_install $(echo "$PYTHON_REQUIREMENTS" | tr ["\\n"] [" "])
 }
 
 function post_install_deps {
@@ -151,7 +153,7 @@ function install_gajim {
     cd ..
 
     build_python make.py build --dist=win
-    build_pip install .
+    build_pip_install .
 
     QL_VERSION=$(MSYSTEM= build_python -c \
         "import gajim; import sys; 
sys.stdout.write(gajim.__version__.split('+')[0])")
@@ -316,8 +318,9 @@ function cleanup_install {
     find "${MINGW_ROOT}" -name "*.sh" -exec rm -f {} \;
     find "${MINGW_ROOT}" -name "*.whl" -exec rm -f {} \;
 
-    find "${MINGW_ROOT}" -type d -name "__pycache__" -prune -exec rm -rf {} \;
-    find "${MINGW_ROOT}"/bin -name "*.pyc" -exec rm -f {} \;
+    # Byte-compile Python files and clean up afterwards
+    echo "Byte-compile Python files"
+    build_compileall "${MINGW_ROOT}"
 
     echo "Run depcheck.py"
     build_python "${MISC}/depcheck.py"
@@ -334,8 +337,8 @@ function makepri {
 }
 
 function build_exe_installer {
-    MSYSTEM='MINGW64' /usr/bin/bash -lc "cd ${BUILD_ROOT} && makensis -NOCD 
-DVERSION=\"$QL_VERSION_DESC\" -DARCH=\"${MSYSTEM_CARCH}\" 
-DPREFIX=\"${MSYSTEM_PREFIX:1}\" ${MISC}/gajim.nsi"
-    MSYSTEM='MINGW64' /usr/bin/bash -lc "cd ${BUILD_ROOT} && makensis -NOCD 
-DVERSION=\"$QL_VERSION_DESC\" -DARCH=\"${MSYSTEM_CARCH}\" 
-DPREFIX=\"${MSYSTEM_PREFIX:1}\" ${MISC}/gajim-portable.nsi"
+    cd ${BUILD_ROOT} && makensis -NOCD -DVERSION=${QL_VERSION_DESC} 
-DARCH=${MSYSTEM_CARCH} -DPREFIX=${MSYSTEM_PREFIX:1} ${MISC}/gajim.nsi
+    cd ${BUILD_ROOT} && makensis -NOCD -DVERSION=${QL_VERSION_DESC} 
-DARCH=${MSYSTEM_CARCH} -DPREFIX=${MSYSTEM_PREFIX:1} ${MISC}/gajim-portable.nsi
 }
 
 function build_msix_installer {


=====================================
win/misc/create_launcher.py
=====================================
@@ -112,7 +112,6 @@ def get_launcher_code(*, debug: bool) -> str:
 
     Py_NoUserSiteDirectory = 1;
     Py_IgnoreEnvironmentFlag = 1;
-    Py_DontWriteBytecodeFlag = 1;
     Py_FrozenFlag = 1;
     Py_Initialize();
     PySys_SetArgvEx(__argc, szArglist, 0);



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/62f42c6156dd1a55c1cb45a9fb2eb22d379b5b4d...bce7205e881e4790dea01123463d127015121bc6

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/62f42c6156dd1a55c1cb45a9fb2eb22d379b5b4d...bce7205e881e4790dea01123463d127015121bc6
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]

Reply via email to