161 Commits

Author SHA1 Message Date
Armin Briegel
a54c9f0dbc updated version to v8.0 2021-11-23 11:10:14 +01:00
Armin Briegel
89dffc5989 cleaned up some labels and chan 2021-11-23 11:05:27 +01:00
Armin Briegel
74ff5ecb08 Merge pull request #333 from apizz/sqlpropostgres2
Add SQLPro Postgres
2021-11-23 10:44:50 +01:00
Armin Briegel
9cc4972f62 Merge pull request #332 from apizz/sqlpropostgres
Add SQLPro Studio
2021-11-23 10:43:59 +01:00
Søren Theilgaard
b43ebe3483 Update functions.sh 2021-11-23 09:49:37 +01:00
AP Orlebeke
4117b687e8 Add SQLPro Postgres 2021-11-22 11:15:43 -05:00
AP Orlebeke
c6237ca193 Add SQLPro Studio 2021-11-22 10:52:36 -05:00
Søren Theilgaard
d6a9d6707e Update functions.sh 2021-11-22 16:21:24 +01:00
Søren Theilgaard
ccc58d9dc1 Update bluejeans.sh 2021-11-22 15:58:57 +01:00
Søren Theilgaard
7ac31c00fc Update vscodium.sh 2021-11-22 15:53:26 +01:00
Søren Theilgaard
6da46f30a2 Update vagrant.sh 2021-11-22 15:46:58 +01:00
Søren Theilgaard
4b59622348 Update screencloudplayer.sh 2021-11-22 15:22:14 +01:00
Søren Theilgaard
9c060635df Update logitechoptions.sh 2021-11-22 14:56:23 +01:00
Søren Theilgaard
87f4b4e967 Update lexarrecoverytool.sh 2021-11-22 14:54:10 +01:00
Søren Theilgaard
9923a03a12 Update inkscape.sh 2021-11-22 14:50:00 +01:00
Søren Theilgaard
4b87ffd5df Update inkscape.sh 2021-11-22 14:38:05 +01:00
Søren Theilgaard
57c5113554 firefox 2021-11-22 12:53:34 +01:00
Søren Theilgaard
25fdfc38f9 Update fastscripts.sh 2021-11-22 12:03:32 +01:00
Søren Theilgaard
19ac07ca77 Update dialog.sh 2021-11-22 12:00:06 +01:00
Søren Theilgaard
1260d9b9d1 label fixes 2021-11-22 11:55:26 +01:00
Søren Theilgaard
e5c25aa867 DEBUG check in microsoft labels 2021-11-22 11:31:20 +01:00
Søren Theilgaard
f621d36981 Error in label check for “version”
Fixed.
2021-11-22 11:05:34 +01:00
Søren Theilgaard
bf6fda07d6 Update Labels.txt 2021-11-22 11:00:56 +01:00
Søren Theilgaard
80082691b9 Merge pull request #328 from Installomator/MDM-script-with-caffeine
MDM with caffeinate
2021-11-22 10:59:49 +01:00
Søren Theilgaard
d50a825482 Merge branch 'dev' into MDM-script-with-caffeine 2021-11-22 10:59:39 +01:00
Søren Theilgaard
6aa32cba1c Merge pull request #317 from Installomator/Theile-labels
Theile-labels
2021-11-22 10:58:51 +01:00
Søren Theilgaard
cb45cab5c7 Merge pull request #285 from jnichols35/label-superhuman
label superhuman.sh
2021-11-22 10:53:25 +01:00
Søren Theilgaard
8089187598 superhuman version 2021-11-22 10:53:05 +01:00
Søren Theilgaard
e8f5fd0a2a Merge pull request #288 from jnichols35/label-logseq
label logseq.sh
2021-11-22 10:43:44 +01:00
Søren Theilgaard
7e56354cb1 Labels from #289 2021-11-22 10:42:19 +01:00
Søren Theilgaard
5880124676 Merge pull request #311 from Raptor399/boxtools-fix
Added packedID so Box Tools installs correctly
2021-11-22 10:18:38 +01:00
Søren Theilgaard
385f9c1a04 microsoftedge 2021-11-22 10:17:59 +01:00
Søren Theilgaard
b1801dd561 Merge pull request #306 from Installomator/microsoft-labels-updates
Updated msupdate call
2021-11-22 09:58:43 +01:00
Søren Theilgaard
6b7c01dbaa Merge branch 'dev' into microsoft-labels-updates 2021-11-22 09:58:33 +01:00
Søren Theilgaard
4d71a194a8 Merge pull request #322 from adibue/adibue-add-nudge
Added label for 'nudge'
2021-11-22 09:57:07 +01:00
Søren Theilgaard
49917fd4aa Merge pull request #323 from buckbanzai/buckbanzai-add-maccyapp
Added label for Maccy clipboard manager
2021-11-22 09:54:28 +01:00
Søren Theilgaard
5aeb5bcec0 Merge pull request #325 from buckbanzai/buckbanzai-add-talkdeskcallbar
Added label for Talkdesk Callbar
2021-11-22 09:53:48 +01:00
Søren Theilgaard
5bb584a2d2 Update r.sh 2021-11-22 09:51:43 +01:00
Søren Theilgaard
a1fe87c7f7 Merge pull request #324 from macprince/overflow-label
Label - overflow.sh
2021-11-22 09:39:12 +01:00
Søren Theilgaard
9ae8f3c11f Merge pull request #316 from Installomator/Update/install-detection
update/installation detection
2021-11-22 09:34:08 +01:00
Søren Theilgaard
28d2f78465 Merge branch 'dev' into Update/install-detection 2021-11-22 09:34:01 +01:00
Søren Theilgaard
709ee18144 Merge pull request #315 from Installomator/CLIInstaller
CLI Installer
2021-11-22 09:33:17 +01:00
Søren Theilgaard
876c1e96c4 Merge branch 'dev' into CLIInstaller 2021-11-22 09:33:08 +01:00
Søren Theilgaard
305987e54a Update CHANGELOG.md 2021-11-22 09:29:52 +01:00
Søren Theilgaard
a3fe713e55 Update Labels.txt 2021-11-22 09:01:42 +01:00
Søren Theilgaard
9f42fb9501 Create findanyfile.sh 2021-11-22 08:57:50 +01:00
Søren Theilgaard
b6f0afb8ba Fixed pkg teamID calculation 2021-11-19 14:59:15 +01:00
Søren Theilgaard
f5fcca7b89 jabradirect version-fix 2021-11-19 14:44:58 +01:00
Søren Theilgaard
f02bacc71a MDM with caffeinate 2021-11-19 12:31:43 +01:00
Armin Briegel
c1312e0d01 Merge pull request #277 from XoMute/dev
Added separate check for `version` argument
2021-11-19 08:32:55 +01:00
Armin Briegel
d2f39a3b87 Merge pull request #172 from sphen13/silent_fail_downloads
Dont download pkg if we are set to silent_fail and there is blockingprocess
2021-11-19 08:32:02 +01:00
Søren Theilgaard
3e6ef1a6ee Update smartgit.sh 2021-11-18 21:30:11 +01:00
Søren Theilgaard
b78bc12fff Update mattermost.sh 2021-11-18 21:26:10 +01:00
Søren Theilgaard
f062d49bfd mattermost universal 2021-11-17 19:36:05 +01:00
Liam Steckler
333b03e110 Added label for Talkdesk Callbar, added newline 2021-11-17 09:48:00 -08:00
Liam Steckler
2a8bd0d2e8 Added label for Talkdesk Callbar 2021-11-17 09:46:34 -08:00
Dan Kuehling
996e85ad24 Create overflow.sh
Label for overflow.io user flow diagram creator app.
2021-11-17 11:42:54 -06:00
Adrian Bühler
85cb09df34 Added 'nudge' to Labels.txt 2021-11-17 17:31:02 +01:00
Liam Steckler
b0b1477989 Added label for Maccy clipboard manager 2021-11-17 08:27:06 -08:00
Adrian Bühler
c62707cd7d Added label for 'nudge'
Added label for `nudge`.

Log from test run:

```
$ sudo zsh Installomator.sh nudge DEBUG=0
2021-11-17 11:52:34 nudge setting variable from argument DEBUG=0
2021-11-17 11:52:34 nudge ################## Start Installomator v. 0.8.0
2021-11-17 11:52:34 nudge ################## nudge
2021-11-17 11:52:35 nudge BLOCKING_PROCESS_ACTION=tell_user
2021-11-17 11:52:35 nudge NOTIFY=success
2021-11-17 11:52:35 nudge LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-17 11:52:35 nudge no blocking processes defined, using Nudge as default
2021-11-17 11:52:35 nudge Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.9Fo2W6NU
2021-11-17 11:52:35 nudge App(s) found: /Applications/Utilities/Nudge.app
2021-11-17 11:52:35 nudge found app at /Applications/Utilities/Nudge.app, version 1.1.2.10212021172015
2021-11-17 11:52:35 nudge appversion: 1.1.2.10212021172015
2021-11-17 11:52:35 nudge Latest version of Nudge is 1.1.2.10212021172015
2021-11-17 11:52:35 nudge There is no newer version available.
2021-11-17 11:52:35 nudge Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.9Fo2W6NU
2021-11-17 11:52:35 nudge App not closed, so no reopen.
2021-11-17 11:52:35 nudge ################## End Installomator, exit code 0
```
2021-11-17 11:54:56 +01:00
Søren Theilgaard
38bf480a2e Update audacity.sh 2021-11-17 08:23:14 +01:00
Søren Theilgaard
9125dbc5d7 Update buildLabel.sh 2021-11-16 19:09:50 +01:00
Søren Theilgaard
04151adbfd Update buildLabel.sh 2021-11-16 16:43:54 +01:00
Søren Theilgaard
1bfe163dff Update buildLabel.sh 2021-11-16 10:01:19 +01:00
Søren Theilgaard
289b72c5f1 marathon trilogy 2021-11-16 09:52:36 +01:00
Søren Theilgaard
0a5f667a4f Merge pull request #318 from Installomator/buildLabel-improved-for-github
Update buildLabel.sh
2021-11-16 09:41:44 +01:00
Søren Theilgaard
c954dab309 Update CHANGELOG.md 2021-11-16 09:33:28 +01:00
Søren Theilgaard
53c629aa15 Removing non-working labels 2021-11-16 09:32:14 +01:00
Søren Theilgaard
028ed10393 Update checkLabels.sh
`checkLabels.sh` can be run from anywhere.
2021-11-16 09:16:48 +01:00
Søren Theilgaard
891dab08d4 installerTool implemented 2021-11-15 14:25:57 +01:00
Søren Theilgaard
7f96d78946 fastscripts
```
% sudo /Documents/GitHub/Installomator/utils/assemble.sh -r fastscripts DEBUG=0
2021-11-15 09:51:16 fastscripts setting variable from argument DEBUG=0
2021-11-15 09:51:16 fastscripts ################## Start Installomator v. 0.8.0
2021-11-15 09:51:16 fastscripts ################## fastscripts
2021-11-15 09:51:17 fastscripts BLOCKING_PROCESS_ACTION=tell_user
2021-11-15 09:51:17 fastscripts NOTIFY=success
2021-11-15 09:51:17 fastscripts LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-15 09:51:17 fastscripts no blocking processes defined, using FastScripts as default
2021-11-15 09:51:17 fastscripts Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.FyV3t3sp
2021-11-15 09:51:17 fastscripts App(s) found: /Users/st/Downloads/2021-11-15-09-40-10/FastScripts.app
2021-11-15 09:51:17 fastscripts could not determine location of FastScripts.app
2021-11-15 09:51:17 fastscripts appversion:
2021-11-15 09:51:17 fastscripts Latest version of FastScripts is 3.0
2021-11-15 09:51:17 fastscripts Downloading https://redsweater.com/fastscripts/FastScripts3.0.zip to FastScripts.zip
2021-11-15 09:51:20 fastscripts no more blocking processes, continue with update
2021-11-15 09:51:20 fastscripts Installing FastScripts
2021-11-15 09:51:20 fastscripts Unzipping FastScripts.zip
2021-11-15 09:51:20 fastscripts Verifying: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.FyV3t3sp/FastScripts.app
2021-11-15 09:51:21 fastscripts Team ID matching: 493CVA9A35 (expected: 493CVA9A35 )
2021-11-15 09:51:21 fastscripts Downloaded version of FastScripts is 3.0 (replacing version ).
2021-11-15 09:51:21 fastscripts Copy /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.FyV3t3sp/FastScripts.app to /Applications
2021-11-15 09:51:21 fastscripts Changing owner to st
2021-11-15 09:51:21 fastscripts Finishing…
2021-11-15 09:51:31 fastscripts App(s) found: /Applications/FastScripts.app
2021-11-15 09:51:31 fastscripts found app at /Applications/FastScripts.app, version 3.0
2021-11-15 09:51:31 fastscripts Installed FastScripts, version 3.0
2021-11-15 09:51:31 fastscripts notifying
2021-11-15 09:51:31 fastscripts Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.FyV3t3sp
2021-11-15 09:51:31 fastscripts App not closed, so no reopen.
2021-11-15 09:51:31 fastscripts ################## End Installomator, exit code 0

% sudo Documents/GitHub/Installomator/utils/assemble.sh -r fastscripts DEBUG=0
2021-11-15 09:51:47 fastscripts setting variable from argument DEBUG=0
2021-11-15 09:51:47 fastscripts ################## Start Installomator v. 0.8.0
2021-11-15 09:51:47 fastscripts ################## fastscripts
2021-11-15 09:51:48 fastscripts BLOCKING_PROCESS_ACTION=tell_user
2021-11-15 09:51:48 fastscripts NOTIFY=success
2021-11-15 09:51:48 fastscripts LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-15 09:51:48 fastscripts no blocking processes defined, using FastScripts as default
2021-11-15 09:51:48 fastscripts Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.O9CBwrvL
2021-11-15 09:51:48 fastscripts App(s) found: /Applications/FastScripts.app
2021-11-15 09:51:48 fastscripts found app at /Applications/FastScripts.app, version 3.0
2021-11-15 09:51:48 fastscripts appversion: 3.0
2021-11-15 09:51:48 fastscripts Latest version of FastScripts is 3.0
2021-11-15 09:51:48 fastscripts There is no newer version available.
2021-11-15 09:51:48 fastscripts Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.O9CBwrvL
2021-11-15 09:51:48 fastscripts App not closed, so no reopen.
2021-11-15 09:51:48 fastscripts ################## End Installomator, exit code 0
```
2021-11-15 09:52:57 +01:00
Søren Theilgaard
596b9c6e28 Missing TeamID 2021-11-15 09:23:24 +01:00
Søren Theilgaard
374a32be9a better pkg handling 2021-11-14 21:02:34 +01:00
Søren Theilgaard
32353c3852 Update CHANGELOG.md 2021-11-14 19:51:36 +01:00
Søren Theilgaard
ba7fc6468f GitHub improvements
I'm really proud to figure this out. Take a look at hos this label is being build:
```
% Documents/GitHub/Installomator/utils/buildLabel.sh "https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20210408/Marathon-20210408-Mac.dmg"
Changing directory to /Users/st/Downloads/2021-11-13-20-03-26
Working dir: /Users/st/Downloads/2021-11-13-20-03-26
Downloading https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20210408/Marathon-20210408-Mac.dmg
Marathon-20210408-Mac.dmg
Redirecting to (maybe this can help us with version):

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   662  100   662    0     0   2225      0 --:--:-- --:--:-- --:--:--  2290
100 49.7M  100 49.7M    0     0  7284k      0  0:00:06  0:00:06 --:--:-- 10.5M
archiveTempName: Marathon-20210408-Mac.dmg
archivePath: https://objects.githubusercontent.com/github-production-release-asset-2e65be/39701264/c534b380-98b5-11eb-9c5b-bd8909ee1263?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211113%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211113T190327Z&X-Amz-Expires=300&X-Amz-Signature=bb6789b784ade0fd9b1f81ca88d63dd09224bae9fd15be4a4a61f31425aca553&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=39701264&response-content-disposition=attachment%3B%20filename%3DMarathon-20210408-Mac.dmg&response-content-type=application%2Foctet-stream
Calculated archiveName: Marathon-20210408-Mac.dmg
name: Marathon-20210408-Mac
archiveExt: dmg
identifier: marathon20210408mac
Diskimage found
Mounting Marathon-20210408-Mac.dmg
Mounted: /Volumes/Marathon
Verifying: /Volumes/Marathon/Marathon.app
"disk8" ejected.
https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20210408/Marathon-20210408-Mac.dmg

**********

Found GitHub path
Github place: Aleph-One-Marathon alephone
Latest URL on github: https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20210408/AlephOne-20210408-Mac.dmg
Latest version: 20210408
Calculated GitHub URL almost identical, only this diff:
“release-20210408/Marathon-20210408-Mac.dmg” and “release-20210408/AlephOne-20210408-Mac.dmg”
Could be version difference or difference in archiveName for a given release.
Testing for version difference.
Not a version problem.
Testing for difference in archiveName.
archiveName="Marathon-[0-9.]*-Mac.dmg"
Latest URL on github: https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20210408/Marathon-20210408-Mac.dmg
Latest version: 20210408
GitHub calculated URL matches entered URL.

**********

Labels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed.

marathon20210408mac)
    name="Marathon"
    type="dmg"
    archiveName="Marathon-[0-9.]*-Mac.dmg"
    downloadURL="$(downloadURLFromGit Aleph-One-Marathon alephone)"
    appNewVersion="$(versionFromGit Aleph-One-Marathon alephone)"
    expectedTeamID="E8K89CXZE7"
    ;;

Label converted to GitHub label without errors.
Details can be seen above.

Above should be saved in a file with exact same name as label, and given extension “.sh”.
Put this file in folder “fragments/labels”.
```

