Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-macos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-macos
Commits
03ce9b25
Commit
03ce9b25
authored
5 years ago
by
Kateryna Kostiuk
Browse files
Options
Downloads
Patches
Plain Diff
packaging: prepare for notarization
Change-Id: I992b65eb95d872762f4800338e516c11c3ac98f7
parent
00dcbffa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-0
2 additions, 0 deletions
CMakeLists.txt
data/HardenedRuntimeEntitlements/Jami.entitlements
+12
-0
12 additions, 0 deletions
data/HardenedRuntimeEntitlements/Jami.entitlements
notarize.sh
+34
-0
34 additions, 0 deletions
notarize.sh
with
48 additions
and
0 deletions
CMakeLists.txt
+
2
−
0
View file @
03ce9b25
...
...
@@ -494,6 +494,7 @@ ELSE()
SET_TARGET_PROPERTIES
(
${
PROJ_NAME
}
PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/MacOSXBundleInfo.plist.in
MACOSX_BUNDLE_GUI_IDENTIFIER
"cx.ring"
XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS
"
${
CMAKE_CURRENT_LIST_DIR
}
/data/HardenedRuntimeEntitlements/Jami.entitlements"
MACOSX_BUNDLE_SHORT_VERSION_STRING
"
${
RING_VERSION_NAME
}
"
MACOSX_BUNDLE_LONG_VERSION_STRING
"
${
PROJ_NAME
}
${
RING_VERSION_NAME
}
"
MACOSX_BUNDLE_BUNDLE_VERSION
${
RING_VERSION
}
...
...
@@ -501,6 +502,7 @@ ELSE()
MACOSX_BUNDLE_INFO_STRING
"Build of
${
PROJ_NAME
}
, version
${
RING_VERSION
}
"
MACOSX_BUNDLE_BUNDLE_NAME
${
PROJ_NAME
}
MACOSX_BUNDLE_ICON_FILE
"appicon.icns"
XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME TRUE
)
ENDIF
()
# Make sure we can find the 'ibtool' program. If we can NOT find it we
...
...
This diff is collapsed.
Click to expand it.
data/HardenedRuntimeEntitlements/Jami.entitlements
0 → 100644
+
12
−
0
View file @
03ce9b25
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
com.apple.security.device.audio-input
</key>
<true/>
<key>
com.apple.security.device.camera
</key>
<true/>
<key>
com.apple.security.personal-information.photos-library
</key>
<true/>
</dict>
</plist>
This diff is collapsed.
Click to expand it.
notarize.sh
0 → 100755
+
34
−
0
View file @
03ce9b25
#!/bin/bash
echo
""
cd
build-local
/Applications/Xcode.app/Contents/Applications/Application
\
Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool
--notarize-app
-t
osx
-f
Jami.app.zip
--primary-bundle-id
${
BUNDLE_ID
}
-u
${
APPLE_ACCOUNT
}
-p
${
APPLE_PASSWORD
}
--output-format
xml
-itc_provider
${
TEAM_ID
}
>
UploadInfo.plist
REQUESTID
=
$(
xmllint
--xpath
"/plist/dict[key='notarization-upload']/dict/key[.='RequestUUID']/following-sibling::string[1]/node()"
UploadInfo.plist
)
echo
"file uploaded for notarization"
echo
${
REQUESTID
}
x
=
1
while
[
$x
-le
15
]
;
do
/Applications/Xcode.app/Contents/Applications/Application
\
Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool
--notarization-info
${
REQUESTID
}
-u
${
APPLE_ACCOUNT
}
-p
${
APPLE_PASSWORD
}
--output-format
xml
>
RequestedInfo.plist
ANSWER
=
$(
xmllint
--xpath
"/plist/dict[key='notarization-info']/dict/key[.='Status']/following-sibling::string[1]/node()"
RequestedInfo.plist
)
if
[
"
$ANSWER
"
==
"in progress"
]
;
then
echo
"notarization in progress"
sleep
60
x
=
$((
$x
+
1
))
elif
[
"
$ANSWER
"
==
"success"
]
then
echo
"notarization success"
break
else
echo
"notarization failed"
break
exit
1
fi
done
ANSWER
=
$(
xmllint
--xpath
"/plist/dict[key='notarization-info']/dict/key[.='Status']/following-sibling::string[1]/node()"
RequestedInfo.plist
)
if
[
"
$ANSWER
"
!=
"success"
]
;
then
echo
"notarization failed"
exit
1
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