forked from owncloud/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into crashreporter
Conflicts: src/libsync/utility.cpp src/libsync/utility.h
- Loading branch information
Showing
270 changed files
with
179,801 additions
and
17,452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# traverse into osx subdirectory to install and patch the create-pack script | ||
add_subdirectory(osx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
configure_file(create_mac_pkg.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/create_mac.sh) | ||
configure_file(macosx.pkgproj ${CMAKE_CURRENT_BINARY_DIR}/macosx.pkgproj) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/bin/bash | ||
|
||
# Script to create the Mac installer using the packages tool from | ||
# http://s.sudre.free.fr/Software/Packages/about.html | ||
# | ||
|
||
[ "$#" -lt 2 ] && echo "Usage: create_mac_pkg.sh <CMAKE_INSTALL_DIR> <build dir> <installer sign identity>" && exit | ||
|
||
# the path of installation must be given as parameter | ||
if [ -z "$1" ]; then | ||
echo "ERROR: Provide the path to CMAKE_INSTALL_DIR to this script as first parameter." | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$2" ]; then | ||
echo "ERROR: Provide the path to build directory as second parameter." | ||
exit 1 | ||
fi | ||
|
||
install_path="$1" | ||
build_path="$2" | ||
identity="$3" | ||
prjfile=$build_path/admin/osx/macosx.pkgproj | ||
|
||
# The name of the installer package | ||
installer="@APPLICATION_NAME@-@MIRALL_VERSION_FULL@@MIRALL_VERSION_SUFFIX@" | ||
installer_file="$installer.pkg" | ||
installer_file_tar="$installer.pkg.tar" | ||
installer_file_tar_bz2="$installer.pkg.tar.bz2" | ||
installer_file_tbz="$installer.pkg.tbz" | ||
|
||
# set the installer name to the copied prj config file | ||
/usr/local/bin/packagesutil --file $prjfile set project name "$installer" | ||
|
||
# The command line tool of the "Packages" tool, see link above. | ||
pkgbuild=/usr/local/bin/packagesbuild | ||
|
||
$pkgbuild -F $install_path $prjfile | ||
rc=$? | ||
|
||
if [ $rc == 0 ]; then | ||
echo "Successfully created $installer_file" | ||
else | ||
echo "Failed to create $installer_file" | ||
exit 3 | ||
fi | ||
|
||
# Sign the finished package if desired. | ||
if [ ! -z "$identity" ]; then | ||
echo "Will try to sign the installer" | ||
pushd $install_path | ||
productsign --sign "$identity" "$installer_file" "$installer_file.new" | ||
mv "$installer_file".new $installer_file | ||
popd | ||
else | ||
echo "No certificate given, will not sign the pkg" | ||
fi | ||
|
||
# FIXME: OEMs? | ||
# they will need to do their own signing.. | ||
|
||
|
||
# Sparkle wants a tbz, it cannot install raw pkg | ||
cd $install_path | ||
tar cf "$installer_file_tar" "$installer_file" | ||
bzip2 -9 "$installer_file_tar" | ||
mv "$installer_file_tar_bz2" "$installer_file_tbz" | ||
rc=$? | ||
if [ $rc == 0 ]; then | ||
echo "Successfully created $installer_file" | ||
else | ||
echo "Failed to create $installer_file" | ||
exit 3 | ||
fi |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.