forked from binaryage/asepsis
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compatibility with OS X 10.9 (Mavericks) => close #9
- Loading branch information
Showing
9 changed files
with
75 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
|
||
BIN="$PROJECT_DIR/../bin" | ||
mkdir -p "$BIN" | ||
BIN=`cd "$BIN";pwd` # normalize path | ||
|
||
TARGET="$BIN/Asepsis" | ||
DAEMON="$TARGET/asepsisd" | ||
TEST="$TARGET/asepsisTest" | ||
WRAPPER="$TARGET/DesktopServicesPrivWrapper" | ||
UPDATER="$TARGET/AsepsisUpdater.app" | ||
|
||
echo "build products dir is $BUILT_PRODUCTS_DIR" | ||
echo "assembling final products in $BIN" | ||
|
||
mkdir -p "$TARGET" | ||
|
||
cp "$PROJECT_DIR"/com.binaryage.*.plist "$TARGET" | ||
cp "$PROJECT_DIR/finish-uninstall.sh" "$TARGET" | ||
cp "$PROJECT_DIR/finish-kext-uninstall.sh" "$TARGET" | ||
cp "$PROJECT_DIR/launch-updater.sh" "$TARGET" | ||
cp -Rf "$BUILT_PRODUCTS_DIR/asepsisd" "$DAEMON" | ||
cp -Rf "$BUILT_PRODUCTS_DIR/asepsisTest" "$TEST" | ||
cp -Rf "$BUILT_PRODUCTS_DIR/DesktopServicesPrivWrapper.framework/Versions/A/DesktopServicesPrivWrapper" "$WRAPPER" | ||
cp -Rf "$BUILT_PRODUCTS_DIR/AsepsisUpdater.app" "$UPDATER" | ||
cp "$PROJECT_DIR/install_name_tool" "$TARGET" | ||
cp "$PROJECT_DIR/codesign" "$TARGET" | ||
|
||
rm "$UPDATER/Contents/Frameworks/Sparkle.framework/Headers" | ||
rm -rf "$UPDATER/Contents/Frameworks/Sparkle.framework/Versions/A/Headers" | ||
|
||
cp -Rf "$PROJECT_DIR/../ctl" "$TARGET" |
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 |
---|---|---|
@@ -1,9 +1,19 @@ | ||
def cmd_uninstall_wrapper(options) | ||
die("wrapper framework seems not to be installed (#{DS_LIB_RELOCATED_FOLDER} does not exist)") unless File.exists? DS_LIB_RELOCATED_FOLDER | ||
|
||
# replace DesktopServicesPriv with original version | ||
if File.exists? DS_LIB_ASEPSIS_REV then | ||
# asepsis 1.4 path | ||
die("the backup folder is missing! (#{DS_LIB_BACKUP_FOLDER} does not exist)") unless File.exists? DS_LIB_BACKUP_FOLDER | ||
|
||
# replace DesktopServicesPriv with original version inplace | ||
sys("sudo cp -r \"#{DS_LIB_RELOCATED_FOLDER}/_CodeSignature\" \"#{DS_LIB_FOLDER}\"") | ||
sys("sudo cp \"#{DS_LIB_RELOCATED_FOLDER}/DesktopServicesPriv\" \"#{DS_LIB_FOLDER}/DesktopServicesPriv\"") | ||
sys("sudo \"#{RESOURCES_PATH}/install_name_tool\" -id \"#{DS_LIB_FOLDER}/DesktopServicesPriv\" \"#{DS_LIB_FOLDER}/DesktopServicesPriv\"") | ||
sys("sudo rm -rf \"#{DS_LIB_RELOCATED_FOLDER}\"") | ||
sys("sudo rm -rf \"#{DS_LIB_FOLDER}\"") | ||
sys("sudo mv \"#{DS_LIB_BACKUP_FOLDER}\" \"#{DS_LIB_FOLDER}\"") | ||
sys("sudo rm -rf \"#{DS_LIB_RELOCATED_FOLDER}\"") | ||
else | ||
# asepsis 1.3.x and lower | ||
sys("sudo cp -r \"#{DS_LIB_RELOCATED_FOLDER}/_CodeSignature\" \"#{DS_LIB_FOLDER}\"") | ||
sys("sudo cp \"#{DS_LIB_RELOCATED_FOLDER}/DesktopServicesPriv\" \"#{DS_LIB_FOLDER}/DesktopServicesPriv\"") | ||
sys("sudo \"#{RESOURCES_PATH}/install_name_tool\" -id \"#{DS_LIB_FOLDER}/DesktopServicesPriv\" \"#{DS_LIB_FOLDER}/DesktopServicesPriv\"") | ||
sys("sudo rm -rf \"#{DS_LIB_RELOCATED_FOLDER}\"") | ||
end | ||
end |
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
Binary file not shown.
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