[Pkg-owncloud-commits] [owncloud-client] 293/498: OS X Installer: Select app in Finder after install
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit a8fb94f51b9a60cb182794dfb9e0dd91f37b3759
Author: Markus Goetz <markus at woboq.com>
Date: Mon Jul 13 10:51:05 2015 +0200
OS X Installer: Select app in Finder after install
This is to improve UX in #2410
---
admin/osx/CMakeLists.txt | 1 +
admin/osx/macosx.pkgproj | 7 ++++++-
admin/osx/post_install.sh.cmake | 11 +++++++++++
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/admin/osx/CMakeLists.txt b/admin/osx/CMakeLists.txt
index d73bf4e..78f9ec3 100644
--- a/admin/osx/CMakeLists.txt
+++ b/admin/osx/CMakeLists.txt
@@ -14,3 +14,4 @@ endif()
configure_file(create_mac_pkg.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/create_mac.sh)
configure_file(macosx.pkgproj ${CMAKE_CURRENT_BINARY_DIR}/macosx.pkgproj)
configure_file(pre_install.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/pre_install.sh)
+configure_file(post_install.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/post_install.sh)
diff --git a/admin/osx/macosx.pkgproj b/admin/osx/macosx.pkgproj
index e8acb9b..e68ed3a 100644
--- a/admin/osx/macosx.pkgproj
+++ b/admin/osx/macosx.pkgproj
@@ -472,7 +472,12 @@
<key>PACKAGE_SCRIPTS</key>
<dict>
<key>POSTINSTALL_PATH</key>
- <dict/>
+ <dict>
+ <key>PATH</key>
+ <string>@CMAKE_CURRENT_BINARY_DIR@/post_install.sh</string>
+ <key>PATH_TYPE</key>
+ <integer>0</integer>
+ </dict>
<key>PREINSTALL_PATH</key>
<dict>
<key>PATH</key>
diff --git a/admin/osx/post_install.sh.cmake b/admin/osx/post_install.sh.cmake
new file mode 100644
index 0000000..2948a80
--- /dev/null
+++ b/admin/osx/post_install.sh.cmake
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+osascript << EOF
+tell application "Finder"
+ activate
+ select the last Finder window
+ reveal POSIX file "/Applications/@APPLICATION_EXECUTABLE at .app"
+end tell
+EOF
+
+exit 0
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list