From 1ab60b4a8ef67875ca2d613a10f2d4c5bdc63883 Mon Sep 17 00:00:00 2001 From: David Schmelter Date: Thu, 28 Mar 2024 21:08:12 +0100 Subject: [PATCH] fix pyinstaller build for macos-x86-64 --- GraXpert-macos-x86_64.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/GraXpert-macos-x86_64.spec b/GraXpert-macos-x86_64.spec index e1b77f6..428e466 100644 --- a/GraXpert-macos-x86_64.spec +++ b/GraXpert-macos-x86_64.spec @@ -1,13 +1,19 @@ # -*- mode: python ; coding: utf-8 -*- +from PyInstaller.utils.hooks import copy_metadata block_cipher = None +datas = [] +datas += [('./img/*', './img/'), ('./graxpert-dark-blue.json', './')] +datas += copy_metadata('xisf') + + a = Analysis(['./graxpert/main.py'], pathex=[], binaries=[], - datas=[('./img/*', './img/'), ('./graxpert-dark-blue.json', './')], + datas=datas, hiddenimports=['PIL._tkinter_finder', 'tkinter'], hookspath=['./releng'], hooksconfig={},