-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3347 from jturcotte/shell_integration_findersync
shell_i: Add a FinderSync-based implementation #2340
- Loading branch information
Showing
92 changed files
with
1,873 additions
and
9,446 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
#!/bin/sh -xe | ||
|
||
[ "$#" -lt 2 ] && echo "Usage: sign_app.sh <app> <identity>" && exit | ||
[ "$#" -lt 2 ] && echo "Usage: sign_app.sh <app> <identity> <team_identifier>" && exit | ||
|
||
src_app="$1" | ||
identity="$2" | ||
team_identifier="$3" | ||
|
||
codesign -s "$identity" --force --verbose=4 --deep "$src_app" | ||
codesign -s "$identity" --force --preserve-metadata=entitlements --verbose=4 --deep "$src_app" | ||
|
||
# Verify the signature | ||
spctl -a -t exec -vv $src_app | ||
codesign -dv $src_app | ||
|
||
# Validate that the key used for signing the binary matches the expected TeamIdentifier | ||
# needed to pass the SocketApi through the sandbox | ||
codesign -dv $src_app 2>&1 | grep "TeamIdentifier=$team_identifier" | ||
exit $? |
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 |
---|---|---|
@@ -1,11 +1,28 @@ | ||
|
||
if(APPLE) | ||
add_custom_target( mac_overlayplugin ALL | ||
xcodebuild -workspace ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloud.xcworkspace | ||
-scheme SyncStateFinder.osax SYMROOT=${CMAKE_CURRENT_BINARY_DIR} archive | ||
COMMENT building Mac Overlay icons) | ||
add_custom_target( legacy_mac_overlayplugin ALL | ||
xcodebuild -workspace ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloud.xcworkspace | ||
-scheme SyncStateFinder.osax -configuration Release SYMROOT=${CMAKE_CURRENT_BINARY_DIR} | ||
OC_APPLICATION_REV_DOMAIN=${APPLICATION_REV_DOMAIN} | ||
OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX=${SOCKETAPI_TEAM_IDENTIFIER_PREFIX} | ||
COMMENT building Legacy Mac Overlay icons) | ||
|
||
# The bundle identifier and application group need to have compatible values with the client | ||
# to be able to open a Mach port across the extension's sandbox boundary. | ||
# Pass the info through the xcodebuild command line and make sure that the project uses | ||
# those user-defined settings to build the plist. | ||
add_custom_target( mac_overlayplugin ALL | ||
xcodebuild -project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloudFinderSync/OwnCloudFinderSync.xcodeproj | ||
-target FinderSyncExt -configuration Release SYMROOT=${CMAKE_CURRENT_BINARY_DIR} | ||
OC_APPLICATION_NAME=${APPLICATION_NAME} | ||
OC_APPLICATION_REV_DOMAIN=${APPLICATION_REV_DOMAIN} | ||
OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX=${SOCKETAPI_TEAM_IDENTIFIER_PREFIX} | ||
COMMENT building Mac Overlay icons) | ||
|
||
INSTALL( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/SyncStateFinder.osax/Contents | ||
DESTINATION ${CMAKE_INSTALL_PREFIX}/Library/ScriptingAdditions/SyncStateFinder.osax/ ) | ||
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/FinderSyncExt.appex | ||
DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Plugins | ||
USE_SOURCE_PERMISSIONS) | ||
endif(APPLE) | ||
|
3 changes: 3 additions & 0 deletions
3
shell_integration/MacOSX/OwnCloud.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.