This repo on GitHub has several software titles, and because we have the link, it can automatically figure out how to make the `archiveName`.
2021-11-13 20:15:54 +01:00
Søren Theilgaard
4e8db91ff0 Update buildLabel.sh 2021-11-12 15:58:36 +01:00
Søren Theilgaard
28d5d1de0c Marathon alephone 2021-11-12 11:29:08 +01:00
Søren Theilgaard
168d19cd56 Pangea Software games
Example installation
```
% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r ottomatic DEBUG=0
2021-11-12 10:28:35 ottomatic setting variable from argument DEBUG=0
2021-11-12 10:28:35 ottomatic ################## Start Installomator v. 0.8.0
2021-11-12 10:28:35 ottomatic ################## ottomatic
2021-11-12 10:28:36 ottomatic BLOCKING_PROCESS_ACTION=tell_user
2021-11-12 10:28:36 ottomatic NOTIFY=success
2021-11-12 10:28:36 ottomatic LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-12 10:28:36 ottomatic no blocking processes defined, using Otto Matic as default
2021-11-12 10:28:36 ottomatic Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.xzx3iWjQ
2021-11-12 10:28:36 ottomatic App(s) found:
2021-11-12 10:28:36 ottomatic could not find Otto Matic.app
2021-11-12 10:28:36 ottomatic appversion:
2021-11-12 10:28:36 ottomatic Latest version of Otto Matic is 4.0.0
2021-11-12 10:28:36 ottomatic Downloading https://github.com/jorio/OttoMatic/releases/download/4.0.0/OttoMatic-4.0.0-mac.dmg to Otto Matic.dmg
2021-11-12 10:29:52 ottomatic no more blocking processes, continue with update
2021-11-12 10:29:52 ottomatic Installing Otto Matic
2021-11-12 10:29:52 ottomatic Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.xzx3iWjQ/Otto Matic.dmg
2021-11-12 10:29:55 ottomatic Mounted: /Volumes/Otto Matic 4.0.0
2021-11-12 10:29:55 ottomatic Verifying: /Volumes/Otto Matic 4.0.0/Otto Matic.app
2021-11-12 10:29:57 ottomatic Team ID matching: RVNL7XC27G (expected: RVNL7XC27G )
2021-11-12 10:29:57 ottomatic Downloaded version of Otto Matic is 4.0.0 (replacing version ).
2021-11-12 10:29:57 ottomatic Copy /Volumes/Otto Matic 4.0.0/Otto Matic.app to /Applications
2021-11-12 10:29:57 ottomatic Changing owner to st
2021-11-12 10:29:57 ottomatic Finishing…
2021-11-12 10:30:07 ottomatic App(s) found: /Applications/Otto Matic.app
2021-11-12 10:30:07 ottomatic found app at /Applications/Otto Matic.app, version 4.0.0
2021-11-12 10:30:07 ottomatic Installed Otto Matic, version 4.0.0
2021-11-12 10:30:07 ottomatic notifying
2021-11-12 10:30:07 ottomatic Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.xzx3iWjQ
2021-11-12 10:30:07 ottomatic Unmounting /Volumes/Otto Matic 4.0.0
"disk6" ejected.
2021-11-12 10:30:07 ottomatic App not closed, so no reopen.
2021-11-12 10:30:08 ottomatic ################## End Installomator, exit code 0

% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r ottomatic DEBUG=0
Password:
2021-11-12 10:58:24 ottomatic setting variable from argument DEBUG=0
2021-11-12 10:58:24 ottomatic ################## Start Installomator v. 0.8.0
2021-11-12 10:58:24 ottomatic ################## ottomatic
2021-11-12 10:58:25 ottomatic BLOCKING_PROCESS_ACTION=tell_user
2021-11-12 10:58:25 ottomatic NOTIFY=success
2021-11-12 10:58:25 ottomatic LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-12 10:58:25 ottomatic no blocking processes defined, using Otto Matic as default
2021-11-12 10:58:25 ottomatic Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.nNqO5vSr
2021-11-12 10:58:25 ottomatic App(s) found: /Applications/Otto Matic.app
2021-11-12 10:58:25 ottomatic found app at /Applications/Otto Matic.app, version 4.0.0
2021-11-12 10:58:25 ottomatic appversion: 4.0.0
2021-11-12 10:58:25 ottomatic Latest version of Otto Matic is 4.0.0
2021-11-12 10:58:25 ottomatic There is no newer version available.
2021-11-12 10:58:25 ottomatic Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.nNqO5vSr
2021-11-12 10:58:25 ottomatic App not closed, so no reopen.
2021-11-12 10:58:25 ottomatic ################## End Installomator, exit code 0
```
2021-11-12 11:14:10 +01:00
Søren Theilgaard
4aa7cd7793 more labels
Adding a few labels to see it in a bigger picture
2021-11-12 09:51:52 +01:00
Søren Theilgaard
855101a2cd mowgliiitsycal 2021-11-11 10:56:41 +01:00
Søren Theilgaard
b74a06f336 img folder 2021-11-11 09:23:29 +01:00
Søren Theilgaard
09b84945ed Update CHANGELOG.md 2021-11-11 08:50:08 +01:00
Søren Theilgaard
9f34df0b4e Update CHANGELOG.md 2021-11-11 08:46:13 +01:00
Søren Theilgaard
c20ba0274b Update CHANGELOG.md 2021-11-11 08:44:55 +01:00
Søren Theilgaard
3c1e6cdf37 v0.8 ready 2021-11-11 08:43:07 +01:00
Søren Theilgaard
ecb7b0416b img 2021-11-11 08:28:27 +01:00
Søren Theilgaard
6258de8bef Create MDMMosyle install.sh 2021-11-10 21:46:37 +01:00
Søren Theilgaard
15373a35f9 Explanation 2021-11-10 16:22:28 +01:00
Søren Theilgaard
bf4e7d89ec mountname reintroduced
Now we can call any script on the root of the path where `appName` is found.

Same result:
```
2021-11-10 15:58:02 adobecreativeclouddesktop setting variable from argument DEBUG=0
2021-11-10 15:58:02 adobecreativeclouddesktop setting variable from argument INSTALL=force
2021-11-10 15:58:02 adobecreativeclouddesktop ################## Start Installomator v. 0.8.0
2021-11-10 15:58:02 adobecreativeclouddesktop ################## adobecreativeclouddesktop
2021-11-10 15:58:03 adobecreativeclouddesktop BLOCKING_PROCESS_ACTION=tell_user
2021-11-10 15:58:03 adobecreativeclouddesktop NOTIFY=success
2021-11-10 15:58:03 adobecreativeclouddesktop LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-10 15:58:03 adobecreativeclouddesktop no blocking processes defined, using Creative Cloud as default
2021-11-10 15:58:03 adobecreativeclouddesktop Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.WNV7B1pH
2021-11-10 15:58:03 adobecreativeclouddesktop App(s) found: /Library/Application Support/Adobe/Adobe Desktop Common/HDBox/Install.app
2021-11-10 15:58:03 adobecreativeclouddesktop could not determine location of Install.app
2021-11-10 15:58:03 adobecreativeclouddesktop appversion:
2021-11-10 15:58:03 adobecreativeclouddesktop Latest version of Creative Cloud is 5.6.0.788
2021-11-10 15:58:03 adobecreativeclouddesktop Downloading https://ccmdl.adobe.com/AdobeProducts/KCCC/CCD/5_6_0/macarm64/ACCCx5_6_0_788.dmg to Creative Cloud.dmg
2021-11-10 15:58:17 adobecreativeclouddesktop no more blocking processes, continue with update
2021-11-10 15:58:17 adobecreativeclouddesktop Installing Creative Cloud
2021-11-10 15:58:17 adobecreativeclouddesktop Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.WNV7B1pH/Creative Cloud.dmg
2021-11-10 15:58:18 adobecreativeclouddesktop Mounted: /Volumes/Creative Cloud
2021-11-10 15:58:18 adobecreativeclouddesktop Verifying: /Volumes/Creative Cloud/Install.app
2021-11-10 15:58:18 adobecreativeclouddesktop Team ID matching: JQ525L2MZD (expected: JQ525L2MZD )
2021-11-10 15:58:18 adobecreativeclouddesktop Downloaded version of Creative Cloud is 2.6.0.46 (replacing version ).
2021-11-10 15:58:18 adobecreativeclouddesktop CLIInstaller exists, running installer command /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install --mode=silent
2021-11-10 15:58:23 adobecreativeclouddesktop Succesfully ran /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install --mode=silent
2021-11-10 15:58:23 adobecreativeclouddesktop Debugging enabled, update tool output was:
objc[20055]: Class HTTPHeader is implemented in both /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install (0x102565018) and /Library/Application Support/Adobe/Adobe Desktop Common/Core/AdobePIM.dylib (0x10f2f0790). One of the two will be used. Which one is undefined.
objc[20055]: Class ProxyManager is implemented in both /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install (0x102565068) and /Library/Application Support/Adobe/Adobe Desktop Common/Core/AdobePIM.dylib (0x10f2f07e0). One of the two will be used. Which one is undefined.
objc[20055]: Class HTTPHeader is implemented in both /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install (0x102565018) and /Volumes/Creative Cloud/resources/AdobePIM.dylib (0x110302790). One of the two will be used. Which one is undefined.
objc[20055]: Class ProxyManager is implemented in both /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install (0x102565068) and /Volumes/Creative Cloud/resources/AdobePIM.dylib (0x1103027e0). One of the two will be used. Which one is undefined.
Starting installer...
Installation successful.
2021-11-10 15:58:23 adobecreativeclouddesktop Finishing…
2021-11-10 15:58:33 adobecreativeclouddesktop App(s) found: /Library/Application Support/Adobe/Adobe Desktop Common/HDBox/Install.app
2021-11-10 15:58:33 adobecreativeclouddesktop could not determine location of Install.app
2021-11-10 15:58:33 adobecreativeclouddesktop Installed Creative Cloud
2021-11-10 15:58:33 adobecreativeclouddesktop notifying
2021-11-10 15:58:33 adobecreativeclouddesktop Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.WNV7B1pH
2021-11-10 15:58:33 adobecreativeclouddesktop Unmounting /Volumes/Creative Cloud
"disk5" ejected.
2021-11-10 15:58:33 adobecreativeclouddesktop App not closed, so no reopen.
2021-11-10 15:58:33 adobecreativeclouddesktop ################## End Installomator, exit code 0
```
2021-11-10 16:01:06 +01:00
Søren Theilgaard
800c356b01 updae/installation detection 2021-11-10 15:29:59 +01:00
Søren Theilgaard
638f7983dd Not using mountname
Changes to the label, so path to CLIInstaller does not contain the name of the app, as that is already in the variable `appPath`.

Still needing to decide on debug logging or what kind of message we want there.

