-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
33 lines (27 loc) · 1.11 KB
/
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
28
29
30
31
32
33
TARGET_CODESIGN = $(shell which ldid)
TARGET_DPKG = $(shell which dpkg)
APP_TMP = $(TMPDIR)/antoine-build
APP_BUNDLE_PATH = $(APP_TMP)/Build/Products/Release-iphoneos/Antoine.app
all:
xcodebuild -quiet -jobs $(shell sysctl -n hw.ncpu) -project 'Antoine.xcodeproj' -scheme Antoine -configuration Release -arch arm64 -sdk iphoneos -derivedDataPath $(APP_TMP) \
CODE_SIGNING_ALLOWED=NO DSTROOT=$(APP_TMP)/install ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=YES
ldid -SAntoineEntitlements.xml $(APP_BUNDLE_PATH)/Antoine
rm -rf build
mkdir -p build/Payload
mv $(APP_BUNDLE_PATH) build/Payload
# make TrollStore tipa
@ln -sf build/Payload Payload
zip -r9 build/AntoineTrollStore.tipa Payload
@rm -rf Payload
# lol
find . -name ".DS_Store" -delete
@cp -r layout build
@mkdir -p build/layout/Applications
# make deb
@mv build/Payload/Antoine.app build/layout/Applications/Antoine.app
dpkg-deb --build build/layout
@mv build/layout.deb build/Antoine.deb
@rm -rf build/Payload
@rm -rf build/layout
@echo TrollStore .tipa written to build/AntoineTrollStore.tipa
@echo Jailbroken .deb written to build/Antoine.deb