summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2016-06-20 21:55:08 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2016-06-21 03:43:12 +0000
commit3491a1a7d17bc12a30af900fa83df44ddbd75108 (patch)
tree5734ba3f824beea987f133bd9e1cbc33ed664520 /setup_native
parent97b0b8c1f7310c3ca85229a9455decf35e08811f (diff)
tdf#89657 sign Mac languagepack installer and force-start-close LO
starting LO once satisfies Gatekeeper's verification, even when the langaugepack's content are added afterwards Change-Id: Ie548df39a7ec07cc485c40148e4ca75101346798 (cherry picked from commit 78c7929ac4f03d90e956cc1052208c646feaabf3) Reviewed-on: https://gerrit.libreoffice.org/26528 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/scripts/osx_install_languagepack.applescript8
-rw-r--r--setup_native/source/mac/Info.plist.langpack2
2 files changed, 9 insertions, 1 deletions
diff --git a/setup_native/scripts/osx_install_languagepack.applescript b/setup_native/scripts/osx_install_languagepack.applescript
index cbd7743b242f..49c8e546a8b4 100644
--- a/setup_native/scripts/osx_install_languagepack.applescript
+++ b/setup_native/scripts/osx_install_languagepack.applescript
@@ -143,6 +143,14 @@ end if
-- touch extensions folder to have LO register bundled dictionaries
set tarCommand to "/usr/bin/tar -C " & quoted form of (choice as string) & " -xjf " & quoted form of sourcedir & "/tarball.tar.bz2 && touch " & quoted form of (choice as string) & "/Contents/Resources/extensions"
try
+ (* A start of unchanged LO must take place so Gatekeeper will verify
+ the signature prior to installing the languagepack
+ *)
+ if application choice is not running then
+ -- this will flash the startcenter once...
+ tell application choice to activate
+ tell application choice to quit
+ end if
do shell script tarCommand
on error errMSG number errNUM
diff --git a/setup_native/source/mac/Info.plist.langpack b/setup_native/source/mac/Info.plist.langpack
index 372e645e7cce..361a4b418406 100644
--- a/setup_native/source/mac/Info.plist.langpack
+++ b/setup_native/source/mac/Info.plist.langpack
@@ -35,7 +35,7 @@
<key>CFBundleShortVersionString</key>
<string>9</string>
<key>CFBundleIdentifier</key>
- <string>${BUNDLEIDENTIFIER}</string>
+ <string>[BUNDLEIDENTIFIER].langpack</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>