But this is succesfull:
```
% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r adobecreativeclouddesktop DEBUG=0 INSTALL=force
Password:
2021-11-10 11:30:51 adobecreativeclouddesktop setting variable from argument DEBUG=0
2021-11-10 11:30:51 adobecreativeclouddesktop setting variable from argument INSTALL=force
2021-11-10 11:30:51 adobecreativeclouddesktop ################## Start Installomator v. 0.8.0
2021-11-10 11:30:51 adobecreativeclouddesktop ################## adobecreativeclouddesktop
2021-11-10 11:30:51 adobecreativeclouddesktop BLOCKING_PROCESS_ACTION=tell_user
2021-11-10 11:30:51 adobecreativeclouddesktop NOTIFY=success
2021-11-10 11:30:52 adobecreativeclouddesktop LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-10 11:30:52 adobecreativeclouddesktop no blocking processes defined, using Creative Cloud as default
2021-11-10 11:30:52 adobecreativeclouddesktop Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.wMH45Qfi
2021-11-10 11:30:52 adobecreativeclouddesktop App(s) found: /Library/Application Support/Adobe/Adobe Desktop Common/HDBox/Install.app
2021-11-10 11:30:52 adobecreativeclouddesktop could not determine location of Install.app
2021-11-10 11:30:52 adobecreativeclouddesktop appversion:
2021-11-10 11:30:52 adobecreativeclouddesktop Latest version of Creative Cloud is 5.6.0.788
2021-11-10 11:30:52 adobecreativeclouddesktop Downloading https://ccmdl.adobe.com/AdobeProducts/KCCC/CCD/5_6_0/macarm64/ACCCx5_6_0_788.dmg to Creative Cloud.dmg
2021-11-10 11:31:41 adobecreativeclouddesktop no more blocking processes, continue with update
2021-11-10 11:31:41 adobecreativeclouddesktop Installing Creative Cloud
2021-11-10 11:31:41 adobecreativeclouddesktop Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.wMH45Qfi/Creative Cloud.dmg
2021-11-10 11:31:42 adobecreativeclouddesktop Mounted: /Volumes/Creative Cloud 2
2021-11-10 11:31:42 adobecreativeclouddesktop Verifying: /Volumes/Creative Cloud 2/Install.app
2021-11-10 11:31:42 adobecreativeclouddesktop Team ID matching: JQ525L2MZD (expected: JQ525L2MZD )
2021-11-10 11:31:42 adobecreativeclouddesktop Downloaded version of Creative Cloud is 2.6.0.46 (replacing version ).
2021-11-10 11:31:42 adobecreativeclouddesktop CLIInstaller exists, running installer command /Volumes/Creative Cloud 2/Install.app/Contents/MacOS/Install --mode=silent
2021-11-10 11:31:46 adobecreativeclouddesktop Succesfully ran /Volumes/Creative Cloud 2/Install.app/Contents/MacOS/Install --mode=silent
2021-11-10 11:31:46 adobecreativeclouddesktop Debugging enabled, update tool output was:
objc[71312]: Class HTTPHeader is implemented in both /Volumes/Creative Cloud 2/Install.app/Contents/MacOS/Install (0x100c2f018) and /Library/Application Support/Adobe/Adobe Desktop Common/Core/AdobePIM.dylib (0x10dc38790). One of the two will be used. Which one is undefined.
objc[71312]: Class ProxyManager is implemented in both /Volumes/Creative Cloud 2/Install.app/Contents/MacOS/Install (0x100c2f068) and /Library/Application Support/Adobe/Adobe Desktop Common/Core/AdobePIM.dylib (0x10dc387e0). One of the two will be used. Which one is undefined.
objc[71312]: Class HTTPHeader is implemented in both /Volumes/Creative Cloud 2/Install.app/Contents/MacOS/Install (0x100c2f018) and /Volumes/Creative Cloud 2/resources/AdobePIM.dylib (0x10e4e6790). One of the two will be used. Which one is undefined.
objc[71312]: Class ProxyManager is implemented in both /Volumes/Creative Cloud 2/Install.app/Contents/MacOS/Install (0x100c2f068) and /Volumes/Creative Cloud 2/resources/AdobePIM.dylib (0x10e4e67e0). One of the two will be used. Which one is undefined.
Starting installer...
Installation successful.
2021-11-10 11:31:46 adobecreativeclouddesktop Finishing…
2021-11-10 11:31:56 adobecreativeclouddesktop App(s) found: /Library/Application Support/Adobe/Adobe Desktop Common/HDBox/Install.app
2021-11-10 11:31:56 adobecreativeclouddesktop could not determine location of Install.app
2021-11-10 11:31:56 adobecreativeclouddesktop Installed Creative Cloud
2021-11-10 11:31:56 adobecreativeclouddesktop notifying
2021-11-10 11:31:56 adobecreativeclouddesktop Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.wMH45Qfi
2021-11-10 11:31:56 adobecreativeclouddesktop Unmounting /Volumes/Creative Cloud 2
"disk6" ejected.
2021-11-10 11:31:57 adobecreativeclouddesktop App not closed, so no reopen.
2021-11-10 11:31:57 adobecreativeclouddesktop ################## End Installomator, exit code 0
```
2021-11-10 11:34:30 +01:00
Søren Theilgaard
3ef4f11025 CLIInstaller and CLIArguments 2021-11-10 09:44:09 +01:00
Søren Theilgaard
a42c624a7c CLIInstaller and CLIArguments
Explained…
2021-11-10 09:39:39 +01:00
Søren Theilgaard
ca772a6d28 Update adobecreativeclouddesktop.sh 2021-11-10 09:06:04 +01:00
Søren Theilgaard
a2ee2ccdde Update functions.sh 2021-11-10 08:58:05 +01:00
Søren Theilgaard
7e75683d76 Adobe CC with CLIInstaller
I was looking into installing Adobe CC fully (Isaac has done the hard part), and we can add `CLIInstaller` and `CLIArguments` to get it fully installed.
This implementation is slightly changed from Isaacs.
```
% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r adobecreativeclouddesktop DEBUG=0 INSTALL=force
2021-11-10 08:56:00 adobecreativeclouddesktop setting variable from argument DEBUG=0
2021-11-10 08:56:00 adobecreativeclouddesktop setting variable from argument INSTALL=force
2021-11-10 08:56:00 adobecreativeclouddesktop ################## Start Installomator v. 0.8.0
2021-11-10 08:56:00 adobecreativeclouddesktop ################## adobecreativeclouddesktop
2021-11-10 08:56:00 adobecreativeclouddesktop BLOCKING_PROCESS_ACTION=tell_user
2021-11-10 08:56:00 adobecreativeclouddesktop NOTIFY=success
2021-11-10 08:56:00 adobecreativeclouddesktop LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-10 08:56:00 adobecreativeclouddesktop no blocking processes defined, using Creative Cloud as default
2021-11-10 08:56:00 adobecreativeclouddesktop Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.0LNrXCQX
2021-11-10 08:56:01 adobecreativeclouddesktop App(s) found: /Library/Application Support/Adobe/Adobe Desktop Common/HDBox/Install.app
2021-11-10 08:56:01 adobecreativeclouddesktop could not determine location of Install.app
2021-11-10 08:56:01 adobecreativeclouddesktop appversion:
2021-11-10 08:56:01 adobecreativeclouddesktop Latest version of Creative Cloud is 5.6.0.788
2021-11-10 08:56:01 adobecreativeclouddesktop Downloading https://ccmdl.adobe.com/AdobeProducts/KCCC/CCD/5_6_0/macarm64/ACCCx5_6_0_788.dmg to Creative Cloud.dmg
2021-11-10 08:56:30 adobecreativeclouddesktop no more blocking processes, continue with update
2021-11-10 08:56:30 adobecreativeclouddesktop Installing Creative Cloud
2021-11-10 08:56:30 adobecreativeclouddesktop Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.0LNrXCQX/Creative Cloud.dmg
2021-11-10 08:56:30 adobecreativeclouddesktop Mounted: /Volumes/Creative Cloud
2021-11-10 08:56:30 adobecreativeclouddesktop Verifying: /Volumes/Creative Cloud/Install.app
2021-11-10 08:56:30 adobecreativeclouddesktop Team ID matching: JQ525L2MZD (expected: JQ525L2MZD )
2021-11-10 08:56:30 adobecreativeclouddesktop Downloaded version of Creative Cloud is 2.6.0.46 (replacing version ).
2021-11-10 08:56:30 adobecreativeclouddesktop CLIInstaller exists, running installer command /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install --mode=silent
2021-11-10 08:56:34 adobecreativeclouddesktop Debugging enabled, update tool output was: objc[51900]: Class HTTPHeader is implemented in both /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install (0x102d2a018) and /Library/Application Support/Adobe/Adobe Desktop Common/Core/AdobePIM.dylib (0x10fa75790). One of the two will be used. Which one is undefined.
objc[51900]: Class ProxyManager is implemented in both /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install (0x102d2a068) and /Library/Application Support/Adobe/Adobe Desktop Common/Core/AdobePIM.dylib (0x10fa757e0). One of the two will be used. Which one is undefined.
objc[51900]: Class HTTPHeader is implemented in both /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install (0x102d2a018) and /Volumes/Creative Cloud/resources/AdobePIM.dylib (0x110a87790). One of the two will be used. Which one is undefined.
objc[51900]: Class ProxyManager is implemented in both /Volumes/Creative Cloud/Install.app/Contents/MacOS/Install (0x102d2a068) and /Volumes/Creative Cloud/resources/AdobePIM.dylib (0x110a877e0). One of the two will be used. Which one is undefined.
Starting installer...
Installation successful.
2021-11-10 08:56:34 adobecreativeclouddesktop Finishing…
2021-11-10 08:56:44 adobecreativeclouddesktop App(s) found: /Library/Application Support/Adobe/Adobe Desktop Common/HDBox/Install.app
2021-11-10 08:56:44 adobecreativeclouddesktop could not determine location of Install.app
2021-11-10 08:56:44 adobecreativeclouddesktop Installed Creative Cloud
2021-11-10 08:56:44 adobecreativeclouddesktop notifying
2021-11-10 08:56:44 adobecreativeclouddesktop Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.0LNrXCQX
2021-11-10 08:56:44 adobecreativeclouddesktop Unmounting /Volumes/Creative Cloud
"disk4" ejected.
2021-11-10 08:56:45 adobecreativeclouddesktop App not closed, so no reopen.
2021-11-10 08:56:45 adobecreativeclouddesktop ################## End Installomator, exit code 0
```
2021-11-10 08:57:31 +01:00
Søren Theilgaard
51ba24f5e2 Merge branch 'dev' of https://github.com/Installomator/Installomator into dev 2021-11-09 15:43:31 +01:00
Søren Theilgaard
b28072fe84 Update typora.sh 2021-11-09 15:43:29 +01:00
Søren Theilgaard
d1ae2f1899 Merge pull request #307 from p-venkman/sketchupviewer
Add a label for Sketchup Viewer
2021-11-09 12:46:39 +01:00
Raptor399
39a212bee9 Added packedID so Box Tools installs correct
Fixes #310
2021-11-09 11:27:30 +01:00
Søren Theilgaard
ecde31ee1b Merge pull request #305 from Installomator/Theile-labels
eshareosx label
2021-11-08 22:19:57 +01:00
p-venkman
d8dcf785f0 Add a label for Sketchup Viewer 2021-11-07 09:16:42 +01:00
Søren Theilgaard
c5a719b176 microsoft labels 2021-11-05 21:32:25 +01:00
Søren Theilgaard
1931973b54 Fixed INSTALL=force no matter the version
If `INSTALL=force` is used, then previously we would need installed version and appNewVersion to be equal for the updateTool to be skipped. Not anymore.
2021-11-05 21:30:26 +01:00
Søren Theilgaard
75addfe8ea Update microsoftoffice365.sh 2021-11-05 21:12:34 +01:00
Søren Theilgaard
15f2add5e1 Updated msupdate call
Separate lines for running `msupdate --list` before running the update tool, but currently it runs if just msupdate exist, and not only if we run the updateTool.
2021-11-05 20:46:37 +01:00
Søren Theilgaard
76749bb518 eshareosx label 2021-11-05 20:03:50 +01:00
Søren Theilgaard
ca6614f591 Update logseq.sh
By using variable `archiveName` we can let Installomator find the right archive in the github list of possibilities. I think this is a more cleaner approach.
2021-11-05 19:49:35 +01:00
Søren Theilgaard
396dbd745a Merge pull request #304 from p-venkman/wacomdrivers
Added a label for Wacom Tablet drivers.
2021-11-05 09:43:27 +01:00
Søren Theilgaard
2d0b4992a0 Merge pull request #292 from adibue/adibue-mattermost-patch
Mattermost: Updated 'archiveName' for i386
2021-11-05 09:41:03 +01:00
Søren Theilgaard
f194e62d64 Merge pull request #286 from jnichols35/label-closeio
label closeio.sh
2021-11-05 09:40:34 +01:00
Søren Theilgaard
8bc22afe12 Merge pull request #290 from Installomator/Microsoft-update-tool
microsoft updateTool updates
2021-11-05 09:39:46 +01:00
Søren Theilgaard
6875084ca3 Merge pull request #293 from Installomator/zohoworkdrivetruesync
Create zohoworkdrivetruesync.sh
2021-11-05 09:36:22 +01:00
Søren Theilgaard
1d5c6d1812 Merge pull request #298 from Installomator/steelseries
steelseriesengine
2021-11-05 09:31:52 +01:00
Søren Theilgaard
1b85882aa7 Merge pull request #299 from Installomator/Xink
Update xink.sh
2021-11-05 09:31:29 +01:00
Søren Theilgaard
94ea6bb449 Merge pull request #300 from Installomator/MacPorts
macports
2021-11-05 09:31:15 +01:00
Søren Theilgaard
dfa5df4f50 Merge pull request #301 from Installomator/canva-label
canva label
2021-11-05 09:31:01 +01:00
Søren Theilgaard
819d1ec7c4 remotix labels
```
% /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r remotix
2021-11-04 15:27:36 remotix ################## Start Installomator v. 0.8.0
2021-11-04 15:27:36 remotix ################## remotix
2021-11-04 15:27:36 remotix BLOCKING_PROCESS_ACTION=tell_user
2021-11-04 15:27:36 remotix NOTIFY=success
2021-11-04 15:27:36 remotix LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-04 15:27:36 remotix no blocking processes defined, using Remotix as default
2021-11-04 15:27:36 remotix Changing directory to /Users/st/Documents/GitHub/Installomator/build
2021-11-04 15:27:37 remotix App(s) found:
2021-11-04 15:27:37 remotix could not find Remotix.app
2021-11-04 15:27:37 remotix appversion:
2021-11-04 15:27:37 remotix Latest version of Remotix is 6.4.2
2021-11-04 15:27:37 remotix Downloading https://remotix.com/downloads/latest-remotix-mac/ to Remotix.dmg
2021-11-04 15:27:54 remotix DEBUG mode, not checking for blocking processes
2021-11-04 15:27:54 remotix Installing Remotix
2021-11-04 15:27:54 remotix Mounting /Users/st/Documents/GitHub/Installomator/build/Remotix.dmg
2021-11-04 15:27:58 remotix Mounted: /Volumes/Remotix
2021-11-04 15:27:58 remotix Verifying: /Volumes/Remotix/Remotix.app
2021-11-04 15:28:06 remotix Team ID matching: K293Y6CVN4 (expected: K293Y6CVN4 )
2021-11-04 15:28:06 remotix Downloaded version of Remotix is 6.4.2 (replacing version ).
2021-11-04 15:28:06 remotix DEBUG enabled, skipping remove, copy and chown steps
2021-11-04 15:28:06 remotix Finishing…
2021-11-04 15:28:16 remotix App(s) found:
2021-11-04 15:28:16 remotix could not find Remotix.app
2021-11-04 15:28:16 remotix Installed Remotix
2021-11-04 15:28:16 remotix notifying
2021-11-04 15:28:17 remotix Unmounting /Volumes/Remotix
"disk5" ejected.
2021-11-04 15:28:17 remotix DEBUG mode, not reopening anything
2021-11-04 15:28:17 remotix ################## End Installomator, exit code 0

% /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r remotixagent
2021-11-04 15:28:37 remotixagent ################## Start Installomator v. 0.8.0
2021-11-04 15:28:37 remotixagent ################## remotixagent
2021-11-04 15:28:37 remotixagent BLOCKING_PROCESS_ACTION=tell_user
2021-11-04 15:28:37 remotixagent NOTIFY=success
2021-11-04 15:28:37 remotixagent LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-04 15:28:37 remotixagent no blocking processes defined, using RemotixAgent as default
2021-11-04 15:28:37 remotixagent Changing directory to /Users/st/Documents/GitHub/Installomator/build
2021-11-04 15:28:38 remotixagent No version found using packageID com.nulana.rxagentmac
2021-11-04 15:28:38 remotixagent App(s) found:
2021-11-04 15:28:38 remotixagent could not find RemotixAgent.app
2021-11-04 15:28:38 remotixagent appversion:
2021-11-04 15:28:38 remotixagent Latest version of RemotixAgent is 1.5.15
2021-11-04 15:28:38 remotixagent Downloading https://remotix.com/downloads/latest-agent-mac/ to RemotixAgent.pkg
2021-11-04 15:28:50 remotixagent DEBUG mode, not checking for blocking processes
2021-11-04 15:28:50 remotixagent Installing RemotixAgent
2021-11-04 15:28:51 remotixagent Verifying: RemotixAgent.pkg
2021-11-04 15:28:51 remotixagent Team ID: K293Y6CVN4 (expected: K293Y6CVN4 )
2021-11-04 15:28:51 remotixagent DEBUG enabled, skipping installation
2021-11-04 15:28:51 remotixagent Finishing…
2021-11-04 15:29:01 remotixagent No version found using packageID com.nulana.rxagentmac
2021-11-04 15:29:01 remotixagent App(s) found:
2021-11-04 15:29:01 remotixagent could not find RemotixAgent.app
2021-11-04 15:29:01 remotixagent Installed RemotixAgent
2021-11-04 15:29:01 remotixagent notifying
2021-11-04 15:29:02 remotixagent DEBUG mode, not reopening anything
2021-11-04 15:29:02 remotixagent ################## End Installomator, exit code 0
```
2021-11-04 15:34:26 +01:00
p-venkman
ecdf502ba8 Added a label for Wacom Tablet drivers. 2021-11-03 23:07:55 +01:00
Søren Theilgaard
32c3dff48d canva label
Improvements to the `buildLabel.sh` script. It can try better to download the software and might show better headers for versioning.
```
sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r canva DEBUG=0 NOTIFY=all
Password:
2021-11-02 20:19:20 canva setting variable from argument DEBUG=0
2021-11-02 20:19:20 canva setting variable from argument NOTIFY=all
2021-11-02 20:19:20 canva ################## Start Installomator v. 0.8.0
2021-11-02 20:19:20 canva ################## canva
2021-11-02 20:19:21 canva BLOCKING_PROCESS_ACTION=tell_user
2021-11-02 20:19:21 canva NOTIFY=all
2021-11-02 20:19:21 canva LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-02 20:19:21 canva no blocking processes defined, using Canva as default
2021-11-02 20:19:21 canva Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.YfHnGeSB
2021-11-02 20:19:21 canva App(s) found:
2021-11-02 20:19:21 canva could not find Canva.app
2021-11-02 20:19:21 canva appversion:
2021-11-02 20:19:21 canva Latest version of Canva is 1.34
2021-11-02 20:19:21 canva Downloading https://desktop-release.canva.com/Canva-1.34.0-arm64.dmg to Canva.dmg
2021-11-02 20:19:21 canva notifying
2021-11-02 20:19:29 canva no more blocking processes, continue with update
2021-11-02 20:19:29 canva Installing Canva
2021-11-02 20:19:29 canva notifying
2021-11-02 20:19:29 canva Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.YfHnGeSB/Canva.dmg
2021-11-02 20:19:32 canva Mounted: /Volumes/Canva 1.34.0-arm64
2021-11-02 20:19:32 canva Verifying: /Volumes/Canva 1.34.0-arm64/Canva.app
2021-11-02 20:19:33 canva Team ID matching: 5HD2ARTBFS (expected: 5HD2ARTBFS )
2021-11-02 20:19:33 canva Downloaded version of Canva is 1.34.0 (replacing version ).
2021-11-02 20:19:33 canva Copy /Volumes/Canva 1.34.0-arm64/Canva.app to /Applications
2021-11-02 20:19:34 canva Changing owner to st
2021-11-02 20:19:34 canva Finishing…
2021-11-02 20:19:44 canva App(s) found: /Applications/Canva.app
2021-11-02 20:19:44 canva found app at /Applications/Canva.app, version 1.34.0
2021-11-02 20:19:44 canva Installed Canva, version 1.34.0
2021-11-02 20:19:44 canva notifying
2021-11-02 20:19:45 canva Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.YfHnGeSB
2021-11-02 20:19:45 canva Unmounting /Volumes/Canva 1.34.0-arm64
"disk4" ejected.
2021-11-02 20:19:45 canva App not closed, so no reopen.
2021-11-02 20:19:45 canva ################## End Installomator, exit code 0
```
2021-11-02 21:27:53 +01:00
Søren Theilgaard
480b49adb8 macports
Added a bit to explanation of archiveName variable.
```
sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r macports DEBUG=0 INSTALL=force
Password:
2021-11-02 09:55:12 macports setting variable from argument DEBUG=0
2021-11-02 09:55:12 macports setting variable from argument INSTALL=force
2021-11-02 09:55:12 macports ################## Start Installomator v. 0.8.0
2021-11-02 09:55:12 macports ################## macports
2021-11-02 09:55:13 macports BLOCKING_PROCESS_ACTION=tell_user
2021-11-02 09:55:13 macports NOTIFY=success
2021-11-02 09:55:14 macports LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-11-02 09:55:14 macports no blocking processes defined, using MacPorts as default
2021-11-02 09:55:14 macports Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.4KnOGDkl
2021-11-02 09:55:14 macports Custom App Version detection is used, found 2.7.1
2021-11-02 09:55:14 macports appversion: 2.7.1
2021-11-02 09:55:14 macports Latest version of MacPorts is 2.7.1
2021-11-02 09:55:14 macports There is no newer version available.
2021-11-02 09:55:14 macports Using force to install anyway. Not using updateTool.
2021-11-02 09:55:14 macports Downloading https://github.com/macports/macports-base/releases/download/v2.7.1/MacPorts-2.7.1-12-Monterey.pkg to Monterey.pkg
2021-11-02 09:55:15 macports no more blocking processes, continue with update
2021-11-02 09:55:15 macports Installing MacPorts
2021-11-02 09:55:16 macports Verifying: Monterey.pkg
2021-11-02 09:55:16 macports Team ID: QTA3A3B7F3 (expected: QTA3A3B7F3 )
2021-11-02 09:55:16 macports Installing Monterey.pkg to /
installer: Package name is MacPorts
installer: Upgrading at base path /
installer: The upgrade was successful.
2021-11-02 09:56:03 macports Finishing…
2021-11-02 09:56:13 macports Custom App Version detection is used, found 2.7.1
2021-11-02 09:56:13 macports Installed MacPorts, version 2.7.1
2021-11-02 09:56:13 macports notifying
2021-11-02 09:56:14 macports Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.4KnOGDkl
2021-11-02 09:56:14 macports App not closed, so no reopen.
2021-11-02 09:56:14 macports ################## End Installomator, exit code 0
```
2021-11-02 10:00:26 +01:00
Søren Theilgaard
2c9085c0c5 Update zohoworkdrivetruesync.sh 2021-11-01 10:38:20 +01:00
Søren Theilgaard
4aa7993dc2 Update xink.sh 2021-10-29 20:02:23 +02:00
Søren Theilgaard
b0ee820828 steelseriesengine 2021-10-29 13:42:47 +02:00
Søren Theilgaard
b017b7bae9 Merge pull request #297 from Installomator/Strongsync
strongsync
2021-10-29 08:50:00 +02:00
Søren Theilgaard
885dcf1622 strongsync
```
% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r strongsync DEBUG=0
2021-10-28 19:40:43 strongsync setting variable from argument DEBUG=0
2021-10-28 19:40:43 strongsync ################## Start Installomator v. 0.8.0
2021-10-28 19:40:43 strongsync ################## strongsync
2021-10-28 19:40:44 strongsync BLOCKING_PROCESS_ACTION=tell_user
2021-10-28 19:40:44 strongsync NOTIFY=success
2021-10-28 19:40:44 strongsync LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-10-28 19:40:44 strongsync no blocking processes defined, using Strongsync as default
2021-10-28 19:40:44 strongsync Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.1bFmmj9p
2021-10-28 19:40:45 strongsync App(s) found:
2021-10-28 19:40:45 strongsync could not find Strongsync.app
2021-10-28 19:40:45 strongsync appversion:
2021-10-28 19:40:45 strongsync Latest version of Strongsync is 2021.9.1
2021-10-28 19:40:45 strongsync Downloading https://updates.expandrive.com/apps/strongsync/v/2021-9-1/download.dmg to Strongsync.dmg
2021-10-28 19:40:47 strongsync no more blocking processes, continue with update
2021-10-28 19:40:47 strongsync Installing Strongsync
2021-10-28 19:40:47 strongsync Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.1bFmmj9p/Strongsync.dmg
2021-10-28 19:40:51 strongsync Mounted: /Volumes/Strongsync 1
2021-10-28 19:40:51 strongsync Verifying: /Volumes/Strongsync 1/Strongsync.app
2021-10-28 19:40:52 strongsync Team ID matching: CH86M498V4 (expected: CH86M498V4 )
2021-10-28 19:40:52 strongsync Downloaded version of Strongsync is 2021.9.1 (replacing version ).
2021-10-28 19:40:52 strongsync Copy /Volumes/Strongsync 1/Strongsync.app to /Applications
2021-10-28 19:40:52 strongsync Changing owner to st
2021-10-28 19:40:52 strongsync Finishing…
2021-10-28 19:41:02 strongsync App(s) found: /Applications/Strongsync.app
2021-10-28 19:41:02 strongsync found app at /Applications/Strongsync.app, version 2021.9.1
2021-10-28 19:41:02 strongsync Installed Strongsync, version 2021.9.1
2021-10-28 19:41:02 strongsync notifying
2021-10-28 19:41:03 strongsync Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.1bFmmj9p
2021-10-28 19:41:03 strongsync Unmounting /Volumes/Strongsync 1
"disk5" ejected.
2021-10-28 19:41:03 strongsync App not closed, so no reopen.
2021-10-28 19:41:03 strongsync ################## End Installomator, exit code 0

% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r strongsync DEBUG=0
2021-10-28 19:41:27 strongsync setting variable from argument DEBUG=0
2021-10-28 19:41:27 strongsync ################## Start Installomator v. 0.8.0
2021-10-28 19:41:27 strongsync ################## strongsync
2021-10-28 19:41:28 strongsync BLOCKING_PROCESS_ACTION=tell_user
2021-10-28 19:41:28 strongsync NOTIFY=success
2021-10-28 19:41:28 strongsync LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-10-28 19:41:28 strongsync no blocking processes defined, using Strongsync as default
2021-10-28 19:41:28 strongsync Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.H3bgidQy
2021-10-28 19:41:28 strongsync App(s) found: /Applications/Strongsync.app
2021-10-28 19:41:28 strongsync found app at /Applications/Strongsync.app, version 2021.9.1
2021-10-28 19:41:28 strongsync appversion: 2021.9.1
2021-10-28 19:41:28 strongsync Latest version of Strongsync is 2021.9.1
2021-10-28 19:41:28 strongsync There is no newer version available.
2021-10-28 19:41:28 strongsync Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.H3bgidQy
2021-10-28 19:41:28 strongsync App not closed, so no reopen.
2021-10-28 19:41:28 strongsync ################## End Installomator, exit code 0
```
2021-10-28 19:44:15 +02:00
Søren Theilgaard
272e2738b5 Merge pull request #282 from Installomator/MDM-scripts
MDM scripts
2021-10-28 19:11:09 +02:00
Søren Theilgaard
dfb7d42d95 Merge pull request #287 from Installomator/typora-label
typora label
2021-10-28 19:09:43 +02:00
Søren Theilgaard
bf00b864f0 zsh 2021-10-28 14:35:20 +02:00
Søren Theilgaard
77567cdf4e Update MDMAddigy CustomSoftware.sh 2021-10-28 13:46:16 +02:00
Søren Theilgaard
57f53c647e Create zohoworkdrivetruesync.sh
Hold this branch, it needs to be fully working, and the ARM version out of beta before its usable.
2021-10-28 13:27:08 +02:00
Adrian Bühler
4abe614300 Updated 'archiveName' for i386
The 'archiveName' for i386 has been changed to 'mac-x64.dmg'
2021-10-25 09:15:02 +02:00
Søren Theilgaard
709a787805 microsoft updateTool updates
All Microsoft labels with `updateTool` variable is updated to list updates first. That should help.
2021-10-22 16:59:46 +02:00
Søren Theilgaard
b0963fdfb9 and pandoc
pandoc expands the supported documents formats for Typora.
```
% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r typora DEBUG=0
Password:
2021-10-22 14:45:06 typora setting variable from argument DEBUG=0
2021-10-22 14:45:07 typora ################## Start Installomator v. 0.8.0
2021-10-22 14:45:07 typora ################## typora
2021-10-22 14:45:07 typora BLOCKING_PROCESS_ACTION=tell_user
2021-10-22 14:45:07 typora NOTIFY=success
2021-10-22 14:45:07 typora LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-10-22 14:45:07 typora no blocking processes defined, using Typora as default
2021-10-22 14:45:07 typora Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.TQsw3wTi
2021-10-22 14:45:07 typora App(s) found: /Applications/Typora.app
2021-10-22 14:45:07 typora found app at /Applications/Typora.app, version 0.11.11
2021-10-22 14:45:07 typora appversion: 0.11.11
2021-10-22 14:45:07 typora Latest version of Typora is 0.11.11
2021-10-22 14:45:07 typora There is no newer version available.
2021-10-22 14:45:07 typora Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.TQsw3wTi
2021-10-22 14:45:07 typora App not closed, so no reopen.
2021-10-22 14:45:07 typora ################## End Installomator, exit code 0

% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r pandoc DEBUG=0
2021-10-22 14:45:22 pandoc setting variable from argument DEBUG=0
2021-10-22 14:45:22 pandoc ################## Start Installomator v. 0.8.0
2021-10-22 14:45:22 pandoc ################## pandoc
2021-10-22 14:45:22 pandoc BLOCKING_PROCESS_ACTION=tell_user
2021-10-22 14:45:22 pandoc NOTIFY=success
2021-10-22 14:45:22 pandoc LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-10-22 14:45:22 pandoc no blocking processes defined, using Pandoc as default
2021-10-22 14:45:22 pandoc Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.mzeYX3Fz
2021-10-22 14:45:22 pandoc found packageID net.johnmacfarlane.pandoc installed, version 2.14.2
2021-10-22 14:45:22 pandoc appversion: 2.14.2
2021-10-22 14:45:22 pandoc Latest version of Pandoc is 2.14.2
2021-10-22 14:45:22 pandoc There is no newer version available.
2021-10-22 14:45:22 pandoc Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.mzeYX3Fz
2021-10-22 14:45:22 pandoc App not closed, so no reopen.
2021-10-22 14:45:22 pandoc ################## End Installomator, exit code 0

% sudo /Users/st/Documents/GitHub/Installomator/utils/assemble.sh -r pandoc DEBUG=0 INSTALL=force
2021-10-22 14:45:34 pandoc setting variable from argument DEBUG=0
2021-10-22 14:45:34 pandoc setting variable from argument INSTALL=force
2021-10-22 14:45:34 pandoc ################## Start Installomator v. 0.8.0
2021-10-22 14:45:34 pandoc ################## pandoc
2021-10-22 14:45:35 pandoc BLOCKING_PROCESS_ACTION=tell_user
2021-10-22 14:45:35 pandoc NOTIFY=success
2021-10-22 14:45:35 pandoc LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2021-10-22 14:45:35 pandoc no blocking processes defined, using Pandoc as default
2021-10-22 14:45:35 pandoc Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.3tj6vSeW
2021-10-22 14:45:35 pandoc found packageID net.johnmacfarlane.pandoc installed, version 2.14.2
2021-10-22 14:45:35 pandoc appversion: 2.14.2
2021-10-22 14:45:35 pandoc Latest version of Pandoc is 2.14.2
2021-10-22 14:45:35 pandoc There is no newer version available.
2021-10-22 14:45:35 pandoc Using force to install anyway. Not using updateTool.
2021-10-22 14:45:35 pandoc Downloading https://github.com/jgm/pandoc/releases/download/2.14.2/pandoc-2.14.2-macOS.pkg to mac.pkg
2021-10-22 14:45:39 pandoc no more blocking processes, continue with update
2021-10-22 14:45:39 pandoc Installing Pandoc
2021-10-22 14:45:39 pandoc Verifying: mac.pkg
2021-10-22 14:45:39 pandoc Team ID: 5U2WKE6DES (expected: 5U2WKE6DES )
2021-10-22 14:45:39 pandoc Checking package version.
2021-10-22 14:45:40 pandoc Downloaded package net.johnmacfarlane.pandoc version 2.14.2
2021-10-22 14:45:40 pandoc Downloaded version of Pandoc is the same as installed.
2021-10-22 14:45:40 pandoc Using force to install anyway.
2021-10-22 14:45:40 pandoc Installing mac.pkg to /
installer: Package name is pandoc
installer: Upgrading at base path /
installer: The upgrade was successful.
2021-10-22 14:45:51 pandoc Finishing…
2021-10-22 14:46:01 pandoc found packageID net.johnmacfarlane.pandoc installed, version 2.14.2
2021-10-22 14:46:01 pandoc Installed Pandoc, version 2.14.2
2021-10-22 14:46:01 pandoc notifying
2021-10-22 14:46:02 pandoc Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.3tj6vSeW
2021-10-22 14:46:02 pandoc App not closed, so no reopen.
2021-10-22 14:46:02 pandoc ################## End Installomator, exit code 0
```
2021-10-22 14:46:41 +02:00
Jake
22499f5d98 create logseq.sh 2021-10-21 10:03:01 -04:00
Søren Theilgaard
503396597e typora 2021-10-21 08:56:29 +02:00
Jake
df7e98e0f2 create closeio.sh 2021-10-20 13:42:23 -04:00
Jake
85800fc41f create superhuman.sh 2021-10-20 12:00:23 -04:00
Adam Codega
cfa0d90725 Merge pull request #276 from dan-snelson/dev
Removed extra space
2021-10-20 10:05:57 -04:00
Adam Codega
7e76913add Merge pull request #280 from Installomator/Installomator-label
installomator label
2021-10-20 10:05:20 -04:00
Adam Codega
4f8f69bf76 Merge pull request #281 from Installomator/exifrenamer
exifrenamer
2021-10-19 14:45:22 -04:00
Adam Codega
0d4344e655 Merge pull request #284 from Installomator/apparency-version
Update apparency.sh
2021-10-19 14:44:29 -04:00
Adam Codega
316c223346 Merge pull request #283 from Installomator/airserver-version
Update airserver.sh
2021-10-19 14:44:03 -04:00
Søren Theilgaard
921ba0f79e Removal script 2021-10-19 15:16:20 +02:00
Søren Theilgaard
98b93f1b61 my fork end
So no matter the call, it should install this version.
2021-10-19 15:00:03 +02:00
Søren Theilgaard
b54313a4b2 Update apparency.sh
`appNewVersion` on apparency.
2021-10-19 13:36:01 +02:00
Søren Theilgaard
3792d0d151 Update airserver.sh
`appNewVersion`on airserver.
2021-10-19 13:34:15 +02:00
Søren Theilgaard
638dac575d MDM scripts 2021-10-19 12:55:35 +02:00
Søren Theilgaard
9e1f8f491d MDM scripts
These scripts are great starting points for Mosyle and Addigy, and maybe other solutions as well.
2021-10-19 11:50:53 +02:00
Søren Theilgaard
4a79790d30 exifrenamer 2021-10-19 11:33:17 +02:00
Søren Theilgaard
d49508284f installomator label 2021-10-19 09:19:34 +02:00
XoMute
918005477b Removed 'version' check in case expression 2021-10-16 14:45:38 +03:00
XoMute
25af719e20 Added separate check for 'version' argument 2021-10-16 14:42:54 +03:00
Dan K. Snelson
e46dbe7ad3 Removed extra space 2021-10-15 12:20:04 -06:00
Armin Briegel
dfd9ab1071 Merge branch 'dev' of github.com:Installomator/Installomator into dev 2021-10-15 17:41:46 +02:00
Armin Briegel
ea9c77045f fixed a typo 2021-10-15 17:41:40 +02:00
Adam Codega
d0e0f3e060 Minor changes to verbiage around submitting issues 2021-10-15 08:58:21 -04:00
Søren Theilgaard
e93ecb52de Merge branch 'dev' of https://github.com/Installomator/Installomator into dev 2021-10-14 21:42:11 +02:00
Søren Theilgaard
43aa0a835c CONTRIBUTING.md 2021-10-14 21:37:05 +02:00
Armin Briegel
7af1ce554e updated version 2021-10-14 16:39:11 +02:00
Stephen Boyle
ce25012973 Dont download pkg if we are set to silent_fail and there is blocking process
Fixes issue where installomator will repeatedly download the pkg each run when set to silent_fail and a blockingprocess is present.
2021-05-17 16:20:21 -04:00
96 changed files with 2023 additions and 290 deletions

