From 6fe5fb87642f4daa4572aaad4ff762a5bfa7b753 Mon Sep 17 00:00:00 2001 From: Thatchapon Unprasert Date: Sun, 21 Jan 2018 14:50:16 +0700 Subject: [PATCH] `make setup` to simply copying dylib and plist process. --- simjectExampleTweak/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/simjectExampleTweak/Makefile b/simjectExampleTweak/Makefile index e3b4aa0..bc7dfe3 100644 --- a/simjectExampleTweak/Makefile +++ b/simjectExampleTweak/Makefile @@ -14,3 +14,10 @@ simjectExampleTweak_FILES = simjectExampleTweak.xm simjectExampleTweak_CFLAGS = -fobjc-arc -Wno-deprecated-declarations include $(THEOS_MAKE_PATH)/tweak.mk + +ifneq (,$(filter x86_64 i386,$(ARCHS))) +setup:: clean all + @rm -f /opt/simject/$(TWEAK_NAME).dylib + @cp -v $(THEOS_OBJ_DIR)/$(TWEAK_NAME).dylib /opt/simject/$(TWEAK_NAME).dylib + @cp -v $(PWD)/$(TWEAK_NAME).plist /opt/simject +endif \ No newline at end of file