|
227 | 227 | </arguments> |
228 | 228 | </configuration> |
229 | 229 | </execution> |
| 230 | + <execution> |
| 231 | + <id>xcode-build-docktile-intel</id> |
| 232 | + <goals> |
| 233 | + <goal>exec</goal> |
| 234 | + </goals> |
| 235 | + <phase>compile</phase> |
| 236 | + <configuration> |
| 237 | + <executable>xcodebuild</executable> |
| 238 | + <workingDirectory>${project.basedir}/src/main/native</workingDirectory> |
| 239 | + <arguments> |
| 240 | + <argument>-project</argument> |
| 241 | + <argument>Integrations.xcodeproj</argument> |
| 242 | + <argument>-scheme</argument> |
| 243 | + <argument>DockTilePlugin</argument> |
| 244 | + <argument>-configuration</argument> |
| 245 | + <argument>Release</argument> |
| 246 | + <argument>-arch</argument> |
| 247 | + <argument>x86_64</argument> |
| 248 | + <argument>-derivedDataPath</argument> |
| 249 | + <argument>${project.build.directory}/docktile-x86_64-build</argument> |
| 250 | + <argument>-quiet</argument> |
| 251 | + <argument>clean</argument> |
| 252 | + <argument>build</argument> |
| 253 | + </arguments> |
| 254 | + </configuration> |
| 255 | + </execution> |
| 256 | + <execution> |
| 257 | + <id>xcode-build-docktile-arm</id> |
| 258 | + <goals> |
| 259 | + <goal>exec</goal> |
| 260 | + </goals> |
| 261 | + <phase>compile</phase> |
| 262 | + <configuration> |
| 263 | + <executable>xcodebuild</executable> |
| 264 | + <workingDirectory>${project.basedir}/src/main/native</workingDirectory> |
| 265 | + <arguments> |
| 266 | + <argument>-project</argument> |
| 267 | + <argument>Integrations.xcodeproj</argument> |
| 268 | + <argument>-scheme</argument> |
| 269 | + <argument>DockTilePlugin</argument> |
| 270 | + <argument>-configuration</argument> |
| 271 | + <argument>Release</argument> |
| 272 | + <argument>-arch</argument> |
| 273 | + <argument>arm64</argument> |
| 274 | + <argument>-derivedDataPath</argument> |
| 275 | + <argument>${project.build.directory}/docktile-arm64-build</argument> |
| 276 | + <argument>-quiet</argument> |
| 277 | + <argument>clean</argument> |
| 278 | + <argument>build</argument> |
| 279 | + </arguments> |
| 280 | + </configuration> |
| 281 | + </execution> |
230 | 282 | <execution> |
231 | 283 | <id>build-universal-binary</id> |
232 | 284 | <goals> |
|
245 | 297 | </arguments> |
246 | 298 | </configuration> |
247 | 299 | </execution> |
| 300 | + <execution> |
| 301 | + <id>merge-docktile-bundles</id> |
| 302 | + <goals> |
| 303 | + <goal>exec</goal> |
| 304 | + </goals> |
| 305 | + <phase>compile</phase> |
| 306 | + <configuration> |
| 307 | + <executable>bash</executable> |
| 308 | + <workingDirectory>${project.build.directory}</workingDirectory> |
| 309 | + <arguments> |
| 310 | + <argument>-c</argument> |
| 311 | + <argument> |
| 312 | + cp -R docktile-arm64-build/Build/Products/Release/Cryptomator.docktileplugin . && |
| 313 | + lipo -create \ |
| 314 | + docktile-x86_64-build/Build/Products/Release/Cryptomator.docktileplugin/Contents/MacOS/Cryptomator \ |
| 315 | + docktile-arm64-build/Build/Products/Release/Cryptomator.docktileplugin/Contents/MacOS/Cryptomator \ |
| 316 | + -output Cryptomator.docktileplugin/Contents/MacOS/Cryptomator |
| 317 | + </argument> |
| 318 | + </arguments> |
| 319 | + </configuration> |
| 320 | + </execution> |
248 | 321 | </executions> |
249 | 322 | </plugin> |
250 | 323 | <plugin> |
|
263 | 336 | <directory>${project.build.directory}</directory> |
264 | 337 | <includes> |
265 | 338 | <include>libIntegrations.dylib</include> |
| 339 | + <include>Cryptomator.docktileplugin/**</include> |
266 | 340 | </includes> |
267 | 341 | </resource> |
268 | 342 | </resources> |
|
0 commit comments