View File

@@ -1,9 +1,19 @@
## v8.0
- removed leading `0` from the version because it has lost all meaning (thanks to @grahampugh for the inspiration)
- Installomator now detects when an app is already installed, and will display notifications correctly the user based on if the app was updated or installed for the first time.
- New variables for labels that should be installed using CLI: `CLIInstaller` and `CLIArguments`. When the installer app is named differently than the installed app, then the variable `installerTool` should be used to name the app that should be located in the DMG or zip. See the label __adobecreativeclouddesktop__ to see its use.
- `buildLabel.sh` has been improved to build GitHub software labels much easier. In essense if the URL contains github.com, then it will try to find if it's the latest version or if variable `archiveName` is needed for finding the software. Also improved messaging throughout the script, as well as handling a situation where a pkg does not include a “Distribution” file, but a “PackageInfo”.
- MDM script extended with `caffeinate` so Mac will not go to sleep during the time it takes installomator to run. Especially during setup, this can be useful.
- Microsoft labels with `updateTool` variable, is updated to run `msupdate --list` before running the updateTool directly. Problems have been reported that the update would fail if the `--list` parameter for the command was not run first. This should help with the Jamf agent stalling during installation.
- Added bunch of new labels, and improved others.
## 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.)
- 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 spotlight 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

