zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
U
W±dO3ã@s¤ddlZddlZddlZddlmZmZddlmZmZm    Z    ddl
m Z m Z m Z ddlmZddlmZddlmmZerddlmmZGdd„deƒZdS)    éN)ÚCOLLECTÚEXE)ÚTargetÚloggerÚ normalize_toc)Ú_check_path_overlapÚ_rmtreeÚ
checkCache)Ú    is_darwin)Únormalize_icon_typecs0eZdZ‡fdd„ZdZdd„Zdd„Z‡ZS)ÚBUNDLEc    sfddlm}tsdS| d¡|_|jsLtj tj tj t    ¡¡ddd¡|_n$tj 
|j¡sptj |d|j¡|_t ƒ  ¡| dd¡|_ tj |j ¡}tj |d    |¡|_ tj |¡d|_| d
d ¡|_g|_d |_d |_d |_d|_d|_d|_| d¡|_|js|j|_| dd¡|_|D]ø}t|tƒr˜|j tj |j ¡|j df¡|j |j¡|j|_|j|_|j |_ |j|_|j|_|j|_|j|_n€t|t!ƒrì|j |j¡|j"|_|j#|_|j |_ |j|_|j|_|j|_|j|_n,t$ %|¡r|j |¡nt&dt'|ƒ›ƒ‚q"|jD]"\}}}|dkr"||_(qNq"t)dƒ‚t*|jƒ|_| +¡dS)Nr©ÚCONFÚiconZ
bootloaderZimageszicon-windowed.icnsZspecpathÚnameZdistpathÚversionz0.0.0FTÚbundle_identifierÚ
info_plistZ
EXECUTABLEz"Invalid argument type for BUNDLE: z%No EXECUTABLE entry found in the TOC!),ÚPyInstaller.configrr
ÚgetrÚosÚpathÚjoinÚdirnameÚ__file__ÚisabsÚsuperÚ__init__rÚbasenameÚsplitextÚappnamerÚtocÚstripÚupxÚconsoleÚ target_archÚcodesign_identityÚentitlements_filerrÚ
isinstancerÚappendÚextendZ dependenciesÚ upx_excluderZstrip_binariesZ upx_binariesÚ    miscutilsÚ is_iterableÚ    TypeErrorÚtypeÚexenameÚ
ValueErrorrZ __postinit__)    ÚselfÚargsÚkwargsrÚ    base_nameÚargÚ    dest_nameÚsrc_nameÚtypecode©Ú    __class__©úOd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PyInstaller/building/osx.pyrsx  ÿ
 
 
 
 
 zBUNDLE.__init__))r!NcCsdS)NTr<)r2ÚdataZ
last_buildr<r<r=Ú _check_gutszszBUNDLE._check_gutsc Csddlm}t|jƒr.tj |j¡r.t|jƒt     d|j
¡t  tj  |jdd¡¡t  tj  |jdd¡¡t  tj  |jdd¡¡t |jdd    |d
ƒ|_tj |j¡|_t |jtj  |jdd¡¡|j|j|jtj |j¡tj |j¡d d |jd œ}|jr
d|d<nd|d<t|jtƒr4|jr4| |j¡tj  |jdd¡}t|dƒ}t ||¡W5QRXg}ddddh}|jD]þ\}}}    |  dd¡d}
|    dkrÌt!||j"|j#|j$||j%|j&|j'|    dkd    }|    dkoÜ|
|k} | rtj (|¡d )¡dkrd} | r| *||f¡nbtj +|¡s6t,d|›dƒ‚tj  |jdd|¡} tj -| ¡} tj .| ¡snt  | ¡t /|| ¡q~t     d ¡tj  |jdd¡}tj  |jdd¡}|D]Ö\}}tj +|¡sØt,d|›dƒ‚tj  ||¡} tj -| ¡} tj .| ¡s
t  | ¡t /|| ¡tj  |¡d}
|
r>tj .tj  ||¡¡s†d!}t0|
  tjj1¡ƒD]€}tj  ||¡}zTtj 2tj  ||¡tj  tj  ||¡¡d¡}tj  ||¡} t 3|| ¡WqÜWnt4k
rÖYnXqZtj .tj  ||¡¡s†tj 2tj  ||¡tj  tj  ||¡¡d¡}tj  ||¡} t 3|| ¡nHtj 2tj  ||¡tj  tj  ||¡¡d¡}tj  ||¡} t 3|| ¡q°t     d"¡zt5j6|j|j&|j'dd#WnZt7k
r
}z:tj8 9d$d%¡d%krðt :d&|¡t :d'¡n
t;d(ƒ|‚W5d}~XYnXt     d)|j
¡dS)*Nrr zBuilding BUNDLE %sZContentsZMacOSZ    ResourcesZ
Frameworks)Úicnsr@Zworkpathz6.0ZAPPL)ZCFBundleDisplayNameZ CFBundleNameZCFBundleIdentifierZCFBundleExecutableZCFBundleIconFileZCFBundleInfoDictionaryVersionZCFBundlePackageTypeZCFBundleShortVersionStringTZLSBackgroundOnlyZNSHighResolutionCapablez
Info.plistÚwbZPySide2ZPySide6ZPyQt5ú/é)Ú    EXTENSIONÚBINARYrD)r"r#r+Zdist_nmr%r&r'Zstrict_arch_validationZDATA>ú.pyú.pycFz    Resource z is not a valid file!z.Moving BUNDLE data files to Resource directoryÚzSigning the BUNDLE...)ÚdeepZ(PYINSTALLER_STRICT_BUNDLE_CODESIGN_ERRORÚ0z"Error while signing the bundle: %sz*You will need to sign the bundle manually!zFailed to codesign the bundle!z*Building BUNDLE %s completed successfully.)<rrrrrrÚisdirrrÚinfoZ tocbasenameÚmakedirsrr rÚabspathÚshutilÚcopyr rrr0rr$r(rÚdictÚupdateÚopenÚplistlibÚdumpr!Úsplitr    r"r#r+r%r&r'rÚlowerr)Úisfiler1rÚexistsÚcopy2ÚiterÚsepÚrelpathÚsymlinkÚFileExistsErrorÚosxutilsZ sign_binaryÚ    ExceptionÚenvironrÚwarningÚ RuntimeError)r2rZinfo_plist_dictZplist_filenameZplist_fhÚlinksZ _QT_BASE_PATHr7r8r9Ú    base_pathZ relocate_fileÚ    dest_pathÚdest_dirÚbin_dirZres_dirrÚpartZrelative_source_pathÚer<r<r=Úassemble~sÐ 
   î
 
÷  
 
 
  þ  
 þ þ
  zBUNDLE.assemble)Ú__name__Ú
__module__Ú __qualname__rZ_GUTSr?rlÚ __classcell__r<r<r:r=r s Yr )rrTrOZPyInstaller.building.apirrZPyInstaller.building.datastructrrrZPyInstaller.building.utilsrrr    ZPyInstaller.compatr
ZPyInstaller.building.iconr ZPyInstaller.utils.miscÚutilsÚmiscr,ZPyInstaller.utils.osxZosxr`r r<r<r<r=Ú<module> s