File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
elixirkit/elixirkit_swift/Scripts Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ cp -r $app_dir $dmg_dir/
37
37
38
38
hdiutil create $dmg_path -ov -volname ${app_name} Install -fs HFS+ -srcfolder $dmg_dir
39
39
40
- if [ -n " $team_id " ]; then
41
- codesign --verify --verbose=4 " ${app_dir} "
42
-
43
- codesign --sign=" $identity " " $dmg_path "
40
+ if [ -n " $identity " ]; then
41
+ codesign --sign " $identity " " $dmg_path "
44
42
codesign --verify --verbose=4 " $dmg_path "
43
+ fi
45
44
45
+ if [ -n " $team_id " ]; then
46
46
xcrun notarytool submit \
47
47
--team-id " ${team_id} " \
48
48
--apple-id " ${apple_id} " \
@@ -51,6 +51,8 @@ if [ -n "$team_id" ]; then
51
51
--wait \
52
52
" $dmg_path "
53
53
54
+ xcrun stapler staple " $dmg_path "
55
+ xcrun stapler staple " $app_dir "
54
56
spctl -a -t exec -vvv " $app_dir "
55
57
else
56
58
echo " [warning] skipping notarization. Please set ELIXIRKIT_NOTARY_{TEAM_ID,APPLE_ID,PASSWORD} environment variables"
You can’t perform that action at this time.
0 commit comments