26
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,26 @@
# Contributing to Installomator
__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.__
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.
## Labels
If you need a new label, please take a look at the tutorials in the Wiki, if those can be helpful for starting out on the creation of the label.
We really encourage you to try out finding the version of the app online, so that `appNewVersion` can be filled in the label. It helps a lot when the software needs update, and greatly improve user experience.
When creating a new label, please file a pull request (PR). And feel free to ask questions or make your comments about what else is needed, if we should take a look at the label, or help out in finding the version or isolating URLs or anything else.
Please include the log of installing this label in the description.
Please have one label per PR, so we can separate these. Also if you change/fix a label.
Thank you very much!
## Issues
Do not create an issue just when you have a questions, but do file an issue or pull request (PR) for bugs or wrong behavior. Include the full log and include the version of Installomator you're running.
When in doubt, use the MacAdmins.org Slack as described in [README.md](https://github.com/Installomator/Installomator/)

File diff suppressed because it is too large Load Diff

View File

@@ -4,6 +4,7 @@
abstract
adobebrackets
adobeconnect
adobecreativeclouddesktop
adobereaderdc
adobereaderdc-install
adobereaderdc-update
@@ -11,6 +12,7 @@ aircall
airserver
airtame
aldente
alephone
alfred
alttab
amazonchime
@@ -49,15 +51,19 @@ boxdrive
boxsync
boxtools
brave
bugdom
caffeine
cakebrew
calibre
camostudio
camtasia
canva
chatwork
cisdem-documentreader
citrixworkspace
clevershare2
clickshare
closeio
cloudya
code42
coderunner
@@ -76,6 +82,7 @@ desktoppr
detectxswift
devonthink
dialog
dialpad
discord
docker
drift
@@ -84,13 +91,17 @@ easeusdatarecoverywizard
egnyte
element
eraseinstall
eshareosx
etrecheck
evernote
exelbanstats
exifrenamer
fantastical
fastscripts
favro
ferdi
figma
findanyfile
firefox
firefox_da
firefox_intl
@@ -129,6 +140,7 @@ icons
imazingprofileeditor
inkscape
insomnia
installomator
installomator_theile
intellijideace
istatmenus
@@ -146,6 +158,7 @@ jetbrainsintellijideace
jetbrainsphpstorm
jetbrainspycharm
jetbrainspycharmce
jetbrainsrubymine
jetbrainstoolbox
jetbrainswebstorm
karabinerelements
@@ -162,11 +175,17 @@ launchbar
lexarrecoverytool
libreoffice
logitechoptions
logseq
loom
lucifer
lulu
maccyapp
macfuse
macports
malwarebytes
marathon
marathon2
marathoninfinity
mattermost
menumeters
microsoftautoupdate
@@ -193,6 +212,7 @@ microsoftword
microsoftyammer
miro
montereyblocker
mowgliiitsycal
musescore
muzzle
netnewswire
@@ -200,6 +220,7 @@ nextcloud
nomad
nomadlogin
notion
nudge
nvivo
obs
obsidian
@@ -217,7 +238,10 @@ onlyofficedesktop
openvpnconnect
openvpnconnectv3
opera
ottomatic
overflow
pacifist
pandoc
parsec
pdfsam
perimeter81
@@ -237,6 +261,8 @@ r
ramboxce
rectangle
redeye
remotix
remotixagent
resiliosynchome
retrobatch
ricohpsprinters
@@ -254,6 +280,7 @@ scaleft
screamingfrogseospider
screencloudplayer
screenflick
sequelpro
sfsymbols
shield
sidekick
@@ -262,6 +289,7 @@ silnite
sirimote
sizeup
sketch
sketchupviewer
skype
slack
smartgit
@@ -275,7 +303,12 @@ sonoss2
sourcetree
splashtopsos
spotify
sqlpropostgres
sqlprostudio
steelseriesengine
strongsync
sublimetext
superhuman
supportapp
suspiciouspackage
swiftruntimeforcommandlinetools
@@ -283,6 +316,7 @@ sync
tableaudesktop
tableaureader
tageditor
talkdeskcallbar
taskpaper
teamviewer
teamviewerhost
@@ -300,6 +334,7 @@ torbrowser
trex
tunnelbear
tunnelblick
typora
umbrellaroamingclient
uniconverter
universaltypeclient
@@ -314,6 +349,7 @@ vivaldi
vlc
vmwarehorizonclient
vscodium
wacomdrivers
wallyezflash
webex
webexmeetings
@@ -331,6 +367,7 @@ yubikeymanagerqt
zappy
zeplin
zohoworkdrive
zohoworkdrivetruesync
zoom
zoomclient
zoomgov

168
MDM/App script.sh Executable file
View File

@@ -0,0 +1,168 @@
#!/bin/zsh
# Installation using Installomator
what="brave" # enter the software to install
# To be used as a script sent out from a MDM.
# Fill the variable "what" above with a label.
# Script will run this label.
###############################################
# No sleeping
/usr/bin/caffeinate -d -i -m -u &
caffeinatepid=$!
caffexit () {
kill "$caffeinatepid"
exit $1
}
# Verify that Installomator has been installed
destFile="/usr/local/Installomator/Installomator.sh"
if [ ! -e "${destFile}" ]; then
echo "Installomator not found here:"
echo "${destFile}"
echo "Exiting."
caffexit 99
fi
${destFile} ${what} LOGO=mosyleb BLOCKING_PROCESS_ACTION=tell_user #NOTIFY=all #INSTALL=force
if [ $? != 0 ]; then
# This is currently not working in Mosyle, that will ignore script errors. Please request support for this from Mosyle!
echo "Error installing ${what}. Exit code $?"
caffexit $?
fi
echo "[$(DATE)][LOG-END]"
caffexit 0
# 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.
# Shouldnt 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 its the same version
# Re-opening of closed app
# REOPEN="yes"
# options:
# - yes App wil be reopened if it was closed
# - no App not reopened
########################
# Often used labels:
########################
# firefox
# firefox_intl
# brave
# torbrowser
# googlechrome
# netnewswire
# adobereaderdc
# textmate
# cyberduck
# keka
# theunarchiver
# vlc
# handbrake
# inkscape
# signal
# telegram
# whatsapp
# hazel
# devonthink
# teamviewerqs
# zoom
# malwarebytes
# githubdesktop
# sublimetext
# textmate
# visualstudiocode
# microsoftskypeforbusiness
# microsoftteams
# microsoftyammer
# microsoftedgeenterprisestable
# microsoftedgeconsumerstable
# microsoftsharepointplugin
# microsoftdefenderatp
# googledrivefilestream
# cdef
# desktoppr
# supportapp
# xink
# wwdc

176
MDM/App-loop script.sh Executable file
View File

@@ -0,0 +1,176 @@
#!/bin/zsh
# Installation using Installomator
what="microsoftteams microsoftyammer firefox bravebrowser cyberduck vlc signal" # enter the software to install separated with spaces
# To be used as a script sent out from a MDM.
# Fill the variable "what" above with labels separated by space " ".
# Script will loop through these labels.
######################################################################
# No sleeping
/usr/bin/caffeinate -d -i -m -u &
caffeinatepid=$!
caffexit () {
kill "$caffeinatepid"
exit $1
}
# Count errors
errorCount=0
# Verify that Installomator has been installed
destFile="/usr/local/Installomator/Installomator.sh"
if [ ! -e "${destFile}" ]; then
echo "Installomator not found here:"
echo "${destFile}"
echo "Exiting."
caffexit 99
fi
for item in $what; do
#echo $item
${destFile} ${item} LOGO=mosyleb BLOCKING_PROCESS_ACTION=tell_user #NOTIFY=all #INSTALL=force
if [ $? != 0 ]; then
# This is currently not working in Mosyle, that will ignore script errors. Please request support for this from Mosyle!
echo "[$(DATE)] Error installing ${item}. Exit code $?"
let errorCount++
fi
done
echo
echo "Errors: $errorCount"
echo "[$(DATE)][LOG-END]"
caffexit $errorCount
# 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.
# Shouldnt 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 its the same version
# Re-opening of closed app
# REOPEN="yes"
# options:
# - yes App wil be reopened if it was closed
# - no App not reopened
########################
# Often used labels:
########################
# firefox
# firefox_intl
# brave
# torbrowser
# googlechrome
# netnewswire
# adobereaderdc
# textmate
# cyberduck
# keka
# theunarchiver
# vlc
# handbrake
# inkscape
# signal
# telegram
# whatsapp
# hazel
# devonthink
# teamviewerqs
# zoom
# malwarebytes
# githubdesktop
# sublimetext
# textmate
# visualstudiocode
# microsoftskypeforbusiness
# microsoftteams
# microsoftyammer
# microsoftedgeenterprisestable
# microsoftedgeconsumerstable
# microsoftsharepointplugin
# microsoftdefenderatp
# googledrivefilestream
# cdef
# desktoppr
# supportapp
# xink
# wwdc

43
MDM/Installomator update.sh Executable file
View File

@@ -0,0 +1,43 @@
#!/bin/bash
# Updating Installomator
# Usefull to push out after deployment if earlier version was deployed in DEP profile
# Currently script uses valuesfromarguments as a label is not included before next release, so this can be used to install to version 0.7
what="installomator" # enter the software to install
# No sleeping
/usr/bin/caffeinate -d -i -m -u &
caffeinatepid=$!
caffexit () {
kill "$caffeinatepid"
exit $1
}
# Verify that Installomator has been installed
destFile="/usr/local/Installomator/Installomator.sh"
if [ ! -e "${destFile}" ]; then
echo "Installomator not found here:"
echo "${destFile}"
echo "Exiting."
caffexit 99
fi
${destFile} valuesfromarguments\
name=Installomator \
type=pkg \
packageID=com.scriptingosx.Installomator \
downloadURL=https://github.com/Installomator/Installomator/releases/download/v0.7release/Installomator-0.7.0.pkg \
appNewVersion=0.7 \
expectedTeamID=JME5BW3F3R \
BLOCKING_PROCESS_ACTION=ignore \
NOTIFY=silent
# ${destFile} ${what} BLOCKING_PROCESS_ACTION=ignore NOTIFY=silent
if [ $? != 0 ]; then
# This is currently not working in Mosyle, that will ignore script errors. Please request support for this from Mosyle!
echo "Error installing ${what}. Exit code $?"
caffexit $?
fi
echo "[$(DATE)][LOG-END]"
caffexit 0

99
MDM/MDMAddigy CustomSoftware.sh Executable file
View File

@@ -0,0 +1,99 @@
#!/bin/zsh
# Specific settings in Addigy to configure Custom Software for installomator.
# Addigy has 3 parts to fill out for this, Installation script, Condition, and Removal steps (see RemoveInstallomator.sh).
# Mark: Installation script
# Just click “Add” to autogenerate the installer script line by clicking the “Add”-button next to the Installer PKG, replace with first line below
/usr/sbin/installer -pkg "/Library/Addigy/ansible/packages/Installomator (0.7.0)/Installomator-0.7.0.pkg" -target /
# Installation using Installomator
what="supportapp xink textmate microsoftedge wwdc keka vlc " # enter the software to installed separated with spaces
# To be used as a script sent out from a MDM.
# Fill the variable "what" above with labels separated by space " ".
# Script will loop through these labels and exit with number of errors.
######################################################################
# No sleeping
/usr/bin/caffeinate -d -i -m -u &
caffeinatepid=$!
caffexit () {
kill "$caffeinatepid"
exit $1
}
# Count errors
errorCount=0
# Verify that Installomator has been installed
destFile="/usr/local/Installomator/Installomator.sh"
if [ ! -e "${destFile}" ]; then
echo "Installomator not found here:"
echo "${destFile}"
echo "Exiting."
caffexit 99
fi
for item in $what; do
#echo $item
${destFile} ${item} LOGO=addigy NOTIFY=silent BLOCKING_PROCESS_ACTION=quit_kill #INSTALL=force
if [ $? != 0 ]; then
# Error handling
echo "[$(DATE)] Error installing ${item}. Exit code $?"
let errorCount++
fi
done
echo
echo "Errors: $errorCount"
echo "[$(DATE)][LOG-END]"
caffexit $errorCount
# Mark: Conditions
# Install on success
# Remember to fill out the correct “TARGET_VERSION” and “PKG_ID”, and click "Install on succes".
PKG_ID="com.scriptingosx.Installomator"
TARGET_VERSION="0.7.0"
vercomp () {
if [[ $1 == $2 ]]; then
return 0
fi
local IFS=.
local i ver1=($1) ver2=($2)
# fill empty fields in ver1 with zeros
for ((i=${#ver1[@]}; i<${#ver2[@]}; i++)); do
ver1[i]=0
done
for ((i=0; i<${#ver1[@]}; i++)); do
if [[ -z ${ver2[i]} ]]; then
# fill empty fields in ver2 with zeros
ver2[i]=0
fi
if ((10#${ver1[i]} > 10#${ver2[i]})); then
return 1
fi
if ((10#${ver1[i]} < 10#${ver2[i]})); then
return 2
fi
done
return 0
}
INSTALLED_VERSION="$(pkgutil --pkg-info $PKG_ID | grep -i "^version" | awk '{print $2}')"
echo "Current Version: ${INSTALLED_VERSION}"
vercomp ${TARGET_VERSION} ${INSTALLED_VERSION}
COMP=$? # 0 means the same, 1 means TARGET is newer, 2 means INSTALLED is newer
echo "COMPARISON: ${COMP}"
if [ "${COMP}" -eq 1 ]; then
echo "Installed version is older than ${TARGET_VERSION}."
exit 0
else
echo "Installed version is the same or newer than ${TARGET_VERSION}."
exit 1
fi

72
MDM/MDMMosyle install.sh Normal file
View File

@@ -0,0 +1,72 @@
PKG_ID="com.scriptingosx.Installomator"
TARGET_VERSION="0.7.0"
URLDOWNLOAD="%MosyleCDNFile:blah-blah-blah%"
######################################################################
# Installation using Installomator (enter the software to install separated with spaces in the "what"-variable)
what="handbrake theunarchiver microsoftoffice365"
# Covered by Mosyle Catalog: "brave firefox googlechrome microsoftedge microsoftteams signal sublimetext vlc webex zoom" among others
######################################################################
## Mark: Code here
# No sleeping
/usr/bin/caffeinate -d -i -m -u &
caffeinatepid=$!
caffexit () {
kill "$caffeinatepid"
exit $1
}
# Mark: Condition for Installomator installation
INSTALLED_VERSION="$(pkgutil --pkg-info $PKG_ID 2>/dev/null | grep -i "^version" | awk '{print $2}')"
echo "Current Version: ${INSTALLED_VERSION}"
if [[ "$TARGET_VERSION" != "$INSTALLED_VERSION" ]]; then
TMPDIR=$(mktemp -d )
if ! cd "$TMPDIR"; then
echo "error changing directory $TMPDIR"
caffexit 98
fi
NAME=$TMPDIR/$(date +%s).pkg
if ! curl -fsL "$URLDOWNLOAD" -o "$NAME"; then
echo "error downloading $URLDOWNLOAD to $NAME."
caffexit 97
fi
installer -pkg "$NAME" -target /
rm -rf "$TMPDIR"
else
echo "Installomator version $INSTALLED_VERSION already installed!"
fi
# Mark: Start Installomator label(s) installation
# Count errors
errorCount=0
# Verify that Installomator has been installed
destFile="/usr/local/Installomator/Installomator.sh"
if [ ! -e "${destFile}" ]; then
echo "Installomator not found here:"
echo "${destFile}"
echo "Exiting."
caffexit 99
fi
for item in $what; do
#echo $item
${destFile} ${item} LOGO=mosyle NOTIFY=all BLOCKING_PROCESS_ACTION=tell_user #NOTIFY=silent BLOCKING_PROCESS_ACTION=quit_kill #INSTALL=force
if [ $? != 0 ]; then
# Error handling
echo "[$(DATE)] Error installing ${item}. Exit code $?"
let errorCount++
fi
done
echo
echo "Errors: $errorCount"
echo "[$(DATE)][LOG-END]"
caffexit $errorCount

View File

@@ -0,0 +1,41 @@
#!/bin/bash
# Installation using Installomator
# Example of installing software using valuesfromarguments to install a custom software
what="valuesfromarguments" # enter the software to install
# No sleeping
/usr/bin/caffeinate -d -i -m -u &
caffeinatepid=$!
caffexit () {
kill "$caffeinatepid"
exit $1
}
# Verify that Installomator has been installed
destFile="/usr/local/Installomator/Installomator.sh"
if [ ! -e "${destFile}" ]; then
echo "Installomator not found here:"
echo "${destFile}"
echo "Exiting."
caffexit 99
fi
${destFile} valuesfromarguments \
name=\"Zoho\ WorkDrive\" \
type=dmg \
downloadURL=https://files-accl.zohopublic.com/public/wdbin/download/46f971e4fc4a32b68ad5d7dade38a7d2 \
appNewVersion=2.6.25 \
expectedTeamID=TZ824L8Y37 \
BLOCKING_PROCESS_ACTION=quit \
NOTIFY=all
# ${destFile} ${what} BLOCKING_PROCESS_ACTION=ignore NOTIFY=silent
if [ $? != 0 ]; then
# This is currently not working in Mosyle, that will ignore script errors. Please request support for this from Mosyle!
echo "Error installing ${what}. Exit code $?"
caffexit $?
fi
echo "[$(DATE)][LOG-END]"
caffexit 0

View File

@@ -0,0 +1,13 @@
#!/bin/zsh
# how to remove Installomator.
# Mark: This fork
pkgutil --forget "com.scriptingosx.Installomator"
rm /usr/local/Installomator/Installomator.sh
rmdir /usr/local/Installomator
# Mark: Theile fork
pkgutil --forget "dk.theilgaard.pkg.Installomator"
rm /usr/local/bin/Installomator.sh
rm /usr/local/bin/InstallomatorLabels.sh

View File

@@ -16,11 +16,9 @@ __Please note, that if you are contributing to this project with new labels or o
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.
Do not create an issue just when you have a questions, but do file an issue or pull request (PR) 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.
Please see [CONTRIBUTING.md](https://github.com/Installomator/Installomator/blob/dev/CONTRIBUTING.md) for how to contribute.
## More reading
@@ -374,11 +372,24 @@ Depending on the application or pkg there are a few more variables you can or ne
`$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` (see microsoft installations)
e.g. `msupdate` (see various Microsoft installations).
- `updateToolRunAsCurrentUser`:
When this variable is set (any value), `$updateTool` will be run as the current user. Default is unset and
- `CLIInstaller`:
- `CLIArguments`:
If the downloaded dmg is actually an installer that we can call using CLI, we can use these two variables for what to call.
We need to define `name` for the installed app (to be version checked), as well as `installerTool` for the installer app (if named differently that `name`. Installomator will add the path to the folder/disk image with the binary, and it will be called like this:
`$CLIInstaller $CLIArguments`
For most installations `CLIInstaller` should contain the `installerTool` for the CLI call (if its the same).
We can support a whole range of other software titles by implementing this.
See label adobecreativeclouddesktop.
- `installerTool`:
Introduced as part of `CLIInstaller`. If the installer in the DMG or ZIP is named differently than the installed app, then this variable can be used to name the installer that should be located after mounting/expanding the downloaded archive.
See label adobecreativeclouddesktop
### Configuration from Arguments
You can provide a configuration variable, such as `DEBUG` or `NOTIFY` as an argument in the form `VAR=value`. For example:

View File

@@ -36,9 +36,20 @@ done
# lowercase the label
label=${label:l}
# separate check for 'version' in order to print plain version number without any other information
if [[ $label == "version" ]]; then
echo "$VERSION"
exit 0
fi
printlog "################## Start Installomator v. $VERSION"
printlog "################## $label"
# Check for DEBUG mode
if [[ $DEBUG -gt 0 ]]; then
printlog "DEBUG mode $DEBUG enabled."
fi
# How we get version number from app
# (alternative is "CFBundleVersion", that can be used in labels)
versionKey="CFBundleShortVersionString"
@@ -49,11 +60,6 @@ currentUser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ { print
# 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)"

View File

@@ -0,0 +1,7 @@
mightymike)
name="Nanosaur"
type="dmg"
downloadURL=$(downloadURLFromGit jorio MightyMike)
appNewVersion=$(versionFromGit jorio MightyMike)
expectedTeamID="RVNL7XC27G"
;;

View File

@@ -0,0 +1,7 @@
nanosaur)
name="Nanosaur"
type="dmg"
downloadURL=$(downloadURLFromGit jorio Nanosaur)
appNewVersion=$(versionFromGit jorio Nanosaur)
expectedTeamID="RVNL7XC27G"
;;

View File

@@ -148,6 +148,7 @@ getAppVersion() {
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"
updateDetected="YES"
return
else
printlog "No version found using packageID $packageID"
@@ -162,7 +163,11 @@ getAppVersion() {
else
applist=$(mdfind "kind:application $appName" -0 )
fi
printlog "App(s) found: ${applist}"
if [[ -z applist ]]; then
printlog "No previous app found"
else
printlog "App(s) found: ${applist}"
fi
appPathArray=( ${(0)applist} )
@@ -173,6 +178,7 @@ getAppVersion() {
#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"
updateDetected="YES"
# 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."
@@ -342,10 +348,10 @@ installAppWithPath() { # $1: path to app to install in $targetDir
# versioncheck
# credit: Søren Theilgaard (@theilgaard)
appNewVersion=$(defaults read $appPath/Contents/Info.plist $versionKey)
if [[ $appversion == $appNewVersion ]]; then
if [[ -n $appNewVersion && $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."
message="$name, version $appNewVersion, is the latest version."
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
printlog "notifying"
displaynotification "$message" "No update for $name!"
@@ -369,26 +375,44 @@ installAppWithPath() { # $1: path to app to install in $targetDir
# not running as root
cleanupAndExit 6 "not running as root, exiting"
fi
# Test if variable CLIInstaller is set
if [[ -z $CLIInstaller ]]; then
# remove existing application
if [ -e "$targetDir/$appName" ]; then
printlog "Removing existing $targetDir/$appName"
rm -Rf "$targetDir/$appName"
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
# 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
elif [[ ! -z $CLIInstaller ]]; then
mountname=$(dirname $appPath)
printlog "CLIInstaller exists, running installer command $mountname/$CLIInstaller $CLIArguments" #INFO
# 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"
CLIoutput=$("$mountname/$CLIInstaller" "${CLIArguments[@]}" 2>&1)
CLIstatus=$(echo $?)
logoutput="$CLIoutput" # dedupliatelogs "$CLIoutput"
if [ $CLIstatus -ne 0 ] ; then
cleanupAndExit 3 "Error installing $mountname/$CLIInstaller $CLIArguments error:\n$logoutput" #ERROR
else
printlog "Succesfully ran $mountname/$CLIInstaller $CLIArguments"
fi
printlog "Debugging enabled, update tool output was:\n$logoutput" #DEBUG
fi
}
@@ -411,7 +435,6 @@ mountDMG() {
installFromDMG() {
mountDMG
installAppWithPath "$dmgmount/$appName"
}
@@ -450,7 +473,7 @@ installFromPKG() {
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."
message="$name, version $appNewVersion, is the latest version."
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
printlog "notifying"
displaynotification "$message" "No update for $name!"
@@ -598,7 +621,7 @@ runUpdateTool() {
}
finishing() {
printlog "Finishing"
printlog "Finishing..."
sleep 10 # wait a moment to let spotlight catch up
getAppVersion
@@ -612,7 +635,11 @@ finishing() {
if [[ $currentUser != "loginwindow" && ( $NOTIFY == "success" || $NOTIFY == "all" ) ]]; then
printlog "notifying"
displaynotification "$message" "$name update/installation complete!"
if [[ $updateDetected == "YES" ]]; then
displaynotification "$message" "$name update complete!"
else
displaynotification "$message" "$name installation complete!"
fi
fi
}

View File

@@ -164,6 +164,8 @@ REOPEN="yes"
# - archiveName: (optional)
# The name of the downloaded file.
# When not given the archiveName is derived from the $name.
# Note: This has to be defined BEFORE calling downloadURLFromGit or
# versionFromGit functions in the label.
#
# - appName: (optional)
# File name of the app bundle in the dmg to verify and copy (include .app).
@@ -196,8 +198,27 @@ REOPEN="yes"
# $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
# e.g. msupdate on various Microsoft labels
#
# - updateToolRunAsCurrentUser:
# When this variable is set (any value), $updateTool will be run as the current user.
#
# - CLIInstaller:
# - CLIArguments:
# If the downloaded dmg is actually an installer that we can call using CLI, we can
# use these two variables for what to call.
# We need to define `name` for the installed app (to be version checked), as well as
# `installerTool` for the installer app (if named differently that `name`. Installomator
# will add the path to the folder/disk image with the binary, and it will be called like this:
`$CLIInstaller $CLIArguments`
# For most installations `CLIInstaller` should contain the `installerTool` for the CLI call
# (if its the same).
# We can support a whole range of other software titles by implementing this.
# See label adobecreativeclouddesktop
#
# - installerTool:
# Introduced as part of `CLIInstaller`. If the installer in the DMG or ZIP is named
# differently than the installed app, then this variable can be used to name the
# installer that should be located after mounting/expanding the downloaded archive.
# See label adobecreativeclouddesktop
#

View File

@@ -0,0 +1,17 @@
adobecreativeclouddesktop)
name="Adobe Creative Cloud"
#appName="Install.app"
type="dmg"
if [[ $(arch) == "arm64" ]]; then
downloadURL=$(curl -fs "https://helpx.adobe.com/download-install/kb/creative-cloud-desktop-app-download.html" | grep -o "https*.*macarm64.*dmg" | cut -d '"' -f1 | head -1)
elif [[ $(arch) == "i386" ]]; then
downloadURL=$(curl -fs "https://helpx.adobe.com/download-install/kb/creative-cloud-desktop-app-download.html" | grep -o "https*.*osx10.*dmg" | cut -d '"' -f1 | head -1)
fi
#downloadURL=$(curl -fs "https://helpx.adobe.com/download-install/kb/creative-cloud-desktop-app-download.html" | grep -o "https*.*dmg" | head -1)
appNewVersion=$(curl -fs "https://helpx.adobe.com/creative-cloud/release-note/cc-release-notes.html" | grep "mandatory" | head -1 | grep -o "Version *.* released" | cut -d " " -f2)
installerTool="Install.app"
CLIInstaller="Install.app/Contents/MacOS/Install"
CLIArguments=(--mode=silent)
expectedTeamID="JQ525L2MZD"
Company="Adobe"
;;

View File

@@ -3,6 +3,6 @@ airserver)
name="AirServer"
type="dmg"
downloadURL="https://www.airserver.com/download/mac/latest"
#appNewVersion=$() # Cannot find version history or release notes on home page
appNewVersion=$(curl -fsIL "${downloadURL}" | grep -i "location" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')
expectedTeamID="6C755KS5W3"
;;

View File

@@ -0,0 +1,7 @@
alephone)
name="Aleph One"
type="dmg"
downloadURL=$(downloadURLFromGit Aleph-One-Marathon alephone)
appNewVersion=$(versionFromGit Aleph-One-Marathon alephone)
expectedTeamID="E8K89CXZE7"
;;

View File

@@ -2,5 +2,6 @@ apparency)
name="Apparency"
type="dmg"
downloadURL="https://www.mothersruin.com/software/downloads/Apparency.dmg"
appNewVersion=$(curl -fs https://mothersruin.com/software/Apparency/data/ApparencyVersionInfo.plist | grep -A1 CFBundleShortVersionString | tail -1 | sed -E 's/.*>([0-9.]*)<.*/\1/g')
expectedTeamID="936EB786NH"
;;

View File

@@ -2,6 +2,7 @@ applesfsymbols|\
sfsymbols)
name="SF Symbols"
type="pkgInDmg"
downloadURL="https://developer.apple.com/design/downloads/SF-Symbols.dmg"
downloadURL=$( curl -fs "https://developer.apple.com/sf-symbols/" | grep -oe "https.*\.dmg" | head -1 )
appNewVersion=$( echo "$downloadURL" | head -1 | sed -E 's/.*SF-Symbols-([0-9.]*)\..*/\1/g')
expectedTeamID="Software Update"
;;

View File

@@ -1,8 +1,7 @@
audacity)
# credit: Gabe Marchan (gabemarchan.com - @darklink87)
name="Audacity"
type="dmg"
downloadURL=$(downloadURLFromGit audacity audacity)
appNewVersion=$(versionFromGit audacity audacity)
expectedTeamID="T3N4JQ7YY6"
expectedTeamID="AWEYX923UX"
;;

View File

@@ -2,7 +2,7 @@ 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" )
downloadURL=$(curl -fs "https://www.bluejeans.com/downloads" | xmllint --html --format - 2>/dev/null | grep -o "https://.*BlueJeans.*Installer.*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

View File

@@ -0,0 +1,7 @@
bugdom)
name="Bugdom"
type="dmg"
downloadURL=$(downloadURLFromGit jorio Bugdom)
appNewVersion=$(versionFromGit jorio Bugdom)
expectedTeamID="RVNL7XC27G"
;;

View File

@@ -1,8 +1,9 @@
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)
#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)
appNewVersion=$( curl -fs "https://uds.reincubate.com/release-notes/camo/" | head -1 | cut -d "," -f3 | grep -o -e "[0-9.]*" )
# Camo Studio will ask for admin permissions to install som plug-ins. that has not been handled.
expectedTeamID="Q248YREB53"
;;

11
fragments/labels/canva.sh Normal file
View File

@@ -0,0 +1,11 @@
canva)
name="Canva"
type="dmg"
if [[ $(arch) == "arm64" ]]; then
downloadURL=$(curl -fsLI -H "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" -H "accept-encoding: gzip, deflate, br" -H "accept-language: en-US,en;q=0.9" -H "Referrer Policy: strict-origin-when-cross-origin" -H "upgrade-insecure-requests: 1" -H "sec-fetch-dest: document" -H "sec-gpc: 1" -H "sec-fetch-user: ?1" -H "sec-fetch-mode: navigate" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" "https://www.canva.com/download/mac/arm/canva-desktop/" | grep -i "^location" | cut -d " " -f2 | tr -d '\r')
elif [[ $(arch) == "i386" ]]; then
downloadURL=$(curl -fsLI -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" -H "accept-encoding: gzip, deflate, br" -H "Referrer Policy: strict-origin-when-cross-origin" -H "upgrade-insecure-requests: 1" -H "sec-fetch-dest: document" -H "sec-gpc: 1" -H "sec-fetch-user: ?1" -H "accept-language: en-US,en;q=0.9" -H "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" -H "sec-fetch-mode: navigate" "https://www.canva.com/download/mac/intel/canva-desktop/" | grep -i "^location" | cut -d " " -f2 | tr -d '\r')
fi
appNewVersion=$( echo "${downloadURL}" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g' )
expectedTeamID="5HD2ARTBFS"
;;

View File

@@ -0,0 +1,6 @@
chatwork)
name="Chatwork"
type="dmg"
downloadURL="https://desktop-app.chatwork.com/installer/Chatwork.dmg"
expectedTeamID="H34A3H2Y54"
;;

View File

@@ -0,0 +1,7 @@
closeio)
name="Close.io"
type="dmg"
downloadURL=$(downloadURLFromGit closeio closeio-desktop-releases)
appNewVersion=$(versionFromGit closeio closeio-desktop-releases)
expectedTeamID="WTNQ6773UC"
;;

View File

@@ -1,8 +1,8 @@
dialog)
name="Dialog"
type="pkg"
downloadURL=$(downloadURLFromGit bartreardon Dialog-public )
appNewVersion=$(versionFromGit bartreardon Dialog-public )
packageID="au.csiro.dialogcli"
downloadURL="$(downloadURLFromGit bartreardon Dialog)"
appNewVersion="$(versionFromGit bartreardon Dialog)"
expectedTeamID="PWA5E9TQ59"
;;

View File

@@ -0,0 +1,9 @@
eshareosx)
name="e-Share"
type="pkg"
packageID="com.ncryptedcloud.e-Share.pkg"
downloadURL=https://www.ncryptedcloud.com/static/downloads/osx/$(curl -fs https://www.ncryptedcloud.com/static/downloads/osx/ | grep -o -i "href.*\".*\"" | cut -d '"' -f2)
versionKey="CFBundleVersion"
appNewVersion=$( echo "${downloadURL}" | sed -E 's/.*\/[a-zA-Z\-]*_([0-9.]*)\.pkg/\1/g' )
expectedTeamID="X9MBQS7DDC"
;;

View File

@@ -0,0 +1,7 @@
exifrenamer)
name="ExifRenamer"
type="dmg"
downloadURL="https://www.qdev.de/"$(curl -fs "https://www.qdev.de/download.php?file=ExifRenamer.dmg" | grep -o -e "URL=[a-zA-Z/]*.dmg" | cut -d "=" -f2)
appNewVersion=$(curl -fs "https://www.qdev.de/?location=downloads" | grep -A1 -m1 "ExifRenamer" | tail -1 | cut -d ">" -f2 | cut -d " " -f1)
expectedTeamID="MLF9FE35AM"
;;

View File

@@ -0,0 +1,7 @@
fastscripts)
name="FastScripts"
type="zip"
downloadURL=$( curl -fs "https://redsweater.com/fastscripts/appcast3.php" | xpath '(//rss/channel/item/enclosure/@url)[1]' 2>/dev/null | cut -d '"' -f2 )
appNewVersion=$( curl -fs "https://redsweater.com/fastscripts/appcast3.php" | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | cut -d '"' -f2 )
expectedTeamID="493CVA9A35"
;;

View File

@@ -0,0 +1,7 @@
findanyfile)
name="Find Any File"
type="zip"
downloadURL=$(curl -fs "https://findanyfile.app/appcast2.php" | xpath '(//rss/channel/item/enclosure/@url)[1]' 2>/dev/null | cut -d '"' -f2)
appNewVersion=$(curl -fs "https://findanyfile.app/appcast2.php" | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | cut -d '"' -f2)
expectedTeamID="25856V4B4X"
;;

View File

@@ -2,7 +2,7 @@ firefox)
name="Firefox"
type="dmg"
downloadURL="https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US"
appNewVersion=$(/usr/bin/curl https://www.mozilla.org/en-US/firefox/releases/ --silent | /usr/bin/grep '<html' | /usr/bin/awk -F\" '{ print $8 }') # Credit: William Smith (@meck)
appNewVersion=$(curl -fs https://www.mozilla.org/en-US/firefox/releases/ | grep '<html' | grep -o -i -e "data-latest-firefox=\"[0-9.]*\"" | cut -d '"' -f2)
expectedTeamID="43AQ936H96"
blockingProcesses=( firefox )
;;

View File

@@ -2,7 +2,7 @@ firefox_da)
name="Firefox"
type="dmg"
downloadURL="https://download.mozilla.org/?product=firefox-latest&amp;os=osx&amp;lang=da"
appNewVersion=$(/usr/bin/curl https://www.mozilla.org/en-US/firefox/releases/ --silent | /usr/bin/grep '<html' | /usr/bin/awk -F\" '{ print $8 }') # Credit: William Smith (@meck)
appNewVersion=$(curl -fs https://www.mozilla.org/en-US/firefox/releases/ | grep '<html' | grep -o -i -e "data-latest-firefox=\"[0-9.]*\"" | cut -d '"' -f2)
expectedTeamID="43AQ936H96"
blockingProcesses=( firefox )
;;

View File

@@ -17,7 +17,7 @@ firefox_intl)
printlog "Download not found for that language. Using en-US"
downloadURL="https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US"
fi
appNewVersion=$(/usr/bin/curl -sl https://www.mozilla.org/en-US/firefox/releases/ | /usr/bin/grep '<html' | /usr/bin/awk -F\" '{ print $8 }') # Credit: William Smith (@meck)
appNewVersion=$(curl -fs https://www.mozilla.org/en-US/firefox/releases/ | grep '<html' | grep -o -i -e "data-latest-firefox=\"[0-9.]*\"" | cut -d '"' -f2)
expectedTeamID="43AQ936H96"
blockingProcesses=( firefox )
;;

View File

@@ -2,7 +2,8 @@ inkscape)
# credit: Søren Theilgaard (@theilgaard)
name="Inkscape"
type="dmg"
downloadURL="https://inkscape.org$(curl -fs https://inkscape.org$(curl -fsJL https://inkscape.org/release/ | grep "/release/" | grep en | head -n 1 | cut -d '"' -f 6)mac-os-x/1010-1015/dl/ | grep "click here" | cut -d '"' -f 2)"
#appNewVersion=$(curl -fsJL https://inkscape.org/release/ | grep "<h2>Inkscape" | cut -d '>' -f 3 | cut -d '<' -f 1 | sed 's/[^0-9.]*//g') # Can't figure out where exact new version is found. Currently returns 1.0, but version is "1.0.0 (4035a4f)"
downloadURL="https://inkscape.org$(curl -fs https://inkscape.org$(curl -fsJL https://inkscape.org/release/ | grep "/release/" | grep en | head -n 1 | cut -d '"' -f 6)mac-os-x/dmg/dl/ | grep "click here" | cut -d '"' -f 2)"
appCustomVersion() { /Applications/Inkscape.app/Contents/MacOS/inkscape --version | cut -d " " -f2 }
appNewVersion=$(curl -fsJL https://inkscape.org/release/ | grep "<title>" | grep -o -e "[0-9.]*")
expectedTeamID="SW3D6BB6A6"
;;

View File

@@ -0,0 +1,10 @@
installomator|\
installomator_theile)
name="Installomator"
type="pkg"
packageID="com.scriptingosx.Installomator"
downloadURL=$(downloadURLFromGit Installomator Installomator )
appNewVersion=$(versionFromGit Installomator Installomator )
expectedTeamID="JME5BW3F3R"
blockingProcesses=( NONE )
;;

View File

@@ -1,11 +0,0 @@
installomator_theile)
# credit: Søren Theilgaard (@theilgaard)
name="Installomator"
type="pkg"
packageID="dk.theilgaard.pkg.Installomator"
downloadURL=$(downloadURLFromGit theile Installomator )
appNewVersion=$(versionFromGit theile Installomator )
#appCustomVersion(){/usr/local/bin/Installomator.sh version | tail -1 | awk '{print $4}'}
expectedTeamID="FXW6QXBFW5"
blockingProcesses=( NONE )
;;

View File

@@ -1,7 +1,8 @@
jabradirect)
name="Jabra Direct"
type="pkgInDmg"
packageID="com.jabra.directonline"
downloadURL="https://jabraxpressonlineprdstor.blob.core.windows.net/jdo/JabraDirectSetup.dmg"
appNewVersion=$(curl -fs https://www.jabra.com/Support/release-notes/release-note-jabra-direct | grep -oe "Release version:.*[0-9.]*<" | head -1 | cut -d ">" -f2 | cut -d "<" -f1 | sed 's/ //g')
expectedTeamID="55LV32M29R"
appNewVersion=$(curl -fs https://www.jabra.com/Support/release-notes/release-note-jabra-direct | grep -o "Jabra Direct macOS:*.*<" | head -1 | cut -d ":" -f2 | cut -d " " -f2 | cut -d "<" -f1)
;;

View File

@@ -0,0 +1,13 @@
jetbrainsrubymine)
name="RubyMine"
type="dmg"
jetbrainscode="RM"
if [[ $(arch) == i386 ]]; then
jetbrainsdistribution="mac"
elif [[ $(arch) == arm64 ]]; then
jetbrainsdistribution="macM1"
fi
downloadURL="https://download.jetbrains.com/product?code=${jetbrainscode}&latest&distribution=${jetbrainsdistribution}"
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "location" | tail -1 | sed -E 's/.*\/[a-zA-Z-]*-([0-9.]*).*[-.].*dmg/\1/g' )
expectedTeamID="2ZEFAR8TH3"
;;

View File

@@ -1,8 +1,6 @@
lexarrecoverytool)
# credit: Søren Theilgaard (@theilgaard)
name="Lexar Recovery Tool"
type="appInDmgInZip"
downloadURL="https://www.lexar.com$( curl -fs "https://www.lexar.com/support/downloads/" | grep -i "mac" | grep -i "recovery" | head -1 | tr '"' '\n' | grep -i ".zip" )"
#appNewVersion=""
downloadURL="https://www.lexar.com/wp-content/uploads/product_images/Lexar-Recovery-Tool-Mac.zip"
expectedTeamID="Y8HM6WR2DV"
;;

View File

@@ -3,7 +3,7 @@ logitechoptions)
name="Logitech Options"
type="pkgInZip"
downloadURL=$(curl -fs -L https://www.logitech.com/en-us/product/options | grep -m 1 -o "https.*zip" | sed 's/\"//' | awk '{print $1}')
appNewVersion=$(curl -fs -L https://www.logitech.com/en-us/product/options | grep -m 1 -o "https.*zip" | sed 's/\"//' | awk '{print $1}' | sed -E 's/.*_([0-9\.]*)[-\.].*/\1/' )
#appNewVersion=$(curl -fs -L https://www.logitech.com/en-us/product/options | grep -m 1 -o "https.*zip" | sed 's/\"//' | awk '{print $1}' | sed -E 's/.*_([0-9\.]*)[-\.].*/\1/' )
pkgName="LogiMgr Installer ${appNewVersion}.app/Contents/Resources/LogiMgr.pkg"
expectedTeamID="QED4VVPZWA"
;;

View File

@@ -0,0 +1,13 @@
logseq)
name="Logseq"
type="dmg"
if [[ $(arch) == "arm64" ]]; then
archiveName="darwin-arm64-[0-9.]*.dmg"
downloadURL=$(downloadURLFromGit logseq logseq)
elif [[ $(arch) == "i386" ]]; then
archiveName="darwin-x64-[0-9.]*.dmg"
downloadURL=$(downloadURLFromGit logseq logseq)
fi
appNewVersion=$(versionFromGit logseq logseq)
expectedTeamID="3K44EUN829"
;;

View File

@@ -0,0 +1,7 @@
maccyapp)
name="Maccy"
type="zip"
downloadURL="$(downloadURLFromGit p0deje Maccy)"
appNewVersion="$(versionFromGit p0deje Maccy)"
expectedTeamID="MN3X4648SC"
;;

View File

@@ -0,0 +1,23 @@
macports)
name="MacPorts"
type="pkg"
#buildVersion=$(uname -r | cut -d '.' -f 1)
case $(uname -r | cut -d '.' -f 1) in
21)
archiveName="Monterey.pkg"
;;
20)
archiveName="BigSur.pkg"
;;
19)
archiveName="Catalina.pkg"
;;
*)
cleanupAndExit 1 "macOS 10.14 or earlier not supported by Installomator."
;;
esac
downloadURL=$(downloadURLFromGit macports macports-base)
appNewVersion=$(versionFromGit macports macports-base)
appCustomVersion(){ if [ -x /opt/local/bin/port ]; then /opt/local/bin/port version | awk '{print $2}'; else "0"; fi }
expectedTeamID="QTA3A3B7F3"
;;

View File

@@ -0,0 +1,8 @@
marathon)
name="Marathon"
type="dmg"
archiveName="Marathon-[0-9.]*-Mac.dmg"
downloadURL="$(downloadURLFromGit Aleph-One-Marathon alephone)"
appNewVersion="$(versionFromGit Aleph-One-Marathon alephone)"
expectedTeamID="E8K89CXZE7"
;;

View File

@@ -0,0 +1,8 @@
marathon2)
name="Marathon 2"
type="dmg"
archiveName="Marathon2-[0-9.]*-Mac.dmg"
downloadURL="$(downloadURLFromGit Aleph-One-Marathon alephone)"
appNewVersion="$(versionFromGit Aleph-One-Marathon alephone)"
expectedTeamID="E8K89CXZE7"
;;

View File

@@ -0,0 +1,8 @@
marathoninfinity)
name="Marathon Infinity"
type="dmg"
archiveName="MarathonInfinity-[0-9.]*-Mac.dmg"
downloadURL="$(downloadURLFromGit Aleph-One-Marathon alephone)"
appNewVersion="$(versionFromGit Aleph-One-Marathon alephone)"
expectedTeamID="E8K89CXZE7"
;;

View File

@@ -1,12 +1,9 @@
mattermost)
name="Mattermost"
type="dmg"
if [[ $(arch) == i386 ]]; then
archiveName="mac.dmg"
elif [[ $(arch) == arm64 ]]; then
archiveName="mac-m1.dmg"
fi
archiveName="mac-universal.dmg"
downloadURL=$(downloadURLFromGit mattermost desktop)
appNewVersion=$(versionFromGit mattermost desktop )
expectedTeamID="UQ8HT4Q2XM"
Mattermost Helper (Renderer).app app.asar
;;

