forked from NSAntoine/AppIndex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (33 loc) · 1.33 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
34
35
36
37
38
39
40
41
42
TARGET_CODESIGN = $(shell which ldid)
TARGET_DPKG = $(shell which dpkg)
APP_TMP = $(TMPDIR)/AppIndex-build
APP_BUNDLE_PATH = $(APP_TMP)/Build/Products/Release-iphoneos/AppIndex.app
all:
xcodebuild -quiet -jobs $(shell sysctl -n hw.ncpu) -project 'AppIndex.xcodeproj' -scheme AppIndex -configuration Release -arch arm64 -sdk iphoneos -derivedDataPath $(APP_TMP) \
CODE_SIGNING_ALLOWED=NO DSTROOT=$(APP_TMP)/install
ldid -Sentitlements.plist $(APP_BUNDLE_PATH)/AppIndex
rm -rf build
mkdir -p build/Payload
mv $(APP_BUNDLE_PATH) build/Payload
# make TrollStore tipa
@ln -sf build/Payload Payload
zip -r9 build/AppIndexTrollStore.tipa Payload
@rm -rf Payload
# lol
find . -name ".DS_Store" -delete
@cp -r layout build
@mkdir -p build/layout/Applications
# make deb
@cp -R build/Payload/AppIndex.app build/layout/Applications/AppIndex.app
dpkg-deb --build build/layout
@mv build/layout.deb build/AppIndex.deb
@rm -rf build/layout/Applications
# rootless deb
@mkdir -p build/layout/var/jb/Applications
@mv build/Payload/AppIndex.app build/layout/var/jb/Applications/AppIndex.app
dpkg-deb --build build/layout
@mv build/layout.deb build/AppIndexRootless.deb
@rm -rf build/Payload
@rm -rf build/layout
@echo TrollStore .tipa written to build/AppIndexTrollStore.tipa
@echo Jailbroken .deb written to build/AppIndex.deb