Update PyInstaller.building.api.EXE.__init__ (#11024)

This commit is contained in:
Avasam
2023-11-12 13:59:34 -05:00
committed by GitHub
parent 676446569d
commit 1582e4833a

View File

@@ -1,5 +1,6 @@
# PYZ, EXE and COLLECT referenced in https://pyinstaller.org/en/stable/spec-files.html#spec-file-operation
# MERGE is referenced in https://pyinstaller.org/en/stable/spec-files.html#example-merge-spec-file
# hide_console referenced in https://pyinstaller.org/en/stable/feature-notes.html#automatic-hiding-and-minimization-of-console-window-under-windows
# Not to be imported during runtime, but is the type reference for spec files which are executed as python code
import sys
from _typeshed import FileDescriptorOrPath, StrOrBytesPath, StrPath, Unused
@@ -46,6 +47,8 @@ else:
_Manifest: TypeAlias = None
_ManifestParam: TypeAlias = Unused
_HideConsole: TypeAlias = Literal["hide-early", "minimize-early", "hide-late", "minimize-late"] | None
class PYZ(Target):
name: str
cipher: _PyiBlockCipher
@@ -88,6 +91,7 @@ class EXE(Target):
exclude_binaries: bool
bootloader_ignore_signals: bool
console: bool
hide_console: _HideConsole
disable_windowed_traceback: bool
debug: bool
name: str
@@ -99,6 +103,7 @@ class EXE(Target):
strip: bool
upx_exclude: Iterable[str]
runtime_tmpdir: str | None
contents_directory: str | None
append_pkg: bool
uac_admin: bool
uac_uiaccess: bool
@@ -118,17 +123,19 @@ class EXE(Target):
exclude_binaries: bool = False,
bootloader_ignore_signals: bool = False,
console: bool = True,
hide_console: _HideConsole = None,
disable_windowed_traceback: bool = False,
debug: bool = False,
name: str | None = None,
icon: _IconParam = None,
version: _VersionParam = None,
manifest: _ManifestParam = None,
embed_manifest: bool = True,
embed_manifest: Literal[True] = True,
resources: Sequence[str] = ...,
strip: bool = False,
upx_exclude: Iterable[str] = ...,
runtime_tmpdir: str | None = None,
contents_directory: str = "_internal",
append_pkg: bool = True,
uac_admin: bool = False,
uac_uiaccess: bool = False,