View File

@@ -5,6 +5,10 @@ microsoftcompanyportal)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.intunecompanyportal.standalone"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/CompanyPortal_.*pkg" | cut -d "_" -f 2 | cut -d "-" -f 1)
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps IMCP01 )
;;

View File

@@ -5,6 +5,10 @@ microsoftdefenderatp)
appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.defender.standalone"]/version' 2>/dev/null | sed -E 's/<version>([0-9.]*) .*/\1/')
# No version number in download url
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps WDAV00 )
;;

View File

@@ -1,11 +1,16 @@
microsoftedge|\
microsoftedgeconsumerstable)
microsoftedgeconsumerstable|\
microsoftedgeenterprisestable)
name="Microsoft Edge"
type="pkg"
downloadURL="https://go.microsoft.com/fwlink/?linkid=2069148"
downloadURL="https://go.microsoft.com/fwlink/?linkid=2093504"
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.edge"]/cfbundleversion' 2>/dev/null | sed -E 's/<cfbundleversion>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/MicrosoftEdge.*pkg" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps EDGE01 )
;;

View File

@@ -1,10 +0,0 @@
microsoftedgeenterprisestable)
name="Microsoft Edge"
type="pkg"
downloadURL="https://go.microsoft.com/fwlink/?linkid=2093438"
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.edge"]/version' 2>/dev/null | sed -E 's/<version>([0-9.]*) .*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/MicrosoftEdge.*pkg" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')
expectedTeamID="UBF8T346G9"
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps EDGE01 )
;;

