-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[global] Add KILL_PROCS variable to replace KILL_RULE.
Merges #8.
- Loading branch information
1 parent
03a4647
commit 48854f2
Showing
31 changed files
with
27 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.