SXXXXXXX_PyInstallerGUIWrapper/pyinstallerguiwrapper/config.py
2025-06-10 09:09:06 +02:00

53 lines
1.6 KiB
Python

# -*- coding: utf-8 -*-
"""
Configuration constants for the PyInstaller GUI Wrapper application.
"""
# Default values for PyInstaller options managed by the GUI
DEFAULT_SPEC_OPTIONS = {
"onefile": False,
"windowed": True, # Corresponds to --windowed/--console (--noconsole)
"name": "",
"icon": "",
"add_data": [],
"hidden_imports": [],
"log_level": "INFO",
"clean_build": False, # MODIFIED: Default is now False. Corresponds to --clean
"confirm_overwrite": False, # Corresponds to --noconfirm (True means --noconfirm is active)
"output_dir_name": "_dist", # Default name for the output directory
"work_dir_name": "_build", # Default name for the temporary build directory
"use_upx": True,
# Internal tracking - Populated by parser, used by GUI/generator
"scripts": [],
"pathex": [],
"binaries": [],
"datas": [], # Changed from 'add_data' to match PyInstaller terminology
}
# Log levels available in PyInstaller
PYINSTALLER_LOG_LEVELS = ["DEBUG", "INFO", "WARN", "ERROR", "CRITICAL"]
# File type filters (Descriptions are already English)
SCRIPT_FILE_TYPES = [
("Python files", "*.py"),
("Pythonw files", "*.pyw"),
("All files", "*.*"),
]
ICON_FILE_TYPES_WINDOWS = [("Icon files", "*.ico"), ("All files", "*.*")]
ICON_DEFAULT_EXT_WINDOWS = ".ico"
ICON_FILE_TYPES_MACOS = [
("Apple Icon files", "*.icns"),
("PNG images", "*.png"),
("All files", "*.*"),
]
ICON_DEFAULT_EXT_MACOS = ".icns"
ICON_FILE_TYPES_LINUX = [
("Image files", "*.png"),
("Icon files", "*.ico"),
("All files", "*.*"),
]
ICON_DEFAULT_EXT_LINUX = ".png"