From c072c1105274bda4860b11ae5e9cce2688d7e6f9 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 10 Feb 2025 08:56:42 +0100 Subject: [PATCH] Restore pynavlib path before bundle CURA-12261 This should allow us not to have to re-sign the file manually --- UltiMaker-Cura.spec.jinja | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UltiMaker-Cura.spec.jinja b/UltiMaker-Cura.spec.jinja index 6d06ab7ff9..2ae5479e31 100644 --- a/UltiMaker-Cura.spec.jinja +++ b/UltiMaker-Cura.spec.jinja @@ -1,5 +1,6 @@ # -*- mode: python ; coding: utf-8 -*- import os +import subprocess from pathlib import Path from PyInstaller.utils.hooks import collect_all @@ -71,6 +72,9 @@ coll = COLLECT( ) {% if macos == true %} +# Restore the path from embedded pynavlib to system-wide-installed 3DconnexionNavlib +subprocess.run(['install_name_tool', '-change', '@rpath/3DconnexionNavlib', '/Library/Frameworks/3DconnexionNavlib.framework/3DconnexionNavlib', 'dist/UltiMaker Cura.app/Contents/Frameworks/pynavlib/_pynavlib.cpython-312-darwin.so'], check=True) + app = BUNDLE( coll, name='{{ display_name }}.app',