forked from ashikase/CrashReporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 946 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SUBPROJECTS = Application as_root monitor notifier
export ARCHS = armv6 armv7 armv7s
export TARGET = iphone:clang
export TARGET_IPHONEOS_DEPLOYMENT_VERSION = 3.0
export ADDITIONAL_CFLAGS += -I$(THEOS_PROJECT_DIR)/Common -include firmware.h
include theos/makefiles/common.mk
include theos/makefiles/aggregate.mk
after-stage::
# Give as_root the power of root in order to move/delete root-owned files.
- chmod u+s $(THEOS_STAGING_DIR)/Applications/CrashReporter.app/as_root
# Optimize png files
- find $(THEOS_STAGING_DIR) -iname '*.png' -exec pincrush -i {} \;
# Convert plist files to binary
- find $(THEOS_STAGING_DIR)/ -type f -iname '*.plist' -exec plutil -convert binary1 {} \;
# Remove repository-related files
- find $(THEOS_STAGING_DIR) -name '.gitkeep' -delete
after-install::
- ssh idevice killall CrashReporter
distclean: clean
- rm -f $(THEOS_PROJECT_DIR)/$(APP_ID)*.deb
- rm -f $(THEOS_PROJECT_DIR)/.theos/packages/*