Fix: PyInstaller-EXE zeigt App-Symbol korrekt via sys._MEIPASS und datas (v1.6.2)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 15:25:29 +02:00
parent 16de979524
commit 0f3c0dd878
7 changed files with 11 additions and 7 deletions
+1
View File
@@ -36,6 +36,7 @@ a = Analysis(
datas=ui_files + res_files + cx_datas + [ datas=ui_files + res_files + cx_datas + [
(str(project_root / 'pyproject.toml'), '.'), (str(project_root / 'pyproject.toml'), '.'),
(str(project_root / 'THIRD_PARTY_LICENSES.txt'), '.'), (str(project_root / 'THIRD_PARTY_LICENSES.txt'), '.'),
(str(project_root / 'resources' / 'icon.ico'), 'resources'),
], ],
hiddenimports=[ hiddenimports=[
'PySide6.QtCore', 'PySide6.QtCore',
+1 -1
View File
@@ -4,7 +4,7 @@
<!-- Paket-Definition (ersetzt Product in v4) --> <!-- Paket-Definition (ersetzt Product in v4) -->
<Package <Package
Name="DocuMentor" Name="DocuMentor"
Version="1.6.1" Version="1.6.2"
Manufacturer="Vitali Graf / Software- und Datenbankentwicklung" Manufacturer="Vitali Graf / Software- und Datenbankentwicklung"
UpgradeCode="F498B66C-726D-44AA-95F4-CB4FBDCEF26E" UpgradeCode="F498B66C-726D-44AA-95F4-CB4FBDCEF26E"
Language="1031" Language="1031"
+1 -1
View File
@@ -253,5 +253,5 @@ HINWEISE
================================================================================ ================================================================================
Stand: April 2026 Stand: April 2026
Erstellt für: DocuMentor v1.6.1 Erstellt für: DocuMentor v1.6.2
================================================================================ ================================================================================
+1 -1
View File
@@ -10,7 +10,7 @@
; Build-Befehl: iscc installer.iss ; Build-Befehl: iscc installer.iss
#define MyAppName "DocuMentor" #define MyAppName "DocuMentor"
#define MyAppVersion "1.6.1" #define MyAppVersion "1.6.2"
#define MyAppPublisher "Ihr Name/Organisation" #define MyAppPublisher "Ihr Name/Organisation"
#define MyAppURL "https://github.com/yourusername/xsl-validator" #define MyAppURL "https://github.com/yourusername/xsl-validator"
#define MyAppExeName "DocuMentor.exe" #define MyAppExeName "DocuMentor.exe"
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "DocuMentor" name = "DocuMentor"
version = "1.6.1" version = "1.6.2"
description = "Professionelle XSL-Transformations-Verwaltung und PDF-Generierung" description = "Professionelle XSL-Transformations-Verwaltung und PDF-Generierung"
readme = "README.md" readme = "README.md"
license = {text = "MIT"} license = {text = "MIT"}
+5 -2
View File
@@ -90,8 +90,11 @@ def main():
# QApplication-Instanz erstellen # QApplication-Instanz erstellen
app = QApplication(sys.argv) app = QApplication(sys.argv)
# App-Symbol setzen # App-Symbol setzen (PyInstaller: sys._MEIPASS, sonst Quellpfad)
icon_path = Path(__file__).parent.parent / "resources" / "icon.ico" if getattr(sys, "frozen", False):
icon_path = Path(sys._MEIPASS) / "resources" / "icon.ico"
else:
icon_path = Path(__file__).parent.parent / "resources" / "icon.ico"
if icon_path.exists(): if icon_path.exists():
app.setWindowIcon(QIcon(str(icon_path))) app.setWindowIcon(QIcon(str(icon_path)))
Generated
+1 -1
View File
@@ -34,7 +34,7 @@ wheels = [
[[package]] [[package]]
name = "documentor" name = "documentor"
version = "1.6.1" version = "1.6.2"
source = { virtual = "." } source = { virtual = "." }
dependencies = [ dependencies = [
{ name = "connectorx" }, { name = "connectorx" },