Skip to content

Commit dd97244

Browse files
authored
Merge pull request #9 from neoarz/repo-updater
create makefile
2 parents 87eeaaf + 4470f6d commit dd97244

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,5 @@ fastlane/test_output
8989

9090
iOSInjectionProject/
9191
.DS_Store
92+
.vscode/settings.json
93+
.vscode

Makefile

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
TARGET_CODESIGN = $(shell which ldid)
2+
3+
PLATFORM = iphoneos
4+
NAME = StikJIT
5+
SCHEME ?= 'StikJIT'
6+
RELEASE = Release-iphoneos
7+
CONFIGURATION = Release
8+
9+
MACOSX_SYSROOT = $(shell xcrun -sdk macosx --show-sdk-path)
10+
TARGET_SYSROOT = $(shell xcrun -sdk $(PLATFORM) --show-sdk-path)
11+
12+
APP_TMP = $(TMPDIR)/$(NAME)
13+
STAGE_DIR = $(APP_TMP)/stage
14+
APP_DIR = $(APP_TMP)/Build/Products/$(RELEASE)/$(NAME).app
15+
16+
all: package
17+
18+
package:
19+
@rm -rf $(APP_TMP)
20+
21+
@set -o pipefail; \
22+
xcodebuild \
23+
-jobs $(shell sysctl -n hw.ncpu) \
24+
-project '$(NAME).xcodeproj' \
25+
-scheme $(SCHEME) \
26+
-configuration $(CONFIGURATION) \
27+
-arch arm64 -sdk $(PLATFORM) \
28+
-derivedDataPath $(APP_TMP) \
29+
CODE_SIGNING_ALLOWED=NO \
30+
DSTROOT=$(APP_TMP)/install \
31+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO \
32+
ONLY_ACTIVE_ARCH=NO \
33+
CODE_SIGN_IDENTITY="" \
34+
CODE_SIGNING_REQUIRED=NO \
35+
SWIFT_OPTIMIZATION_LEVEL="-Onone" \
36+
IPHONEOS_DEPLOYMENT_TARGET=17.4
37+
38+
@rm -rf Payload
39+
@rm -rf $(STAGE_DIR)/
40+
@mkdir -p $(STAGE_DIR)/Payload
41+
@mv $(APP_DIR) $(STAGE_DIR)/Payload/$(NAME).app
42+
@echo $(APP_TMP)
43+
@echo $(STAGE_DIR)
44+
45+
@rm -rf $(STAGE_DIR)/Payload/$(NAME).app/_CodeSignature
46+
@ln -sf $(STAGE_DIR)/Payload Payload
47+
@rm -rf packages
48+
@mkdir -p packages
49+
50+
ifeq ($(TIPA),1)
51+
@zip -r9 packages/$(NAME)-ts.tipa Payload
52+
else
53+
@zip -r9 packages/$(NAME).ipa Payload
54+
endif
55+
@rm -rf Payload
56+
57+
clean:
58+
@rm -rf $(STAGE_DIR)
59+
@rm -rf packages
60+
@rm -rf out.dmg
61+
@rm -rf $(APP_TMP)
62+
63+
.PHONY: apple-include
64+
65+

0 commit comments

Comments
 (0)