diff --git a/screendump/Makefile b/screendump/Makefile index 1fdfef1..339766a 100644 --- a/screendump/Makefile +++ b/screendump/Makefile @@ -9,6 +9,7 @@ $(TOOL_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface $(TOOL_NAME)_OBJCFLAGS += -I/mnt/d/codes/screendump/vncbuild/include -Iinclude $(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -L/mnt/d/codes/screendump/vncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz $(TOOL_NAME)_CFLAGS = -w +$(TOOL_NAME)_CODESIGN_FLAGS = "-Sen.plist" export ARCHS = arm64 $(TOOL_NAME)_ARCHS = arm64 diff --git a/screendump/layout/DEBIAN/postinst b/screendump/layout/DEBIAN/postinst index 27a41e9..3cda9b2 100644 --- a/screendump/layout/DEBIAN/postinst +++ b/screendump/layout/DEBIAN/postinst @@ -3,4 +3,6 @@ launchctl unload //Library/LaunchDaemons/com.julioverne.screendumpd.plist launchctl load //Library/LaunchDaemons/com.julioverne.screendumpd.plist +killall screendumpd + exit 0; \ No newline at end of file diff --git a/screendump/layout/DEBIAN/postrm b/screendump/layout/DEBIAN/postrm index ab06c08..7a02a9b 100644 --- a/screendump/layout/DEBIAN/postrm +++ b/screendump/layout/DEBIAN/postrm @@ -2,4 +2,6 @@ launchctl unload //Library/LaunchDaemons/com.julioverne.screendumpd.plist +killall screendumpd + exit 0; \ No newline at end of file diff --git a/screendumpLowFrame/Makefile b/screendumpLowFrame/Makefile index 9aa76d3..821e087 100644 --- a/screendumpLowFrame/Makefile +++ b/screendumpLowFrame/Makefile @@ -4,12 +4,13 @@ include $(THEOS)/makefiles/common.mk TOOL_NAME = screendumpd -$(TOOL_NAME)_FILES = /mnt/d/codes/screendump/main.mm +$(TOOL_NAME)_FILES = /mnt/d/codes/screendumpLowFrame/main.mm $(TOOL_NAME)_FRAMEWORKS := IOSurface IOKit $(TOOL_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface -$(TOOL_NAME)_OBJCFLAGS += -I/mnt/d/codes/screendump/vncbuild/include -Iinclude -$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -L/mnt/d/codes/screendump/vncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz +$(TOOL_NAME)_OBJCFLAGS += -I/mnt/d/codes/screendumpLowFrame/vncbuild/include -Iinclude +$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -L/mnt/d/codes/screendumpLowFrame/vncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz $(TOOL_NAME)_CFLAGS = -w +$(TOOL_NAME)_CODESIGN_FLAGS = "-Sen.plist" export ARCHS = arm64 $(TOOL_NAME)_ARCHS = arm64 diff --git a/screendumpLowFrame/hooks/Makefile b/screendumpLowFrame/hooks/Makefile index 962c490..0d780af 100644 --- a/screendumpLowFrame/hooks/Makefile +++ b/screendumpLowFrame/hooks/Makefile @@ -3,11 +3,11 @@ TARGET = iphone:11.2:10.0 include $(THEOS)/makefiles/common.mk TWEAK_NAME = screendumpbb -$(TWEAK_NAME)_FILES = /mnt/d/codes/screendump/hooks/Tweak.xm +$(TWEAK_NAME)_FILES = /mnt/d/codes/screendumpLowFrame/hooks/Tweak.xm $(TWEAK_NAME)_FRAMEWORKS := IOSurface IOKit $(TWEAK_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface -ADDITIONAL_OBJCFLAGS += -I/mnt/d/codes/screendump/vncbuild/include -Iinclude +ADDITIONAL_OBJCFLAGS += -I/mnt/d/codes/screendumpLowFrame/vncbuild/include -Iinclude ADDITIONAL_LDFLAGS += -Wl,-segalign,4000 ADDITIONAL_CFLAGS = -w diff --git a/screendumpLowFrame/layout/DEBIAN/postinst b/screendumpLowFrame/layout/DEBIAN/postinst index 27a41e9..3cda9b2 100644 --- a/screendumpLowFrame/layout/DEBIAN/postinst +++ b/screendumpLowFrame/layout/DEBIAN/postinst @@ -3,4 +3,6 @@ launchctl unload //Library/LaunchDaemons/com.julioverne.screendumpd.plist launchctl load //Library/LaunchDaemons/com.julioverne.screendumpd.plist +killall screendumpd + exit 0; \ No newline at end of file diff --git a/screendumpLowFrame/layout/DEBIAN/postrm b/screendumpLowFrame/layout/DEBIAN/postrm index ab06c08..7a02a9b 100644 --- a/screendumpLowFrame/layout/DEBIAN/postrm +++ b/screendumpLowFrame/layout/DEBIAN/postrm @@ -2,4 +2,6 @@ launchctl unload //Library/LaunchDaemons/com.julioverne.screendumpd.plist +killall screendumpd + exit 0; \ No newline at end of file