This repository was archived by the owner on Jan 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +31
-10
lines changed
Expand file tree Collapse file tree 5 files changed +31
-10
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ endif
2727include $(THEOS_MAKE_PATH ) /aggregate.mk
2828
2929after-stage ::
30+ $(ECHO_NOTHING ) mkdir -p $(THEOS_STAGING_DIR ) /DEBIAN \
31+ $(THEOS_STAGING_DIR ) /Library/Frameworks \
32+ $(THEOS_STAGING_DIR ) /System/Library/Frameworks/UIKit.framework$(ECHO_END )
33+ $(ECHO_NOTHING ) cp preinst $(THEOS_STAGING_DIR ) /DEBIAN$(ECHO_END )
3034ifneq ($(PACKAGE_BUILDNAME )$(IMAGENT ) ,debug)
31- $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/DEBIAN$(ECHO_END)
3235 $(ECHO_NOTHING)cp postinst postrm $(THEOS_STAGING_DIR)/DEBIAN$(ECHO_END)
3336endif
3437
35- $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/System/Library/Frameworks/UIKit.framework$(ECHO_END)
3638 $(ECHO_NOTHING)cp Resources/*.png $(THEOS_STAGING_DIR)/System/Library/Frameworks/UIKit.framework$(ECHO_END)
39+ $(ECHO_NOTHING)ln -s /usr/lib/TypeStatus/TypeStatusProvider.framework $(THEOS_STAGING_DIR)/Library/Frameworks/TypeStatusProvider.framework$(ECHO_END)
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ TypeStatusProvider_FRAMEWORKS = MobileCoreServices
1212TypeStatusProvider_PRIVATE_FRAMEWORKS = AppSupport
1313TypeStatusProvider_EXTRA_FRAMEWORKS = Cephei CydiaSubstrate
1414TypeStatusProvider_LIBRARIES = rocketbootstrap
15+ TypeStatusProvider_INSTALL_PATH = /usr/lib/TypeStatus
1516
1617include $(THEOS ) /makefiles/framework.mk
1718
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -e
3+
24# relaunch imagent so we get injected into it
35launchctl stop com.apple.imagent
4-
5- # create our providers directory and move it to the stash
6- if [[ -x /usr/libexec/cydia/move.sh ]]; then
7- /usr/libexec/cydia/move.sh /Library/TypeStatus
8- fi
9-
10- mkdir -p /Library/TypeStatus/Providers
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -e
3+
24# relaunch imagent so we get injected into it, but not when we’re upgrading
35# or it’ll get stopped again by postinst
4- if [[ " $1 " != " upgrade" ]]; then
6+ if [[ $1 != upgrade ]]; then
57 launchctl stop com.apple.imagent
8+ else
9+ :
610fi
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ # if /Library/TypeStatus exists and /usr/lib/TypeStatus/Providers doesn’t yet, move it over. else if
5+ # cydia’s move script exists, use it to create a stashed providers dir. else, just create it ourselves
6+ if [[ -d /Library/TypeStatus || -h /Library/TypeStatus ]] && [[ ! -d /usr/lib/TypeStatus/Providers ]]; then
7+ mv /Library/TypeStatus /usr/lib/TypeStatus
8+ rm -rf /Library/TypeStatus
9+ elif [[ -x /usr/libexec/cydia/move.sh ]]; then
10+ bash /usr/libexec/cydia/move.sh /usr/lib/TypeStatus
11+ else
12+ mkdir -p /usr/lib/TypeStatus/Providers
13+ fi
14+
15+ # if /Library/TypeStatus isn’t a symlink, make it be one now
16+ if [[ ! -h /Library/TypeStatus ]]; then
17+ ln -s /usr/lib/TypeStatus /Library/TypeStatus
18+ fi
You can’t perform that action at this time.
0 commit comments