-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yml
More file actions
96 lines (92 loc) · 3.19 KB
/
Copy pathproject.yml
File metadata and controls
96 lines (92 loc) · 3.19 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: LiteVPN
options:
bundleIdPrefix: com.yzfly
deploymentTarget:
macOS: "13.0"
createIntermediateGroups: true
packages:
TunnelKit:
# v6.3.2 (commit f2c0fb0) 的本地副本, 剥离了 WireGuard 部分 —
# 上游已归档且其依赖的 wireguard-apple 仓库已被删除, 远端引用不再可靠
path: Vendor/tunnelkit
settings:
base:
DEVELOPMENT_TEAM: 3HNKBKJ59V
CODE_SIGN_STYLE: Automatic
SWIFT_VERSION: "5.0"
MARKETING_VERSION: "1.0.1"
CURRENT_PROJECT_VERSION: "2"
ENABLE_USER_SCRIPT_SANDBOXING: false
targets:
LiteVPN:
type: application
platform: macOS
sources:
- App
info:
path: App/Info.plist
properties:
CFBundleDisplayName: LiteVPN
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
CFBundleDevelopmentRegion: en
CFBundleLocalizations: [en, zh-Hans]
LSUIElement: true
LSApplicationCategoryType: public.app-category.utilities
NSHumanReadableCopyright: "© 2026 云中江树"
entitlements:
path: App/LiteVPN.entitlements
properties:
com.apple.developer.networking.networkextension:
- packet-tunnel-provider
com.apple.security.app-sandbox: true
com.apple.security.network.client: true
com.apple.security.files.user-selected.read-only: true
com.apple.security.application-groups:
- $(TeamIdentifierPrefix)group.com.yzfly.LiteVPN
keychain-access-groups:
- $(AppIdentifierPrefix)group.com.yzfly.LiteVPN
dependencies:
- target: LiteVPNTunnel
- package: TunnelKit
product: TunnelKit
- package: TunnelKit
product: TunnelKitOpenVPN
postBuildScripts:
# 修复 Xcode 在 appex 内重复嵌入 Frameworks 目录的问题 (TunnelKit README 提及)
- name: Strip nested Frameworks from appex
script: rm -rf "${BUILT_PRODUCTS_DIR}/${PLUGINS_FOLDER_PATH}/LiteVPNTunnel.appex/Contents/Frameworks"
LiteVPNTunnel:
type: app-extension
platform: macOS
sources:
- Tunnel
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.yzfly.LiteVPN.Tunnel
info:
path: Tunnel/Info.plist
properties:
CFBundleDisplayName: LiteVPNTunnel
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
NSExtension:
NSExtensionPointIdentifier: com.apple.networkextension.packet-tunnel
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).PacketTunnelProvider
entitlements:
path: Tunnel/LiteVPNTunnel.entitlements
properties:
com.apple.developer.networking.networkextension:
- packet-tunnel-provider
com.apple.security.app-sandbox: true
com.apple.security.network.client: true
com.apple.security.network.server: true
com.apple.security.application-groups:
- $(TeamIdentifierPrefix)group.com.yzfly.LiteVPN
keychain-access-groups:
- $(AppIdentifierPrefix)group.com.yzfly.LiteVPN
dependencies:
- package: TunnelKit
product: TunnelKitOpenVPNAppExtension
- package: TunnelKit
product: TunnelKitLZO