@@ -81,66 +81,66 @@ jobs:
8181 rm dist/MacVimSwitch.app/Contents/MacOS/macvimswitch-x86_64
8282
8383 # 创建 Info.plist
84- cat > dist/MacVimSwitch.app/Contents/Info.plist << EOL
85- <?xml version="1.0" encoding="UTF-8"?>
86- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
87- <plist version="1.0">
88- <dict>
89- <key>CFBundleExecutable</key>
90- <string>macvimswitch</string>
91- <key>CFBundleIconFile</key>
92- <string>AppIcon</string>
93- <key>CFBundleIdentifier</key>
94- <string>com.jackiexiao.macvimswitch</string>
95- <key>CFBundleName</key>
96- <string>MacVimSwitch</string>
97- <key>CFBundlePackageType</key>
98- <string>APPL</string>
99- <key>CFBundleShortVersionString</key>
100- <string>${GITHUB_REF#refs/tags/v}</string>
101- <key>CFBundleVersion</key>
102- <string>${GITHUB_REF#refs/tags/v}</string>
103- <key>LSMinimumSystemVersion</key>
104- <string>11.0</string>
105- <key>LSUIElement</key>
106- <true/>
107- <key>NSHighResolutionCapable</key>
108- <true/>
109- <key>LSApplicationCategoryType</key>
110- <string>public.app-category.utilities</string>
111- <key>NSPrincipalClass</key>
112- <string>NSApplication</string>
113- <key>NSAppleEventsUsageDescription</key>
114- <string>MacVimSwitch needs to control system events to manage input sources.</string>
115- <key>NSAppleScriptEnabled</key>
116- <true/>
117- <key>NSAccessibilityUsageDescription</key>
118- <string>MacVimSwitch needs accessibility access to monitor keyboard events.</string>
119- </dict>
120- </plist>
121- EOL
84+ cat > dist/MacVimSwitch.app/Contents/Info.plist << ' EOL'
85+ <?xml version="1.0" encoding="UTF-8"?>
86+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
87+ <plist version="1.0">
88+ <dict>
89+ <key>CFBundleExecutable</key>
90+ <string>macvimswitch</string>
91+ <key>CFBundleIconFile</key>
92+ <string>AppIcon</string>
93+ <key>CFBundleIdentifier</key>
94+ <string>com.jackiexiao.macvimswitch</string>
95+ <key>CFBundleName</key>
96+ <string>MacVimSwitch</string>
97+ <key>CFBundlePackageType</key>
98+ <string>APPL</string>
99+ <key>CFBundleShortVersionString</key>
100+ <string>${GITHUB_REF#refs/tags/v}</string>
101+ <key>CFBundleVersion</key>
102+ <string>${GITHUB_REF#refs/tags/v}</string>
103+ <key>LSMinimumSystemVersion</key>
104+ <string>11.0</string>
105+ <key>LSUIElement</key>
106+ <true/>
107+ <key>NSHighResolutionCapable</key>
108+ <true/>
109+ <key>LSApplicationCategoryType</key>
110+ <string>public.app-category.utilities</string>
111+ <key>NSPrincipalClass</key>
112+ <string>NSApplication</string>
113+ <key>NSAppleEventsUsageDescription</key>
114+ <string>MacVimSwitch needs to control system events to manage input sources.</string>
115+ <key>NSAppleScriptEnabled</key>
116+ <true/>
117+ <key>NSAccessibilityUsageDescription</key>
118+ <string>MacVimSwitch needs accessibility access to monitor keyboard events.</string>
119+ </dict>
120+ </plist>
121+ EOL
122122
123123 # 创建 entitlements.plist
124- cat > entitlements.plist << EOL
125- <?xml version="1.0" encoding="UTF-8"?>
126- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
127- <plist version="1.0">
128- <dict>
129- <key>com.apple.security.automation.apple-events</key>
130- <true/>
131- <key>com.apple.security.temporary-exception.apple-events</key>
132- <array>
133- <string>com.apple.systemevents</string>
134- </array>
135- <key>com.apple.security.cs.allow-jit</key>
136- <true/>
137- <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
138- <true/>
139- <key>com.apple.security.cs.disable-library-validation</key>
140- <true/>
141- </dict>
142- </plist>
143- EOL
124+ cat > entitlements.plist << ' EOL'
125+ <?xml version="1.0" encoding="UTF-8"?>
126+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
127+ <plist version="1.0">
128+ <dict>
129+ <key>com.apple.security.automation.apple-events</key>
130+ <true/>
131+ <key>com.apple.security.temporary-exception.apple-events</key>
132+ <array>
133+ <string>com.apple.systemevents</string>
134+ </array>
135+ <key>com.apple.security.cs.allow-jit</key>
136+ <true/>
137+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
138+ <true/>
139+ <key>com.apple.security.cs.disable-library-validation</key>
140+ <true/>
141+ </dict>
142+ </plist>
143+ EOL
144144
145145 # 设置执行权限
146146 chmod +x dist/MacVimSwitch.app/Contents/MacOS/macvimswitch
0 commit comments