Skip to content

Instantly share code, notes, and snippets.

@joedj
Last active December 17, 2015 02:39
Show Gist options
  • Save joedj/5537700 to your computer and use it in GitHub Desktop.
Save joedj/5537700 to your computer and use it in GitHub Desktop.
WPLTest
Package: net.joedj.wpltest
Name: WPLTest
Depends: firmware (>= 5.0), com.arichardson.weepreferenceloader
Version: 0.1
Architecture: iphoneos-arm
Description: WPLTest
Author: joedj
Maintainer: joedj
Section: Addons (NotificationCenter)
{
CFBundleIdentifier = "net.joedj.wpltest";
NSPrincipalClass = WPLTest;
sections = ("N/A");
}
TARGET := iphone:clang::5.0
ARCHS := armv7
ADDITIONAL_CFLAGS += -g -fobjc-arc -fvisibility=hidden
ADDITIONAL_LDFLAGS += -Wl,-map,$@.map -g -fobjc-arc -x c /dev/null -x none
BUNDLE_NAME := WPLTest
WPLTest_FILES := WPLTest.m
WPLTest_INSTALL_PATH := /Library/WeePreferenceLoader/Preferences
include theos/makefiles/common.mk
include $(THEOS_MAKE_PATH)/bundle.mk
after-stage::
$(ECHO_NOTHING)find $(THEOS_STAGING_DIR) \( -iname '*.plist' -or -iname '*.strings' \) -execdir plutil -convert binary1 {} \;$(ECHO_END)
$(ECHO_NOTHING)find $(THEOS_STAGING_DIR) -d \( -iname '*.dSYM' -or -iname '*.map' \) -execdir rm -rf {} \;$(ECHO_END)
$(ECHO_NOTHING)cp WPLTest.plist $(THEOS_STAGING_DIR)/Library/WeePreferenceLoader/Preferences$(ECHO_END)
$(ECHO_NOTHING)cp Info.plist $(THEOS_STAGING_DIR)/Library/WeePreferenceLoader/Preferences/WPLTest.bundle$(ECHO_END)
after-install::
install.exec "killall Preferences"
after-clean::
rm -f *.deb
@interface WPLTest: NSObject
@end
@implementation WPLTest
- (void)testButton {
NSLog(@"Hello, world!");
}
@end
{
sections = ("com.apple.mobilephone", "com.apple.MobileSMS");
bundle = WPLTest;
title = WPLTest;
items = (
{
cell = PSButtonCell;
label = Test;
action = testButton;
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment