+
    dûj‚  ã            	       óB  € R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHu Ht	 ]P                  P                  ]P                  P                  ]P                  P                  ]P                  P                  ]4      4      RR4      4      t]P                  P                  ]RR4      t]P                  P                  ]RR4      t]P                  P                  ]R4      3t]P                  P                  ]RRR	4      tR
 tR tR tR tR tR t]R8X  d
   ]! 4        R# R# )zæDeploy guard: changes to the one skin or any module require a skin version bump.

deploy_check.py check    validate against the last recorded deploy
deploy_check.py record   record the current hash/version after successful upload
Nz..Ú	resourceszskin.milionarzskin-modulesú	addon.xmlz.agentsÚstatezskin_deploy.jsonc                 óÚ  € \         P                  ! 4       p \        \        3 EF!  p\        P
                  ! V4       EF  w  r#pVP                  4        \        V4       FÜ  pVR8X  d   K  \        P                  P                  W%4      p\        P                  P                  Ya\        8X  d   \        M\        4      pV P                  VP                  4       4       \        VR4      ;_uu_ 4       pV P                  \         P                  ! VP                  4       4      P!                  4       4       RRR4       KÞ  	  EK  	  EK$  	  V P#                  4       #   + '       g   i     EK  ; i)zHOne hash of the canonical functional tree and every presentation module.z	.DS_StoreÚrbN)ÚhashlibÚsha256ÚTREEÚMODULESÚosÚwalkÚsortÚsortedÚpathÚjoinÚrelpathÚROOTÚupdateÚencodeÚopenÚreadÚdigestÚ	hexdigest)	r   ÚtreeÚbaseÚdirsÚfilesÚnamer   ÚrelativeÚhandles	            Ú$scripts/skin_harness/deploy_check.pyÚ	tree_hashr!      sì   € ä�^Š^Ó€FÜ”w”ˆÜ!#§¢¨§ÑˆD˜Ø�I‰IŒKÜ˜už�Ø˜;Ô&ÙÜ—w‘w—|‘| DÓ/�ÜŸ7™7Ÿ?™?¨4Ä¼µÌ4ÓP�Ø—‘˜hŸo™oÓ/Ô0Ü˜$ ×%Ô%¨Ø—M‘M¤'§.¢.°·±³Ó"?×"FÑ"FÓ"HÔI÷ &Ñ%ô &ô "/ñ  ð ×ÑÓÐ÷ &×%Ñ%ús   Ã0AEÅE*c                  ó¬   € \         P                  ! \        P                  P	                  \
        R 4      4      P                  4       P                  R4      # )r   Úversion)ÚETÚparser   r   r   r	   ÚgetrootÚget© ó    r    r#   r#   &   s4   € Ü�8Š8”B—G‘G—L‘L¤ {Ó3Ó4×<Ñ<Ó>×BÑBÀ9ÓMÐMr)   c                óØ  a a€ \          F¶  p\        VRR7      ;_uu_ 4       pVP                  4       pRRR4       \        P                  ! RV 3R lX4      w  rEV^8w  d   \        RV,           4      h\        P                  ! RV3R lV^R	7      p\        VR
