Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
ae1f6fb1
Commit
ae1f6fb1
authored
3 years ago
by
Andrey Lihatskiy
Committed by
Nat Goodspeed
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
SL-16630 Notarization script update
(cherry picked from commit
5fcb811a
)
parent
1de684a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/installers/darwin/apple-notarize.sh
+20
-18
20 additions, 18 deletions
indra/newview/installers/darwin/apple-notarize.sh
with
20 additions
and
18 deletions
indra/newview/installers/darwin/apple-notarize.sh
+
20
−
18
View file @
ae1f6fb1
...
...
@@ -5,12 +5,12 @@ if [[ $SKIP_NOTARIZATION == "true" ]]; then
fi
CONFIG_FILE
=
"
$build_secrets_checkout
/code-signing-osx/notarize_creds.sh"
if
[
-f
"
$CONFIG_FILE
"
]
;
then
source
$CONFIG_FILE
if
[
[
-f
"
$CONFIG_FILE
"
]
]
;
then
source
"
$CONFIG_FILE
"
app_file
=
"
$1
"
zip_file
=
${
app_file
/app/zip
}
ditto
-c
-k
--keepParent
"
$app_file
"
"
$zip_file
"
if
[
-f
"
$zip_file
"
]
;
then
if
[
[
-f
"
$zip_file
"
]
]
;
then
res
=
$(
xcrun altool
--notarize-app
--primary-bundle-id
"com.secondlife.viewer"
\
--username
$USERNAME
\
--password
$PASSWORD
\
...
...
@@ -19,37 +19,39 @@ if [ -f "$CONFIG_FILE" ]; then
echo
$res
requestUUID
=
$(
echo
$res
|
awk
'/RequestUUID/ { print $NF; }'
)
echo
"Apple Notarization RequestUUID:
$requestUUID
"
if
[[
-n
$requestUUID
]]
;
then
status
=
"
in
progress
"
while
[[
"
$status
"
==
"
in
progress
"
]]
;
do
in
_
progress
=
1
while
[[
$
in
_
progress
-eq
1
]]
;
do
sleep
30
statu
s
=
$(
xcrun altool
--notarization-info
"
$requestUUID
"
\
re
s
=
$(
xcrun altool
--notarization-info
"
$requestUUID
"
\
--username
$USERNAME
\
--password
$PASSWORD
2>&1
\
|
awk
-F
': '
'/Status:/ { print $2; }'
)
echo
"
$status
"
--password
$PASSWORD
2>&1
)
if
[[
$res
!=
*
"in progress"
*
]]
;
then
in_progress
=
0
fi
echo
"."
done
# log results
xcrun altool
--notarization-info
"
$requestUUID
"
\
--username
$USERNAME
\
--password
$PASSWORD
echo
$res
#remove temporary file
rm
"
$zip_file
"
if
[[
"
$status
"
==
"success"
]]
;
then
if
[[
$res
==
*
"success"
*
]]
;
then
xcrun stapler staple
"
$app_file
"
elif
[[
"
$status
"
==
"invalid"
]]
;
then
exit
0
elif
[[
$res
==
*
"invalid"
*
]]
;
then
echo
"Notarization error: failed to process the app file"
exit
1
else
echo
"Notarization error: unknown response status"
fi
else
echo
"Notarization error: couldn't get request UUID"
echo
$res
exit
1
fi
else
echo
"Notarization error: ditto failed"
exit
1
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment