-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ControlCenter module, make it safer not to save real values
- Loading branch information
1 parent
bd3c0c3
commit d084e93
Showing
7 changed files
with
103 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
bundle_system=/System/Library/ControlCenter/Bundles/ContinuousExposeModule.bundle | ||
# FIXME: use $JB_ROOT_PATH instead? | ||
bundle_jb=/var/jb/Library/ControlCenter/Bundles/ContinuousExposeModule.bundle | ||
plistbuddy=/var/jb/usr/libexec/PlistBuddy | ||
|
||
case "$1" in | ||
(configure) | ||
if [ -d $bundle_system ] ; then | ||
# Copy Stage Manager CC module | ||
ln -sf $bundle_system/* $bundle_jb/ | ||
rm $bundle_jb/Info.plist | ||
cp $bundle_system/Info.plist $bundle_jb/Info.plist | ||
$plistbuddy -c "Delete :SBIconVisibilityDefaultVisible" $bundle_jb/Info.plist | ||
$plistbuddy -c "Delete :SBIconVisibilitySetByAppPreference" $bundle_jb/Info.plist | ||
$plistbuddy -c "Add :UIDeviceFamily:0 integer 1" $bundle_jb/Info.plist | ||
fi | ||
;; | ||
(abort-upgrade|abort-remove|abort-deconfigure) | ||
exit 0 | ||
;; | ||
(*) | ||
echo "postinst called with unknown argument \`$1'" >&2 | ||
exit 0 | ||
;; | ||
esac | ||
|
||
exit 0 |
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,13 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
# FIXME: use $JB_ROOT_PATH instead? | ||
bundle_jb=/var/jb/Library/ControlCenter/Bundles/ContinuousExposeModule.bundle | ||
|
||
case "$1" in | ||
(remove) | ||
rm -rf $bundle_jb | ||
;; | ||
esac | ||
|
||
exit 0 |
Empty file.