RR7      ;_uu_ 4       pVP                  V4       RRR4       K¸  	  R#   + '       g   i     L›; i  + '       g   i     Kà  ; i)z1The plugin dependency and canonical skin version.úutf-8©ÚencodingNz@(<import\b[^>]*addon="plugin.video.milionar"[^>]*version=")[^"]+c                 ó4   <€ V P                  ^4      S,           # ©é   ©Úgroup)ÚmatchÚplugin_versions   &€r    Ú<lambda>Ú"_write_manifests.<locals>.<lambda>0   s   ø€ ¨5¯;©;°q«>¸NÖ+Jr)   z1expected one plugin.video.milionar dependency in z(<addon\b[^>]*version=")[^"]+c                 ó4   <€ V P                  ^4      S,           # r/   r1   )r3   Úskin_versions   &€r    r5   r6   3   s   ø€ ÀeÇkÁkÐRSÃnÐWcÖFcr)   )ÚcountÚw)Ú	MANIFESTSr   r   ÚreÚsubnÚ
SystemExitÚsubÚwrite)r4   r8   r   r   Útextr9   s   ff    r    Ú_write_manifestsrB   *   s®   ù€ çˆÜ�$ ×)Õ)¨VØ—;‘;“=ˆD÷ *ä—g’gÐaÜJÈDóR‰ˆà�AŒ:ÜÐPÐSWÕWÓXÐXÜ�vŠvÐ6Ô8cÐeiÐqrÔsˆÜ�$˜ g×.Õ.°&Ø�L‰L˜Ô÷ /Ñ.ó ß)×)ú÷ /×.Ð.ús   ¡CÂ%CÃCÃC)c                 ó  € \         P                  P                  \        4      '       g   R# \	        \        4      ;_uu_ 4       p \
        P                  ! V 4      R,          \        4       8g  uuRRR4       #   + '       g   i     R# ; i)z=The skin (or a module) differs from the last recorded deploy.TÚhashN)r   r   ÚexistsÚSTATEr   ÚjsonÚloadr!   )r   s    r    ÚchangedrI   8   sG   € ä�7‰7�>‰>œ%× Ò ÙÜ	Œe�Œ˜Ü�yŠy˜Ó  Õ(¬I«KÑ7÷ 
��‹ús   Á(A6Á6B	c                óü  € \        4       p\        P                  P                  \        4      '       dÞ   \        \        4      ;_uu_ 4       p\        P                  ! V4      pRRR4       \        4       '       g   V# \        W4       R pV! V4      V! XR,          4      8:  dn   V! VR,          4      pRP                  R VRR VR,          ^,           3,            4       4      p\        RP                  VR,          V4      4       \        W4       \        P                  P                  \        R4      p\        VRR	7      ;_uu_ 4       pVP                  4       pRRR4       R
P                  V4      X9  dI   \        VRRR	7      ;_uu_ 4       pVP                  RP                  W4      V,           4       RRR4       V# V#   + '       g   i     ELj; i  + '       g   i     L„; i  + '       g   i     T# ; i)zÐBump a changed skin and raise its dependency before the guard runs. An unchanged skin stays exactly as it is: it
keeps its version, so nobody's Kodi installs it again and reloads the running skin for nothing.Nc                 ó–   € \         ;QJ d#    . R  V P                  R4       4       F  NK  	  5# ! R  V P                  R4       4       4      # )c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5i©N)Úint©Ú.0Úparts   & r    Ú	<genexpr>Ú,prepare.<locals>.<lambda>.<locals>.<genexpr>J   s   é € Ð#KÑ:J°$¤C¨§I IÓ:Jùó   ‚Ú.)ÚtupleÚsplit)Úvalues   &r    r5   Úprepare.<locals>.<lambda>J   s2   € ŸeœeÑ#K¸%¿+¹+ÀcÔ:JÓ#KŸeÐK˜eÑ#K¸%¿+¹+ÀcÔ:JÓ#KÔKr)   r#   rU   c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5irM   )ÚstrrO   s   & r    rR   Úprepare.<locals>.<genexpr>M   s   é € ÐOÑ5N¨Tœs 4Ÿy˜yÓ5NùrT   zskin version {} -> {}zchangelog.txtr+   r,   z	[B]{}[/B]r:   uS   [B]{}[/B]
â€¢ Release with MilionÃ¡Å™ {}; skin files and addon dependency updated

éÿÿÿÿ)r#   r   r   rE   rF   r   rG   rH   rI   rB   r   ÚprintÚformatr	   r   r@   )r4   Úcurrentr   ÚlastÚpartsÚoldr   Únotess   &       r    Úpreparere   @   sr  € ô ‹i€GÜ	‡w�w‡~�~”e×ÒÜ”%�[Œ[˜FÜ—9’9˜VÓ$ˆD÷ ä�yŠyØˆNÜ˜Ô1ÙKˆÙ�‹>™U 4¨	¥?Ó3Ô3Ù˜˜Y�Ó(ˆCØ—h‘hÑO°S¸¸"°XÀÀRÅÈ1ÅÀÖ5NÓOÓOˆGÜÐ)×0Ñ0°°iµÀ'ÓJÔKÜ˜^Ô5Ü�7‰7�<‰<œ˜oÓ.€DÜ	ˆd˜W×	%Õ	%¨Ø—‘“ˆ÷ 
&à×Ñ˜'Ó"¨%Ô/Ü�$˜ g×.Õ.°&Ø�L‰LÐq×xÑxØó)Ø+0õ1ô 2÷ /ð €Nˆ7€N÷% �[ˆ[ú÷ 
&×	%ú÷ /Ö.ð €Nús$   ÁGÅ
GÆ(G*ÇG	ÇG'	Ç*G;	c            	      óª  € \        \        P                  4      ^8”  d   \        P                  ^,          MRp R\        4       R\	        4       /pV R8X  d¥   \
        P                  ! \
        P                  P                  \        4      RR7       \        \        R4      ;_uu_ 4       p\        P                  ! W^R7       R	R	R	4       \        R
P                  VR,          VR,          R,          4      4       R	# \
        P                  P                  \        4      '       g$   \        RP                  VR,          4      4       R	# \        P                   ! \        \        4      4      pVR,          VR,          8w  dš   \#        \%        \&        VR,          P)                  R^4      ^ ,          P)                  R4      4      4      \#        \%        \&        VR,          P)                  R4      4      4      8:  d"   \+        RP                  VR,          4      4      h\        RP                  VR,          VR,          4      4       R	#   + '       g   i     EL‹; i)r0   Úcheckr#   rD   ÚrecordT)Úexist_okr:   )ÚindentNzrecorded skin {} {}:Né   Nz)no previous deploy recorded: ok (skin {})Ú~rU   zŒskin tree changed since the last deploy but the version is still {}: bump the version in resources/skin.milionar/addon.xml (+ changelog.txt)zskin ok: {} (last deployed {}))ÚlenÚsysÚargvr#   r!   r   Úmakedirsr   ÚdirnamerF   r   rG   Údumpr^   r_   rE   rH   rV   ÚmaprN   rW   r>   )ÚmodeÚnowr   ra   s       r    Úmainrv   Z   sº  € ÜœcŸh™h›-¨!Ô+Œ3�8‰8�AŽ;°€DØ”g“i ¬«Ð
