From 6681952fa212490905cf314bcd1823608b45debe Mon Sep 17 00:00:00 2001 From: Asher Norland Date: Sun, 15 Feb 2026 16:41:37 -0800 Subject: [PATCH 1/2] Update synodic.spec --- tool/pyinstaller/synodic.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/pyinstaller/synodic.spec b/tool/pyinstaller/synodic.spec index 3426e20..1cd0b00 100644 --- a/tool/pyinstaller/synodic.spec +++ b/tool/pyinstaller/synodic.spec @@ -1,5 +1,6 @@ # -*- mode: python ; coding: utf-8 -*- +import os from PyInstaller.utils.hooks import collect_all, copy_metadata # Collect porringer and its plugins with metadata @@ -40,7 +41,7 @@ a = Analysis( hiddenimports=hiddenimports, hookspath=[], hooksconfig={}, - runtime_hooks=['rthook_no_console.py'], + runtime_hooks=[os.path.join(SPECPATH, 'rthook_no_console.py')], excludes=[], noarchive=False, ) From 381b7d3cb21b8cdf02c33f49d24821b66c359477 Mon Sep 17 00:00:00 2001 From: Asher Norland Date: Sun, 15 Feb 2026 16:43:45 -0800 Subject: [PATCH 2/2] Update synodic.spec --- tool/pyinstaller/synodic.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tool/pyinstaller/synodic.spec b/tool/pyinstaller/synodic.spec index 1cd0b00..29a89dc 100644 --- a/tool/pyinstaller/synodic.spec +++ b/tool/pyinstaller/synodic.spec @@ -1,10 +1,13 @@ # -*- mode: python ; coding: utf-8 -*- -import os -from PyInstaller.utils.hooks import collect_all, copy_metadata +from pathlib import Path +from PyInstaller.utils.hooks import copy_metadata + +SPEC_DIR = Path(SPECPATH) +REPO_ROOT = SPEC_DIR.parent.parent # Collect porringer and its plugins with metadata -datas = [('../../data', 'data')] +datas = [(str(REPO_ROOT / 'data'), 'data')] hiddenimports = [] # Add porringer metadata so entry points work @@ -34,14 +37,14 @@ hiddenimports += [ ] a = Analysis( - ['../../synodic_client/application/qt.py'], + [str(REPO_ROOT / 'synodic_client' / 'application' / 'qt.py')], pathex=[], binaries=[], datas=datas, hiddenimports=hiddenimports, hookspath=[], hooksconfig={}, - runtime_hooks=[os.path.join(SPECPATH, 'rthook_no_console.py')], + runtime_hooks=[str(SPEC_DIR / 'rthook_no_console.py')], excludes=[], noarchive=False, )