Skip to content

Commit

Permalink
[global] Add KILL_PROCS variable to replace KILL_RULE.
Browse files Browse the repository at this point in the history
Merges #8.
  • Loading branch information
leptos-null authored and kirb committed Jul 23, 2018
1 parent 03a4647 commit 48854f2
Show file tree
Hide file tree
Showing 31 changed files with 27 additions and 55 deletions.
4 changes: 1 addition & 3 deletions ios/activator_event/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
@@KILL_PROCS@@
include @@THEOS@@/makefiles/common.mk

TWEAK_NAME = @@PROJECTNAME@@
@@PROJECTNAME@@_FILES = Event.xm
@@PROJECTNAME@@_LIBRARIES = activator

include $(THEOS_MAKE_PATH)/tweak.mk

internal-stage::
#Filter plist
$(ECHO_NOTHING)if [ -f Filter.plist ]; then mkdir -p $(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/; cp Filter.plist $(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/@@PROJECTNAME@@.plist; fi$(ECHO_END)
#PreferenceLoader plist
$(ECHO_NOTHING)if [ -f Preferences.plist ]; then mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/@@PROJECTNAME@@; cp Preferences.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/@@PROJECTNAME@@/; fi$(ECHO_END)

@@KILL_RULE@@
6 changes: 2 additions & 4 deletions ios/activator_event/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
my $default_kill = "SpringBoard";

NIC->variable("KILL_RULE") = "";
NIC->variable("KILL_PROCS") = "";

my $kill_apps = NIC->prompt("KILL_APPS", "List of applications to terminate upon installation (space-separated, '-' for none)", {default => $default_kill});
if($kill_apps ne "-") {
my @apps = split(/\s+/, $kill_apps);
my @commands = map {"killall -9 $_"} @apps;
NIC->variable("KILL_RULE") = "after-install::\n\tinstall.exec \"".join("; ", @commands)."\"";
NIC->variable("KILL_PROCS") = "INSTALL_TARGET_PROCESSES = ".$kill_apps."\n";
}
4 changes: 1 addition & 3 deletions ios/activator_listener/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
@@KILL_PROCS@@
include @@THEOS@@/makefiles/common.mk

TWEAK_NAME = @@PROJECTNAME@@
@@PROJECTNAME@@_FILES = Listener.xm
@@PROJECTNAME@@_LIBRARIES = activator

include $(THEOS_MAKE_PATH)/tweak.mk

internal-stage::
#Filter plist
$(ECHO_NOTHING)if [ -f Filter.plist ]; then mkdir -p $(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/; cp Filter.plist $(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/@@PROJECTNAME@@.plist; fi$(ECHO_END)
#PreferenceLoader plist
$(ECHO_NOTHING)if [ -f Preferences.plist ]; then mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/@@PROJECTNAME@@; cp Preferences.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/@@PROJECTNAME@@/; fi$(ECHO_END)

@@KILL_RULE@@
6 changes: 2 additions & 4 deletions ios/activator_listener/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
my $default_kill = "SpringBoard";

NIC->variable("KILL_RULE") = "";
NIC->variable("KILL_PROCS") = "";

my $kill_apps = NIC->prompt("KILL_APPS", "List of applications to terminate upon installation (space-separated, '-' for none)", {default => $default_kill});
if($kill_apps ne "-") {
my @apps = split(/\s+/, $kill_apps);
my @commands = map {"killall -9 $_"} @apps;
NIC->variable("KILL_RULE") = "after-install::\n\tinstall.exec \"".join("; ", @commands)."\"";
NIC->variable("KILL_PROCS") = "INSTALL_TARGET_PROCESSES = ".$kill_apps."\n";
}
4 changes: 1 addition & 3 deletions ios/application/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ include @@THEOS@@/makefiles/common.mk
APPLICATION_NAME = @@PROJECTNAME@@
@@PROJECTNAME@@_FILES = main.m @@CLASSPREFIX@@AppDelegate.m @@CLASSPREFIX@@RootViewController.m
@@PROJECTNAME@@_FRAMEWORKS = UIKit CoreGraphics
INSTALL_TARGET_PROCESSES = "@@PROJECTNAME@@"

include $(THEOS_MAKE_PATH)/application.mk

after-install::
install.exec "killall \"@@PROJECTNAME@@\"" || true
5 changes: 2 additions & 3 deletions ios/cydget/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include theos/makefiles/common.mk
@@KILL_PROCS@@
include @@THEOS@@/makefiles/common.mk

BUNDLE_NAME = @@PROJECTNAME@@LockScreen
@@PROJECTNAME@@LockScreen_FILES = @@PROJECTNAME@@.mm
Expand All @@ -7,5 +8,3 @@ BUNDLE_NAME = @@PROJECTNAME@@LockScreen
@@PROJECTNAME@@LockScreen_INSTALL_PATH = /System/Library/SpringBoardPlugins/

include $(THEOS_MAKE_PATH)/bundle.mk

@@KILL_RULE@@
6 changes: 2 additions & 4 deletions ios/cydget/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
my $default_kill = "SpringBoard";

NIC->variable("KILL_RULE") = "";
NIC->variable("KILL_PROCS") = "";

my $kill_apps = NIC->prompt("KILL_APPS", "List of applications to terminate upon installation (space-separated, '-' for none)", {default => $default_kill});
if($kill_apps ne "-") {
my @apps = split(/\s+/, $kill_apps);
my @commands = map {"killall -9 $_"} @apps;
NIC->variable("KILL_RULE") = "after-install::\n\tinstall.exec \"".join("; ", @commands)."\"";
NIC->variable("KILL_PROCS") = "INSTALL_TARGET_PROCESSES = ".$kill_apps."\n";
}
3 changes: 1 addition & 2 deletions ios/flipswitch_switch/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@@KILL_PROCS@@
include @@THEOS@@/makefiles/common.mk

BUNDLE_NAME = @@PROJECTNAME@@
Expand All @@ -11,5 +12,3 @@ include $(THEOS_MAKE_PATH)/bundle.mk
internal-stage::
#PreferenceLoader plist
$(ECHO_NOTHING)if [ -f Preferences.plist ]; then mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/@@PROJECTNAME@@; cp Preferences.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/@@PROJECTNAME@@/; fi$(ECHO_END)

@@KILL_RULE@@
6 changes: 2 additions & 4 deletions ios/flipswitch_switch/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
my $default_kill = "SpringBoard";

NIC->variable("KILL_RULE") = "";
NIC->variable("KILL_PROCS") = "";

my $kill_apps = NIC->prompt("KILL_APPS", "List of applications to terminate upon installation (space-separated, '-' for none)", {default => $default_kill});
if($kill_apps ne "-") {
my @apps = split(/\s+/, $kill_apps);
my @commands = map {"killall -9 $_"} @apps;
NIC->variable("KILL_RULE") = "after-install::\n\tinstall.exec \"".join("; ", @commands)."\"";
NIC->variable("KILL_PROCS") = "INSTALL_TARGET_PROCESSES = ".$kill_apps."\n";
}
5 changes: 2 additions & 3 deletions ios/notification_center_widget-7up/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include theos/makefiles/common.mk
@@KILL_PROCS@@
include @@THEOS@@/makefiles/common.mk

BUNDLE_NAME = @@PROJECTNAME@@
@@PROJECTNAME@@_FILES = @@PROJECTNAME@@ViewController.m
Expand All @@ -7,5 +8,3 @@ BUNDLE_NAME = @@PROJECTNAME@@
@@PROJECTNAME@@_PRIVATE_FRAMEWORKS = SpringBoardUIServices

include $(THEOS_MAKE_PATH)/bundle.mk

@@KILL_RULE@@
6 changes: 2 additions & 4 deletions ios/notification_center_widget-7up/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
my $default_kill = "SpringBoard";

NIC->variable("KILL_RULE") = "";
NIC->variable("KILL_PROCS") = "";

my $kill_apps = NIC->prompt("KILL_APPS", "List of applications to terminate upon installation (space-separated, '-' for none)", {default => $default_kill});
if($kill_apps ne "-") {
my @apps = split(/\s+/, $kill_apps);
my @commands = map {"killall -9 $_"} @apps;
NIC->variable("KILL_RULE") = "after-install::\n\tinstall.exec \"".join("; ", @commands)."\"";
NIC->variable("KILL_PROCS") = "INSTALL_TARGET_PROCESSES = ".$kill_apps."\n";
}
3 changes: 1 addition & 2 deletions ios/notification_center_widget/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@@KILL_PROCS@@
include @@THEOS@@/makefiles/common.mk

BUNDLE_NAME = @@PROJECTNAME@@
Expand All @@ -6,5 +7,3 @@ BUNDLE_NAME = @@PROJECTNAME@@
@@PROJECTNAME@@_INSTALL_PATH = /Library/WeeLoader/Plugins

include $(THEOS_MAKE_PATH)/bundle.mk

@@KILL_RULE@@
6 changes: 2 additions & 4 deletions ios/notification_center_widget/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
my $default_kill = "SpringBoard";

NIC->variable("KILL_RULE") = "";
NIC->variable("KILL_PROCS") = "";

my $kill_apps = NIC->prompt("KILL_APPS", "List of applications to terminate upon installation (space-separated, '-' for none)", {default => $default_kill});
if($kill_apps ne "-") {
my @apps = split(/\s+/, $kill_apps);
my @commands = map {"killall -9 $_"} @apps;
NIC->variable("KILL_RULE") = "after-install::\n\tinstall.exec \"".join("; ", @commands)."\"";
NIC->variable("KILL_PROCS") = "INSTALL_TARGET_PROCESSES = ".$kill_apps."\n";
}
3 changes: 1 addition & 2 deletions ios/tweak/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@@KILL_PROCS@@
include @@THEOS@@/makefiles/common.mk

TWEAK_NAME = @@PROJECTNAME@@
Expand All @@ -10,5 +11,3 @@ internal-stage::
$(ECHO_NOTHING)if [ -f Filter.plist ]; then mkdir -p $(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/; cp Filter.plist $(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/@@PROJECTNAME@@.plist; fi$(ECHO_END)
#PreferenceLoader plist
$(ECHO_NOTHING)if [ -f Preferences.plist ]; then mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/@@PROJECTNAME@@; cp Preferences.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/@@PROJECTNAME@@/; fi$(ECHO_END)

@@KILL_RULE@@
6 changes: 2 additions & 4 deletions ios/tweak/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
my $default_kill = "SpringBoard";

NIC->variable("KILL_RULE") = "";
NIC->variable("KILL_PROCS") = "";

my $kill_apps = NIC->prompt("KILL_APPS", "List of applications to terminate upon installation (space-separated, '-' for none)", {default => $default_kill});
if($kill_apps ne "-") {
my @apps = split(/\s+/, $kill_apps);
my @commands = map {"killall -9 $_"} @apps;
NIC->variable("KILL_RULE") = "after-install::\n\tinstall.exec \"".join("; ", @commands)."\"";
NIC->variable("KILL_PROCS") = "INSTALL_TARGET_PROCESSES = ".$kill_apps."\n";
}
3 changes: 1 addition & 2 deletions ios/tweak2/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@@KILL_PROCS@@
include @@THEOS@@/makefiles/common.mk

TWEAK_NAME = @@PROJECTNAME@@
@@PROJECTNAME@@_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

@@KILL_RULE@@
6 changes: 2 additions & 4 deletions ios/tweak2/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
my $default_kill = "SpringBoard";

NIC->variable("KILL_RULE") = "";
NIC->variable("KILL_PROCS") = "";

my $kill_apps = NIC->prompt("KILL_APPS", "List of applications to terminate upon installation (space-separated, '-' for none)", {default => $default_kill});
if($kill_apps ne "-") {
my @apps = split(/\s+/, $kill_apps);
my @commands = map {"killall -9 $_"} @apps;
NIC->variable("KILL_RULE") = "after-install::\n\tinstall.exec \"".join("; ", @commands)."\"";
NIC->variable("KILL_PROCS") = "INSTALL_TARGET_PROCESSES = ".$kill_apps."\n";
}
Binary file modified iphone_activator_event.nic.tar
Binary file not shown.
Binary file modified iphone_activator_listener.nic.tar
Binary file not shown.
Binary file modified iphone_application_modern.nic.tar
Binary file not shown.
Binary file modified iphone_cydget.nic.tar
Binary file not shown.
Binary file modified iphone_flipswitch_switch.nic.tar
Binary file not shown.
Binary file modified iphone_framework.nic.tar
Binary file not shown.
Binary file modified iphone_ios7_notification_center_widget-7up.nic.tar
Binary file not shown.
Binary file modified iphone_library.nic.tar
Binary file not shown.
Binary file modified iphone_notification_center_widget.nic.tar
Binary file not shown.
Binary file modified iphone_preference_bundle_modern.nic.tar
Binary file not shown.
Binary file modified iphone_tool.nic.tar
Binary file not shown.
Binary file modified iphone_tweak.nic.tar
Binary file not shown.
Binary file modified iphone_tweak_example.nic.tar
Binary file not shown.
Binary file modified iphone_xpc_service.nic.tar
Binary file not shown.

0 comments on commit 48854f2

Please sign in to comment.