5€CØˆxÔÜ
�Š”B—G‘G—O‘O¤EÓ*°TÕ:Ü”%˜×Ô Ü�IŠI�c¨!Õ,÷ äÐ#×*Ñ*¨3¨y­>¸3¸v½;ÀsÕ;KÓLÔMÙÜ�7‰7�>‰>œ%× Ò ÜÐ9×@Ñ@ÀÀYÅÓPÔQÙÜ�9Š9”Tœ%“[Ó!€DØˆF…|�s˜6•{Ô"¤u¬S´°c¸)µn×6JÑ6JÈ3ÐPQÓ6RÐSTÕ6U×6[Ñ6[Ð\_Ó6`Ó-aÓ'bÔfkÔloÔpsÐuyð  {Dõ  vE÷  vKñ  vKð  LOó  vPó  mQó  gRô  (RÜð cßciÑciÐjmÐnwÕjxÓcyó{ð 	{ä	Ð
*×
1Ñ
1°#°iµ.À$ÀyÅ/Ó
RÖS÷ ×Ðús   Â&IÉI	Ú__main__)Ú__doc__r   rG   r   r<   rn   Úxml.etree.ElementTreeÚetreeÚElementTreer$   r   Úabspathr   rq   Ú__file__r   r	   r
   r;   rF   r!   r#   rB   rI   re   rv   Ú__name__r(   r)   r    Ú<module>r      sð   ðñó
 Û Û 	Û 	Û 
ß "Ð "à	‡w�w‡��r—w‘w—|‘| B§G¡G§O¡O°B·G±G·O±OÀHÓ4MÓ$NÐPTÐVZÓ[Ó\€Ø	‡w�w‡|�|�D˜+ Ó7€Ø
�'‰'�,‰,�t˜[¨.Ó
9€Ø�W‰W�\‰\˜$ Ó,Ð.€	Ø
�‰�‰�T˜9 gÐ/AÓB€òò"Nòò8òò4Tð& ˆzÔÙ†Fñ r)   