Commit d6a9a01
committed
Merge branch 'macos-platform-logic'
This branch adds true support for the macos-arm64 and macos64 platforms
as their own entities, and retools the macosx platform into a "platform
group" encompassing any Mac, including both macos-arm64 and macos64.
It also rebrands the "updateable platforms" logic as "active platforms"
to avoid naming confusion with "updateable" files and related API.
And it broadens the platform activation logic to also activate a
platform when its special jars and/or lib subdirectory is present in
the installation. This makes it easier and hopefully less mysterious to
start receiving updates for a particular platform of interest, even if
your actual platform does not match the one you want the files for.
This is especially important for macos-arm64 systems, because
people are likely to want the macos64 platform active as well so that
they can run in x86 mode with Rosetta and make use of x86-specific
native libraries, until all macos-arm64 native libraries become
fully accessible (not only are builds for that architecture needed, but
they also need to be code-signed to appease the hardened runtime!).
Relatedly: this branch now treats *all* files beneath a toplevel folder
ending in .app as launchers for the macosx platform group. In this way,
the entire Fiji.app for Fiji (or whatever the launcher is named) will
always be shipped together by the Updater, to avoid ruining the
immutable app bundle's code signature by splitting it up. As such,
the fact that macos-arm64 and macos64 activate when one of their
native library subfolders is present is actually now needed, since
there are not native launchers that would activate them otherwise.
Instead of the macosx platform group, I considered going through the
db.xml.gz files to update macosx platform files to `macosx,macos-arm64`,
since each file is allowed to belong to multiple platforms, and this
branch does add support for comma-splitting the platform field of the
db.xml (which wasn't being done before). But I think we never use the
multiple platforms feature of FileObject right now, and furthermore,
changing the db.xml.gz files would still leave third-party update sites
in a suboptimal place, with any macOS-specific files they ship still
labeled with previous architecture-agnostic macosx platform tag. I
figured it's better to keep support for the macosx tag, and leave it
meaning essentially what it has always meant: any Mac machine. That way,
existing update sites continue to "just work" on both Mac architectures,
at least from the perspective of those installations not ignoring any
potentially relevant Mac-specific files.File tree
19 files changed
+392
-509
lines changed- src
- main/java/net/imagej/updater
- util
- test/java/net/imagej/updater
- util
19 files changed
+392
-509
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | | - | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
93 | | - | |
94 | | - | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | | - | |
139 | | - | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
251 | 249 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
256 | 254 | | |
257 | | - | |
| 255 | + | |
258 | 256 | | |
259 | 257 | | |
260 | 258 | | |
261 | | - | |
| 259 | + | |
262 | 260 | | |
263 | | - | |
| 261 | + | |
264 | 262 | | |
265 | | - | |
| 263 | + | |
266 | 264 | | |
267 | 265 | | |
268 | 266 | | |
| |||
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
292 | | - | |
| 290 | + | |
293 | 291 | | |
294 | 292 | | |
295 | 293 | | |
| |||
349 | 347 | | |
350 | 348 | | |
351 | 349 | | |
352 | | - | |
353 | | - | |
354 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
355 | 353 | | |
356 | 354 | | |
357 | 355 | | |
| |||
367 | 365 | | |
368 | 366 | | |
369 | 367 | | |
370 | | - | |
| 368 | + | |
371 | 369 | | |
372 | 370 | | |
373 | 371 | | |
| |||
428 | 426 | | |
429 | 427 | | |
430 | 428 | | |
431 | | - | |
| 429 | + | |
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
435 | | - | |
| 433 | + | |
436 | 434 | | |
437 | 435 | | |
438 | 436 | | |
| |||
454 | 452 | | |
455 | 453 | | |
456 | 454 | | |
457 | | - | |
| 455 | + | |
458 | 456 | | |
459 | 457 | | |
460 | 458 | | |
| |||
485 | 483 | | |
486 | 484 | | |
487 | 485 | | |
488 | | - | |
489 | | - | |
490 | | - | |
| 486 | + | |
491 | 487 | | |
492 | 488 | | |
493 | 489 | | |
| |||
496 | 492 | | |
497 | 493 | | |
498 | 494 | | |
499 | | - | |
| 495 | + | |
500 | 496 | | |
501 | 497 | | |
502 | 498 | | |
| |||
507 | 503 | | |
508 | 504 | | |
509 | 505 | | |
510 | | - | |
511 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
512 | 510 | | |
513 | 511 | | |
514 | 512 | | |
| |||
585 | 583 | | |
586 | 584 | | |
587 | 585 | | |
588 | | - | |
589 | | - | |
| 586 | + | |
590 | 587 | | |
591 | 588 | | |
592 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 154 | + | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
167 | | - | |
| 165 | + | |
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
| |||
488 | 486 | | |
489 | 487 | | |
490 | 488 | | |
491 | | - | |
492 | | - | |
| 489 | + | |
| 490 | + | |
493 | 491 | | |
494 | 492 | | |
495 | 493 | | |
| |||
930 | 928 | | |
931 | 929 | | |
932 | 930 | | |
933 | | - | |
| 931 | + | |
934 | 932 | | |
935 | 933 | | |
936 | 934 | | |
| |||
939 | 937 | | |
940 | 938 | | |
941 | 939 | | |
942 | | - | |
| 940 | + | |
943 | 941 | | |
944 | 942 | | |
945 | | - | |
| 943 | + | |
946 | 944 | | |
947 | 945 | | |
948 | 946 | | |
| |||
959 | 957 | | |
960 | 958 | | |
961 | 959 | | |
962 | | - | |
| 960 | + | |
963 | 961 | | |
964 | 962 | | |
965 | 963 | | |
| |||
1013 | 1011 | | |
1014 | 1012 | | |
1015 | 1013 | | |
1016 | | - | |
| 1014 | + | |
1017 | 1015 | | |
1018 | 1016 | | |
1019 | 1017 | | |
| |||
1087 | 1085 | | |
1088 | 1086 | | |
1089 | 1087 | | |
1090 | | - | |
| 1088 | + | |
1091 | 1089 | | |
1092 | | - | |
| 1090 | + | |
1093 | 1091 | | |
1094 | 1092 | | |
1095 | 1093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 106 | | |
118 | | - | |
119 | 107 | | |
120 | 108 | | |
121 | 109 | | |
| |||
447 | 435 | | |
448 | 436 | | |
449 | 437 | | |
450 | | - | |
| 438 | + | |
451 | 439 | | |
452 | 440 | | |
453 | 441 | | |
| |||
0 commit comments