View File

@@ -5,6 +5,10 @@ microsoftexcel)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.excel.standalone.365"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/Microsoft_.*pkg" | cut -d "_" -f 3 | cut -d "." -f 1-2)
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps XCEL2019 )
;;

View File

@@ -7,6 +7,10 @@ microsoftoffice365)
expectedTeamID="UBF8T346G9"
# using MS PowerPoint as the 'stand-in' for the entire suite
#appName="Microsoft PowerPoint.app"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "OneDrive" )
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install )

View File

@@ -6,6 +6,10 @@ microsoftofficebusinesspro)
expectedTeamID="UBF8T346G9"
# using MS PowerPoint as the 'stand-in' for the entire suite
appName="Microsoft PowerPoint.app"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "OneDrive" "Teams")
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install )

View File

@@ -5,6 +5,10 @@ microsoftonedrive)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.onedrive.standalone"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | cut -d "/" -f 6 | cut -d "." -f 1-3)
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps ONDR18 )
;;

View File

@@ -5,6 +5,10 @@ microsoftonenote)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.onenote.standalone.365"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/Microsoft_.*pkg" | cut -d "_" -f 3 | cut -d "." -f 1-2)
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps ONMC2019 )
;;

View File

@@ -5,6 +5,10 @@ microsoftoutlook)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.outlook.standalone.365"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/Microsoft_.*pkg" | cut -d "_" -f 3 | cut -d "." -f 1-2)
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps OPIM2019 )
;;

View File

@@ -5,6 +5,10 @@ microsoftpowerpoint)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.powerpoint.standalone.365"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/Microsoft_.*pkg" | cut -d "_" -f 3 | cut -d "." -f 1-2)
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps PPT32019 )
;;

View File

@@ -5,6 +5,10 @@ microsoftremotedesktop)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.remotedesktop.standalone"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/Microsoft_Remote_Desktop.*pkg" | cut -d "_" -f 4)
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps MSRD10 )
;;

View File

@@ -5,6 +5,10 @@ microsoftskypeforbusiness)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.skypeforbusiness.standalone"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" && $DEBUG -eq 0 ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps MSFB16 )
;;

View File

@@ -8,6 +8,6 @@ microsoftteams)
expectedTeamID="UBF8T346G9"
blockingProcesses=( Teams "Microsoft Teams Helper" )
# Commenting out msupdate as it is not really supported *yet* for teams
# updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
# updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate --list; /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
# updateToolArguments=( --install --apps TEAM01 )
;;

View File

@@ -2,7 +2,6 @@ microsoftvisualstudiocode|\
visualstudiocode)
name="Visual Studio Code"
type="zip"
#downloadURL="https://go.microsoft.com/fwlink/?LinkID=620882" # Intel only
downloadURL="https://go.microsoft.com/fwlink/?LinkID=2156837" # Universal
appNewVersion=$(curl -fsL "https://code.visualstudio.com/Updates" | grep "/darwin" | grep -oiE ".com/([^>]+)([^<]+)/darwin" | cut -d "/" -f 2 | sed $'s/[^[:print:] ]//g' | head -1 )
expectedTeamID="UBF8T346G9"

View File

@@ -5,6 +5,10 @@ microsoftword)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/package[id="com.microsoft.word.standalone.365"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | grep -o "/Microsoft_.*pkg" | cut -d "_" -f 3 | cut -d "." -f 1-2)
expectedTeamID="UBF8T346G9"
if [[ -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" && $INSTALL != "force" ]]; then
printlog "Running msupdate --list"
"/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" --list
fi
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
updateToolArguments=( --install --apps MSWD2019 )
;;

View File

@@ -5,6 +5,6 @@ microsoftyammer)
#appNewVersion=$(curl -fs https://macadmins.software/latest.xml | xpath '//latest/oldpackage[id="com.microsoft.yammer.standalone"]/cfbundleshortversionstring' 2>/dev/null | sed -E 's/<cfbundleshortversionstring>([0-9.]*)<.*/\1/')
appNewVersion=$(curl -fsIL "$downloadURL" | grep -i location: | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')
expectedTeamID="UBF8T346G9"
#updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
#updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate --list; /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
#updateToolArguments=( --install --apps ?????? )
;;

View File

@@ -0,0 +1,8 @@
mowgliiitsycal)
name="Itsycal"
type="zip"
downloadURL=$(curl -fs https://s3.amazonaws.com/itsycal/itsycal.xml | xpath '(//rss/channel/item/enclosure/@url)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)
appNewVersion=$(curl -fs https://s3.amazonaws.com/itsycal/itsycal.xml | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)
expectedTeamID="HFT3T55WND"
;;

View File

@@ -0,0 +1,8 @@
nudge)
name="Nudge"
type="pkg"
downloadURL=$(downloadURLFromGit macadmins Nudge )
appNewVersion=$(versionFromGit macadmins Nudge )
expectedTeamID="9GQZ7KUFR6"
archiveName="Nudge-[0-9.]*.pkg"
;;

View File

@@ -0,0 +1,8 @@
ottomatic)
name="Otto Matic"
type="dmg"
downloadURL=$(downloadURLFromGit jorio OttoMatic)
appNewVersion=$(versionFromGit jorio OttoMatic)
expectedTeamID="RVNL7XC27G"
;;

View File

@@ -0,0 +1,8 @@
overflow)
name="Overflow"
type="dmg"
downloadURL="$(curl -sL 'https://overflow.io/download/' | awk -F '"' '/app-updates.overflow.io\/packages\/updates\/osx_64/ { print $8; exit }')"
appNewVersion=$(echo "$downloadURL" | awk -F '-|[.]dmg' '{ print $(NF-1) }')
expectedTeamID="7TK7YSGJFF"
versionKey="CFBundleShortVersionString"
;;

View File

@@ -0,0 +1,9 @@
pandoc)
name="Pandoc"
type="pkg"
packageID="net.johnmacfarlane.pandoc"
downloadURL=$(downloadURLFromGit jgm pandoc )
appNewVersion=$(versionFromGit jgm pandoc )
archiveName="mac.pkg"
expectedTeamID="5U2WKE6DES"
;;

View File

@@ -1,8 +1,7 @@
r)
# credit: Tadayuki Onishi (@kenchan0130)
name="R"
type="pkg"
downloadURL=$( curl -fsL https://formulae.brew.sh/api/cask/r.json | sed -n 's/^.*"url":"\([^"]*\)".*$/\1/p' )
appNewVersion=$(curl -fsL https://formulae.brew.sh/api/cask/r.json | sed -n 's/^.*"version":"\([^"]*\)".*$/\1/p')
downloadURL="https://cloud.r-project.org/bin/macosx/$( curl -fsL https://cloud.r-project.org/bin/macosx/ | grep -m 1 -o '<a href=".*pkg">' | sed -E 's/.+"(.+)".+/\1/g' )"
appNewVersion=$(echo "${downloadURL}" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')
expectedTeamID="VZLD955F6P"
;;

View File

@@ -0,0 +1,7 @@
remotix)
name="Remotix"
type="dmg"
downloadURL="https://remotix.com/downloads/latest-remotix-mac/"
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)-.*\.dmg/\1/g' )
expectedTeamID="K293Y6CVN4"
;;

View File

@@ -0,0 +1,8 @@
remotixagent)
name="RemotixAgent"
type="pkg"
packageID="com.nulana.rxagentmac"
downloadURL="https://remotix.com/downloads/latest-agent-mac/"
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)-.*\.pkg/\1/g' )
expectedTeamID="K293Y6CVN4"
;;

View File

@@ -1,7 +1,7 @@
screencloudplayer)
# credit: AP Orlebeke (@apizz)
name="ScreenCloud Player"
type="dmg"
downloadURL=$(curl -sL "https://screencloud.com/download" | sed -n 's/^.*"url":"\([^"]*\)".*$/\1/p')
downloadURL=$(curl -fs "https://screencloud.com/download" | sed -n 's/^.*"url":"\(https.*\.dmg\)".*$/\1/p')
appNewVersion=$( echo $downloadURL | sed -e 's/.*\/ScreenCloud.*\-\([0-9.]*\)\.dmg/\1/g' )
expectedTeamID="3C4F953K6P"
;;

View File

@@ -0,0 +1,7 @@
sequelpro)
name="Sequel Pro"
type="dmg"
downloadURL="$(downloadURLFromGit sequelpro sequelpro)"
appNewVersion="$(versionFromGit sequelpro sequelpro)"
expectedTeamID="Media"
;;

View File

@@ -0,0 +1,6 @@
sketchupviewer)
name="SketchUpViewer"
type="dmg"
downloadURL="$(curl -fs https://www.sketchup.com/sketchup/SketchUpViewer-en-dmg | grep "<a href=" | sed 's/.*href="//' | sed 's/".*//')"
expectedTeamID="J8PVMCY7KL"
;;

View File

@@ -1,7 +1,11 @@
smartgit)
name="SmartGit"
type="dmg"
downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.dmg")"
if [[ $(arch) == "arm64" ]]; then
downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.dmg" | tail -1)"
elif [[ $(arch) == "i386" ]]; then
downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.dmg" | head -1)"
fi
appNewVersion="$(curl -fs "https://www.syntevo.com/smartgit/changelog.txt" | grep -i -E "SmartGit *[0-9.]* *.*" | head -1 | awk '{print $2}')"
expectedTeamID="PHMY45PTNW"
;;

View File

@@ -0,0 +1,7 @@
sqlpropostgres)
name="SQLPro for Postgres"
type="zip"
downloadURL="https://macpostgresclient.com/download.php"
expectedTeamID="LKJB72232C"
blockingProcesses=( "SQLPro for Postgres" )
;;

View File

@@ -0,0 +1,7 @@
sqlprostudio)
name="SQLPro Studio"
type="zip"
downloadURL="https://www.sqlprostudio.com/download.php"
expectedTeamID="LKJB72232C"
blockingProcesses=( "SQLPro Studio" )
;;

View File

@@ -0,0 +1,7 @@
steelseriesengine)
name="SteelSeries GG"
type="pkg"
downloadURL="https://steelseries.com/engine/latest/darwin"
appNewVersion="$(curl -fsIL "$downloadURL" | grep -i "^location" | sed -E 's/.*SteelSeriesGG([0-9.]*)\.pkg/\1/')"
expectedTeamID="6WGL6CHFH2"
;;

View File

@@ -0,0 +1,9 @@
strongsync)
name="Strongsync"
type="dmg"
#downloadURL="https://updates.expandrive.com/apps/strongsync/download_latest"
downloadURL=$(curl -fs "https://updates.expandrive.com/appcast/strongsync.xml" | xpath '(//rss/channel/item/enclosure/@url)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)
appNewVersion=$(curl -fs "https://updates.expandrive.com/appcast/strongsync.xml" | xpath '(//rss/channel/item/enclosure/@sparkle:version)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)
versionKey="CFBundleVersion"
expectedTeamID="CH86M498V4"
;;

View File

@@ -0,0 +1,11 @@
superhuman)
name="superhuman"
type="dmg"
if [[ $(arch) == "arm64" ]]; then
downloadURL="https://download.superhuman.com/Superhuman-arm64.dmg"
elif [[ $(arch) == "i386" ]]; then
downloadURL="https://download.superhuman.com/Superhuman.dmg"
fi
appNewVersion=$(curl -fs "https://storage.googleapis.com/download.superhuman.com/supertron-update/latest-mac.yml" | head -1 | cut -d " " -f2)
expectedTeamID="6XHFYUTQGX"
;;

View File

@@ -0,0 +1,7 @@
talkdeskcallbar)
name="Callbar"
type="dmg"
downloadURL=https://downloadcallbar.talkdesk.com/Callbar-$(curl -fsL https://downloadcallbar.talkdesk.com/release_metadata.json | sed -n 's/^.*"version":"\([^"]*\)".*$/\1/p').dmg
appNewVersion=$(curl -fsL https://downloadcallbar.talkdesk.com/release_metadata.json | sed -n 's/^.*"version":"\([^"]*\)".*$/\1/p')
expectedTeamID="YGGJX44TB8"
;;

View File

@@ -0,0 +1,9 @@
typora)
name="Typora"
type="dmg"
#downloadURL="https://www.typora.io/download/Typora.dmg"
downloadURL=$(curl -fs "https://www.typora.io/download/dev_update.xml" | xpath '(//rss/channel/item/enclosure/@url)[1]' 2>/dev/null | cut -d '"' -f2)
#appNewVersion="$(curl -fs "https://www.typora.io/dev_release.html" | grep -o -i "h4>[0-9.]*</h4" | head -1 | sed -E 's/.*h4>([0-9.]*)<\/h4.*/\1/')"
appNewVersion=$(curl -fs "https://www.typora.io/download/dev_update.xml" | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | cut -d '"' -f2)
expectedTeamID="9HWK5273G4"
;;

View File

@@ -1,10 +1,8 @@
vagrant)
# credit: AP Orlebeke (@apizz)
name="Vagrant"
type="pkgInDmg"
pkgName="vagrant.pkg"
downloadURL=$(curl -fs https://www.vagrantup.com/downloads | tr '><' '\n' | awk -F'"' '/x86_64.dmg/ {print $6}' | head -1)
#appNewVersion=$( curl -fs https://www.vagrantup.com/downloads.html | grep -i "Current Version" )
appNewVersion=$(versionFromGit hashicorp vagrant)
downloadURL=$(curl -fs "https://www.vagrantup.com/downloads" | tr '"' '\n' | grep "^https.*\.dmg$" | head -1)
appNewVersion=$( echo $downloadURL | cut -d "/" -f5 )
expectedTeamID="D38WU7D763"
;;

View File

@@ -1,11 +1,8 @@
vscodium)
# credit: AP Orlebeke (@apizz)
name="VSCodium"
type="dmg"
downloadURL=$(curl -fs "https://api.github.com/repos/VSCodium/vscodium/releases/latest" | awk -F '"' "/browser_download_url/ && /dmg/ && ! /sig/ && ! /CLI/ && ! /sha256/ { print \$4 }")
#downloadURL=$(downloadURLFromGit VSCodium vscodium) # Too many versions
appNewVersion=$(versionFromGit VSCodium vscodium)
downloadURL="$(downloadURLFromGit VSCodium vscodium)"
appNewVersion="$(versionFromGit VSCodium vscodium)"
expectedTeamID="C7S3ZQ2B8V"
appName="VSCodium.app"
blockingProcesses=( Electron )
;;

View File

@@ -0,0 +1,8 @@
wacomdrivers)
name="Wacom Desktop Center"
type="pkgInDmg"
downloadURL="$(curl -fs https://www.wacom.com/en-us/support/product-support/drivers | grep -e "drivers/mac/professional.*dmg" | head -1 | sed -e 's/data-download-link="//g' -e 's/"//' | awk '{$1=$1}{ print }' | sed 's/\r//')"
expectedTeamID="EG27766DY7"
pkgName="Install Wacom Tablet.pkg"
appNewVersion="$(curl -fs https://www.wacom.com/en-us/support/product-support/drivers | grep mac/professional/releasenotes | head -1 | awk -F"|" '{print $1}' | awk -F"Driver" '{print $3}' | sed -e 's/ (.*//g' | tr -d ' ')"
;;

View File

@@ -1,7 +1,8 @@
xink)
name="Xink"
type="zip"
downloadURL="https://downloads.xink.io/macos/client"
#appNewVersion=$() # Cannot find version history or release notes on home page
type="pkg"
packageID="com.emailsignature.Xink"
downloadURL="https://downloads.xink.io/macos/pkg"
appNewVersion=$(curl -fs "https://downloads.xink.io/macos/appcast" | xpath '(//rss/channel/item/enclosure/@sparkle:version)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)
expectedTeamID="F287823HVS"
;;

View File

@@ -0,0 +1,11 @@
zohoworkdrivetruesync)
# Using this label expects you to agree to these:
# License Areemant: https://www.zoho.com/workdrive/zohoworkdrive-license-agreement.html
# Privacy policy: https://www.zoho.com/privacy.html
name="Zoho WorkDrive TrueSync"
type="pkg"
#https://www.zoho.com/workdrive/truesync.html
#https://files-accl.zohopublic.com/public/tsbin/download/c488f53fb0fe339a8a3868a16d56ede6
downloadURL=$(curl -fs "https://www.zoho.com/workdrive/truesync.html" | tr '<' '\n' | grep -B3 "For Mac" | grep -o -m1 "https.*\"" | cut -d '"' -f1)
expectedTeamID="TZ824L8Y37"
;;

View File

@@ -117,6 +117,10 @@ printlog "appversion: $appversion"
# MARK: Exit if new version is the same as installed version (appNewVersion specified)
# credit: Søren Theilgaard (@theilgaard)
if [[ $INSTALL == "force" ]]; then
printlog "Using force to install, so not using updateTool."
updateTool=""
fi
if [[ -n $appNewVersion ]]; then
printlog "Latest version of $name is $appNewVersion"
if [[ $appversion == $appNewVersion ]]; then
@@ -129,9 +133,6 @@ if [[ -n $appNewVersion ]]; then
displaynotification "$message" "No update for $name!"
fi
cleanupAndExit 0 "No newer version."
else
printlog "Using force to install anyway. Not using updateTool."
updateTool=""
fi
else
printlog "DEBUG mode enabled, not exiting, but there is no new version of app."
@@ -139,10 +140,6 @@ if [[ -n $appNewVersion ]]; then
fi
else
printlog "Latest version not specified."
if [[ $INSTALL == "force" ]]; then
printlog "Using force to install, so not using updateTool."
updateTool=""
fi
fi
# MARK: check if this is an Update and we can use updateTool
@@ -169,14 +166,22 @@ else
printlog "Downloading $downloadURL to $archiveName"
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
printlog "notifying"
displaynotification "Downloading $name update" "Download in progress …"
if [[ $updateDetected == "YES" ]]; then
displaynotification "Downloading $name update" "Download in progress …"
else
displaynotification "Downloading new $name" "Download in progress …"
fi
fi
if ! curl --location --fail --silent "$downloadURL" -o "$archiveName"; then
printlog "error downloading $downloadURL"
message="$name update/installation failed. This will be logged, so IT can follow up."
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
printlog "notifying"
displaynotification "$message" "Error installing/updating $name"
if [[ $updateDetected == "YES" ]]; then
displaynotification "$message" "Error updating $name"
else
displaynotification "$message" "Error installing $name"
fi
fi
cleanupAndExit 2
fi
@@ -199,7 +204,17 @@ fi
printlog "Installing $name"
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
printlog "notifying"
displaynotification "Installing $name" "Installation in progress …"
if [[ $updateDetected == "YES" ]]; then
displaynotification "Updating $name" "Installation in progress …"
else
displaynotification "Installing $name" "Installation in progress …"
fi
fi
if [ -n "$installerTool" ]; then
# installerTool defined, and we use that for installation
printlog "installerTool used: $installerTool"
appName="$installerTool"
fi
case $type in

