Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9835fa87
Kaydet (Commit)
9835fa87
authored
Haz 09, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use essentially the same OS X code signing script as in libreoffice-4-2
Change-Id: Ica7dcc823cc7027a00b15d2dcf5b73b0ef322189
üst
ee710b09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
3 deletions
+40
-3
CodesignRules.plist
setup_native/source/mac/CodesignRules.plist
+19
-0
macosx-codesign-app-bundle
solenv/bin/macosx-codesign-app-bundle
+21
-3
No files found.
setup_native/source/mac/CodesignRules.plist
0 → 100644
Dosyayı görüntüle @
9835fa87
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
rules
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
^
MacOS/
(
bootstraprc
|
fundamentalrc
|
setuprc
|
sofficerc
|
unorc
|
versionrc
)
$
<
/k
e
y
>
<
fa
ls
e
/
>
<
k
e
y
>
^
MacOS/pythonloader.unorc$
<
/k
e
y
>
<
fa
ls
e
/
>
<
k
e
y
>
^
MacOS/postgresql-sdbc.ini$
<
/k
e
y
>
<
fa
ls
e
/
>
<
k
e
y
>
^
MacOS/
(
senddoc
|
python
|
gengal
|
unoinfo
)
$
<
/k
e
y
>
<
fa
ls
e
/
>
<
k
e
y
>
.
*\
.
(
png
|
svg
|
py
|
res
|
rdb
)
$
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/plist
>
solenv/bin/macosx-codesign-app-bundle
Dosyayı görüntüle @
9835fa87
...
@@ -19,6 +19,8 @@ for V in \
...
@@ -19,6 +19,8 @@ for V in \
fi
fi
done
done
echo
"codesigning using MACSOX_CODESIGNING_IDENTITY=[
${
MACOSX_CODESIGNING_IDENTITY
?
}
]"
APP_BUNDLE
=
"
$1
"
APP_BUNDLE
=
"
$1
"
# Sign dylibs
# Sign dylibs
...
@@ -33,8 +35,15 @@ APP_BUNDLE="$1"
...
@@ -33,8 +35,15 @@ APP_BUNDLE="$1"
# First sign all files that can use the default identifier in the hope
# First sign all files that can use the default identifier in the hope
# that codesign will contact the timestamp server just once for all
# that codesign will contact the timestamp server just once for all
# mentioned on the command line.
# mentioned on the command line.
#
# On Mavericks also would like to have data files signed...
# add some where it makes sense. Make a depth-first search to sign the contents
# of e.g. the spotlight plugin before attempting to sign the plugin itself
find
$APP_BUNDLE
\(
-name
'*.dylib'
-or
-name
'*.so'
\)
!
-type
l |
\
find
-d
$APP_BUNDLE
\(
-name
'*.dylib'
-or
-name
'*.so'
-or
-name
'*.fodt'
\
-or
-name
'schema.strings'
-or
-name
'schema.xml'
-or
-name
'*.mdimporter'
\
-or
-name
'*.jar'
-or
-name
'*.jnilib'
-or
-name
'LICENSE'
-or
-name
'LICENSE.html'
\
-or
-name
'*.applescript'
\)
!
-type
l |
grep
-v
"LibreOfficePython
\.
framework"
|
\
xargs codesign
--verbose
--prefix
=
$MACOSX_BUNDLE_IDENTIFIER
.
--sign
"
$MACOSX_CODESIGNING_IDENTITY
"
xargs codesign
--verbose
--prefix
=
$MACOSX_BUNDLE_IDENTIFIER
.
--sign
"
$MACOSX_CODESIGNING_IDENTITY
"
find
$APP_BUNDLE
-name
'*.dylib.*'
!
-type
l |
\
find
$APP_BUNDLE
-name
'*.dylib.*'
!
-type
l |
\
...
@@ -55,8 +64,13 @@ done
...
@@ -55,8 +64,13 @@ done
# completeness.
# completeness.
for
framework
in
`
find
$APP_BUNDLE
-name
'*.framework'
-type
d
`
;
do
\
for
framework
in
`
find
$APP_BUNDLE
-name
'*.framework'
-type
d
`
;
do
\
fn
=
"
$(
basename
$framework
)
"
fn
=
${
fn
%.*
}
for
version
in
$framework
/Versions/
*
;
do
\
for
version
in
$framework
/Versions/
*
;
do
\
if
test
!
-L
$version
-a
-d
$version
;
then
codesign
--verbose
--prefix
=
$MACOSX_BUNDLE_IDENTIFIER
.
--sign
"
$MACOSX_CODESIGNING_IDENTITY
"
$version
;
fi
;
\
if
test
!
-L
$version
-a
-d
$version
;
then
codesign
--force
--verbose
--prefix
=
$MACOSX_BUNDLE_IDENTIFIER
.
--sign
"
$MACOSX_CODESIGNING_IDENTITY
"
$version
/
$fn
codesign
--force
--verbose
--prefix
=
$MACOSX_BUNDLE_IDENTIFIER
.
--sign
"
$MACOSX_CODESIGNING_IDENTITY
"
$version
fi
;
\
done
;
\
done
;
\
done
done
...
@@ -67,12 +81,16 @@ done
...
@@ -67,12 +81,16 @@ done
# all of our non-code "resources").
# all of our non-code "resources").
#
#
# At this stage we also attach the entitlements in the sandboxing case
# At this stage we also attach the entitlements in the sandboxing case
#
# Also omit some files from the Bunlde's seal via the resource-rules
# (bootstraprc and similar that the user might adjust and image files)
# See also https://developer.apple.com/library/mac/technotes/tn2206/
if
test
"
$ENABLE_MACOSX_SANDBOX
"
=
"TRUE"
;
then
if
test
"
$ENABLE_MACOSX_SANDBOX
"
=
"TRUE"
;
then
entitlements
=
"--entitlements
$BUILDDIR
/lo.xcent"
entitlements
=
"--entitlements
$BUILDDIR
/lo.xcent"
fi
fi
id
=
`
echo
${
MACOSX_APP_NAME
}
|
tr
' '
'-'
`
id
=
`
echo
${
MACOSX_APP_NAME
}
|
tr
' '
'-'
`
codesign
--force
--verbose
--identifier
=
"
${
MACOSX_BUNDLE_IDENTIFIER
}
.
$id
"
--sign
"
$MACOSX_CODESIGNING_IDENTITY
"
$entitlements
$APP_BUNDLE
codesign
--force
--verbose
--identifier
=
"
${
MACOSX_BUNDLE_IDENTIFIER
}
.
$id
"
--
resource-rules
"
$SRCDIR
/setup_native/source/mac/CodesignRules.plist"
--
sign
"
$MACOSX_CODESIGNING_IDENTITY
"
$entitlements
$APP_BUNDLE
exit
0
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment