mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-09 21:02:49 +00:00
Compare commits
464 Commits
v0.4
...
v0.7releas
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c38386c53 | ||
|
|
39f67c9e89 | ||
|
|
c40168f301 | ||
|
|
e0a0b65b80 | ||
|
|
d1923a4e7f | ||
|
|
f0ff1e6269 | ||
|
|
b6092df909 | ||
|
|
2fb80375ec | ||
|
|
796f8a4e25 | ||
|
|
310140d64f | ||
|
|
8db95578c7 | ||
|
|
ba7edf8d02 | ||
|
|
c0a0b37f7e | ||
|
|
cd27693125 | ||
|
|
adbe98718f | ||
|
|
fcde9e2e4c | ||
|
|
ded8787da5 | ||
|
|
05039ae826 | ||
|
|
7c0a4ef04a | ||
|
|
8feb2e5578 | ||
|
|
47dfa8fdf4 | ||
|
|
425722acda | ||
|
|
0b3d703e02 | ||
|
|
4b53da0fb7 | ||
|
|
bf5f5ca936 | ||
|
|
1b6d82e880 | ||
|
|
c9ca70e836 | ||
|
|
0530cba21b | ||
|
|
0adc02ba0c | ||
|
|
f16ee55ed6 | ||
|
|
a67ba0934f | ||
|
|
26ae2b3139 | ||
|
|
97ec3efedb | ||
|
|
b0ed6432f6 | ||
|
|
174a2b5a46 | ||
|
|
9edc256caa | ||
|
|
8e9488c68f | ||
|
|
5799c5d432 | ||
|
|
d97c84dd0c | ||
|
|
effd470ce7 | ||
|
|
38326e87e3 | ||
|
|
e8464c5c47 | ||
|
|
9dbac45621 | ||
|
|
db3e109c21 | ||
|
|
039de95b5c | ||
|
|
028fbd60d6 | ||
|
|
50bc2fd708 | ||
|
|
c37daf5b7b | ||
|
|
468ac0de6e | ||
|
|
c21dde0074 | ||
|
|
6267736abf | ||
|
|
7803d1afe2 | ||
|
|
54b57cc83d | ||
|
|
8077cb91b9 | ||
|
|
261c92946e | ||
|
|
28dc87fdbe | ||
|
|
33e2e829c5 | ||
|
|
968e3b3ab0 | ||
|
|
b2cd2b74be | ||
|
|
66b1f9a319 | ||
|
|
f0d3828054 | ||
|
|
4bc03223ae | ||
|
|
394b8dabdc | ||
|
|
bc046cfc07 | ||
|
|
897a85a54c | ||
|
|
2b0cb9dbc0 | ||
|
|
c8ae2aa6f0 | ||
|
|
63af53fb34 | ||
|
|
498a8a28af | ||
|
|
20be5255a7 | ||
|
|
eb501486e4 | ||
|
|
66b4769369 | ||
|
|
65b82cf20d | ||
|
|
9a57ecc66b | ||
|
|
fcbe0626da | ||
|
|
82a1ed8180 | ||
|
|
1e971cc063 | ||
|
|
49c7338e9d | ||
|
|
a74d3106c0 | ||
|
|
a4e4c38423 | ||
|
|
d603a2805b | ||
|
|
84e26c07e2 | ||
|
|
8fdfaadf6d | ||
|
|
0c0977e61f | ||
|
|
012b4db5f6 | ||
|
|
d250e5a8b9 | ||
|
|
7abcf51a55 | ||
|
|
dbf0d34ac6 | ||
|
|
f65010ecb4 | ||
|
|
8a95e02d21 | ||
|
|
e18361b36c | ||
|
|
a2305d5c8c | ||
|
|
1250812203 | ||
|
|
2829a466dc | ||
|
|
7a4feb0ee7 | ||
|
|
071947cb38 | ||
|
|
8c8ea13ad3 | ||
|
|
70337cab58 | ||
|
|
614e412f01 | ||
|
|
f5730ec79b | ||
|
|
14f3725ed9 | ||
|
|
44a64b83b9 | ||
|
|
a7ec5b9531 | ||
|
|
2b06ba1f22 | ||
|
|
ca17fa3c6b | ||
|
|
e0459f3d06 | ||
|
|
a8f3944e65 | ||
|
|
409c84b7ef | ||
|
|
d69a102334 | ||
|
|
aa761f2583 | ||
|
|
71fbb7fe0c | ||
|
|
719a78ae73 | ||
|
|
6d6c011d30 | ||
|
|
0513a2d6a5 | ||
|
|
cfaac1eb28 | ||
|
|
c97a0545d3 | ||
|
|
546c5d6aa1 | ||
|
|
3bcb9e7e32 | ||
|
|
04880d329e | ||
|
|
d167a51ee6 | ||
|
|
a87f0a6ec4 | ||
|
|
c37229d763 | ||
|
|
1d634b9a80 | ||
|
|
a481b17a78 | ||
|
|
30bd4797ae | ||
|
|
5585f8c558 | ||
|
|
21b9709f6b | ||
|
|
db5c9ded56 | ||
|
|
4859efa72f | ||
|
|
a20770314e | ||
|
|
4ddc8a7f92 | ||
|
|
400be8581e | ||
|
|
553d06826d | ||
|
|
11a06eb264 | ||
|
|
1dc42a22a4 | ||
|
|
2d48072d8e | ||
|
|
4101056ede | ||
|
|
08ede3a447 | ||
|
|
6f26c70bde | ||
|
|
cc13ed9c47 | ||
|
|
470b1dd69f | ||
|
|
4d34931be5 | ||
|
|
96b52e631f | ||
|
|
7bb757e38f | ||
|
|
b465b3fa3b | ||
|
|
37c23ff1ce | ||
|
|
ea134a68d1 | ||
|
|
61a8ae9018 | ||
|
|
1f33c6bb96 | ||
|
|
87c9aaaedc | ||
|
|
cd58fc6018 | ||
|
|
b38c49600f | ||
|
|
af08a12d49 | ||
|
|
2e72b05df1 | ||
|
|
97e8c160d2 | ||
|
|
dcba9f9eb7 | ||
|
|
bb6058c7f6 | ||
|
|
d4f2d07289 | ||
|
|
e1c75dc721 | ||
|
|
fae3384b33 | ||
|
|
0c17713751 | ||
|
|
85318cc508 | ||
|
|
301bc11d20 | ||
|
|
263e29329c | ||
|
|
54c84b2ff7 | ||
|
|
d2422653d5 | ||
|
|
e8a9fab851 | ||
|
|
31f9662022 | ||
|
|
b28901f7a9 | ||
|
|
5995135b45 | ||
|
|
9dcdcb04a1 | ||
|
|
a86863dfc0 | ||
|
|
92077590dd | ||
|
|
1a169733be | ||
|
|
c9ba1d1d6c | ||
|
|
52c6b4a86f | ||
|
|
a78b3cee06 | ||
|
|
a67b7de3ac | ||
|
|
90b06e0ac3 | ||
|
|
e5037c2e81 | ||
|
|
8e828ce1fa | ||
|
|
ab88181a2f | ||
|
|
9a7af18e0a | ||
|
|
11711da5ee | ||
|
|
da174ecf92 | ||
|
|
f0d89dbed3 | ||
|
|
8633dad7eb | ||
|
|
5c58c203b8 | ||
|
|
02635f1402 | ||
|
|
fc487a1d99 | ||
|
|
7a98549447 | ||
|
|
0742ff94ed | ||
|
|
1ca05b4688 | ||
|
|
846e6e2cb2 | ||
|
|
b402630f85 | ||
|
|
ad1bb8002d | ||
|
|
09e15ea951 | ||
|
|
b7a7f512c7 | ||
|
|
0744fa8273 | ||
|
|
9af2e809df | ||
|
|
d9ebefa4be | ||
|
|
f533e8ae41 | ||
|
|
ee6a6544a6 | ||
|
|
2910b37e69 | ||
|
|
2028abae59 | ||
|
|
f8d578a6d7 | ||
|
|
557500e214 | ||
|
|
52c5ebf4ff | ||
|
|
18e265d60b | ||
|
|
fd057b9918 | ||
|
|
00b0e4dcfd | ||
|
|
f5e800a190 | ||
|
|
5410739f99 | ||
|
|
76e1e9d0a3 | ||
|
|
84c551ee31 | ||
|
|
7b16678e95 | ||
|
|
3f9daf7fe6 | ||
|
|
93d716d954 | ||
|
|
0185827256 | ||
|
|
6e4006c842 | ||
|
|
9a7d16a735 | ||
|
|
39437b9549 | ||
|
|
253d96fa49 | ||
|
|
86e63df1a6 | ||
|
|
ab00c9c1b8 | ||
|
|
d733bbdb0d | ||
|
|
e3fc7fd90a | ||
|
|
2329cf174c | ||
|
|
63c2ac30bb | ||
|
|
59ca90759d | ||
|
|
b530eb1252 | ||
|
|
9b62d3f042 | ||
|
|
351c7e4c52 | ||
|
|
78bbdddf79 | ||
|
|
f2921ec7e7 | ||
|
|
b0fb909cd1 | ||
|
|
61324e7afc | ||
|
|
31c18118ac | ||
|
|
05635a76df | ||
|
|
a153051545 | ||
|
|
e70df5593a | ||
|
|
6b4a06e635 | ||
|
|
a5469d57d5 | ||
|
|
6e0fef436b | ||
|
|
dddcd22015 | ||
|
|
8b32bb2e66 | ||
|
|
92db29a5d0 | ||
|
|
595add91c5 | ||
|
|
50498895b2 | ||
|
|
ca777320b5 | ||
|
|
1359a691f2 | ||
|
|
ff72445dd4 | ||
|
|
d1b0536a55 | ||
|
|
02a1fcb55d | ||
|
|
9b5b4f611a | ||
|
|
dc7b9316b7 | ||
|
|
368be676a8 | ||
|
|
5f77a49cfb | ||
|
|
7c013d6de8 | ||
|
|
3f2e4ac508 | ||
|
|
088b4aab2f | ||
|
|
6a296f9858 | ||
|
|
55cd237b98 | ||
|
|
5f264ca868 | ||
|
|
dace516318 | ||
|
|
88bcc87fd7 | ||
|
|
8accb60ab2 | ||
|
|
969d434503 | ||
|
|
b0dd72c9dd | ||
|
|
b17f1550b2 | ||
|
|
438214a5ec | ||
|
|
631c7c2b91 | ||
|
|
cad509accd | ||
|
|
fbd029d58d | ||
|
|
0d09f1650a | ||
|
|
c2dd55744f | ||
|
|
bd4e848d60 | ||
|
|
2fbe9e810f | ||
|
|
33be8b0556 | ||
|
|
dfe0fbd58f | ||
|
|
1b7fb35b53 | ||
|
|
e64fe9fcda | ||
|
|
932013b34b | ||
|
|
bef74b6a80 | ||
|
|
16828a190f | ||
|
|
d32496e7e1 | ||
|
|
34fb0d9271 | ||
|
|
ba6d887098 | ||
|
|
0691a8d560 | ||
|
|
bc9bc74cf9 | ||
|
|
ae4589dc06 | ||
|
|
0e093dd3b5 | ||
|
|
fbc6b61add | ||
|
|
248c90bec7 | ||
|
|
8ffc4dd88b | ||
|
|
448a11a1b6 | ||
|
|
0db4b87784 | ||
|
|
24b8b435b6 | ||
|
|
a8a2eaf5f0 | ||
|
|
8487d24c05 | ||
|
|
ced90daa71 | ||
|
|
a9789f54d0 | ||
|
|
519126decd | ||
|
|
d16613ec8b | ||
|
|
5c3ba1143f | ||
|
|
1acc865a7a | ||
|
|
2946990942 | ||
|
|
76b4f579e7 | ||
|
|
b83c8d2904 | ||
|
|
61ff92ae28 | ||
|
|
4fe2c926f4 | ||
|
|
c3514d247f | ||
|
|
bd71675961 | ||
|
|
54cf6ca9b3 | ||
|
|
5c6e37dd88 | ||
|
|
0f0715e659 | ||
|
|
7c6134e781 | ||
|
|
fa6ba7cc2c | ||
|
|
c6f951a1f4 | ||
|
|
9370b7a87a | ||
|
|
6cd002206b | ||
|
|
d1afcb6d7e | ||
|
|
0c100c3959 | ||
|
|
27856d5dd8 | ||
|
|
236b6f49d7 | ||
|
|
d9ae95cf1f | ||
|
|
80a2acf560 | ||
|
|
aaaaab7e1e | ||
|
|
97c37d43fc | ||
|
|
78070d2d8e | ||
|
|
0e4ff610f8 | ||
|
|
3e0d3173b9 | ||
|
|
d29881aecc | ||
|
|
b9e430dcf8 | ||
|
|
2efe4a8f1f | ||
|
|
ace185ba3d | ||
|
|
33a4185526 | ||
|
|
93ca0f9d55 | ||
|
|
97bf988885 | ||
|
|
59c6d169ee | ||
|
|
402f6025be | ||
|
|
57db07ff91 | ||
|
|
e39e6eccaf | ||
|
|
15cf49d13b | ||
|
|
c260e68a58 | ||
|
|
4932ea6a31 | ||
|
|
d63b38f50b | ||
|
|
541f5a19fe | ||
|
|
da82105186 | ||
|
|
9fdf378357 | ||
|
|
402b676ce5 | ||
|
|
33a42b129b | ||
|
|
a11dc1a49a | ||
|
|
a47ac79804 | ||
|
|
c3ec7958c2 | ||
|
|
523883e681 | ||
|
|
f082d1e438 | ||
|
|
0fd6600358 | ||
|
|
426168db71 | ||
|
|
6073495684 | ||
|
|
0c5231786a | ||
|
|
cee856d5c8 | ||
|
|
602db7279a | ||
|
|
a93fc8d6dc | ||
|
|
1a9ac1c6e2 | ||
|
|
5f1987dea3 | ||
|
|
8fc1640e5c | ||
|
|
e0e209549f | ||
|
|
fe244a817a | ||
|
|
582bd77805 | ||
|
|
cb575db52a | ||
|
|
b963792723 | ||
|
|
3b872cf5ba | ||
|
|
789e53314d | ||
|
|
b35db33421 | ||
|
|
cde16ba6a8 | ||
|
|
8e7694c71e | ||
|
|
7750cb4597 | ||
|
|
5ec9a4e8fb | ||
|
|
3cd13bed39 | ||
|
|
7db0d68776 | ||
|
|
6f1da5ae7b | ||
|
|
76aa2bde13 | ||
|
|
40b6ef882b | ||
|
|
ced76793a3 | ||
|
|
7e0dc1bb95 | ||
|
|
b7778e70ce | ||
|
|
131b5600ab | ||
|
|
e945b6cbba | ||
|
|
be9f6064e0 | ||
|
|
cd6caf3197 | ||
|
|
a39f4037c5 | ||
|
|
b277742a79 | ||
|
|
9f93a4ab39 | ||
|
|
0da83bef86 | ||
|
|
59406e6960 | ||
|
|
de274e0e7a | ||
|
|
04c24f2dd3 | ||
|
|
dd73b719ff | ||
|
|
4c8e6ef9c3 | ||
|
|
09357742ca | ||
|
|
972e0a9dfc | ||
|
|
7695dae4c7 | ||
|
|
d6cade7561 | ||
|
|
13b94a4fa2 | ||
|
|
d7893e716a | ||
|
|
35f517d1e7 | ||
|
|
4b65fd156c | ||
|
|
b5a54357a3 | ||
|
|
f477615449 | ||
|
|
fb175e6a78 | ||
|
|
5e4664c993 | ||
|
|
0fdd721677 | ||
|
|
f7c406aaf4 | ||
|
|
dfd30e3b4b | ||
|
|
ff1917778a | ||
|
|
54b3c8e965 | ||
|
|
8c2cfa4529 | ||
|
|
d6edee95cb | ||
|
|
76f0094edc | ||
|
|
b5a980eeae | ||
|
|
539a374c51 | ||
|
|
7a61f8db43 | ||
|
|
ee5a484d39 | ||
|
|
e0b7a219b2 | ||
|
|
f83001e4b9 | ||
|
|
beba434d1d | ||
|
|
23855c4278 | ||
|
|
13c47e8403 | ||
|
|
8a050671c6 | ||
|
|
6cb033f1e4 | ||
|
|
4a9d08eb29 | ||
|
|
a40d63d5d7 | ||
|
|
f9b609315c | ||
|
|
171a90a3da | ||
|
|
0740ee0018 | ||
|
|
4b26dbc2eb | ||
|
|
1bf4ea03ec | ||
|
|
430998acd4 | ||
|
|
8d23962e14 | ||
|
|
9ad06137aa | ||
|
|
b940549613 | ||
|
|
a43951dac8 | ||
|
|
abb2fbc091 | ||
|
|
f7384a9c51 | ||
|
|
0a483127fb | ||
|
|
84a77433c0 | ||
|
|
540fb35636 | ||
|
|
f8554588de | ||
|
|
2fad7a2ba0 | ||
|
|
b857008b85 | ||
|
|
df2003a169 | ||
|
|
6616e229d8 | ||
|
|
306107330f | ||
|
|
9faa5867ed | ||
|
|
1df953a2c8 | ||
|
|
0ea206f81e | ||
|
|
fbb01e4c48 | ||
|
|
e0108277a5 | ||
|
|
d40b324a91 | ||
|
|
cb05dfd52a | ||
|
|
37262f12e7 | ||
|
|
697a38b7b6 | ||
|
|
a59f965acd |
13
.editorconfig
Normal file
13
.editorconfig
Normal file
@@ -0,0 +1,13 @@
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# Unix-style newlines and whitespace cleanup
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
# shell formatting
|
||||
[*.{sh,bash,zsh}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -9,4 +9,6 @@ scratch/
|
||||
*.app
|
||||
*.tbz
|
||||
|
||||
|
||||
# do include Installomator .pkg files
|
||||
#!Installomator-*.pkg
|
||||
checkLabelCurrent.sh
|
||||
|
||||
43
CHANGELOG.md
43
CHANGELOG.md
@@ -1,9 +1,48 @@
|
||||
## v0.7
|
||||
|
||||
- default for `BLOCKING_PROCESS_ACTION`is now `BLOCKING_PROCESS_ACTION=tell_user` and not `prompt_user`. It will demand the user to quit the app to get it updated, and not present any option to skip it. In considering various use cases in different MDM solutions this is the best option going forward. Users usually choose to update, and is most often not bothered much with this information. If it's absoultely a bad time, then they can move the dialog box to the side, and click it when ready.
|
||||
- script is now assembled from fragments. This helps avoid merging conflicts on git and allows the core team to work on the script logic while also accepting new labels. See the "Assemble Script ReadMe" for details.
|
||||
- We now detect App Store installed apps, and we do not replace them automatically. An example is Slack that will loose all settings if it is suddenly changed from App Store version to the "web" version (they differ in the handling of settings files). If `INSTALL=force` then we will replace the App Store app. We log all this.
|
||||
- Change in finding installed apps. We now look in /Applications and /Applications/Utilities first. If not found there, we use spotligt to find it. (We discovered a problem when a user has Parallels Windows installed with Microsoft Edge in it. Then Installomator wanted to update the app all the time, becaus spotligt found that Windows version of the app that Parallels created.)
|
||||
- Added bunch of new labels, and improved others.
|
||||
- Renamed `buildCaseStatement.sh` to `buildLabel.sh` and improved it a lot. It is a great start when figuring out how to create a new label for an app, or a piece of software. Look at the tutorials in our wiki.
|
||||
- Mosyle changed their app name from Business to Self-Service
|
||||
|
||||
## v0.6 - 2021-07-14
|
||||
|
||||
- several new and updated labels, for a total of 302
|
||||
- versionKey variable can be used to choose which Info.plist key to get the version from
|
||||
- an appCustomVersion() {} function can now be used in a label
|
||||
- with INSTALL=force, the script will not be using updateTool, but will reinstall instead
|
||||
- added quit and quit_kill options to NOTIFY
|
||||
- updated buildCaseStatement.sh
|
||||
- updated buildInstallomatorPkg.sh to use notarytool (requires Xcode 13)
|
||||
- several minor fixes
|
||||
|
||||
## v0.5 - 2021-04-13
|
||||
|
||||
- Major update and now with help from @Theile and @Isaac
|
||||
- Added additional `BLOCKING_PROCESS_ACTION` handlings
|
||||
- Added additional `NOTIFY=all`. Usuful if used in Self Service, as the user will be notified before download, before install as well as when it is done.
|
||||
- Added variable `LOGO` for icons i dialogs, use `LOGO=appstore` (or `jamf` or `mosyleb` or `mosylem` or `addigy`). It's also possible to set it to a direct path to a specific icon. Default is `appstore`.
|
||||
- Added variable `INSTALL` that can be set to `INSTALL=force` if software needs to be installed even though latest version is already installed (it will be a reinstall).
|
||||
- Version control now included. The variable `appNewVersion` in a label can be used to tell what the latest version from the web is. If this is not given, version checking is done after download.
|
||||
- For a label that only installs a pkg without an app in it, a variable `packageID` can be used for version checking.
|
||||
- Labels now sorted alphabetically, except for the Microsoft ones (that are at the end of the list). A bunch of new labels added, and lots of them have either been changed or improved (with `appNewVersion` og `packageID`).
|
||||
- If an app is asked to be closed down, it will now be opened again after the update.
|
||||
- If your MDM cannot call a script with parameters, the label can be set in the top of the script.
|
||||
- If your MDM is not Jamf Pro, and you need the script to be installed locally on your managed machines, then take a look at [Theiles fork](https://github.com/Theile/Installomator/). This fork can be called from the MDM using a small script.
|
||||
- Script `buildCaseStatement.sh` to help with creating labels have been improved.
|
||||
- Fixed a bug in a variable name that prevented updateTool to be used
|
||||
- added `type` variable for value `"updateronly"` if the label should only run an updater tool.
|
||||
|
||||
|
||||
## v0.4 - 2020-10-19
|
||||
|
||||
- you can now set script variables as an argument in the form `VARIABLE=value`. More detail on this in the README file, 'Configuration from Arguments.' (#26, #50, #72, and #73)
|
||||
- change `downloadFromGit` to match file types better (#58)
|
||||
- implemented a workaround for changed behavior of `xpath` in Big Sur (#80)
|
||||
- added an option `prompt_user_the_kill` to `BLOCKING_PROCESS_ACTION` which will kill the process after the third unsuccessful attempt to quit (#78, thanks Patrick Atoon @raptor399)
|
||||
- added an option `prompt_user_then_kill` to `BLOCKING_PROCESS_ACTION` which will kill the process after the third unsuccessful attempt to quit (#78, thanks Patrick Atoon @raptor399)
|
||||
- added several new labels for total of 116
|
||||
|
||||
|
||||
@@ -16,6 +55,7 @@
|
||||
- improved logging in some statements
|
||||
- several more minor improvements
|
||||
|
||||
|
||||
## v0.2 - 2020-06-09
|
||||
|
||||
- many fixes for broken URLs and other bugs
|
||||
@@ -25,4 +65,5 @@
|
||||
improved logging
|
||||
- several new applications: count increased from 62 in 0.1 to 87 in 0.2
|
||||
|
||||
|
||||
## v0.1 - 2020-05-12
|
||||
|
||||
4204
Installomator.sh
4204
Installomator.sh
File diff suppressed because it is too large
Load Diff
231
Labels.txt
231
Labels.txt
@@ -1,62 +1,183 @@
|
||||
1password7
|
||||
4kvideodownloader
|
||||
8x8
|
||||
abstract
|
||||
adobebrackets
|
||||
adobeconnect
|
||||
adobereaderdc
|
||||
adobereaderdc-install
|
||||
adobereaderdc-update
|
||||
aircall
|
||||
airserver
|
||||
airtame
|
||||
aldente
|
||||
alfred
|
||||
alttab
|
||||
amazonchime
|
||||
amazonworkspaces
|
||||
androidfiletransfer
|
||||
anydesk
|
||||
apparency
|
||||
appcleaner
|
||||
applenyfonts
|
||||
applesfcompact
|
||||
applesfmono
|
||||
applesfpro
|
||||
applesfsymbols
|
||||
aquaskk
|
||||
arq7
|
||||
asana
|
||||
atext
|
||||
atom
|
||||
audacity
|
||||
authydesktop
|
||||
autodmg
|
||||
autopkgr
|
||||
aviatrix
|
||||
awscli2
|
||||
awsvpnclient
|
||||
balenaetcher
|
||||
balsamiqwireframes
|
||||
bartender
|
||||
basecamp3
|
||||
bbedit
|
||||
bettertouchtool
|
||||
bitwarden
|
||||
blender
|
||||
bluejeans
|
||||
boxdrive
|
||||
boxsync
|
||||
boxtools
|
||||
brave
|
||||
caffeine
|
||||
cakebrew
|
||||
calibre
|
||||
camostudio
|
||||
camtasia
|
||||
cisdem-documentreader
|
||||
citrixworkspace
|
||||
clevershare2
|
||||
clickshare
|
||||
cloudya
|
||||
code42
|
||||
coderunner
|
||||
colourcontrastanalyser
|
||||
cormorant
|
||||
craftmanager
|
||||
cryptomator
|
||||
cyberduck
|
||||
dangerzone
|
||||
darktable
|
||||
dbeaverce
|
||||
debookee
|
||||
defaultfolderx
|
||||
depnotify
|
||||
desktoppr
|
||||
detectxswift
|
||||
dialpad
|
||||
devonthink
|
||||
dialog
|
||||
discord
|
||||
docker
|
||||
drift
|
||||
dropbox
|
||||
easeusdatarecoverywizard
|
||||
egnyte
|
||||
element
|
||||
eraseinstall
|
||||
etrecheck
|
||||
evernote
|
||||
exelbanstats
|
||||
fantastical
|
||||
favro
|
||||
ferdi
|
||||
figma
|
||||
firefox
|
||||
firefox_da
|
||||
firefox_intl
|
||||
firefoxesr
|
||||
firefoxesr_intl
|
||||
firefoxesrpkg
|
||||
firefoxpkg
|
||||
flowjo
|
||||
front
|
||||
fsmonitor
|
||||
gimp
|
||||
githubdesktop
|
||||
golang
|
||||
googlechrome
|
||||
googlechromepkg
|
||||
googledrive
|
||||
googledrivebackupandsync
|
||||
googledrivefilestream
|
||||
googleearth
|
||||
googlejapaneseinput
|
||||
googlesoftwareupdate
|
||||
gotomeeting
|
||||
gpgsuite
|
||||
gpgsync
|
||||
grandperspective
|
||||
grasshopper
|
||||
gyazo
|
||||
gyazogif
|
||||
hancock
|
||||
handbrake
|
||||
hazel
|
||||
hpeasyadmin
|
||||
hpeasystart
|
||||
hyper
|
||||
icons
|
||||
imazingprofileeditor
|
||||
inkscape
|
||||
insomnia
|
||||
installomator_theile
|
||||
intellijideace
|
||||
istatmenus
|
||||
iterm2
|
||||
jabradirect
|
||||
jamfconnect
|
||||
jamfconnectconfiguration
|
||||
jamfmigrator
|
||||
jamfpppcutility
|
||||
jamfreenroller
|
||||
jetbrainsclion
|
||||
jetbrainsdatagrip
|
||||
jetbrainsintellijidea
|
||||
jetbrainsintellijideace
|
||||
jetbrainsphpstorm
|
||||
jetbrainspycharm
|
||||
jetbrainspycharmce
|
||||
jetbrainstoolbox
|
||||
jetbrainswebstorm
|
||||
karabinerelements
|
||||
keepassxc
|
||||
keka
|
||||
keybase
|
||||
keyboardmaestro
|
||||
klokki
|
||||
knockknock
|
||||
krisp
|
||||
krita
|
||||
lastpass
|
||||
launchbar
|
||||
lexarrecoverytool
|
||||
libreoffice
|
||||
logitechoptions
|
||||
loom
|
||||
lucifer
|
||||
lulu
|
||||
macfuse
|
||||
malwarebytes
|
||||
mattermost
|
||||
menumeters
|
||||
microsoftautoupdate
|
||||
microsoftazurestorageexplorer
|
||||
microsoftcompanyportal
|
||||
microsoftdefenderatp
|
||||
microsoftedge
|
||||
microsoftedgeconsumerstable
|
||||
microsoftedgeenterprisestable
|
||||
microsoftexcel
|
||||
microsoftlicenseremovaltool
|
||||
microsoftoffice365
|
||||
microsoftofficebusinesspro
|
||||
microsoftonedrive
|
||||
@@ -67,50 +188,154 @@ microsoftremotedesktop
|
||||
microsoftsharepointplugin
|
||||
microsoftskypeforbusiness
|
||||
microsoftteams
|
||||
microsoftvisualstudiocode
|
||||
microsoftword
|
||||
microsoftyammer
|
||||
miro
|
||||
montereyblocker
|
||||
musescore
|
||||
muzzle
|
||||
netnewswire
|
||||
nextcloud
|
||||
nomad
|
||||
nomadlogin
|
||||
notion
|
||||
nvivo
|
||||
obs
|
||||
obsidian
|
||||
odrive
|
||||
omnidisksweeper
|
||||
omnifocus3
|
||||
omnigraffle6
|
||||
omnigraffle7
|
||||
omnioutliner5
|
||||
omniplan3
|
||||
omniplan4
|
||||
omnipresence
|
||||
onionshare
|
||||
onlyofficedesktop
|
||||
openvpnconnect
|
||||
openvpnconnectv3
|
||||
opera
|
||||
pacifist
|
||||
parsec
|
||||
pdfsam
|
||||
perimeter81
|
||||
pitch
|
||||
plantronicshub
|
||||
platypus
|
||||
plisteditpro
|
||||
postman
|
||||
prism9
|
||||
privileges
|
||||
proctortrack
|
||||
promiseutilityr
|
||||
proxyman
|
||||
pycharmce
|
||||
pymol
|
||||
r
|
||||
ramboxce
|
||||
rectangle
|
||||
redeye
|
||||
resiliosynchome
|
||||
retrobatch
|
||||
ricohpsprinters
|
||||
ringcentralapp
|
||||
ringcentralclassicapp
|
||||
ringcentralmeetings
|
||||
ringcentralphone
|
||||
rocket
|
||||
rocketchat
|
||||
rodeconnect
|
||||
royaltsx
|
||||
rstudio
|
||||
santa
|
||||
scaleft
|
||||
screamingfrogseospider
|
||||
screencloudplayer
|
||||
screenflick
|
||||
sfsymbols
|
||||
shield
|
||||
sidekick
|
||||
signal
|
||||
silnite
|
||||
sirimote
|
||||
sizeup
|
||||
skitch
|
||||
sketch
|
||||
skype
|
||||
slack
|
||||
smartgit
|
||||
snagit
|
||||
snagit2020
|
||||
snagit2021
|
||||
snapgeneviewer
|
||||
sonos
|
||||
sonoss1
|
||||
sonoss2
|
||||
sourcetree
|
||||
splashtopsos
|
||||
spotify
|
||||
sublimetext
|
||||
supportapp
|
||||
suspiciouspackage
|
||||
swiftruntimeforcommandlinetools
|
||||
sync
|
||||
tableaudesktop
|
||||
tableaureader
|
||||
tageditor
|
||||
taskpaper
|
||||
teamviewer
|
||||
teamviewerhost
|
||||
teamviewerqs
|
||||
techsmithcapture
|
||||
telegram
|
||||
textexpander
|
||||
textmate
|
||||
theunarchiver
|
||||
things
|
||||
thunderbird
|
||||
toggltrack
|
||||
tom4aconverter
|
||||
torbrowser
|
||||
trex
|
||||
tunnelbear
|
||||
tunnelblick
|
||||
umbrellaroamingclient
|
||||
uniconverter
|
||||
universaltypeclient
|
||||
utm
|
||||
vagrant
|
||||
vanilla
|
||||
veracrypt
|
||||
virtualbox
|
||||
viscosity
|
||||
visualstudiocode
|
||||
vivaldi
|
||||
vlc
|
||||
vmwarehorizonclient
|
||||
vscodium
|
||||
wallyezflash
|
||||
webex
|
||||
webexmeetings
|
||||
webexteams
|
||||
whatsapp
|
||||
wwdcformac
|
||||
wickrme
|
||||
wickrpro
|
||||
wireshark
|
||||
wwdc
|
||||
xeroxphaser7800
|
||||
xink
|
||||
xquartz
|
||||
yed
|
||||
yubikeymanagerqt
|
||||
zappy
|
||||
zeplin
|
||||
zohoworkdrive
|
||||
zoom
|
||||
zoomclient
|
||||
zoomgov
|
||||
zoomrooms
|
||||
zulujdk11
|
||||
zulujdk13
|
||||
zulujdk15
|
||||
zulujdk8
|
||||
|
||||
114
README.md
114
README.md
@@ -4,7 +4,7 @@ _The one installer script to rule them all._
|
||||
|
||||
   
|
||||
|
||||
This script is in the "we find it useful, it is working for us" stage.
|
||||
This script is in the “we find it useful, it is working for us” stage.
|
||||
|
||||
Your production and deployment environment will be different, please test thoroughly before rolling it out to your production.
|
||||
|
||||
@@ -12,18 +12,23 @@ I have put a lot of work into making it stable and safe, but I cannot - of cours
|
||||
|
||||
## Support and Contributing
|
||||
|
||||
Discussion, support and advice around Installomator happens in the `#installomator` channel in the [MacAdmins Slack](https:/macadmins.org). Go there for support questions.
|
||||
__Please note, that if you are contributing to this project with new labels or other suggestions in PRs, please put your changes in the fragmented files, not the full `Installomator.sh` script. The full script is now a build of the fragments, and will be overwritten. See the REAMDME.md file in the `utils` directory for detailed instructions.__
|
||||
|
||||
Discussion, support and advice around Installomator happens in the `#installomator` channel in the [MacAdmins.org Slack](https://macadmins.org). Go there for support questions.
|
||||
|
||||
Do not create an issue just when you have a questions, but do file an issue or pull request for bugs or wrong behavior. When in doubt, ask in the above Slack channel.
|
||||
|
||||
If you have added a new label, then please file a pull request. (and Thank you!)
|
||||
|
||||
We try to keep the script as short as possible, and with more than 300 labels, we can save 300 lines in the script, if we do not have credit lines on each of these. So we are thankful for your contribution, but we will be removing these lines in the coming releases.
|
||||
|
||||
## More reading
|
||||
|
||||
There are a few interesting post on Installomator on my weblog:
|
||||
|
||||
- [Introducing Installomator](https://scriptingosx.com/2020/05/introducing-installomator/)
|
||||
- [Using Installomator with Jamf Pro](https://scriptingosx.com/2020/06/using-installomator-with-jamf-pro/) by Mischa van der Bent
|
||||
- [Using another MDM than Jamf and you might want a local installation](https://github.com/Theile/Installomator/) By Søren Theilgaard
|
||||
|
||||
## Background
|
||||
|
||||
@@ -84,7 +89,7 @@ Installomator can work with the following common archive and installer types:
|
||||
- dmg: for the common 'drag app to /Applications' installation style
|
||||
- zip: the application is just compressed with zip or or tbz
|
||||
|
||||
When the download yields a pkg file, Installomator will run `installer` to install it on the current system.
|
||||
When the download yields a pkg file, Installomator will run `installer` to install it on the current system.
|
||||
|
||||
Applications in dmgs or zips will be copied to `/Applications` and their owner will be set to the current user, so the install works like a standard drag'n drop installation.
|
||||
|
||||
@@ -102,29 +107,44 @@ When used to install software, Installomator has a single argument: the label or
|
||||
|
||||
```
|
||||
./Installomator.sh firefox
|
||||
./Installomator.sh firefox LOGO=jamf BLOCKING_PROCESS_ACTION=tell_user_then_kill NOTIFY=all
|
||||
```
|
||||
|
||||
There is a debug mode and one other setting that can be controlled with variables in the code. This simplifies the actual use of the script from within a management system.
|
||||
|
||||
### Extensible
|
||||
|
||||
As of this writing, Installomator knows how to download and install more than 50 different applications. You can add more by adding a block to the _long_ `case` statement starting on line 160. Some of them are more elaborate, but most of them just need this information:
|
||||
As of this writing, Installomator knows how to download and install more than 238 different applications. You can add more by adding a block to the _long_ `case` statement starting on line 758. Some of them are more elaborate, but most of them (just) need this information (not really "just" in this case, as we have to differentiate between arm64 and i386 versions for both `downloadURL` and `appNewVersion`):
|
||||
|
||||
```
|
||||
googlechrome)
|
||||
name="Google Chrome"
|
||||
type="dmg"
|
||||
downloadURL="https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg"
|
||||
if [[ $(arch) != "i386" ]]; then
|
||||
printlog "Architecture: arm64 (not i386)"
|
||||
downloadURL="https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg"
|
||||
appNewVersion=$(curl -s https://omahaproxy.appspot.com/history | awk -F',' '/mac_arm64,stable/{print $3; exit}') # Credit: William Smith (@meck)
|
||||
else
|
||||
printlog "Architecture: i386"
|
||||
downloadURL="https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg"
|
||||
appNewVersion=$(curl -s https://omahaproxy.appspot.com/history | awk -F',' '/mac,stable/{print $3; exit}') # Credit: William Smith (@meck)
|
||||
fi
|
||||
expectedTeamID="EQHXZ8M8AV"
|
||||
;;
|
||||
```
|
||||
|
||||
When you know how to extract these pieces of information from the application and/or download, then you can add an application to Installomator.
|
||||
|
||||
The script `buildCaseStatement.sh` can help with the label creation.
|
||||
|
||||
Please note: Labels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed.
|
||||
|
||||
### Not specific to a management system
|
||||
|
||||
I wrote this script mainly for use with Jamf Pro, because that is what we use. For testing, you can run the script interactively from the command line. However, I have tried to keep anything that is specific to Jamf optional, or so flexible that it will work anywhere. Even if it does not work with your management system 'out of the box,' the adaptations should be straightforward.
|
||||
|
||||
Not all MDMs can include the full script, for those MDMs it might be more useful to install it on the client machines, and run it from there. See [Using another MDM than Jamf and you might want a local installation](https://github.com/Theile/Installomator/) By Søren Theilgaard.
|
||||
|
||||
### No dependencies
|
||||
|
||||
The script started out as a pure `sh` script, and when I needed arrays I 'switched' to `zsh`, because that is what [we can rely on being in macOS for the foreseeable future](https://scriptingosx.com/zsh). There are quite a few places where using python would have been easier and safer, but with the python 2 run-time being deprecated, that would have added a requirement for a Python 3 run-time to be installed. XML and JSON parsing would have been better with a tool like [scout](https://github.com/ABridoux/scout) or [jq](https://stedolan.github.io/jq/), but those would again require additional installations on the client before the script can run.
|
||||
@@ -141,15 +161,19 @@ The argument can be `version` or `longversion` which will print the script's ver
|
||||
|
||||
```
|
||||
> ./Installomator.sh version
|
||||
0.1
|
||||
2021-03-28 10:03:42 version ################## Start Installomator v. 0.5.0
|
||||
2021-03-28 10:03:42 version ################## version
|
||||
2021-03-28 10:03:42 version 0.5.0
|
||||
> ./Installomator.sh longversion
|
||||
Installomater: version 0.1 (20200506)
|
||||
2021-03-28 10:04:16 longversion ################## Start Installomator v. 0.5.0
|
||||
2021-03-28 10:04:16 longversion ################## longversion
|
||||
2021-03-28 10:04:16 longversion Installomater: version 0.5.0 (2021-03-28)
|
||||
```
|
||||
|
||||
Other than the version arguments, the argument can be any of the labels listed in the Labels.txt file. Each of the labels will download and install the latest version of the application, or suite of applications. Since the script will have to run the `installer` command or copy the application to the `/Applications` folder, it will have to be run as root.
|
||||
|
||||
```
|
||||
> sudo ./Installomator.sh desktoppr
|
||||
> sudo ./Installomator.sh desktoppr DEBUG=0
|
||||
```
|
||||
|
||||
(Since Jamf Pro always provides the mount point, computer name, and user name as the first three arguments for policy scripts, the script will use argument `$4` when there are more than three arguments.)
|
||||
@@ -174,8 +198,9 @@ Then you can use the Installomator script in a policy and choose the application
|
||||
|
||||
When it runs with a known label, the script will perform the following:
|
||||
|
||||
- when the application is running, prompt the user to quit or cancel
|
||||
- Check the version installed with the version online. Only continue if it's different
|
||||
- download the latest version from the vendor
|
||||
- when the application is running, prompt the user to quit or cancel
|
||||
- dmg or zip archives:
|
||||
- extract the application and copy it to /Applications
|
||||
- change the owner of the application to the current user
|
||||
@@ -201,22 +226,58 @@ Debug mode is useful to test the download and verification process without havin
|
||||
|
||||
The `BLOCKING_PROCESS_ACTION` variable controls the behavior of the script when it finds a blocking process running.
|
||||
|
||||
There are four options:
|
||||
There are eight options:
|
||||
|
||||
- `ignore`: continue even when blocking processes are found
|
||||
- `silent_fail`: exit script without prompt or installation
|
||||
- `prompt_user`: show a user dialog for each blocking process found abort after three attempts to quit
|
||||
- `kill`: kill process without prompting or giving the user a chance to save
|
||||
- `ignore`: continue even when blocking processes are found.
|
||||
- `silent_fail`: exit script without prompt or installation.
|
||||
- `prompt_user`: (default) show a user dialog for each blocking process found abort after three attempts to quit (only if user accepts to quit the apps, otherwise the update is cancelled).
|
||||
- `prompt_user_then_kill`: show a user dialog for each blocking process found, attempt to quit two times, kill the process finally.
|
||||
- `prompt_user_loop`: Like prompt-user, but clicking "Not Now", will just wait an hour, and then it will ask again.
|
||||
WARNING! It might block the MDM agent on the machine, as the scripts gets stuct in waiting until the hour has passed, possibly blocking for other management actions in this time.
|
||||
- `tell_user`: User will be showed a notification about the important update, but user is only allowed to quit and continue, and then we ask the app to quit.
|
||||
- `tell_user_then_kill`: Show dialog 2 times, and if the quitting fails, the blocking processes will be killed.
|
||||
- `kill`: kill process without prompting or giving the user a chance to save.
|
||||
|
||||
The default is `prompt_user`.
|
||||
If any process was closed, Installomator will try to open the app again, after the update process is done.
|
||||
|
||||
### Notification
|
||||
|
||||
The `NOTIFY` variable controls the notifications shown to the user. As of now, there are two options: `success` (default) and `silent`.
|
||||
The `NOTIFY` variable controls the notifications shown to the user. As of now, there are three options:
|
||||
|
||||
- `success`: notify the user after a successful install
|
||||
- `success`: (default) notify the user after a successful install
|
||||
- `silent`: no notifications
|
||||
- `all`: all notifications (great for Self Service installation)
|
||||
|
||||
### Logo
|
||||
|
||||
The `LOGO` variable is used for the icon shown in dialog boxes. There are these options:
|
||||
|
||||
- `appstore`: Icon is Apple App Store (default)
|
||||
- `jamf`: JAMF Pro
|
||||
- `mosyleb`: Mosyle Business
|
||||
- `mosylem`: Mosyle Manager (Education)
|
||||
- `addigy`: Addigy
|
||||
Path can also be set in the command call, and if file exists, it will be used, like `LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"` (spaces are escaped).
|
||||
|
||||
### App Store apps handling
|
||||
Default is `IGNORE_APP_STORE_APPS=no`
|
||||
__options:__
|
||||
- `no`: If installed app is from App Store (which include VPP installed apps) it will not be touched, no matter it's version (default)
|
||||
- `yes`: Replace App Store (and VPP) version of app and handle future updates using Installomator, even if latest version. Shouldn’t give any problems for the user in most cases. Known bad example: Slack will loose all settings.
|
||||
|
||||
### Install behavior (force installation)
|
||||
|
||||
Since we now make a version checking, and only installs the software if the version is different, an `INSTALL` variable can be used to force the installation:
|
||||
|
||||
- ``: When not set, software is only installed if it is newer/different in version (default)
|
||||
- `force`: Install even if it’s the same version
|
||||
|
||||
### Re-opening of closed app
|
||||
|
||||
The `REOPEN` can be used to prevent the reopening of a closed app
|
||||
|
||||
- `yes`: (default) app will be reopened if it was closed
|
||||
- `no`: app not reopened
|
||||
|
||||
### Adding applications/label blocks
|
||||
|
||||
@@ -242,13 +303,25 @@ The display name of the installed application without the `.app` extensions.
|
||||
The type of installation. Possible values:
|
||||
- `dmg`: application in disk image file (drag'n drop installation)
|
||||
- `pkg`: flat pkg download
|
||||
- `zip`: application in zip archive (`zip` or `tbz` extension)
|
||||
- `zip`: application in zip archive (`zip` extension)
|
||||
- `tbz`: application in tbz archive (`tbz` extension)
|
||||
- `pkgInDmg`: a pkg file inside a disk image
|
||||
- `pkgInZip`: a pkg file inside a zip
|
||||
- `appInDmgInZip`: an app in a dmg file that has been zip'ed
|
||||
|
||||
- `downloadURL`:
|
||||
The URL from which to download the archive.
|
||||
The URL can be generated by a series of commands, for example when you need to parse an xml file for the latest URL. (See `bbedit`, `desktoppr`, or `omnigraffle` for examples.)
|
||||
Sometimes version differs between Intel and Apple Silicon versions. (See `brave`, `obsidian`, `omnidisksweeper`, or `notion`).
|
||||
|
||||
- `appNewVersion` (optional, but recommended):
|
||||
Version of the downloaded software.
|
||||
If given, it will be compared to installed version, to see if download is different.
|
||||
It does not check for newer or not, only different.
|
||||
Not always easy to figure out how to make this. Sometimes this is listed on the downloads page, sometimes in other places. And how can we isolate it in a genral manner? (See `abstract`, `bbedit`, `brave`, `desktoppr`, `googlechrome`, or `omnidisksweeper`).
|
||||
|
||||
- `packageID` (optional, but recommended for pkgs without an app)
|
||||
This variable is for pkg bundle IDs. Very usefull if a pkg only install command line tools, or the like that does not install an app. (See label `desktoppr`, `golang`, `installomator_st`, `odrive`, or `teamviewerhost`).
|
||||
|
||||
- `expectedTeamID`:
|
||||
The 10-character Developer Team ID with which the application or pkg is signed and notarized.
|
||||
@@ -273,12 +346,13 @@ Depending on the application or pkg there are a few more variables you can or ne
|
||||
- `appName`: (optional)
|
||||
File name of the app bundle in the dmg to verify and copy (include the `.app`).
|
||||
When not given, the `appName` is set to `$name.app`.
|
||||
This is also the name of the app that will get reopned, if we closed any `blockingProcesses` (see further down)
|
||||
|
||||
- `targetDir`: (optional)
|
||||
dmg or zip:
|
||||
Applications will be copied to this directory.
|
||||
Default value is '`/Applications`' for dmg and zip installations.
|
||||
pkg:
|
||||
pkg:
|
||||
`targetDir` is used as the install-location. Default is '`/`'.
|
||||
|
||||
- `blockingProcesses`: (optional)
|
||||
@@ -303,7 +377,7 @@ Depending on the application or pkg there are a few more variables you can or ne
|
||||
e.g. `msupdate` (see microsoft installations)
|
||||
|
||||
- `updateToolRunAsCurrentUser`:
|
||||
When this variable is set (any value), `$updateTool` will be run as the current user. Default is unset and
|
||||
When this variable is set (any value), `$updateTool` will be run as the current user. Default is unset and
|
||||
|
||||
### Configuration from Arguments
|
||||
|
||||
|
||||
1
assemble.sh
Symbolic link
1
assemble.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
utils/assemble.sh
|
||||
@@ -1,90 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||
|
||||
downloadURL=${1?:"need to provide a download URL"}
|
||||
|
||||
# Note: this tool _very_ experimental and does not work in many cases
|
||||
|
||||
|
||||
# create temporary working directory
|
||||
tmpDir=$(dirname $0 )
|
||||
|
||||
# change directory to temporary working directory
|
||||
echo "Changing directory to $tmpDir"
|
||||
if ! cd "$tmpDir"; then
|
||||
echo "error changing directory $tmpDir"
|
||||
#rm -Rf "$tmpDir"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# download the dmg
|
||||
echo "Downloading $downloadURL"
|
||||
if ! curl --location --fail --silent "$downloadURL" --remote-header-name --remote-name; then
|
||||
echo "error downloading $downloadURL"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
archivePath=$(find $tmpDir -print )
|
||||
archiveName=${archivePath##*/}
|
||||
name=${archiveName%.*}
|
||||
archiveExt=${archiveName##*.}
|
||||
identifier=$(echo $name | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [ "$archiveExt" = "pkg" ]; then
|
||||
teamID=$(spctl -a -vv -t install "$archiveName" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' )
|
||||
elif [ "$archiveExt" = "dmg" ]; then
|
||||
# mount the dmg
|
||||
echo "Mounting $archiveName"
|
||||
if ! dmgmount=$(echo "Y"$'\n' | hdiutil attach "$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
|
||||
echo "Error mounting $archiveName"
|
||||
exit 3
|
||||
fi
|
||||
echo "Mounted: $dmgmount"
|
||||
# check if app exists
|
||||
|
||||
appPath=$(find "$dmgmount" -name "*.app" -maxdepth 1 -print )
|
||||
appName=${appPath##*/}
|
||||
|
||||
# verify with spctl
|
||||
echo "Verifying: $appPath"
|
||||
if ! teamID=$(spctl -a -vv "$appPath" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' ); then
|
||||
echo "Error verifying $appPath"
|
||||
exit 4
|
||||
fi
|
||||
|
||||
hdiutil detach "$dmgmount"
|
||||
elif [ "$archiveExt" = "zip" ] || [ "$archiveExt" = "tbz" ]; then
|
||||
# unzip the archive
|
||||
tar -xf "$archiveName"
|
||||
|
||||
# check if app exists
|
||||
appPath=$(find "$tmpDir" -name "*.app" -maxdepth 2 -print )
|
||||
appName=${appPath##*/}
|
||||
# verify with spctl
|
||||
echo "Verifying: $appPath"
|
||||
if ! teamID=$(spctl -a -vv "$appPath" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' ); then
|
||||
echo "Error verifying $appPath"
|
||||
exit 4
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
echo
|
||||
echo " $identifier)"
|
||||
echo " name=\"$name\""
|
||||
echo " type=\"$archiveExt\""
|
||||
echo " downloadURL=\"$downloadURL\""
|
||||
echo " expectedTeamID=\"$teamID\""
|
||||
if [ -n "$appName" ] && [ "$appName" != "${name}.app" ]; then
|
||||
echo " appName=\"$appName\""
|
||||
fi
|
||||
echo " ;;"
|
||||
echo
|
||||
|
||||
#if [ -e "${tmpDir}" ]; then
|
||||
# #echo "deleting tmp dir"
|
||||
# rm -rf "${tmpDir}"
|
||||
#fi
|
||||
|
||||
exit 0
|
||||
81
fragments/arguments.sh
Normal file
81
fragments/arguments.sh
Normal file
@@ -0,0 +1,81 @@
|
||||
# MARK: check minimal macOS requirement
|
||||
autoload is-at-least
|
||||
|
||||
if ! is-at-least 10.14 $(sw_vers -productVersion); then
|
||||
printlog "Installomator requires at least macOS 10.14 Mojave."
|
||||
exit 98
|
||||
fi
|
||||
|
||||
# MARK: argument parsing
|
||||
if [[ $# -eq 0 ]]; then
|
||||
if [[ -z $label ]]; then # check if label is set inside script
|
||||
printlog "no label provided, printing labels"
|
||||
grep -E '^[a-z0-9\_-]*(\)|\|\\)$' "$0" | tr -d ')|\' | grep -v -E '^(broken.*|longversion|version|valuesfromarguments)$' | sort
|
||||
#grep -E '^[a-z0-9\_-]*(\)|\|\\)$' "${labelFile}" | tr -d ')|\' | grep -v -E '^(broken.*|longversion|version|valuesfromarguments)$' | sort
|
||||
exit 0
|
||||
fi
|
||||
elif [[ $1 == "/" ]]; then
|
||||
# jamf uses sends '/' as the first argument
|
||||
printlog "shifting arguments for Jamf"
|
||||
shift 3
|
||||
fi
|
||||
|
||||
while [[ -n $1 ]]; do
|
||||
if [[ $1 =~ ".*\=.*" ]]; then
|
||||
# if an argument contains an = character, send it to eval
|
||||
printlog "setting variable from argument $1"
|
||||
eval $1
|
||||
else
|
||||
# assume it's a label
|
||||
label=$1
|
||||
fi
|
||||
# shift to next argument
|
||||
shift 1
|
||||
done
|
||||
|
||||
# lowercase the label
|
||||
label=${label:l}
|
||||
|
||||
printlog "################## Start Installomator v. $VERSION"
|
||||
printlog "################## $label"
|
||||
|
||||
# How we get version number from app
|
||||
# (alternative is "CFBundleVersion", that can be used in labels)
|
||||
versionKey="CFBundleShortVersionString"
|
||||
|
||||
# get current user
|
||||
currentUser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ { print $3 }')
|
||||
|
||||
|
||||
# MARK: labels in case statement
|
||||
case $label in
|
||||
version)
|
||||
# print the script VERSION
|
||||
printlog "$VERSION"
|
||||
exit 0
|
||||
;;
|
||||
longversion)
|
||||
# print the script version
|
||||
printlog "Installomater: version $VERSION ($VERSIONDATE)"
|
||||
exit 0
|
||||
;;
|
||||
valuesfromarguments)
|
||||
if [[ -z $name ]]; then
|
||||
printlog "need to provide 'name'"
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z $type ]]; then
|
||||
printlog "need to provide 'type'"
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z $downloadURL ]]; then
|
||||
printlog "need to provide 'downloadURL'"
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z $expectedTeamID ]]; then
|
||||
printlog "need to provide 'expectedTeamID'"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
# label descriptions start here
|
||||
6
fragments/broken/brokenappname.sh
Normal file
6
fragments/broken/brokenappname.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
brokenappname)
|
||||
name="brokenapp"
|
||||
type="dmg"
|
||||
downloadURL="https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg"
|
||||
expectedTeamID="EQHXZ8M8AV"
|
||||
;;
|
||||
6
fragments/broken/brokendownloadurl.sh
Normal file
6
fragments/broken/brokendownloadurl.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
brokendownloadurl)
|
||||
name="Google Chrome"
|
||||
type="dmg"
|
||||
downloadURL="https://broken.com/broken.dmg"
|
||||
expectedTeamID="EQHXZ8M8AV"
|
||||
;;
|
||||
6
fragments/broken/brokenteamid.sh
Normal file
6
fragments/broken/brokenteamid.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
brokenteamid)
|
||||
name="Google Chrome"
|
||||
type="dmg"
|
||||
downloadURL="https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg"
|
||||
expectedTeamID="broken"
|
||||
;;
|
||||
10
fragments/disabled/fontforge.sh
Normal file
10
fragments/disabled/fontforge.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
fontforge)
|
||||
# FontForge Not signed
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="FontForge"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit fontforge fontforge)
|
||||
appNewVersion=$(versionFromGit fontforge fontforge)
|
||||
expectedTeamID=""
|
||||
;;
|
||||
12
fragments/disabled/notifier.sh
Normal file
12
fragments/disabled/notifier.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
notifier)
|
||||
# not signed
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="dataJAR Notifier"
|
||||
type="pkg"
|
||||
#packageID="uk.co.dataJAR.Notifier" # Version 2.2.3 was actually "uk.co.dataJAR.Notifier-2.2.3" so unusable
|
||||
downloadURL=$(downloadURLFromGit dataJAR Notifier)
|
||||
appNewVersion=$(versionFromGit dataJAR Notifier)
|
||||
expectedTeamID=""
|
||||
blockingProcesses=( "Notifier" )
|
||||
;;
|
||||
9
fragments/disabled/packages.sh
Normal file
9
fragments/disabled/packages.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
packages)
|
||||
#NOTE: Packages is signed but _not_ notarized, so spctl will reject it
|
||||
name="Packages"
|
||||
type="pkgInDmg"
|
||||
pkgName="Install Packages.pkg"
|
||||
downloadURL="http://s.sudre.free.fr/Software/files/Packages.dmg"
|
||||
expectedTeamID="NL5M9E394P"
|
||||
;;
|
||||
8
fragments/disabled/parallels.sh
Normal file
8
fragments/disabled/parallels.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
parallels)
|
||||
# This downloads an installer app, so not really useful here
|
||||
name="Parallels Desktop"
|
||||
type="dmg"
|
||||
downloadURL="https://parallels.com/directdownload/pd15/"
|
||||
appNewVersion=$(curl -fsIL "${downloadURL}" | grep -i ^location | tail -1 | cut -d "/" -f6)
|
||||
expectedTeamID="4C6364ACXT"
|
||||
;;
|
||||
10
fragments/disabled/powershell-lts.sh
Normal file
10
fragments/disabled/powershell-lts.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
powershell-lts)
|
||||
#NOTE: powershell installers are not notarized
|
||||
# credit: Tadayuki Onishi (@kenchan0130)
|
||||
name="PowerShell"
|
||||
type="pkg"
|
||||
downloadURL=$(curl -fs "https://api.github.com/repos/Powershell/Powershell/releases/latest" \
|
||||
| awk -F '"' '/browser_download_url/ && /pkg/ { print $4 }' | grep lts)
|
||||
expectedTeamID="UBF8T346G9"
|
||||
;;
|
||||
10
fragments/disabled/powershell.sh
Normal file
10
fragments/disabled/powershell.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
powershell)
|
||||
#NOTE: powershell installers are not notarized
|
||||
# credit: Tadayuki Onishi (@kenchan0130)
|
||||
name="PowerShell"
|
||||
type="pkg"
|
||||
downloadURL=$(curl -fs "https://api.github.com/repos/Powershell/Powershell/releases/latest" \
|
||||
| awk -F '"' '/browser_download_url/ && /pkg/ { print $4 }' | grep -v lts )
|
||||
expectedTeamID="UBF8T346G9"
|
||||
;;
|
||||
10
fragments/disabled/vmwarefusion.sh
Normal file
10
fragments/disabled/vmwarefusion.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
vmwarefusion)
|
||||
#TODO: vmwarefusion installation process needs testing
|
||||
# credit: Erik Stam (@erikstam)
|
||||
name="VMware Fusion"
|
||||
type="dmg"
|
||||
downloadURL="https://www.vmware.com/go/getfusion"
|
||||
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | sed -E 's/.*Fusion-([0-9.]*)-.*/\1/g' )
|
||||
expectedTeamID="EG7KH642X6"
|
||||
;;
|
||||
13
fragments/disabled/wordmat.sh
Normal file
13
fragments/disabled/wordmat.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
wordmat)
|
||||
# WordMat currently not signed
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="WordMat"
|
||||
type="pkg"
|
||||
packageID="com.eduap.pkg.WordMat"
|
||||
downloadURL=$(downloadURLFromGit Eduap-com WordMat)
|
||||
#downloadURL=$(curl -fs "https://api.github.com/repos/Eduap-com/WordMat/releases/latest" | awk -F '"' "/browser_download_url/ && /pkg/ && ! /sig/ && ! /CLI/ && ! /sha256/ { print \$4 }")
|
||||
appNewVersion=$(versionFromGit Eduap-com WordMat)
|
||||
#curl -fs "https://api.github.com/repos/Eduap-com/WordMat/releases/latest" | grep tag_name | cut -d '"' -f 4 | sed 's/[^0-9\.]//g'
|
||||
expectedTeamID=""
|
||||
;;
|
||||
8
fragments/disabled/wwdcformac.sh
Normal file
8
fragments/disabled/wwdcformac.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
wwdcformac)
|
||||
#this label looks like software/site is gone
|
||||
name="WWDC"
|
||||
type="zip"
|
||||
downloadURL="https://cdn.wwdc.io/WWDC_latest.zip"
|
||||
expectedTeamID="8C7439RJLG"
|
||||
;;
|
||||
619
fragments/functions.sh
Normal file
619
fragments/functions.sh
Normal file
@@ -0,0 +1,619 @@
|
||||
# MARK: Functions
|
||||
|
||||
cleanupAndExit() { # $1 = exit code, $2 message
|
||||
if [[ -n $2 && $1 -ne 0 ]]; then
|
||||
printlog "ERROR: $2"
|
||||
fi
|
||||
if [ "$DEBUG" -eq 0 ]; then
|
||||
# remove the temporary working directory when done
|
||||
printlog "Deleting $tmpDir"
|
||||
rm -Rf "$tmpDir"
|
||||
fi
|
||||
|
||||
if [ -n "$dmgmount" ]; then
|
||||
# unmount disk image
|
||||
printlog "Unmounting $dmgmount"
|
||||
hdiutil detach "$dmgmount"
|
||||
fi
|
||||
# If we closed any processes, reopen the app again
|
||||
reopenClosedProcess
|
||||
printlog "################## End Installomator, exit code $1 \n\n"
|
||||
exit "$1"
|
||||
}
|
||||
|
||||
runAsUser() {
|
||||
if [[ $currentUser != "loginwindow" ]]; then
|
||||
uid=$(id -u "$currentUser")
|
||||
launchctl asuser $uid sudo -u $currentUser "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
reloadAsUser() {
|
||||
if [[ $currentUser != "loginwindow" ]]; then
|
||||
uid=$(id -u "$currentUser")
|
||||
su - $currentUser -c "${@}"
|
||||
fi
|
||||
}
|
||||
|
||||
displaydialog() { # $1: message $2: title
|
||||
message=${1:-"Message"}
|
||||
title=${2:-"Installomator"}
|
||||
runAsUser osascript -e "button returned of (display dialog \"$message\" with title \"$title\" buttons {\"Not Now\", \"Quit and Update\"} default button \"Quit and Update\" with icon POSIX file \"$LOGO\")"
|
||||
}
|
||||
|
||||
displaydialogContinue() { # $1: message $2: title
|
||||
message=${1:-"Message"}
|
||||
title=${2:-"Installomator"}
|
||||
runAsUser osascript -e "button returned of (display dialog \"$message\" with title \"$title\" buttons {\"Quit and Update\"} default button \"Quit and Update\" with icon POSIX file \"$LOGO\")"
|
||||
}
|
||||
|
||||
displaynotification() { # $1: message $2: title
|
||||
message=${1:-"Message"}
|
||||
title=${2:-"Notification"}
|
||||
manageaction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action"
|
||||
|
||||
if [[ -x "$manageaction" ]]; then
|
||||
"$manageaction" -message "$message" -title "$title"
|
||||
else
|
||||
runAsUser osascript -e "display notification \"$message\" with title \"$title\""
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# MARK: Logging
|
||||
log_location="/private/var/log/Installomator.log"
|
||||
|
||||
printlog(){
|
||||
|
||||
timestamp=$(date +%F\ %T)
|
||||
|
||||
if [[ "$(whoami)" == "root" ]]; then
|
||||
echo "$timestamp" "$label" "$1" | tee -a $log_location
|
||||
else
|
||||
echo "$timestamp" "$label" "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
# will get the latest release download from a github repo
|
||||
downloadURLFromGit() { # $1 git user name, $2 git repo name
|
||||
gitusername=${1?:"no git user name"}
|
||||
gitreponame=${2?:"no git repo name"}
|
||||
|
||||
if [[ $type == "pkgInDmg" ]]; then
|
||||
filetype="dmg"
|
||||
elif [[ $type == "pkgInZip" ]]; then
|
||||
filetype="zip"
|
||||
else
|
||||
filetype=$type
|
||||
fi
|
||||
|
||||
if [ -n "$archiveName" ]; then
|
||||
downloadURL=$(curl --silent --fail "https://api.github.com/repos/$gitusername/$gitreponame/releases/latest" \
|
||||
| awk -F '"' "/browser_download_url/ && /$archiveName\"/ { print \$4; exit }")
|
||||
else
|
||||
downloadURL=$(curl --silent --fail "https://api.github.com/repos/$gitusername/$gitreponame/releases/latest" \
|
||||
| awk -F '"' "/browser_download_url/ && /$filetype\"/ { print \$4; exit }")
|
||||
fi
|
||||
if [ -z "$downloadURL" ]; then
|
||||
cleanupAndExit 9 "could not retrieve download URL for $gitusername/$gitreponame"
|
||||
#exit 9
|
||||
else
|
||||
echo "$downloadURL"
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
versionFromGit() {
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
# $1 git user name, $2 git repo name
|
||||
gitusername=${1?:"no git user name"}
|
||||
gitreponame=${2?:"no git repo name"}
|
||||
|
||||
appNewVersion=$(curl --silent --fail "https://api.github.com/repos/$gitusername/$gitreponame/releases/latest" | grep tag_name | cut -d '"' -f 4 | sed 's/[^0-9\.]//g')
|
||||
if [ -z "$appNewVersion" ]; then
|
||||
printlog "could not retrieve version number for $gitusername/$gitreponame"
|
||||
appNewVersion=""
|
||||
else
|
||||
echo "$appNewVersion"
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# Handling of differences in xpath between Catalina and Big Sur
|
||||
xpath() {
|
||||
# the xpath tool changes in Big Sur and now requires the `-e` option
|
||||
if [[ $(sw_vers -buildVersion) > "20A" ]]; then
|
||||
/usr/bin/xpath -e $@
|
||||
# alternative: switch to xmllint (which is not perl)
|
||||
#xmllint --xpath $@ -
|
||||
else
|
||||
/usr/bin/xpath $@
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
getAppVersion() {
|
||||
# modified by: Søren Theilgaard (@theilgaard) and Isaac Ordonez
|
||||
|
||||
# If label contain function appCustomVersion, we use that and return
|
||||
if type 'appCustomVersion' 2>/dev/null | grep -q 'function'; then
|
||||
appversion=$(appCustomVersion)
|
||||
printlog "Custom App Version detection is used, found $appversion"
|
||||
return
|
||||
fi
|
||||
|
||||
# pkgs contains a version number, then we don't have to search for an app
|
||||
if [[ $packageID != "" ]]; then
|
||||
appversion="$(pkgutil --pkg-info-plist ${packageID} 2>/dev/null | grep -A 1 pkg-version | tail -1 | sed -E 's/.*>([0-9.]*)<.*/\1/g')"
|
||||
if [[ $appversion != "" ]]; then
|
||||
printlog "found packageID $packageID installed, version $appversion"
|
||||
return
|
||||
else
|
||||
printlog "No version found using packageID $packageID"
|
||||
fi
|
||||
fi
|
||||
|
||||
# get app in /Applications, or /Applications/Utilities, or find using Spotlight
|
||||
if [[ -d "/Applications/$appName" ]]; then
|
||||
applist="/Applications/$appName"
|
||||
elif [[ -d "/Applications/Utilities/$appName" ]]; then
|
||||
applist="/Applications/Utilities/$appName"
|
||||
else
|
||||
applist=$(mdfind "kind:application $appName" -0 )
|
||||
fi
|
||||
printlog "App(s) found: ${applist}"
|
||||
|
||||
appPathArray=( ${(0)applist} )
|
||||
|
||||
if [[ ${#appPathArray} -gt 0 ]]; then
|
||||
filteredAppPaths=( ${(M)appPathArray:#${targetDir}*} )
|
||||
if [[ ${#filteredAppPaths} -eq 1 ]]; then
|
||||
installedAppPath=$filteredAppPaths[1]
|
||||
#appversion=$(mdls -name kMDItemVersion -raw $installedAppPath )
|
||||
appversion=$(defaults read $installedAppPath/Contents/Info.plist $versionKey) #Not dependant on Spotlight indexing
|
||||
printlog "found app at $installedAppPath, version $appversion"
|
||||
# Is current app from App Store
|
||||
if [[ -d "$installedAppPath"/Contents/_MASReceipt ]];then
|
||||
printlog "Installed $appName is from App Store, use “IGNORE_APP_STORE_APPS=yes” to replace."
|
||||
if [[ $IGNORE_APP_STORE_APPS == "yes" ]]; then
|
||||
printlog "Replacing App Store apps, no matter the version"
|
||||
appversion=0
|
||||
else
|
||||
cleanupAndExit 1 "App previously installed from App Store, and we respect that"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
printlog "could not determine location of $appName"
|
||||
fi
|
||||
else
|
||||
printlog "could not find $appName"
|
||||
fi
|
||||
}
|
||||
|
||||
checkRunningProcesses() {
|
||||
# don't check in DEBUG mode
|
||||
if [[ $DEBUG -ne 0 ]]; then
|
||||
printlog "DEBUG mode, not checking for blocking processes"
|
||||
return
|
||||
fi
|
||||
|
||||
# try at most 3 times
|
||||
for i in {1..4}; do
|
||||
countedProcesses=0
|
||||
for x in ${blockingProcesses}; do
|
||||
if pgrep -xq "$x"; then
|
||||
printlog "found blocking process $x"
|
||||
appClosed=1
|
||||
|
||||
case $BLOCKING_PROCESS_ACTION in
|
||||
quit|quit_kill)
|
||||
printlog "telling app $x to quit"
|
||||
runAsUser osascript -e "tell app \"$x\" to quit"
|
||||
if [[ $i > 2 && $BLOCKING_PROCESS_ACTION = "quit_kill" ]]; then
|
||||
printlog "Changing BLOCKING_PROCESS_ACTION to kill"
|
||||
BLOCKING_PROCESS_ACTION=kill
|
||||
else
|
||||
# give the user a bit of time to quit apps
|
||||
printlog "waiting 30 seconds for processes to quit"
|
||||
sleep 30
|
||||
fi
|
||||
;;
|
||||
kill)
|
||||
printlog "killing process $x"
|
||||
pkill $x
|
||||
sleep 5
|
||||
;;
|
||||
prompt_user|prompt_user_then_kill)
|
||||
button=$(displaydialog "Quit “$x” to continue updating? (Leave this dialogue if you want to activate this update later)." "The application “$x” needs to be updated.")
|
||||
if [[ $button = "Not Now" ]]; then
|
||||
cleanupAndExit 10 "user aborted update"
|
||||
else
|
||||
if [[ $i > 2 && $BLOCKING_PROCESS_ACTION = "prompt_user_then_kill" ]]; then
|
||||
printlog "Changing BLOCKING_PROCESS_ACTION to kill"
|
||||
BLOCKING_PROCESS_ACTION=kill
|
||||
else
|
||||
printlog "telling app $x to quit"
|
||||
runAsUser osascript -e "tell app \"$x\" to quit"
|
||||
# give the user a bit of time to quit apps
|
||||
printlog "waiting 30 seconds for processes to quit"
|
||||
sleep 30
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
prompt_user_loop)
|
||||
button=$(displaydialog "Quit “$x” to continue updating? (Click “Not Now” to be asked in 1 hour, or leave this open until you are ready)." "The application “$x” needs to be updated.")
|
||||
if [[ $button = "Not Now" ]]; then
|
||||
if [[ $i < 2 ]]; then
|
||||
printlog "user wants to wait an hour"
|
||||
sleep 3600 # 3600 seconds is an hour
|
||||
else
|
||||
printlog "change of BLOCKING_PROCESS_ACTION to tell_user"
|
||||
BLOCKING_PROCESS_ACTION=tell_user
|
||||
fi
|
||||
else
|
||||
printlog "telling app $x to quit"
|
||||
runAsUser osascript -e "tell app \"$x\" to quit"
|
||||
# give the user a bit of time to quit apps
|
||||
printlog "waiting 30 seconds for processes to quit"
|
||||
sleep 30
|
||||
fi
|
||||
;;
|
||||
tell_user|tell_user_then_kill)
|
||||
button=$(displaydialogContinue "Quit “$x” to continue updating? (This is an important update). Wait for notification of update before launching app again." "The application “$x” needs to be updated.")
|
||||
printlog "telling app $x to quit"
|
||||
runAsUser osascript -e "tell app \"$x\" to quit"
|
||||
# give the user a bit of time to quit apps
|
||||
printlog "waiting 30 seconds for processes to quit"
|
||||
sleep 30
|
||||
if [[ $i > 1 && $BLOCKING_PROCESS_ACTION = tell_user_then_kill ]]; then
|
||||
printlog "Changing BLOCKING_PROCESS_ACTION to kill"
|
||||
BLOCKING_PROCESS_ACTION=kill
|
||||
fi
|
||||
;;
|
||||
silent_fail)
|
||||
cleanupAndExit 12 "blocking process '$x' found, aborting"
|
||||
;;
|
||||
esac
|
||||
|
||||
countedProcesses=$((countedProcesses + 1))
|
||||
fi
|
||||
done
|
||||
|
||||
done
|
||||
|
||||
if [[ $countedProcesses -ne 0 ]]; then
|
||||
cleanupAndExit 11 "could not quit all processes, aborting..."
|
||||
fi
|
||||
|
||||
printlog "no more blocking processes, continue with update"
|
||||
}
|
||||
|
||||
reopenClosedProcess() {
|
||||
# If Installomator closed any processes, let's get the app opened again
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
|
||||
# don't reopen if REOPEN is not "yes"
|
||||
if [[ $REOPEN != yes ]]; then
|
||||
printlog "REOPEN=no, not reopening anything"
|
||||
return
|
||||
fi
|
||||
|
||||
# don't reopen in DEBUG mode
|
||||
if [[ $DEBUG -ne 0 ]]; then
|
||||
printlog "DEBUG mode, not reopening anything"
|
||||
return
|
||||
fi
|
||||
|
||||
if [[ $appClosed == 1 ]]; then
|
||||
printlog "Telling app $appName to open"
|
||||
#runAsUser osascript -e "tell app \"$appName\" to open"
|
||||
#runAsUser open -a "${appName}"
|
||||
reloadAsUser "open -a \"${appName}\""
|
||||
#reloadAsUser "open \"${(0)applist}\""
|
||||
processuser=$(ps aux | grep -i "${appName}" | grep -vi "grep" | awk '{print $1}')
|
||||
printlog "Reopened ${appName} as $processuser"
|
||||
else
|
||||
printlog "App not closed, so no reopen."
|
||||
fi
|
||||
}
|
||||
|
||||
installAppWithPath() { # $1: path to app to install in $targetDir
|
||||
# modified by: Søren Theilgaard (@theilgaard)
|
||||
appPath=${1?:"no path to app"}
|
||||
|
||||
# check if app exists
|
||||
if [ ! -e "$appPath" ]; then
|
||||
cleanupAndExit 8 "could not find: $appPath"
|
||||
fi
|
||||
|
||||
# verify with spctl
|
||||
printlog "Verifying: $appPath"
|
||||
if ! teamID=$(spctl -a -vv "$appPath" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' ); then
|
||||
cleanupAndExit 4 "Error verifying $appPath"
|
||||
fi
|
||||
|
||||
printlog "Team ID matching: $teamID (expected: $expectedTeamID )"
|
||||
|
||||
if [ "$expectedTeamID" != "$teamID" ]; then
|
||||
cleanupAndExit 5 "Team IDs do not match"
|
||||
fi
|
||||
|
||||
# versioncheck
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
appNewVersion=$(defaults read $appPath/Contents/Info.plist $versionKey)
|
||||
if [[ $appversion == $appNewVersion ]]; then
|
||||
printlog "Downloaded version of $name is $appNewVersion, same as installed."
|
||||
if [[ $INSTALL != "force" ]]; then
|
||||
message="$name, version $appNewVersion, is the latest version."
|
||||
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
|
||||
printlog "notifying"
|
||||
displaynotification "$message" "No update for $name!"
|
||||
fi
|
||||
cleanupAndExit 0 "No new version to install"
|
||||
else
|
||||
printlog "Using force to install anyway."
|
||||
fi
|
||||
else
|
||||
printlog "Downloaded version of $name is $appNewVersion (replacing version $appversion)."
|
||||
fi
|
||||
|
||||
# skip install for DEBUG
|
||||
if [ "$DEBUG" -ne 0 ]; then
|
||||
printlog "DEBUG enabled, skipping remove, copy and chown steps"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# check for root
|
||||
if [ "$(whoami)" != "root" ]; then
|
||||
# not running as root
|
||||
cleanupAndExit 6 "not running as root, exiting"
|
||||
fi
|
||||
|
||||
# remove existing application
|
||||
if [ -e "$targetDir/$appName" ]; then
|
||||
printlog "Removing existing $targetDir/$appName"
|
||||
rm -Rf "$targetDir/$appName"
|
||||
fi
|
||||
|
||||
# copy app to /Applications
|
||||
printlog "Copy $appPath to $targetDir"
|
||||
if ! ditto "$appPath" "$targetDir/$appName"; then
|
||||
cleanupAndExit 7 "Error while copying"
|
||||
fi
|
||||
|
||||
|
||||
# set ownership to current user
|
||||
if [ "$currentUser" != "loginwindow" ]; then
|
||||
printlog "Changing owner to $currentUser"
|
||||
chown -R "$currentUser" "$targetDir/$appName"
|
||||
else
|
||||
printlog "No user logged in, not changing user"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
mountDMG() {
|
||||
# mount the dmg
|
||||
printlog "Mounting $tmpDir/$archiveName"
|
||||
# always pipe 'Y\n' in case the dmg requires an agreement
|
||||
if ! dmgmount=$(echo 'Y'$'\n' | hdiutil attach "$tmpDir/$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
|
||||
cleanupAndExit 3 "Error mounting $tmpDir/$archiveName"
|
||||
fi
|
||||
|
||||
if [[ ! -e $dmgmount ]]; then
|
||||
printlog "Error mounting $tmpDir/$archiveName"
|
||||
cleanupAndExit 3
|
||||
fi
|
||||
|
||||
printlog "Mounted: $dmgmount"
|
||||
}
|
||||
|
||||
installFromDMG() {
|
||||
mountDMG
|
||||
|
||||
installAppWithPath "$dmgmount/$appName"
|
||||
}
|
||||
|
||||
installFromPKG() {
|
||||
# verify with spctl
|
||||
printlog "Verifying: $archiveName"
|
||||
|
||||
if ! spctlout=$(spctl -a -vv -t install "$archiveName" 2>&1 ); then
|
||||
printlog "Error verifying $archiveName"
|
||||
cleanupAndExit 4
|
||||
fi
|
||||
|
||||
teamID=$(echo $spctlout | awk -F '(' '/origin=/ {print $2 }' | tr -d '()' )
|
||||
|
||||
# Apple signed software has no teamID, grab entire origin instead
|
||||
if [[ -z $teamID ]]; then
|
||||
teamID=$(echo $spctlout | awk -F '=' '/origin=/ {print $NF }')
|
||||
fi
|
||||
|
||||
|
||||
printlog "Team ID: $teamID (expected: $expectedTeamID )"
|
||||
|
||||
if [ "$expectedTeamID" != "$teamID" ]; then
|
||||
printlog "Team IDs do not match!"
|
||||
cleanupAndExit 5
|
||||
fi
|
||||
|
||||
# Check version of pkg to be installed if packageID is set
|
||||
if [[ $packageID != "" && $appversion != "" ]]; then
|
||||
printlog "Checking package version."
|
||||
pkgutil --expand "$archiveName" "$archiveName"_pkg
|
||||
#printlog "$(cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null)"
|
||||
appNewVersion=$(cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null | grep -i "$packageID" | tr ' ' '\n' | grep -i version | cut -d \" -f 2) #sed -E 's/.*\"([0-9.]*)\".*/\1/g'
|
||||
rm -r "$archiveName"_pkg
|
||||
printlog "Downloaded package $packageID version $appNewVersion"
|
||||
if [[ $appversion == $appNewVersion ]]; then
|
||||
printlog "Downloaded version of $name is the same as installed."
|
||||
if [[ $INSTALL != "force" ]]; then
|
||||
message="$name, version $appNewVersion, is the latest version."
|
||||
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
|
||||
printlog "notifying"
|
||||
displaynotification "$message" "No update for $name!"
|
||||
fi
|
||||
cleanupAndExit 0 "No new version to install"
|
||||
else
|
||||
printlog "Using force to install anyway."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# skip install for DEBUG
|
||||
if [ "$DEBUG" -ne 0 ]; then
|
||||
printlog "DEBUG enabled, skipping installation"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# check for root
|
||||
if [ "$(whoami)" != "root" ]; then
|
||||
# not running as root
|
||||
cleanupAndExit 6 "not running as root, exiting"
|
||||
fi
|
||||
|
||||
# install pkg
|
||||
printlog "Installing $archiveName to $targetDir"
|
||||
if ! installer -pkg "$archiveName" -tgt "$targetDir" ; then
|
||||
printlog "error installing $archiveName"
|
||||
cleanupAndExit 9
|
||||
fi
|
||||
}
|
||||
|
||||
installFromZIP() {
|
||||
# unzip the archive
|
||||
printlog "Unzipping $archiveName"
|
||||
|
||||
# tar -xf "$archiveName"
|
||||
|
||||
# note: when you expand a zip using tar in Mojave the expanded
|
||||
# app will never pass the spctl check
|
||||
|
||||
# unzip -o -qq "$archiveName"
|
||||
|
||||
# note: githubdesktop fails spctl verification when expanded
|
||||
# with unzip
|
||||
|
||||
ditto -x -k "$archiveName" "$tmpDir"
|
||||
installAppWithPath "$tmpDir/$appName"
|
||||
}
|
||||
|
||||
installFromTBZ() {
|
||||
# unzip the archive
|
||||
printlog "Unzipping $archiveName"
|
||||
tar -xf "$archiveName"
|
||||
installAppWithPath "$tmpDir/$appName"
|
||||
}
|
||||
|
||||
installPkgInDmg() {
|
||||
mountDMG
|
||||
# locate pkg in dmg
|
||||
if [[ -z $pkgName ]]; then
|
||||
# find first file ending with 'pkg'
|
||||
findfiles=$(find "$dmgmount" -iname "*.pkg" -maxdepth 1 )
|
||||
filearray=( ${(f)findfiles} )
|
||||
if [[ ${#filearray} -eq 0 ]]; then
|
||||
cleanupAndExit 20 "couldn't find pkg in dmg $archiveName"
|
||||
fi
|
||||
archiveName="${filearray[1]}"
|
||||
printlog "found pkg: $archiveName"
|
||||
else
|
||||
# it is now safe to overwrite archiveName for installFromPKG
|
||||
archiveName="$dmgmount/$pkgName"
|
||||
fi
|
||||
|
||||
# installFromPkgs
|
||||
installFromPKG
|
||||
}
|
||||
|
||||
installPkgInZip() {
|
||||
# unzip the archive
|
||||
printlog "Unzipping $archiveName"
|
||||
tar -xf "$archiveName"
|
||||
|
||||
# locate pkg in zip
|
||||
if [[ -z $pkgName ]]; then
|
||||
# find first file ending with 'pkg'
|
||||
findfiles=$(find "$tmpDir" -iname "*.pkg" -maxdepth 2 )
|
||||
filearray=( ${(f)findfiles} )
|
||||
if [[ ${#filearray} -eq 0 ]]; then
|
||||
cleanupAndExit 20 "couldn't find pkg in zip $archiveName"
|
||||
fi
|
||||
archiveName="${filearray[1]}"
|
||||
# it is now safe to overwrite archiveName for installFromPKG
|
||||
printlog "found pkg: $archiveName"
|
||||
else
|
||||
# it is now safe to overwrite archiveName for installFromPKG
|
||||
archiveName="$tmpDir/$pkgName"
|
||||
fi
|
||||
|
||||
# installFromPkgs
|
||||
installFromPKG
|
||||
}
|
||||
|
||||
installAppInDmgInZip() {
|
||||
# unzip the archive
|
||||
printlog "Unzipping $archiveName"
|
||||
tar -xf "$archiveName"
|
||||
|
||||
# locate dmg in zip
|
||||
if [[ -z $pkgName ]]; then
|
||||
# find first file ending with 'dmg'
|
||||
findfiles=$(find "$tmpDir" -iname "*.dmg" -maxdepth 2 )
|
||||
filearray=( ${(f)findfiles} )
|
||||
if [[ ${#filearray} -eq 0 ]]; then
|
||||
cleanupAndExit 20 "couldn't find dmg in zip $archiveName"
|
||||
fi
|
||||
archiveName="$(basename ${filearray[1]})"
|
||||
# it is now safe to overwrite archiveName for installFromDMG
|
||||
printlog "found dmg: $tmpDir/$archiveName"
|
||||
else
|
||||
# it is now safe to overwrite archiveName for installFromDMG
|
||||
archiveName="$pkgName"
|
||||
fi
|
||||
|
||||
# installFromDMG, DMG expected to include an app (will not work with pkg)
|
||||
installFromDMG
|
||||
}
|
||||
|
||||
runUpdateTool() {
|
||||
printlog "Function called: runUpdateTool"
|
||||
if [[ -x $updateTool ]]; then
|
||||
printlog "running $updateTool $updateToolArguments"
|
||||
if [[ -n $updateToolRunAsCurrentUser ]]; then
|
||||
runAsUser $updateTool ${updateToolArguments}
|
||||
else
|
||||
$updateTool ${updateToolArguments}
|
||||
fi
|
||||
if [[ $? -ne 0 ]]; then
|
||||
cleanupAndExit 15 "Error running $updateTool"
|
||||
fi
|
||||
else
|
||||
printlog "couldn't find $updateTool, continuing normally"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
finishing() {
|
||||
printlog "Finishing…"
|
||||
sleep 10 # wait a moment to let spotlight catch up
|
||||
getAppVersion
|
||||
|
||||
if [[ -z $appversion ]]; then
|
||||
message="Installed $name"
|
||||
else
|
||||
message="Installed $name, version $appversion"
|
||||
fi
|
||||
|
||||
printlog "$message"
|
||||
|
||||
if [[ $currentUser != "loginwindow" && ( $NOTIFY == "success" || $NOTIFY == "all" ) ]]; then
|
||||
printlog "notifying"
|
||||
displaynotification "$message" "$name update/installation complete!"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
203
fragments/header.sh
Normal file
203
fragments/header.sh
Normal file
@@ -0,0 +1,203 @@
|
||||
#!/bin/zsh
|
||||
label="" # if no label is sent to the script, this will be used
|
||||
|
||||
# Installomator
|
||||
#
|
||||
# Downloads and installs Applications
|
||||
# 2020-2021 Installomator
|
||||
#
|
||||
# inspired by the download scripts from William Smith and Sander Schram
|
||||
#
|
||||
# Contributers:
|
||||
# Armin Briegel - @scriptingosx
|
||||
# Isaac Ordonez - @issacatmann
|
||||
# Søren Theilgaard - @Theile
|
||||
# Adam Codega - @acodega
|
||||
#
|
||||
# with contributions from many others
|
||||
|
||||
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||
|
||||
# NOTE: adjust these variables:
|
||||
|
||||
# set to 0 for production, 1 for debugging
|
||||
# while debugging, items will be downloaded to the parent directory of this script
|
||||
# also no actual installation will be performed
|
||||
DEBUG=1
|
||||
|
||||
# notify behavior
|
||||
NOTIFY=success
|
||||
# options:
|
||||
# - success notify the user on success
|
||||
# - silent no notifications
|
||||
# - all all notifications (great for Self Service installation)
|
||||
|
||||
|
||||
# behavior when blocking processes are found
|
||||
BLOCKING_PROCESS_ACTION=tell_user
|
||||
# options:
|
||||
# - ignore continue even when blocking processes are found
|
||||
# - quit app will be told to quit nicely, if running
|
||||
# - quit_kill told to quit twice, then it will be killed
|
||||
# Could be great for service apps, if they do not respawn
|
||||
# - silent_fail exit script without prompt or installation
|
||||
# - prompt_user show a user dialog for each blocking process found
|
||||
# abort after three attempts to quit
|
||||
# (only if user accepts to quit the apps, otherwise
|
||||
# the update is cancelled).
|
||||
# - prompt_user_then_kill
|
||||
# show a user dialog for each blocking process found,
|
||||
# attempt to quit two times, kill the process finally
|
||||
# - prompt_user_loop
|
||||
# Like prompt-user, but clicking "Not Now", will just wait an hour,
|
||||
# and then it will ask again.
|
||||
# WARNING! It might block the MDM agent on the machine, as
|
||||
# the scripts gets stuct in waiting until the hour has passed,
|
||||
# possibly blocking for other management actions in this time.
|
||||
# - tell_user User will be showed a notification about the important update,
|
||||
# but user is only allowed to quit and continue, and then we
|
||||
# ask the app to quit.
|
||||
# - tell_user_then_kill
|
||||
# Show dialog 2 times, and if the quitting fails, the
|
||||
# blocking processes will be killed.
|
||||
# - kill kill process without prompting or giving the user a chance to save
|
||||
|
||||
|
||||
# logo-icon used in dialog boxes if app is blocking
|
||||
LOGO=appstore
|
||||
# options:
|
||||
# - appstore Icon is Apple App Store (default)
|
||||
# - jamf JAMF Pro
|
||||
# - mosyleb Mosyle Business
|
||||
# - mosylem Mosyle Manager (Education)
|
||||
# - addigy Addigy
|
||||
# path can also be set in the command call, and if file exists, it will be used.
|
||||
# Like 'LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"'
|
||||
# (spaces have to be escaped).
|
||||
|
||||
|
||||
# App Store apps handling
|
||||
IGNORE_APP_STORE_APPS=no
|
||||
# options:
|
||||
# - no If installed app is from App Store (which include VPP installed apps)
|
||||
# it will not be touched, no matter it's version (default)
|
||||
# - yes Replace App Store (and VPP) version of app and handle future
|
||||
# updates using Installomator, even if latest version.
|
||||
# Shouldn’t give any problems for the user in most cases.
|
||||
# Known bad example: Slack will loose all settings.
|
||||
|
||||
|
||||
# install behavior
|
||||
INSTALL=""
|
||||
# options:
|
||||
# - When not set, software will only be installed
|
||||
# if it is newer/different in version
|
||||
# - force Install even if it’s the same version
|
||||
|
||||
|
||||
# Re-opening of closed app
|
||||
REOPEN="yes"
|
||||
# options:
|
||||
# - yes App wil be reopened if it was closed
|
||||
# - no App not reopened
|
||||
|
||||
|
||||
# NOTE: How labels work
|
||||
|
||||
# Each workflow label needs to be listed in the case statement below.
|
||||
# for each label these variables can be set:
|
||||
#
|
||||
# - name: (required)
|
||||
# Name of the installed app.
|
||||
# This is used to derive many of the other variables.
|
||||
#
|
||||
# - type: (required)
|
||||
# The type of the installation. Possible values:
|
||||
# - dmg
|
||||
# - pkg
|
||||
# - zip
|
||||
# - tbz
|
||||
# - pkgInDmg
|
||||
# - pkgInZip
|
||||
# - appInDmgInZip
|
||||
# - updateronly This last one is for labels that should only run an updateTool (see below)
|
||||
#
|
||||
# - packageID: (optional)
|
||||
# The package ID of a pkg
|
||||
# If given, will be used to find version of installed software, instead of searching for an app.
|
||||
# Usefull if a pkg does not install an app.
|
||||
# See label installomator_st
|
||||
#
|
||||
# - downloadURL: (required)
|
||||
# URL to download the dmg.
|
||||
# Can be generated with a series of commands (see BBEdit for an example).
|
||||
#
|
||||
# - appNewVersion: (optional)
|
||||
# Version of the downloaded software.
|
||||
# If given, it will be compared to installed version, to see if download is different.
|
||||
# It does not check for newer or not, only different.
|
||||
#
|
||||
# - versionKey: (optional)
|
||||
# How we get version number from app. Possible values:
|
||||
# - CFBundleShortVersionString
|
||||
# - CFBundleVersion
|
||||
# Not all software titles uses fields the same.
|
||||
# See Opera label.
|
||||
#
|
||||
# - appCustomVersion(){}: (optional function)
|
||||
# This function can be added to your label, if a specific custom
|
||||
# mechanism hs to be used for getting the installed version.
|
||||
# See labels zulujdk11, zulujdk13, zulujdk15
|
||||
#
|
||||
# - expectedTeamID: (required)
|
||||
# 10-digit developer team ID.
|
||||
# Obtain the team ID by running:
|
||||
#
|
||||
# - Applications (in dmgs or zips)
|
||||
# spctl -a -vv /Applications/BBEdit.app
|
||||
#
|
||||
# - Pkgs
|
||||
# spctl -a -vv -t install ~/Downloads/desktoppr-0.2.pkg
|
||||
#
|
||||
# The team ID is the ten-digit ID at the end of the line starting with 'origin='
|
||||
#
|
||||
# - archiveName: (optional)
|
||||
# The name of the downloaded file.
|
||||
# When not given the archiveName is derived from the $name.
|
||||
#
|
||||
# - appName: (optional)
|
||||
# File name of the app bundle in the dmg to verify and copy (include .app).
|
||||
# When not given, the appName is derived from the $name.
|
||||
#
|
||||
# - targetDir: (optional)
|
||||
# dmg or zip:
|
||||
# Applications will be copied to this directory.
|
||||
# Default value is '/Applications' for dmg and zip installations.
|
||||
# pkg:
|
||||
# targetDir is used as the install-location. Default is '/'.
|
||||
#
|
||||
# - blockingProcesses: (optional)
|
||||
# Array of process names that will block the installation or update.
|
||||
# If no blockingProcesses array is given the default will be:
|
||||
# blockingProcesses=( $name )
|
||||
# When a package contains multiple applications, _all_ should be listed, e.g:
|
||||
# blockingProcesses=( "Keynote" "Pages" "Numbers" )
|
||||
# When a workflow has no blocking processes, use
|
||||
# blockingProcesses=( NONE )
|
||||
#
|
||||
# - pkgName: (optional, only used for pkgInDmg, dmgInZip, and appInDmgInZip)
|
||||
# File name of the pkg/dmg file _inside_ the dmg or zip
|
||||
# When not given the pkgName is derived from the $name
|
||||
#
|
||||
# - updateTool:
|
||||
# - updateToolArguments:
|
||||
# When Installomator detects an existing installation of the application,
|
||||
# and the updateTool variable is set
|
||||
# $updateTool $updateArguments
|
||||
# Will be run instead of of downloading and installing a complete new version.
|
||||
# Use this when the updateTool does differential and optimized downloads.
|
||||
# e.g. msupdate
|
||||
#
|
||||
# - updateToolRunAsCurrentUser:
|
||||
# When this variable is set (any value), $updateTool will be run as the current user.
|
||||
#
|
||||
9
fragments/labels/1password7.sh
Normal file
9
fragments/labels/1password7.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
1password7)
|
||||
name="1Password 7"
|
||||
type="pkg"
|
||||
downloadURL="https://app-updates.agilebits.com/download/OPM7"
|
||||
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | sed -E 's/.*\/[0-9a-zA-Z]*-([0-9.]*)\..*/\1/g' )
|
||||
expectedTeamID="2BUA8C4S2C"
|
||||
blockingProcesses=( "1Password Extension Helper" "1Password 7" "1Password (Safari)" "1PasswordNativeMessageHost" "1PasswordSafariAppExtension" )
|
||||
#forcefulQuit=YES
|
||||
;;
|
||||
8
fragments/labels/4kvideodownloader.sh
Normal file
8
fragments/labels/4kvideodownloader.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
4kvideodownloader)
|
||||
name="4K Video Downloader"
|
||||
type="dmg"
|
||||
downloadURL="$(curl -fsL "https://www.4kdownload.com/products/product-videodownloader" | grep -E -o "https:\/\/dl\.4kdownload\.com\/app\/4kvideodownloader_.*?.dmg\?source=website" | head -1)"
|
||||
appNewVersion=$(echo "${downloadURL}" | sed -E 's/.*\/[0-9a-zA-Z]*_([0-9.]*)\.dmg.*/\1/g')
|
||||
versionKey="CFBundleVersion"
|
||||
expectedTeamID="GHQ37VJF83"
|
||||
;;
|
||||
9
fragments/labels/8x8.sh
Normal file
9
fragments/labels/8x8.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
8x8)
|
||||
# credit: #D-A-James from MacAdmins Slack and Isaac Ordonez, Mann consulting (@mannconsulting)
|
||||
name="8x8 Work"
|
||||
type="dmg"
|
||||
downloadURL=$(curl -fs -L https://support.8x8.com/cloud-phone-service/voice/work-desktop/download-8x8-work-for-desktop | grep -m 1 -o "https.*dmg" | sed 's/\"//' | awk '{print $1}')
|
||||
# As for appNewVersion, it needs to be checked for newer version than 7.2.4
|
||||
appNewVersion=$(curl -fs -L https://support.8x8.com/cloud-phone-service/voice/work-desktop/download-8x8-work-for-desktop | grep -m 1 -o "https.*dmg" | sed 's/\"//' | awk '{print $1}' | sed -E 's/.*-v([0-9\.]*)[-\.]*.*/\1/' )
|
||||
expectedTeamID="FC967L3QRG"
|
||||
;;
|
||||
7
fragments/labels/abstract.sh
Normal file
7
fragments/labels/abstract.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
abstract)
|
||||
name="Abstract"
|
||||
type="zip"
|
||||
downloadURL="https://api.goabstract.com/releases/latest/download"
|
||||
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g' )
|
||||
expectedTeamID="77MZLZE47D"
|
||||
;;
|
||||
7
fragments/labels/adobebrackets.sh
Normal file
7
fragments/labels/adobebrackets.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
adobebrackets)
|
||||
name="Brackets"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit adobe brackets )
|
||||
appNewVersion=$(versionFromGit adobe brackets )
|
||||
expectedTeamID="JQ525L2MZD"
|
||||
;;
|
||||
10
fragments/labels/adobeconnect.sh
Normal file
10
fragments/labels/adobeconnect.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
adobeconnect)
|
||||
# credit: Oh4sh0 https://github.com/Oh4sh0
|
||||
# Comment by Søren: I do not know this software.
|
||||
# Looks like it's an Adobe installer in an app, so it will probably not work
|
||||
name="AdobeConnectInstaller"
|
||||
type="dmg"
|
||||
downloadURL="http://www.adobe.com/go/ConnectSetupMac"
|
||||
appNewVersion=$(curl -fs https://helpx.adobe.com/adobe-connect/connect-downloads-updates.html | grep "Mac" | grep version | head -1 | sed -E 's/.*\(version ([0-9\.]*),.*/\1/g')
|
||||
expectedTeamID="JQ525L2MZD"
|
||||
;;
|
||||
9
fragments/labels/adobereaderdc-update.sh
Normal file
9
fragments/labels/adobereaderdc-update.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
adobereaderdc-update)
|
||||
name="Adobe Acrobat Reader DC"
|
||||
type="pkgInDmg"
|
||||
downloadURL=$(adobecurrent=`curl --fail --silent https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/reader/current_version.txt | tr -d '.'` && echo http://ardownload.adobe.com/pub/adobe/reader/mac/AcrobatDC/"$adobecurrent"/AcroRdrDCUpd"$adobecurrent"_MUI.dmg)
|
||||
appNewVersion=$(curl -s https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/reader/current_version.txt)
|
||||
#appNewVersion=$(curl -s -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15)" https://get.adobe.com/reader/ | grep ">Version" | sed -E 's/.*Version 20([0-9.]*)<.*/\1/g') # credit: Søren Theilgaard (@theilgaard)
|
||||
expectedTeamID="JQ525L2MZD"
|
||||
blockingProcesses=( "AdobeReader" )
|
||||
;;
|
||||
11
fragments/labels/adobereaderdc.sh
Normal file
11
fragments/labels/adobereaderdc.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
adobereaderdc|\
|
||||
adobereaderdc-install)
|
||||
name="Adobe Acrobat Reader DC"
|
||||
type="pkgInDmg"
|
||||
packageID="com.adobe.acrobat.DC.reader.app.pkg.MUI"
|
||||
downloadURL=$(curl --silent --fail -H "Sec-Fetch-Site: same-origin" -H "Accept-Encoding: gzip, deflate, br" -H "Accept-Language: en-US;q=0.9,en;q=0.8" -H "DNT: 1" -H "Sec-Fetch-Mode: cors" -H "X-Requested-With: XMLHttpRequest" -H "Referer: https://get.adobe.com/reader/enterprise/" -H "Accept: */*" "https://get.adobe.com/reader/webservices/json/standalone/?platform_type=Macintosh&platform_dist=OSX&platform_arch=x86-32&language=English&eventname=readerotherversions" | grep -Eo '"download_url":.*?[^\]",' | head -n 1 | cut -d \" -f 4)
|
||||
appNewVersion=$(curl -s https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/reader/current_version.txt)
|
||||
#appNewVersion=$(curl -s -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15)" https://get.adobe.com/reader/ | grep ">Version" | sed -E 's/.*Version 20([0-9.]*)<.*/\1/g') # credit: Søren Theilgaard (@theilgaard)
|
||||
expectedTeamID="JQ525L2MZD"
|
||||
blockingProcesses=( "AdobeReader" )
|
||||
;;
|
||||
7
fragments/labels/aircall.sh
Normal file
7
fragments/labels/aircall.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
aircall)
|
||||
# credit: @kris-anderson
|
||||
name="Aircall"
|
||||
type="dmg"
|
||||
downloadURL="https://electron.aircall.io/download/osx"
|
||||
expectedTeamID="3ML357Q795"
|
||||
;;
|
||||
8
fragments/labels/airserver.sh
Normal file
8
fragments/labels/airserver.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
airserver)
|
||||
# credit: AP Orlebeke (@apizz)
|
||||
name="AirServer"
|
||||
type="dmg"
|
||||
downloadURL="https://www.airserver.com/download/mac/latest"
|
||||
#appNewVersion=$() # Cannot find version history or release notes on home page
|
||||
expectedTeamID="6C755KS5W3"
|
||||
;;
|
||||
7
fragments/labels/airtame.sh
Normal file
7
fragments/labels/airtame.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
airtame)
|
||||
name="Airtame"
|
||||
type="dmg"
|
||||
downloadURL="$(curl -fs https://airtame.com/download/ | grep -i platform=mac | head -1 | grep -o -i -E "https.*" | cut -d '"' -f1)"
|
||||
appNewVersion="$(curl -fsIL "${downloadURL}" | grep -i ^location | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')"
|
||||
expectedTeamID="4TPSP88HN2"
|
||||
;;
|
||||
7
fragments/labels/aldente.sh
Normal file
7
fragments/labels/aldente.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
aldente)
|
||||
name="AlDente"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit davidwernhart AlDente)
|
||||
appNewVersion=$(versionFromGit davidwernhart AlDente)
|
||||
expectedTeamID="3WVC84GB99"
|
||||
;;
|
||||
9
fragments/labels/alfred.sh
Normal file
9
fragments/labels/alfred.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
alfred)
|
||||
# credit: AP Orlebeke (@apizz)
|
||||
name="Alfred"
|
||||
type="dmg"
|
||||
downloadURL=$(curl -fs https://www.alfredapp.com | awk -F '"' "/dmg/ {print \$2}" | head -1)
|
||||
appNewVersion=$(echo "${downloadURL}" | sed -E 's/.*Alfred_([0-9.]*)_.*/\1/')
|
||||
appName="Alfred 4.app"
|
||||
expectedTeamID="XZZXE9SED4"
|
||||
;;
|
||||
7
fragments/labels/alttab.sh
Normal file
7
fragments/labels/alttab.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
alttab)
|
||||
# credit: Gabe Marchan (gabemarchan.com - @darklink87)
|
||||
name="AltTab"
|
||||
type="zip"
|
||||
downloadURL=$(downloadURLFromGit lwouis alt-tab-macos)
|
||||
expectedTeamID="QXD7GW8FHY"
|
||||
;;
|
||||
8
fragments/labels/amazonchime.sh
Normal file
8
fragments/labels/amazonchime.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
amazonchime)
|
||||
# credit: @dvsjr macadmins slack
|
||||
name="Amazon Chime"
|
||||
type="dmg"
|
||||
downloadURL="https://clients.chime.aws/mac/latest"
|
||||
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | sed -E 's/.*\/[a-zA-Z.\-]*-([0-9.]*)\..*/\1/g' )
|
||||
expectedTeamID="94KV3E626L"
|
||||
;;
|
||||
8
fragments/labels/amazonworkspaces.sh
Normal file
8
fragments/labels/amazonworkspaces.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
amazonworkspaces)
|
||||
# credit: Isaac Ordonez, Mann consulting (@mannconsulting)
|
||||
name="Workspaces"
|
||||
type="pkg"
|
||||
downloadURL="https://d2td7dqidlhjx7.cloudfront.net/prod/global/osx/WorkSpaces.pkg"
|
||||
appNewVersion=$(curl -fs https://d2td7dqidlhjx7.cloudfront.net/prod/iad/osx/WorkSpacesAppCast_macOS_20171023.xml | grep -o "Version*.*<" | head -1 | cut -d " " -f2 | cut -d "<" -f1)
|
||||
expectedTeamID="94KV3E626L"
|
||||
;;
|
||||
7
fragments/labels/androidfiletransfer.sh
Normal file
7
fragments/labels/androidfiletransfer.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
androidfiletransfer)
|
||||
#credit: Sam Ess (saess-sep)
|
||||
name="Android File Transfer"
|
||||
type="dmg"
|
||||
downloadURL="https://dl.google.com/dl/androidjumper/mtp/current/AndroidFileTransfer.dmg"
|
||||
expectedTeamID="EQHXZ8M8AV"
|
||||
;;
|
||||
7
fragments/labels/anydesk.sh
Normal file
7
fragments/labels/anydesk.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
anydesk)
|
||||
name="AnyDesk"
|
||||
type="dmg"
|
||||
downloadURL="https://download.anydesk.com/anydesk.dmg"
|
||||
appNewVersion="$(curl -fs https://anydesk.com/da/downloads/mac-os | grep -i "d-block" | grep -E -o ">v[0-9.]* .*MB" | sed -E 's/.*v([0-9.]*) .*/\1/g')"
|
||||
expectedTeamID="KU6W3B6JMZ"
|
||||
;;
|
||||
6
fragments/labels/apparency.sh
Normal file
6
fragments/labels/apparency.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
apparency)
|
||||
name="Apparency"
|
||||
type="dmg"
|
||||
downloadURL="https://www.mothersruin.com/software/downloads/Apparency.dmg"
|
||||
expectedTeamID="936EB786NH"
|
||||
;;
|
||||
7
fragments/labels/appcleaner.sh
Normal file
7
fragments/labels/appcleaner.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
appcleaner)
|
||||
# credit: Tadayuki Onishi (@kenchan0130)
|
||||
name="AppCleaner"
|
||||
type="zip"
|
||||
downloadURL=$(curl -fs https://freemacsoft.net/appcleaner/Updates.xml | xpath '//rss/channel/*/enclosure/@url' 2>/dev/null | tr " " "\n" | sort | tail -1 | cut -d '"' -f 2)
|
||||
expectedTeamID="X85ZX835W9"
|
||||
;;
|
||||
7
fragments/labels/applenyfonts.sh
Normal file
7
fragments/labels/applenyfonts.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
applenyfonts)
|
||||
name="Apple New York Font Collection"
|
||||
type="pkgInDmg"
|
||||
downloadURL="https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
||||
packageID="com.apple.pkg.NYFonts"
|
||||
expectedTeamID="Development Update"
|
||||
;;
|
||||
7
fragments/labels/applesfcompact.sh
Normal file
7
fragments/labels/applesfcompact.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
applesfcompact)
|
||||
name="San Francisco Compact"
|
||||
type="pkgInDmg"
|
||||
downloadURL="https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
|
||||
packageID="com.apple.pkg.SanFranciscoCompact"
|
||||
expectedTeamID="Development Update"
|
||||
;;
|
||||
7
fragments/labels/applesfmono.sh
Normal file
7
fragments/labels/applesfmono.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
applesfmono)
|
||||
name="San Francisco Mono"
|
||||
type="pkgInDmg"
|
||||
downloadURL="https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
|
||||
packageID="com.apple.pkg.SFMonoFonts"
|
||||
expectedTeamID="Software Update"
|
||||
;;
|
||||
7
fragments/labels/applesfpro.sh
Normal file
7
fragments/labels/applesfpro.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
applesfpro)
|
||||
name="San Francisco Pro"
|
||||
type="pkgInDmg"
|
||||
downloadURL="https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
||||
packageID="com.apple.pkg.SanFranciscoPro"
|
||||
expectedTeamID="Development Update"
|
||||
;;
|
||||
7
fragments/labels/applesfsymbols.sh
Normal file
7
fragments/labels/applesfsymbols.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
applesfsymbols|\
|
||||
sfsymbols)
|
||||
name="SF Symbols"
|
||||
type="pkgInDmg"
|
||||
downloadURL="https://developer.apple.com/design/downloads/SF-Symbols.dmg"
|
||||
expectedTeamID="Software Update"
|
||||
;;
|
||||
8
fragments/labels/aquaskk.sh
Normal file
8
fragments/labels/aquaskk.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
aquaskk)
|
||||
# credit: Tadayuki Onishi (@kenchan0130)
|
||||
name="aquaskk"
|
||||
type="pkg"
|
||||
downloadURL=$(downloadURLFromGit codefirst aquaskk)
|
||||
appNewVersion=$(versionFromGit codefirst aquaskk)
|
||||
expectedTeamID="FPZK4WRGW7"
|
||||
;;
|
||||
8
fragments/labels/arq7.sh
Normal file
8
fragments/labels/arq7.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
arq7)
|
||||
name="Arq7"
|
||||
type="pkg"
|
||||
packageID="com.haystacksoftware.Arq"
|
||||
downloadURL="https://arqbackup.com/download/arqbackup/Arq7.pkg"
|
||||
appNewVersion="$(curl -fs "https://arqbackup.com" | grep -io "version .*[0-9.]*.* for macOS" | cut -d ">" -f2 | cut -d "<" -f1)"
|
||||
expectedTeamID="48ZCSDVL96"
|
||||
;;
|
||||
7
fragments/labels/asana.sh
Normal file
7
fragments/labels/asana.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
asana)
|
||||
# credit: Lance Stephens (@pythoninthegrass on MacAdmins Slack)
|
||||
name="Asana"
|
||||
type="dmg"
|
||||
downloadURL="https://desktop-downloads.asana.com/darwin_x64/prod/latest/Asana.dmg"
|
||||
expectedTeamID="A679L395M8"
|
||||
;;
|
||||
7
fragments/labels/atext.sh
Normal file
7
fragments/labels/atext.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
atext)
|
||||
# credit: Gabe Marchan (gabemarchan.com - @darklink87)
|
||||
name="aText"
|
||||
type="dmg"
|
||||
downloadURL="https://trankynam.com/atext/downloads/aText.dmg"
|
||||
expectedTeamID="KHEMQ2FD9E"
|
||||
;;
|
||||
8
fragments/labels/atom.sh
Normal file
8
fragments/labels/atom.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
atom)
|
||||
name="Atom"
|
||||
type="zip"
|
||||
archiveName="atom-mac.zip"
|
||||
downloadURL=$(downloadURLFromGit atom atom )
|
||||
appNewVersion=$(versionFromGit atom atom)
|
||||
expectedTeamID="VEKTX9H2N7"
|
||||
;;
|
||||
8
fragments/labels/audacity.sh
Normal file
8
fragments/labels/audacity.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
audacity)
|
||||
# credit: Gabe Marchan (gabemarchan.com - @darklink87)
|
||||
name="Audacity"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit audacity audacity)
|
||||
appNewVersion=$(versionFromGit audacity audacity)
|
||||
expectedTeamID="T3N4JQ7YY6"
|
||||
;;
|
||||
7
fragments/labels/authydesktop.sh
Normal file
7
fragments/labels/authydesktop.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
authydesktop)
|
||||
name="Authy Desktop"
|
||||
type="dmg"
|
||||
downloadURL="https://electron.authy.com/download?channel=stable&arch=x64&platform=darwin&version=latest&product=authy"
|
||||
appNewVersion="$(curl -sfL --output /dev/null -r 0-0 "${downloadURL}" --remote-header-name --remote-name -w "%{url_effective}\n" | grep -o -E '([a-zA-Z0-9\_.%-]*)\.(dmg|pkg|zip|tbz)$' | sed -E 's/.*-([0-9.]*)\.dmg/\1/g')"
|
||||
expectedTeamID="9EVH78F4V4"
|
||||
;;
|
||||
8
fragments/labels/autodmg.sh
Normal file
8
fragments/labels/autodmg.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
autodmg)
|
||||
# credit: Mischa van der Bent (@mischavdbent)
|
||||
name="AutoDMG"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit MagerValp AutoDMG)
|
||||
appNewVersion=$(versionFromGit MagerValp AutoDMG)
|
||||
expectedTeamID="5KQ3D3FG5H"
|
||||
;;
|
||||
9
fragments/labels/autopkgr.sh
Normal file
9
fragments/labels/autopkgr.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
autopkgr)
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="AutoPkgr"
|
||||
type="dmg"
|
||||
#downloadURL=$(curl -fs "https://api.github.com/repos/lindegroup/autopkgr/releases/latest" | awk -F '"' "/browser_download_url/ && /dmg/ && ! /sig/ && ! /CLI/ && ! /sha256/ { print \$4 }")
|
||||
downloadURL=$(downloadURLFromGit lindegroup autopkgr)
|
||||
appNewVersion=$(versionFromGit lindegroup autopkgr)
|
||||
expectedTeamID="JVY2ZR6SEF"
|
||||
;;
|
||||
7
fragments/labels/aviatrix.sh
Normal file
7
fragments/labels/aviatrix.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
aviatrix)
|
||||
# credit: Isaac Ordonez, Mann consulting (@mannconsulting)
|
||||
name="Aviatrix VPN Client"
|
||||
type="pkg"
|
||||
downloadURL="https://s3-us-west-2.amazonaws.com/aviatrix-download/AviatrixVPNClient/AVPNC_mac.pkg"
|
||||
expectedTeamID="32953Z7NBN"
|
||||
;;
|
||||
9
fragments/labels/awscli2.sh
Normal file
9
fragments/labels/awscli2.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
awscli2)
|
||||
# credit: Bilal Habib (@Pro4TLZZ)
|
||||
name="AWSCLI"
|
||||
type="pkg"
|
||||
packageID="com.amazon.aws.cli2"
|
||||
downloadURL="https://awscli.amazonaws.com/AWSCLIV2.pkg"
|
||||
appNewVersion=$( curl -fs "https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst" | grep -i "CHANGELOG" -a4 | grep "[0-9.]" )
|
||||
expectedTeamID="94KV3E626L"
|
||||
;;
|
||||
7
fragments/labels/awsvpnclient.sh
Normal file
7
fragments/labels/awsvpnclient.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
awsvpnclient)
|
||||
name="AWS VPN Client"
|
||||
type="pkg"
|
||||
downloadURL="https://d20adtppz83p9s.cloudfront.net/OSX/latest/AWS_VPN_Client.pkg"
|
||||
expectedTeamID="94KV3E626L"
|
||||
appNewVersion=$(curl -is "https://beta2.communitypatch.com/jamf/v1/ba1efae22ae74a9eb4e915c31fef5dd2/patch/AWSVPNClient" | grep currentVersion | tr ',' '\n' | grep currentVersion | cut -d '"' -f 4)
|
||||
;;
|
||||
7
fragments/labels/balenaetcher.sh
Normal file
7
fragments/labels/balenaetcher.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
balenaetcher)
|
||||
name="balenaEtcher"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit balena-io etcher )
|
||||
appNewVersion=$(versionFromGit balena-io etcher )
|
||||
expectedTeamID="66H43P8FRG"
|
||||
;;
|
||||
7
fragments/labels/balsamiqwireframes.sh
Normal file
7
fragments/labels/balsamiqwireframes.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
balsamiqwireframes)
|
||||
# credit: Gabe Marchan (gabemarchan.com - @darklink87)
|
||||
name="Balsamiq Wireframes"
|
||||
type="dmg"
|
||||
downloadURL=https://builds.balsamiq.com/bwd/$(curl -fs "https://builds.balsamiq.com" | awk -F "<Key>bwd/" "/dmg/ {print \$3}" | awk -F "</Key>" "{print \$1}" | sed "s/ /%20/g")
|
||||
expectedTeamID="3DPKD72KQ7"
|
||||
;;
|
||||
7
fragments/labels/bartender.sh
Normal file
7
fragments/labels/bartender.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
bartender)
|
||||
# credit: Gabe Marchan (gabemarchan.com - @darklink87)
|
||||
name="Bartender 4"
|
||||
type="dmg"
|
||||
downloadURL="https://www.macbartender.com/B2/updates/B4Latest/Bartender%204.dmg"
|
||||
expectedTeamID="8DD663WDX4"
|
||||
;;
|
||||
8
fragments/labels/basecamp3.sh
Normal file
8
fragments/labels/basecamp3.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
basecamp3)
|
||||
#credit: @matins
|
||||
name="Basecamp 3"
|
||||
type="dmg"
|
||||
downloadURL="https://bc3-desktop.s3.amazonaws.com/mac/basecamp3.dmg"
|
||||
expectedTeamID="2WNYUYRS7G"
|
||||
appName="Basecamp 3.app"
|
||||
;;
|
||||
7
fragments/labels/bbedit.sh
Normal file
7
fragments/labels/bbedit.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
bbedit)
|
||||
name="BBEdit"
|
||||
type="dmg"
|
||||
downloadURL=$(curl -s https://versioncheck.barebones.com/BBEdit.xml | grep dmg | sort | tail -n1 | cut -d">" -f2 | cut -d"<" -f1)
|
||||
appNewVersion=$(curl -s https://versioncheck.barebones.com/BBEdit.xml | grep dmg | sort | tail -n1 | sed -E 's/.*BBEdit_([0-9 .]*)\.dmg.*/\1/')
|
||||
expectedTeamID="W52GZAXT98"
|
||||
;;
|
||||
8
fragments/labels/bettertouchtool.sh
Normal file
8
fragments/labels/bettertouchtool.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
bettertouchtool)
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="BetterTouchTool"
|
||||
type="zip"
|
||||
downloadURL="https://folivora.ai/releases/BetterTouchTool.zip"
|
||||
appNewVersion=$(curl -fs https://updates.folivora.ai/bettertouchtool_release_notes.html | grep BetterTouchTool | head -n 2 | tail -n 1 | sed -E 's/.* ([0-9\.]*) .*/\1/g')
|
||||
expectedTeamID="DAFVSXZ82P"
|
||||
;;
|
||||
7
fragments/labels/bitwarden.sh
Normal file
7
fragments/labels/bitwarden.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
bitwarden)
|
||||
name="Bitwarden"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit bitwarden desktop )
|
||||
appNewVersion=$(versionFromGit bitwarden desktop )
|
||||
expectedTeamID="LTZ2PFU5D6"
|
||||
;;
|
||||
7
fragments/labels/blender.sh
Normal file
7
fragments/labels/blender.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
blender)
|
||||
name="blender"
|
||||
type="dmg"
|
||||
downloadURL=$(redirect=$(curl -sfL https://www.blender.org/download/ | sed 's/.*href="//' | sed 's/".*//' | grep .dmg) && curl -sfL "$redirect" | sed 's/.*href="//' | sed 's/".*//' | grep -m1 .dmg)
|
||||
appNewVersion=$( echo "${downloadURL}" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)-.*/\1/g' )
|
||||
expectedTeamID="68UA947AUU"
|
||||
;;
|
||||
11
fragments/labels/bluejeans.sh
Normal file
11
fragments/labels/bluejeans.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
bluejeans)
|
||||
name="BlueJeans"
|
||||
type="pkg"
|
||||
if [[ $(arch) == "arm64" ]]; then
|
||||
downloadURL=$(curl -fs "https://www.bluejeans.com/downloads" | xmllint --html --format - 2>/dev/null | grep -o "https://.*BlueJeansInstaller.*arm.*.pkg" )
|
||||
elif [[ $(arch) == "i386" ]]; then
|
||||
downloadURL=$(curl -fs "https://www.bluejeans.com/downloads" | xmllint --html --format - 2>/dev/null | grep -o "https://.*BlueJeansInstaller.*x86.*.dmg" | sed 's/dmg/pkg/g')
|
||||
fi
|
||||
appNewVersion=$(echo $downloadURL | cut -d '/' -f6)
|
||||
expectedTeamID="HE4P42JBGN"
|
||||
;;
|
||||
12
fragments/labels/boxdrive.sh
Normal file
12
fragments/labels/boxdrive.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
boxdrive)
|
||||
# credit: Isaac Ordonez, Mann consulting (@mannconsulting)
|
||||
name="Box"
|
||||
type="pkg"
|
||||
if [[ $(arch) == "arm64" ]]; then
|
||||
#Note: https://support.box.com/hc/en-us/articles/1500004479962-Box-Drive-support-on-devices-with-M1-chips
|
||||
downloadURL="https://e3.boxcdn.net/desktop/pre-releases/mac/BoxDrive.2.20.140-M1-beta.pkg"
|
||||
elif [[ $(arch) == "i386" ]]; then
|
||||
downloadURL="https://e3.boxcdn.net/box-installers/desktop/releases/mac/Box.pkg"
|
||||
fi
|
||||
expectedTeamID="M683GB7CPW"
|
||||
;;
|
||||
6
fragments/labels/boxsync.sh
Normal file
6
fragments/labels/boxsync.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
boxsync)
|
||||
name="Box Sync"
|
||||
type="dmg"
|
||||
downloadURL="https://e3.boxcdn.net/box-installers/sync/Sync+4+External/Box%20Sync%20Installer.dmg"
|
||||
expectedTeamID="M683GB7CPW"
|
||||
;;
|
||||
6
fragments/labels/boxtools.sh
Normal file
6
fragments/labels/boxtools.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
boxtools)
|
||||
name="Box Tools"
|
||||
type="pkg"
|
||||
downloadURL="https://box-installers.s3.amazonaws.com/boxedit/mac/currentrelease/BoxToolsInstaller.pkg"
|
||||
expectedTeamID="M683GB7CPW"
|
||||
;;
|
||||
15
fragments/labels/brave.sh
Normal file
15
fragments/labels/brave.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
brave)
|
||||
# credit: @securitygeneration
|
||||
name="Brave Browser"
|
||||
type="dmg"
|
||||
if [[ $(arch) != "i386" ]]; then
|
||||
printlog "Architecture: arm64 (not i386)"
|
||||
downloadURL=$(curl -fsIL https://laptop-updates.brave.com/latest/osxarm64/release | grep -i "^location" | awk '{print $2}' | tr -d '\r\n')
|
||||
else
|
||||
printlog "Architecture: i386"
|
||||
downloadURL=$(curl -fsIL https://laptop-updates.brave.com/latest/osx/release | grep -i "^location" | awk '{print $2}' | tr -d '\r\n')
|
||||
fi
|
||||
# downloadURL=$(curl --location --fail --silent "https://updates.bravesoftware.com/sparkle/Brave-Browser/stable/appcast.xml" | xpath '//rss/channel/item[last()]/enclosure/@url' 2>/dev/null | cut -d '"' -f 2)
|
||||
appNewVersion=$(curl --location --fail --silent "https://updates.bravesoftware.com/sparkle/Brave-Browser/stable/appcast.xml" | xpath '//rss/channel/item[last()]/enclosure/@sparkle:shortVersionString' 2>/dev/null | cut -d '"' -f 2)
|
||||
expectedTeamID="KL8N8XSYF4"
|
||||
;;
|
||||
8
fragments/labels/caffeine.sh
Normal file
8
fragments/labels/caffeine.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
caffeine)
|
||||
name="Caffeine"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit IntelliScape caffeine)
|
||||
appNewVersion=$(versionFromGit IntelliScape caffeine)
|
||||
expectedTeamID="YD6LEYT6WZ"
|
||||
blockingProcesses=( Caffeine )
|
||||
;;
|
||||
7
fragments/labels/cakebrew.sh
Normal file
7
fragments/labels/cakebrew.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
cakebrew)
|
||||
name="Cakebrew"
|
||||
type="zip"
|
||||
downloadURL=$(curl -fsL "https://www.cakebrew.com/appcast/profileInfo.php" | xpath '//rss/channel/item[1]/enclosure/@url' 2>/dev/null | cut -d '"' -f 2)
|
||||
appNewVersion=$( curl -fsL "https://www.cakebrew.com/appcast/profileInfo.php" | xpath '//rss/channel/item[1]/enclosure/@sparkle:shortVersionString' 2>/dev/null | cut -d '"' -f 2 )
|
||||
expectedTeamID="R85D3K8ATT"
|
||||
;;
|
||||
12
fragments/labels/calibre.sh
Normal file
12
fragments/labels/calibre.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
calibre)
|
||||
# credit: Drew Diver (@grumpydrew on MacAdmins Slack)
|
||||
name="calibre"
|
||||
type="dmg"
|
||||
downloadURL="https://calibre-ebook.com/dist/osx"
|
||||
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g' )
|
||||
#Maybe change to GitHub for this title. Looks like 5.28.0 release is the first to also release a binary, so maybe see what the next release will be to decide if we should switch.
|
||||
#downloadURL=$(downloadURLFromGit kovidgoyal calibre )
|
||||
#appNewVersion=$(versionFromGit kovidgoyal calibre )
|
||||
#archiveName="OS X dmg"
|
||||
expectedTeamID="NTY7FVCEKP"
|
||||
;;
|
||||
8
fragments/labels/camostudio.sh
Normal file
8
fragments/labels/camostudio.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
camostudio)
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="Camo Studio"
|
||||
type="zip"
|
||||
downloadURL="https://reincubate.com/res/labs/camo/camo-macos-latest.zip"
|
||||
appNewVersion=$(curl -s -L https://reincubate.com/support/camo/release-notes/ | grep -m2 "has-m-t-0" | head -1 | cut -d ">" -f2 | cut -d " " -f1)
|
||||
expectedTeamID="Q248YREB53"
|
||||
;;
|
||||
6
fragments/labels/camtasia.sh
Normal file
6
fragments/labels/camtasia.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
camtasia)
|
||||
name="Camtasia 2020"
|
||||
type="dmg"
|
||||
downloadURL=https://download.techsmith.com/camtasiamac/releases/Camtasia.dmg
|
||||
expectedTeamID="7TQL462TU8"
|
||||
;;
|
||||
7
fragments/labels/cisdem-documentreader.sh
Normal file
7
fragments/labels/cisdem-documentreader.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
cisdem-documentreader)
|
||||
name="cisdem-documentreader"
|
||||
type="dmg"
|
||||
downloadURL="https://download.cisdem.com/cisdem-documentreader.dmg"
|
||||
expectedTeamID="5HGV8EX6BQ"
|
||||
appName="Cisdem Document Reader.app"
|
||||
;;
|
||||
8
fragments/labels/citrixworkspace.sh
Normal file
8
fragments/labels/citrixworkspace.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
citrixworkspace)
|
||||
#credit: Erik Stam (@erikstam) and #Philipp on MacAdmins Slack
|
||||
name="Citrix Workspace"
|
||||
type="pkgInDmg"
|
||||
downloadURL="https:"$(curl -s -L "https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html#ctx-dl-eula-external" | grep "dmg?" | sed "s/.*rel=.\(.*\)..id=.*/\1/") # http://downloads.citrix.com/18823/CitrixWorkspaceApp.dmg?__gda__=1605791892_edc6786a90eb5197fb226861a8e27aa8
|
||||
appNewVersion=$(curl -fs https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html | grep "<p>Version" | head -1 | cut -d " " -f1 | cut -d ";" -f2 | cut -d "." -f 1-3)
|
||||
expectedTeamID="S272Y5R93J"
|
||||
;;
|
||||
7
fragments/labels/clevershare2.sh
Normal file
7
fragments/labels/clevershare2.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
clevershare2)
|
||||
name="Clevershare"
|
||||
type="dmg"
|
||||
downloadURL=$(curl -fs https://www.clevertouch.com/eu/clevershare2g | grep -i -o -E "https.*Mac.*\.dmg")
|
||||
appNewVersion=$( echo "${downloadURL}" | sed -E 's/.*\/[a-zA-Z-]*_Mac\.([0-9.]*)\.[0-9]*\.dmg$/\1/g' )
|
||||
expectedTeamID="P76M9BE8DQ"
|
||||
;;
|
||||
7
fragments/labels/clickshare.sh
Normal file
7
fragments/labels/clickshare.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
clickshare)
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="ClickShare"
|
||||
type="appInDmgInZip"
|
||||
downloadURL=https://www.barco.com$(curl -fs "https://www.barco.com/en/clickshare/app" | grep -E -o '(\/\S*Download\?FileNumber=R3306192\S*ShowDownloadPage=False)' | tail -1)
|
||||
expectedTeamID="P6CDJZR997"
|
||||
;;
|
||||
7
fragments/labels/cloudya.sh
Normal file
7
fragments/labels/cloudya.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
cloudya)
|
||||
name="Cloudya"
|
||||
type="appInDmgInZip"
|
||||
downloadURL="$(curl -fs https://www.nfon.com/de/service/downloads | grep -i -E -o "https://cdn.cloudya.com/Cloudya-[.0-9]+-mac.zip")"
|
||||
appNewVersion="$(curl -fs https://www.nfon.com/de/service/downloads | grep -i -E -o "Cloudya Desktop App MAC [0-9.]*" | sed 's/^.*\ \([^ ]\{0,7\}\)$/\1/g')"
|
||||
expectedTeamID="X26F74J8TH"
|
||||
;;
|
||||
8
fragments/labels/code42.sh
Normal file
8
fragments/labels/code42.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
code42)
|
||||
# credit: Isaac Ordonez, Mann consulting (@mannconsulting)
|
||||
name="Code42"
|
||||
type="pkgInDmg"
|
||||
downloadURL=https://download.code42.com/installs/agent/latest-mac.dmg
|
||||
expectedTeamID="9YV9435DHD"
|
||||
blockingProcesses=( NONE )
|
||||
;;
|
||||
7
fragments/labels/coderunner.sh
Normal file
7
fragments/labels/coderunner.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
coderunner)
|
||||
# credit: Erik Stam (@erikstam)
|
||||
name="CodeRunner"
|
||||
type="zip"
|
||||
downloadURL="https://coderunnerapp.com/download"
|
||||
expectedTeamID="R4GD98AJF9"
|
||||
;;
|
||||
8
fragments/labels/colourcontrastanalyser.sh
Normal file
8
fragments/labels/colourcontrastanalyser.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
colourcontrastanalyser)
|
||||
name="Colour Contrast Analyser (CCA)"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit ThePacielloGroup CCAe)
|
||||
appNewVersion=$(versionFromGit ThePacielloGroup CCAe)
|
||||
expectedTeamID="34RS4UC3M6"
|
||||
blockingProcesses=( NONE )
|
||||
;;
|
||||
8
fragments/labels/cormorant.sh
Normal file
8
fragments/labels/cormorant.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
cormorant)
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="Cormorant"
|
||||
type="zip"
|
||||
downloadURL=$(curl -fs https://eclecticlight.co/downloads/ | grep -i $name | grep zip | sed -E 's/.*href=\"(https.*)\">.*/\1/g')
|
||||
appNewVersion=$(curl -fs https://eclecticlight.co/downloads/ | grep zip | grep -o -E "$name [0-9.]*" | awk '{print $2}')
|
||||
expectedTeamID="QWY4LRW926"
|
||||
;;
|
||||
8
fragments/labels/craftmanager.sh
Normal file
8
fragments/labels/craftmanager.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
craftmanager)
|
||||
name="CraftManager"
|
||||
type="zip"
|
||||
#downloadURL="https://craft-assets.invisionapp.com/CraftManager/production/CraftManager.zip"
|
||||
downloadURL="$(curl -fs https://craft-assets.invisionapp.com/CraftManager/production/appcast.xml | xpath '(//rss/channel/item/enclosure/@url)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)"
|
||||
appNewVersion="$(curl -fs https://craft-assets.invisionapp.com/CraftManager/production/appcast.xml | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)"
|
||||
expectedTeamID="VRXQSNCL5W"
|
||||
;;
|
||||
7
fragments/labels/cryptomator.sh
Normal file
7
fragments/labels/cryptomator.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
cryptomator)
|
||||
name="Cryptomator"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit cryptomator cryptomator)
|
||||
appNewVersion=$(versionFromGit cryptomator cryptomator)
|
||||
expectedTeamID="YZQJQUHA3L"
|
||||
;;
|
||||
7
fragments/labels/cyberduck.sh
Normal file
7
fragments/labels/cyberduck.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
cyberduck)
|
||||
name="Cyberduck"
|
||||
type="zip"
|
||||
downloadURL=$(curl -fs https://version.cyberduck.io/changelog.rss | xpath '//rss/channel/item/enclosure/@url' 2>/dev/null | cut -d '"' -f 2 )
|
||||
appNewVersion=$(curl -fs https://version.cyberduck.io/changelog.rss | xpath '//rss/channel/item/enclosure/@sparkle:shortVersionString' 2>/dev/null | cut -d '"' -f 2 )
|
||||
expectedTeamID="G69SCX94XU"
|
||||
;;
|
||||
7
fragments/labels/dangerzone.sh
Normal file
7
fragments/labels/dangerzone.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
dangerzone)
|
||||
# credit: Micah Lee (@micahflee)
|
||||
name="Dangerzone"
|
||||
type="dmg"
|
||||
downloadURL=$(curl -s https://dangerzone.rocks/ | grep https://github.com/firstlookmedia/dangerzone/releases/download | grep \.dmg | cut -d'"' -f2)
|
||||
expectedTeamID="P24U45L8P5"
|
||||
;;
|
||||
8
fragments/labels/darktable.sh
Normal file
8
fragments/labels/darktable.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
darktable)
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="darktable"
|
||||
type="dmg"
|
||||
downloadURL=$(downloadURLFromGit darktable-org darktable)
|
||||
appNewVersion=$(versionFromGit darktable-org darktable)
|
||||
expectedTeamID="85Q3K4KQRY"
|
||||
;;
|
||||
7
fragments/labels/dbeaverce.sh
Normal file
7
fragments/labels/dbeaverce.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
dbeaverce)
|
||||
name="DBeaver"
|
||||
type="dmg"
|
||||
downloadURL="https://dbeaver.io/files/dbeaver-ce-latest-macos.dmg"
|
||||
expectedTeamID="42B6MDKMW8"
|
||||
blockingProcesses=( dbeaver )
|
||||
;;
|
||||
6
fragments/labels/debookee.sh
Normal file
6
fragments/labels/debookee.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
debookee)
|
||||
name="Debookee"
|
||||
type="zip"
|
||||
downloadURL=$(curl --location --fail --silent "https://www.iwaxx.com/debookee/appcast.xml" | xpath '//rss/channel/item[1]/enclosure/@url' 2>/dev/null | cut -d '"' -f 2)
|
||||
expectedTeamID="AATLWWB4MZ"
|
||||
;;
|
||||
7
fragments/labels/defaultfolderx.sh
Normal file
7
fragments/labels/defaultfolderx.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
defaultfolderx)
|
||||
# credit: Gabe Marchan (gabemarchan.com - @darklink87)
|
||||
name="Default Folder X"
|
||||
type="dmg"
|
||||
downloadURL=$(curl -fs "https://www.stclairsoft.com/cgi-bin/dl.cgi?DX" | awk -F '"' "/dmg/ {print \$4}" | head -2 | tail -1)
|
||||
expectedTeamID="7HK42V8R9D"
|
||||
;;
|
||||
7
fragments/labels/depnotify.sh
Normal file
7
fragments/labels/depnotify.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
depnotify)
|
||||
name="DEPNotify"
|
||||
type="zip"
|
||||
downloadURL="https://files.nomad.menu/DEPNotify.zip"
|
||||
expectedTeamID="VRPY9KHGX6"
|
||||
targetDir="/Applications/Utilities"
|
||||
;;
|
||||
9
fragments/labels/desktoppr.sh
Normal file
9
fragments/labels/desktoppr.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
desktoppr)
|
||||
name="desktoppr"
|
||||
type="pkg"
|
||||
packageID="com.scriptingosx.desktoppr"
|
||||
downloadURL=$(downloadURLFromGit "scriptingosx" "desktoppr")
|
||||
appNewVersion=$(versionFromGit "scriptingosx" "desktoppr")
|
||||
expectedTeamID="JME5BW3F3R"
|
||||
blockingProcesses=( NONE )
|
||||
;;
|
||||
8
fragments/labels/detectxswift.sh
Normal file
8
fragments/labels/detectxswift.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
detectxswift)
|
||||
# credit: AP Orlebeke (@apizz)
|
||||
name="DetectX Swift"
|
||||
type="zip"
|
||||
downloadURL="https://s3.amazonaws.com/sqwarq.com/PublicZips/DetectX_Swift.app.zip"
|
||||
appNewVersion=$(curl -fs https://s3.amazonaws.com/sqwarq.com/AppCasts/dtxswift_release_notes.html | grep Version | head -1 | sed -E 's/.*Version ([0-9.]*)\<.*/\1/')
|
||||
expectedTeamID="MAJ5XBJSG3"
|
||||
;;
|
||||
9
fragments/labels/devonthink.sh
Normal file
9
fragments/labels/devonthink.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
devonthink)
|
||||
# It's a zipped dmg file, needs function installAppInDmgInZip
|
||||
# credit: Søren Theilgaard (@theilgaard)
|
||||
name="DEVONthink 3"
|
||||
type="appInDmgInZip"
|
||||
downloadURL=$( curl -fs https://www.devontechnologies.com/apps/devonthink | grep -i "download.devon" | tr '"' '\n' | tr "'" '\n' | grep -e '^https://' )
|
||||
appNewVersion=$( echo ${downloadURL} | tr '/' '\n' | grep "[0-9]" | grep "[.]" | head -1 )
|
||||
expectedTeamID="679S2QUWR8"
|
||||
;;
|
||||
8
fragments/labels/dialog.sh
Normal file
8
fragments/labels/dialog.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
dialog)
|
||||
name="Dialog"
|
||||
type="pkg"
|
||||
downloadURL=$(downloadURLFromGit bartreardon Dialog-public )
|
||||
appNewVersion=$(versionFromGit bartreardon Dialog-public )
|
||||
expectedTeamID="PWA5E9TQ59"
|
||||
;;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user