View File

@@ -1 +1 @@
0.7.0
8.0

View File

@@ -10,6 +10,94 @@ downloadURL=${1?:"need to provide a download URL."}
# Usage
# ./buildLabel.sh <URL to download software>
# Mark: Functions
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
}
# 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 "$archiveDestinationName" ]; then
downloadURL=$(curl -sf "https://api.github.com/repos/$gitusername/$gitreponame/releases/latest" | awk -F '"' "/browser_download_url/ && /$archiveName\"/ { print \$4; exit }")
else
downloadURL=$(curl -sf "https://api.github.com/repos/$gitusername/$gitreponame/releases/latest" | awk -F '"' "/browser_download_url/ && /$filetype\"/ { print \$4; exit }")
fi
echo "$downloadURL"
return 0
}
versionFromGit() {
# $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
}
pkgInvestigation() {
echo "Package investigation."
teamID=$(spctl -a -vv -t install "$pkgPath" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' )
if [[ -z $teamID ]]; then
echo "Error verifying PKG: $pkgPath"
echo "No TeamID found."
exit 4
fi
echo "Team ID found for PKG: $teamID"
echo "For PKGs it's advised to find packageID for version checking, so extracting those"
pkgutil --expand "$pkgPath" "$archiveName"_pkg
if [[ -a "$archiveName"_pkg/Distribution ]] ; then
cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null
packageID="$(cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null | tr ' ' '\n' | grep -i "id" | cut -d \" -f 2)"
elif [[ -a "$archiveName"_pkg/PackageInfo ]] ; then
cat "$archiveName"_pkg/PackageInfo | xpath '//pkg-info/@version' 2>/dev/null
packageID="$(cat "$archiveName"_pkg/PackageInfo | xpath '//pkg-info/@identifier' 2>/dev/null | cut -d '"' -f2 )"
fi
rm -r "$archiveName"_pkg
echo "$packageID"
echo "Above is the possible packageIDs that can be used, and the correct one is probably one of those with a version number. More investigation might be needed to figure out correct packageID if several are displayed."
}
appInvestigation() {
appName=${appPath##*/}
name=${appName%.*}
echo "Application investigation."
# verify with spctl
teamID=$(spctl -a -vv "$appPath" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' )
if [[ -z $teamID ]]; then
echo "Error verifying app: $appPath"
echo "No TeamID found."
exit 4
fi
echo "Team ID found for app: $teamID"
}
# Mark: Code
# Use working directory as download folder
tmpDir="$(pwd)/$(date "+%Y-%m-%d-%H-%M-%S")"
# Create a n almost unique folder name
@@ -23,57 +111,48 @@ if ! cd "$tmpDir"; then
fi
echo "Working dir: $(pwd)"
# download the URL
# investigate and download the URL
echo "Downloading $downloadURL"
echo "Redirecting to (maybe this can help us with version):\n$(curl -fsIL "$downloadURL" | grep -i ^location)"
echo $(basename $downloadURL)
# First trying to find redirection headers on the download, as those can contain version numbers
echo "Redirecting to (maybe this can help us with version):\n$(curl -fsIL -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" -H "accept-encoding: gzip, deflate, br" -H "Referrer Policy: strict-origin-when-cross-origin" -H "upgrade-insecure-requests: 1" -H "sec-fetch-dest: document" -H "sec-gpc: 1" -H "sec-fetch-user: ?1" -H "accept-language: en-US,en;q=0.9" -H "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" -H "sec-fetch-mode: navigate" "$downloadURL" | grep -i "^[location|x\-amz\-meta\-version]*")"
# Now downloading without extra headers
if ! downloadOut="$(curl -fL "$downloadURL" --remote-header-name --remote-name -w "%{filename_effective}\n%{url_effective}\n")"; then
echo "error downloading $downloadURL"
exit 2
echo "error downloading $downloadURL using standard headers."
echo "result: $downloadOut"
echo "Trying all headers…" # that I know of
if ! downloadOut="$(curl -fL -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" -H "accept-encoding: gzip, deflate, br" -H "Referrer Policy: strict-origin-when-cross-origin" -H "upgrade-insecure-requests: 1" -H "sec-fetch-dest: document" -H "sec-gpc: 1" -H "sec-fetch-user: ?1" -H "accept-language: en-US,en;q=0.9" -H "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" -H "sec-fetch-mode: navigate" "$downloadURL" --remote-header-name --remote-name -w "%{filename_effective}\n%{url_effective}\n")"; then
# we are only here if the download failed
echo "error downloading $downloadURL using all headers."
echo "result: $downloadOut"
# Sometimes a server will give some results to the downloaded output
if [[ -n $downloadOut ]]; then
echo "Trying output of this…"
downloadURL="$(echo $downloadOut | tail -1)"
# Last chance for succes on this download
if ! downloadOut="$(curl -fL "$downloadURL" --remote-header-name --remote-name -w "%{filename_effective}\n%{url_effective}\n")"; then
echo "error downloading $downloadURL using previous output."
echo "result: $downloadOut"
echo "No more tries. Cannot continue."
exit 1
fi
fi
fi
fi
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
}
# Now we have downloaded the archive, and we need to analyze this
# The download have returned both {filename_effective} and {url_effective}
pkgInvestigation() {
echo "Package found"
teamID=$(spctl -a -vv -t install "$archiveName" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' )
echo "For PKGs it's advised to find packageID for version checking"
pkgutil --expand "$pkgPath" "$archiveName"_pkg
cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null
packageID="$(cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null | tr ' ' '\n' | grep -i "id" | cut -d \" -f 2)"
rm -r "$archiveName"_pkg
echo "$packageID"
echo "Above is the possible packageIDs that can be used, and the correct one is probably one of those with a version number. More investigation might be needed to figure out correct packageID if several are displayed."
}
appInvestigation() {
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
}
#echo "downloadOut:\n${downloadOut}"
archiveTempName=$( echo "${downloadOut}" | head -1 )
echo "archiveTempName: $archiveTempName"
archivePath=$( echo "${downloadOut}" | tail -1 )
echo "archivePath: $archivePath"
# The two fields retuurned can be exchanged, so some servers return the filename on the other variable. Don't know why.
# So we want to investigate which one has the filename
try1archiveName=${${archiveTempName##*/}%%\?*}
try2archiveName=${${archivePath##*/}%%\?*}
fileName_re='^([a-zA-Z0-9\_.%-]*)\.(dmg|pkg|zip|tbz)$'
fileName_re='^([a-zA-Z0-9\_.%-]*)\.(dmg|pkg|zip|tbz)$' # regular expression for matching
if [[ "${try1archiveName}" =~ $fileName_re ]]; then
archiveName=${try1archiveName}
elif [[ "${try2archiveName}" =~ $fileName_re ]]; then
@@ -81,22 +160,26 @@ elif [[ "${try2archiveName}" =~ $fileName_re ]]; then
else
echo "Could not determine archiveName from “$try1archiveName” and “$try2archiveName"
#echo "Extensions $archiveTempName:t:e $archivePath:t:e"
exit
exit 1
fi
# So we found a filename, and now we want to detect the extension and other information
echo "Calculated archiveName: $archiveName"
mv $archiveTempName $archiveName
name=${archiveName%.*}
echo "name: $name"
archiveExt=${archiveName##*.}
type=$archiveExt
echo "archiveExt: $archiveExt"
identifier=${name:l}
identifier=${identifier//\%[0-9a-fA-F][0-9a-fA-F]}
identifier=${identifier//[,._*@$\(\)\-]}
identifier=${name:l} # making lower case
identifier=${identifier//\%[0-9a-fA-F][0-9a-fA-F]} # removing certain characters
identifier=${identifier//[,._*@$\(\)\-]} # removing more characters from label name
echo "identifier: $identifier"
# Now figuring out the filename extension and handling those situations
if [ "$archiveExt" = "pkg" ]; then
pkgPath="$archiveName"
echo "PKG found: $pkgPath"
pkgInvestigation
elif [ "$archiveExt" = "dmg" ]; then
echo "Diskimage found"
@@ -108,15 +191,20 @@ elif [ "$archiveExt" = "dmg" ]; then
fi
echo "Mounted: $dmgmount"
# check if app og pkg exists
# check if app og pkg exists on disk image
appPath=$(find "$dmgmount" -name "*.app" -maxdepth 1 -print )
pkgPath=$(find "$dmgmount" -name "*.pkg" -maxdepth 1 -print )
if [[ $appPath != "" ]]; then
echo "App found: $appPath"
appInvestigation
elif [[ $pkgPath != "" ]]; then
echo "PKG found: $pkgPath"
archiveExt="pkgInDmg"
pkgInvestigation
else
echo "Nothing found on DMG."
exit 9
fi
hdiutil detach "$dmgmount"
@@ -125,43 +213,141 @@ elif [ "$archiveExt" = "zip" ] || [ "$archiveExt" = "tbz" ]; then
# unzip the archive
tar -xf "$archiveName"
# check if app og pkg exists
# check if app og pkg exists after expanding
appPath=$(find "$tmpDir" -name "*.app" -maxdepth 2 -print )
pkgPath=$(find "$tmpDir" -name "*.pkg" -maxdepth 2 -print )
if [[ $appPath != "" ]]; then
echo "App found: $appPath"
appInvestigation
elif [[ $pkgPath != "" ]]; then
echo "PKG found: $pkgPath"
archiveExt="pkgInZip"
pkgInvestigation
else
echo "Nothing found in compressed archive."
exit 9
fi
fi
echo
echo "**********"
echo
echo "Labels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed."
echo
echo "appNewVersion is often difficult to find. Can sometimes be found in the filename, sometimes as part of the download redirects, but also on a web page. See redirect and archivePath above if link contains information about this. That is a good place to start"
echo
echo "$identifier)"
# github-part to figure out if we can find author and repo, to use our github functions for the label
if echo "$downloadURL" | grep -i "github.com.*releases/download"; then
echo "\n**********\n\nFound GitHub path"
githubAuthor=$(echo "$downloadURL" | cut -d "/" -f4)
githubRepo=$(echo "$downloadURL" | cut -d "/" -f5)
if [[ ! -z $githubAuthor && $githubRepo ]] ; then
githubError=9
echo "Github place: $githubAuthor $githubRepo"
originalDownloadURL="$downloadURL"
githubDownloadURL=$(downloadURLFromGit "$githubAuthor" "$githubRepo")
githubAppNewVersion=$(versionFromGit "$githubAuthor" "$githubRepo")
downloadURL=$originalDownloadURL
echo "Latest URL on github: $githubDownloadURL \nLatest version: $githubAppNewVersion"
if [[ "$originalDownloadURL" == "$githubDownloadURL" ]]; then
echo "GitHub calculated URL matches entered URL."
githubError=0
downloadURL="\$(downloadURLFromGit $githubAuthor $githubRepo)"
appNewVersion="\$(versionFromGit $githubAuthor $githubRepo)"
else
if [[ "$( echo $originalDownloadURL | cut -d "/" -f1-7)" == "$( echo $githubDownloadURL | cut -d "/" -f1-7)" ]]; then
echo "Calculated GitHub URL almost identical, only this diff:"
echo "$( echo $originalDownloadURL | cut -d "/" -f8-)” and “$( echo $githubDownloadURL | cut -d "/" -f8-)"
echo "Could be version difference or difference in archiveName for a given release."
echo "Testing for version difference."
#Investigate if these strings match if numbers are removed.
if [[ "$( echo $originalDownloadURL | cut -d "/" -f8- | sed 's/[0-9.]*//g')" == "$( echo $githubDownloadURL | cut -d "/" -f8- | sed 's/[0-9.]*//g')" ]]; then
# In this if..then we found out if the end parts of the URL was mathing after removinger numbers and dots (and then assuming that only a version was different
echo "$( echo $originalDownloadURL | cut -d "/" -f8- | sed 's/[0-9.]*//g')” and “$( echo $githubDownloadURL | cut -d "/" -f8- | sed 's/[0-9.]*//g')"
echo "Matching without numbers in string.\nVERY LIKELY a version difference."
githubError=1
echo "Try running again with URL: ${githubDownloadURL}"
else
# If we are here more than numbers and dots didn't match, so maybe this repo has software for several software titles
echo "Not a version problem.\nTesting for difference in archiveName."
tempName=$(echo ${archiveName%.*} | grep -o "[0-9.]*" )
# if archiveName contains several sections of numbers and/or dots, like "Marathon2-20210408-Mac.dmg" that will return 2 and 20210408 so we want to find the longest of these two (or more), assuming that the longest is the version
tempName=( $tempName ) # make it an array
i=0; max=0; tempString=""
echo $tempName | while read tempLine; do
((i++))
length[$i]=${#tempLine}
if [[ $max -lt $length[$i] ]] ; then
max=$length[$i]
tempString=$tempLine
fi
done
# Now tempString will have the longest string returned before. So I use that in a search-replace to remove that part and insert regular expression "[0-9.]*" instead as that will match the removed part
archiveDestinationName="$(echo $archiveName | sed -E "s/^(.*)$tempString(.*)$/\1[0-9.]*\2/g")"
echo "archiveName=\"$archiveDestinationName\""
# Now we want to test if the archiveName is working
githubDownloadURL=$(downloadURLFromGit "$githubAuthor" "$githubRepo")
githubAppNewVersion=$(versionFromGit "$githubAuthor" "$githubRepo")
downloadURL=$originalDownloadURL
echo "Latest URL on github: $githubDownloadURL \nLatest version: $githubAppNewVersion"
# Final evaluation of our result
if [[ "$originalDownloadURL" == "$githubDownloadURL" ]]; then
echo "GitHub calculated URL matches entered URL."
githubError=0
downloadURL="\$(downloadURLFromGit $githubAuthor $githubRepo)"
appNewVersion="\$(versionFromGit $githubAuthor $githubRepo)"
else
githubError=2
echo "Not solved by using archiveName."
echo "Not sure what this can be."
archiveDestinationName=""
fi
fi
else
echo "GitHub URL not matching"
fi
fi
fi
fi
# We are finished downloading and analyzing, so now we need to present the data
echo "\n**********"
echo "\nLabels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed."
if [[ -z $githubError || $githubError != 0 ]]; then
echo "\nappNewVersion is often difficult to find. Can sometimes be found in the filename, sometimes as part of the download redirects, but also on a web page. See redirect and archivePath above if link contains information about this. That is a good place to start"
fi
# Here the label is built, for easy copy and paste
echo "\n$identifier)"
echo " name=\"$name\""
echo " type=\"$archiveExt\""
if [ "$packageID" != "" ]; then
if [ -n "$packageID" ]; then
echo " packageID=\"$packageID\""
fi
if [ -n "$archiveDestinationName" ]; then
echo " archiveName=\"$archiveDestinationName\""
fi
echo " downloadURL=\"$downloadURL\""
echo " appNewVersion=\"\""
echo " appNewVersion=\"$appNewVersion\""
echo " expectedTeamID=\"$teamID\""
if [ -n "$appName" ] && [ "$appName" != "${name}.app" ]; then
echo " appName=\"$appName\""
fi
echo " ;;"
echo
echo "Above should be saved in a file with exact same name as label, and given extension “.sh”."
echo "Put this file in folder “fragments/labels”."
echo
case $githubError in
0)
echo "\nLabel converted to GitHub label without errors."
echo "Details can be seen above."
;;
1)
echo "\nFound Github place in this URL: $githubAuthor $githubRepo"
echo "But version has a problem."
echo "Try running again with URL: ${githubDownloadURL}"
echo "See details above."
;;
2)
echo "\nFound Github place in this URL: $githubAuthor $githubRepo"
echo "But it could not be resolved."
echo "Can be from a hidden repository, or the software title has a number in it."
;;
esac
exit 0
echo "\nAbove should be saved in a file with exact same name as label, and given extension “.sh”."
echo "Put this file in folder “fragments/labels”.\n"

View File

@@ -16,14 +16,14 @@ export PATH=/usr/bin:/bin:/usr/sbin:/sbin
# MARK: Constants
pathToLabels="fragments/labels"
if [[ ! -d ${pathToLabels} ]]; then
echo "This script should be called from Installomator directory as working directory with this command:"
echo "utils/checkLabels.sh"
echo
exit 99
fi
#setup some folders
script_dir=$(dirname ${0:A})
repo_dir=$(dirname $script_dir)
build_dir="$repo_dir/build"
destination_file="$build_dir/Installomator.sh"
fragments_dir="$repo_dir/fragments"
labels_dir="$fragments_dir/labels"
# MARK: Check minimal macOS requirement
if [[ $(sw_vers -buildVersion ) < "18" ]]; then
@@ -98,11 +98,11 @@ BLUE='\033[1;34m'
NC='\033[0m' # No Color
# Labels with the $(arch) call for different versions for Intel and Apple Silicon should be listed here:
archLabels=( $(grep "\$(arch)" ${pathToLabels}/* | awk '{print $1}' | sed -E 's/.*\/([a-z0-9\_-]*)\..*/\1/g'| uniq ) )
archLabels=( $(grep "\$(arch)" ${labels_dir}/* | awk '{print $1}' | sed -E 's/.*\/([a-z0-9\_-]*)\..*/\1/g'| uniq ) )
echo "${BLUE}Labels with \"\$(arch)\" call:${NC}\n${archLabels}\n"
if [[ $# -eq 0 ]]; then
allLabels=( $(grep -h -E '^([a-z0-9\_-]*)(\)|\|\\)$' ${pathToLabels}/*.sh | tr -d ')|\\' | sort) )
allLabels=( $(grep -h -E '^([a-z0-9\_-]*)(\)|\|\\)$' ${labels_dir}/*.sh | tr -d ')|\\' | sort) )
else
allLabels=( ${=@} )
fi
@@ -122,7 +122,7 @@ for label in $allLabels; do
name=""; type=""; downloadURL=""; appNewVersion=""; expectedTeamID=""; blockingProcesses=""; updateTool=""; updateToolArguments=""; archiveName=""
#caseLabel
if cat "${pathToLabels}/${label}.sh" | grep -v -E '^[a-z0-9\_-]*(\)|\|\\)$' | grep -v ";;" > checkLabelCurrent.sh; then
if cat "${labels_dir}/${label}.sh" | grep -v -E '^[a-z0-9\_-]*(\)|\|\\)$' | grep -v ";;" > checkLabelCurrent.sh; then
source checkLabelCurrent.sh
echo "Name: $name"