@@ -35,17 +35,20 @@ def main():
35
35
arch = "x86-64" # FIXME
36
36
app_path = f"fsbuild/_build/{ app } /macOS/{ arch } /{ app } .app"
37
37
shell ("rm -f fsbuild/_build/Notarize.zip" )
38
- shell (" cd fsbuild/_build && zip -r Notarize.zip \ " {}\" " .format (app ))
38
+ shell (' cd fsbuild/_build && zip -r Notarize.zip "{}"' .format (app ))
39
39
result = shell (
40
- "xcrun altool --notarize-app -t osx " \
41
- "-f fsbuild/_build/Notarize.zip " \
42
- "--primary-bundle-id {app_id} " \
43
- "-u {apple_id_user} " \
44
- "-p @env:NOTARIZATION_PASSWORD " \
45
- "-itc_provider {itc_provider} " \
46
- "--output-format xml" .format (
47
- app_id = app_id , apple_id_user = apple_id_user ,
48
- itc_provider = itc_provider ))
40
+ "xcrun altool --notarize-app -t osx "
41
+ "-f fsbuild/_build/Notarize.zip "
42
+ "--primary-bundle-id {app_id} "
43
+ "-u {apple_id_user} "
44
+ "-p @env:NOTARIZATION_PASSWORD "
45
+ "-itc_provider {itc_provider} "
46
+ "--output-format xml" .format (
47
+ app_id = app_id ,
48
+ apple_id_user = apple_id_user ,
49
+ itc_provider = itc_provider ,
50
+ )
51
+ )
49
52
50
53
print (result )
51
54
root = ET .fromstring (result )
@@ -57,10 +60,12 @@ def main():
57
60
for i in range (60 ):
58
61
time .sleep (10.0 )
59
62
result = shell (
60
- "xcrun altool --notarization-info {} " \
61
- "-u {} -p @env:NOTARIZATION_PASSWORD " \
63
+ "xcrun altool --notarization-info {} "
64
+ "-u {} -p @env:NOTARIZATION_PASSWORD "
62
65
"-itc_provider {} --output-format xml" .format (
63
- request_uuid , apple_id_user , itc_provider ))
66
+ request_uuid , apple_id_user , itc_provider
67
+ )
68
+ )
64
69
if "<string>success</string>" in result :
65
70
break
66
71
elif "<string>in progress</string>" in result :
@@ -70,8 +75,8 @@ def main():
70
75
print (result )
71
76
raise Exception ("..." )
72
77
73
- print (" xcrun stapler staple \ " {}\" " .format (app_path ))
74
- assert os .system (" xcrun stapler staple \ " {}\" " .format (app_path )) == 0
78
+ print (' xcrun stapler staple "{}"' .format (app_path ))
79
+ assert os .system (' xcrun stapler staple "{}"' .format (app_path )) == 0
75
80
76
81
77
82
if __name__ == "__main__" :
0 commit comments