-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 707 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
TARGET := iphone:clang:latest:11.0
INSTALL_TARGET_PROCESSES = YouTube
ARCHS = arm64
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = YTweaks
$(TWEAK_NAME)_FILES = Settings.x Tweak.x
$(TWEAK_NAME)_CFLAGS = -fobjc-arc
$(TWEAK_NAME)_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
ifeq ($(ROOTLESS),1)
after-stage::
@find $(THEOS_STAGING_DIR) -type f | while read f; do \
if file "$$f" | grep -q "Mach-O"; then \
if otool -L "$$f" | grep -q "/Library/Frameworks/CydiaSubstrate.framework"; then \
install_name_tool -change \
/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate \
@rpath/CydiaSubstrate.framework/CydiaSubstrate \
"$$f"; \
fi; \
fi; \
done
endif