forked from pajowu/beaconstorekey-extractor
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 1.07 KB
/
Makefile
File metadata and controls
34 lines (27 loc) · 1.07 KB
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
# Makefile for BeaconStore Key Extractor | BeaconStore密钥提取器的Makefile
#
# Usage | 使用方法:
# make sign - Sign the binary with developer certificate | 使用开发者证书签名二进制文件
# make run - Build, sign and run the extractor | 构建、签名并运行提取器
# make decrypt - Run the decryptor script | 运行解密脚本
# make clean - Remove built files | 删除构建的文件
TARGET = extractor
SOURCE = beaconstorekey-extractor.swift
ENTITLEMENTS = entitlements.plist
DEVELOPER_ID = "Apple Development"
# Sign the binary with entitlements | 使用权限签名二进制文件
sign: $(TARGET) $(ENTITLEMENTS)
codesign -f -s $(DEVELOPER_ID) --entitlements $(ENTITLEMENTS) $(TARGET)
# Build the Swift source file | 构建Swift源文件
$(TARGET): $(SOURCE)
swiftc -o $@ $^
# Clean build artifacts | 清理构建产物
clean:
rm $(TARGET)
# Build, sign and run the extractor | 构建、签名并运行提取器
run: sign
./$(TARGET)
# Run the decryptor script | 运行解密脚本
decrypt:
swift searchpartyd-decryptor.swift
.PHONY: sign clean