@@ -1601,7 +1601,11 @@ async def _notarize_geckodriver(context, path, workdir):
1601
1601
1602
1602
1603
1603
async def _notarize_all (context , path , workdir ):
1604
- """Notarizes all files in a tarball"""
1604
+ """
1605
+ Notarizes all files in a tarball
1606
+
1607
+ @Deprecated: This function is deprecated and will be removed in the future. Use apple_notarize_stacked instead.
1608
+ """
1605
1609
_ , extension = os .path .splitext (path )
1606
1610
# Attempt extracting
1607
1611
await _extract_tarfile (context , path , extension , tmp_dir = workdir )
@@ -1631,6 +1635,8 @@ async def _notarize_all(context, path, workdir):
1631
1635
async def apple_notarize (context , path , * args , ** kwargs ):
1632
1636
"""
1633
1637
Notarizes given package(s) using rcodesign.
1638
+
1639
+ @Deprecated: This function is deprecated and will be removed in the future. Use apple_notarize_stacked instead.
1634
1640
"""
1635
1641
# Setup workdir
1636
1642
notarization_workdir = os .path .join (context .config ["work_dir" ], "apple_notarize" )
@@ -1707,6 +1713,7 @@ async def apple_notarize_stacked(context, filelist_dict):
1707
1713
retry_exceptions = RCodesignError ,
1708
1714
)
1709
1715
1716
+ # Staple files
1710
1717
for path in submissions_map .keys ():
1711
1718
await retry_async (
1712
1719
func = rcodesign_staple ,
@@ -1715,13 +1722,14 @@ async def apple_notarize_stacked(context, filelist_dict):
1715
1722
retry_exceptions = RCodesignError ,
1716
1723
)
1717
1724
1718
- # Staple + create tarball where necessary
1725
+ # Wrap up
1719
1726
stapled_files = []
1720
1727
for relpath , path_dict in filelist_dict .items ():
1721
1728
task_index = relpath_index_map [relpath ]
1722
1729
notarization_workdir = os .path .join (context .config ["work_dir" ], f"apple_notarize-{ task_index } " )
1723
1730
target_path = os .path .join (context .config ["work_dir" ], relpath )
1724
1731
_ , extension = os .path .splitext (relpath )
1732
+ # Pkgs don't need to be tarred
1725
1733
if extension == ".pkg" :
1726
1734
utils .copy_to_dir (os .path .join (notarization_workdir , relpath ), os .path .dirname (target_path ))
1727
1735
else :
0 commit comments