Armin Briegel
a00997ef46
Merge pull request #543 from Installomator/GitHub-calls-without-API
...
GitHub without API calls
2022-08-12 14:56:12 +02:00
Søren Theilgaard
1de3838a9b
GitHub without API calls
...
I have tested two labels, the first has an `archiveName`, the second does not:
```
➜ Installomator/utils/assemble.sh marathoninfinity DEBUG=0
2022-05-18 14:58:34 : WARN : marathoninfinity : setting variable from argument DEBUG=0
2022-05-18 14:58:34 : REQ : marathoninfinity : ################## Start Installomator v. 9.2beta, date 2022-05-18
2022-05-18 14:58:34 : INFO : marathoninfinity : ################## Version: 9.2beta
2022-05-18 14:58:34 : INFO : marathoninfinity : ################## Date: 2022-05-18
2022-05-18 14:58:34 : INFO : marathoninfinity : ################## marathoninfinity
2022-05-18 14:58:34 : INFO : marathoninfinity : BLOCKING_PROCESS_ACTION=tell_user
2022-05-18 14:58:34 : INFO : marathoninfinity : NOTIFY=success
2022-05-18 14:58:34 : INFO : marathoninfinity : LOGGING=INFO
2022-05-18 14:58:34 : INFO : marathoninfinity : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2022-05-18 14:58:34 : INFO : marathoninfinity : Label type: dmg
2022-05-18 14:58:34 : INFO : marathoninfinity : archiveName: MarathonInfinity-[0-9.]*-Mac.dmg
2022-05-18 14:58:34 : INFO : marathoninfinity : no blocking processes defined, using Marathon Infinity as default
2022-05-18 14:58:34 : INFO : marathoninfinity : App(s) found: /Applications/Marathon Infinity.app
2022-05-18 14:58:34 : INFO : marathoninfinity : found app at /Applications/Marathon Infinity.app, version 1.4, on versionKey CFBundleShortVersionString
2022-05-18 14:58:34 : INFO : marathoninfinity : appversion: 1.4
2022-05-18 14:58:34 : INFO : marathoninfinity : Latest version of Marathon Infinity is 20220115
2022-05-18 14:58:34 : REQ : marathoninfinity : Downloading https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20220115/MarathonInfinity-20220115-Mac.dmg to MarathonInfinity-[0-9.]*-Mac.dmg
2022-05-18 14:58:35 : REQ : marathoninfinity : no more blocking processes, continue with update
2022-05-18 14:58:35 : REQ : marathoninfinity : Installing Marathon Infinity
2022-05-18 14:58:35 : INFO : marathoninfinity : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.uxoEpUyC/MarathonInfinity-[0-9.]*-Mac.dmg
2022-05-18 14:58:39 : INFO : marathoninfinity : Mounted: /Volumes/Marathon Infinity
2022-05-18 14:58:39 : INFO : marathoninfinity : Verifying: /Volumes/Marathon Infinity/Marathon Infinity.app
2022-05-18 14:58:43 : INFO : marathoninfinity : Team ID matching: E8K89CXZE7 (expected: E8K89CXZE7 )
2022-05-18 14:58:43 : INFO : marathoninfinity : Downloaded version of Marathon Infinity is 1.5 on versionKey CFBundleShortVersionString (replacing version 1.4).
2022-05-18 14:58:43 : INFO : marathoninfinity : App has LSMinimumSystemVersion: 10.11.0
2022-05-18 14:58:43 : WARN : marathoninfinity : Removing existing /Applications/Marathon Infinity.app
2022-05-18 14:58:43 : INFO : marathoninfinity : Copy /Volumes/Marathon Infinity/Marathon Infinity.app to /Applications
2022-05-18 14:58:44 : WARN : marathoninfinity : Changing owner to st
2022-05-18 14:58:44 : INFO : marathoninfinity : Finishing...
2022-05-18 14:58:54 : INFO : marathoninfinity : App(s) found: /Applications/Marathon Infinity.app
2022-05-18 14:58:54 : INFO : marathoninfinity : found app at /Applications/Marathon Infinity.app, version 1.5, on versionKey CFBundleShortVersionString
2022-05-18 14:58:54 : REQ : marathoninfinity : Installed Marathon Infinity, version 1.5
2022-05-18 14:58:54 : INFO : marathoninfinity : notifying
2022-05-18 14:58:55 : INFO : marathoninfinity : App not closed, so no reopen.
2022-05-18 14:58:55 : REQ : marathoninfinity : All done!
2022-05-18 14:58:55 : REQ : marathoninfinity : ################## End Installomator, exit code 0
➜ Installomator/utils/assemble.sh installomator DEBUG=0 INSTALL=force
2022-05-18 14:59:41 : WARN : installomator : setting variable from argument DEBUG=0
2022-05-18 14:59:41 : WARN : installomator : setting variable from argument INSTALL=force
2022-05-18 14:59:41 : REQ : installomator : ################## Start Installomator v. 9.2beta, date 2022-05-18
2022-05-18 14:59:41 : INFO : installomator : ################## Version: 9.2beta
2022-05-18 14:59:41 : INFO : installomator : ################## Date: 2022-05-18
2022-05-18 14:59:41 : INFO : installomator : ################## installomator
2022-05-18 14:59:42 : INFO : installomator : BLOCKING_PROCESS_ACTION=tell_user
2022-05-18 14:59:42 : INFO : installomator : NOTIFY=success
2022-05-18 14:59:42 : INFO : installomator : LOGGING=INFO
2022-05-18 14:59:42 : INFO : installomator : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2022-05-18 14:59:42 : INFO : installomator : Label type: pkg
2022-05-18 14:59:42 : INFO : installomator : archiveName: Installomator.pkg
2022-05-18 14:59:42 : INFO : installomator : found packageID com.scriptingosx.Installomator installed, version 9.2
2022-05-18 14:59:42 : INFO : installomator : appversion: 9.2
2022-05-18 14:59:42 : INFO : installomator : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.
2022-05-18 14:59:42 : INFO : installomator : Latest version of Installomator is 9.2
2022-05-18 14:59:42 : INFO : installomator : There is no newer version available.
2022-05-18 14:59:42 : REQ : installomator : Downloading https://github.com/Installomator/Installomator/releases/download/v9.2/Installomator-9.2.pkg to Installomator.pkg
2022-05-18 14:59:43 : REQ : installomator : Installing Installomator
2022-05-18 14:59:43 : INFO : installomator : Verifying: Installomator.pkg
2022-05-18 14:59:43 : INFO : installomator : Team ID: JME5BW3F3R (expected: JME5BW3F3R )
2022-05-18 14:59:43 : INFO : installomator : Checking package version.
2022-05-18 14:59:43 : INFO : installomator : Downloaded package com.scriptingosx.Installomator version 9.2
2022-05-18 14:59:43 : INFO : installomator : Downloaded version of Installomator is the same as installed.
2022-05-18 14:59:43 : INFO : installomator : Using force to install anyway.
2022-05-18 14:59:43 : INFO : installomator : Installing Installomator.pkg to /
2022-05-18 14:59:46 : INFO : installomator : Finishing...
2022-05-18 14:59:56 : INFO : installomator : found packageID com.scriptingosx.Installomator installed, version 9.2
2022-05-18 14:59:56 : REQ : installomator : Installed Installomator, version 9.2
2022-05-18 14:59:56 : INFO : installomator : notifying
2022-05-18 14:59:57 : INFO : installomator : App not closed, so no reopen.
2022-05-18 14:59:57 : REQ : installomator : All done!
2022-05-18 14:59:57 : REQ : installomator : ################## End Installomator, exit code 0
```
The version comparison in marathininfinity will be updated shortly.
2022-05-18 15:02:32 +02:00
Armin Briegel
2b658a576c
added function for JSON parsing using JXA
2022-05-13 10:44:26 +02:00
Armin Briegel
07d51c3239
Merge pull request #434 from Installomator/Fix-for-applist-line
...
Update functions.sh
2022-05-12 09:39:59 +02:00
Armin Briegel
b512ae17a3
merged #436
2022-03-18 11:08:46 +01:00
Søren Theilgaard
ed737510bb
Fixed bad copy-paste
2022-03-07 09:42:51 +01:00
Bart Reardon
2a9b73dba7
update downloadURLFromGit() and versionFromGit() to follow redirects
2022-03-06 08:50:49 +11:00
Søren Theilgaard
9f79cf4d65
Update functions.sh
2022-03-03 21:35:22 +01:00
Søren Theilgaard
9b6c337d7a
Improved logging for app copy with ditto
...
And a few lines changed to `WARN`.
2022-02-21 21:53:18 +01:00
Søren Theilgaard
9fd2b87e3c
Few logging levels changed
...
I want to return a valid explanation for log level REQ for why the script stops.
2022-02-21 16:47:57 +01:00
Armin Briegel
1e3a50c07f
Merge branch 'app-searching-changes-in-getAppVersion' into dev-v9.0.1
2022-02-18 16:56:22 +01:00
Søren Theilgaard
cba0e8c766
Merge branch 'Logging-level-improvements' of https://github.com/Installomator/Installomator into Logging-level-improvements
2022-02-09 16:24:40 +01:00
Søren Theilgaard
a25c904ba7
Update functions.sh
2022-02-09 16:23:52 +01:00
Armin Briegel
9afdc233f9
replaced a stray 'tmpdir'
2022-02-09 15:49:05 +01:00
Søren Theilgaard
ff8a9c2c3a
Few more DEBUG loggings
2022-02-09 14:38:58 +01:00
Søren Theilgaard
bf740d1ffe
Update functions.sh
2022-02-09 14:23:32 +01:00
Søren Theilgaard
1da37a13ca
Another ls that could return an error
2022-02-09 14:10:01 +01:00
Søren Theilgaard
b30d4da703
Update functions.sh
2022-02-09 14:04:23 +01:00
Søren Theilgaard
c3714d855c
Missing spaces
...
After manually moving Firefox to Utilities I have tested with this:
```
$ sudo /Installomator/utils/assemble.sh firefox DEBUG=0 INSTALL=force
2022-02-09 09:44:04 : INFO : firefox : setting variable from argument DEBUG=0
2022-02-09 09:44:04 : INFO : firefox : setting variable from argument INSTALL=force
2022-02-09 09:44:04 : REQ : firefox : ################## Start Installomator v. 9.1beta, date 2022-02-09
2022-02-09 09:44:04 : INFO : firefox : ################## Version: 9.1beta
2022-02-09 09:44:04 : INFO : firefox : ################## Date: 2022-02-09
2022-02-09 09:44:04 : INFO : firefox : ################## firefox
2022-02-09 09:44:04 : INFO : firefox : BLOCKING_PROCESS_ACTION=tell_user
2022-02-09 09:44:04 : INFO : firefox : NOTIFY=success
2022-02-09 09:44:04 : INFO : firefox : LOGGING=INFO
2022-02-09 09:44:04 : INFO : firefox : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2022-02-09 09:44:04 : INFO : firefox : Label type: dmg
2022-02-09 09:44:04 : INFO : firefox : targetDir for installation: /Applications/Utilities
2022-02-09 09:44:04 : INFO : firefox : found app at /Applications/Utilities/Firefox.app, version 97.0, on versionKey CFBundleShortVersionString
2022-02-09 09:44:04 : INFO : firefox : appversion: 97.0
2022-02-09 09:44:04 : INFO : firefox : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.
2022-02-09 09:44:04 : INFO : firefox : Latest version of Firefox is 97.0
2022-02-09 09:44:04 : INFO : firefox : There is no newer version available.
2022-02-09 09:44:04 : REQ : firefox : Downloading https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US to Firefox.dmg
2022-02-09 09:44:16 : REQ : firefox : no more blocking processes, continue with update
2022-02-09 09:44:16 : REQ : firefox : Installing Firefox
2022-02-09 09:44:16 : INFO : firefox : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.NMItuUfS/Firefox.dmg
2022-02-09 09:44:24 : INFO : firefox : Mounted: /Volumes/Firefox
2022-02-09 09:44:24 : INFO : firefox : Verifying: /Volumes/Firefox/Firefox.app
2022-02-09 09:44:33 : INFO : firefox : Team ID matching: 43AQ936H96 (expected: 43AQ936H96 )
2022-02-09 09:44:33 : INFO : firefox : Downloaded version of Firefox is 97.0 on versionKey CFBundleShortVersionString, same as installed.
2022-02-09 09:44:33 : INFO : firefox : Using force to install anyway.
2022-02-09 09:44:33 : INFO : firefox : App has LSMinimumSystemVersion: 10.12.0
2022-02-09 09:44:33 : INFO : firefox : Copy /Volumes/Firefox/Firefox.app to /Applications/Utilities
2022-02-09 09:44:40 : INFO : firefox : Changing owner to st
2022-02-09 09:44:40 : INFO : firefox : Finishing...
2022-02-09 09:44:50 : INFO : firefox : targetDir for installation: /Applications/Utilities
2022-02-09 09:44:50 : INFO : firefox : found app at /Applications/Utilities/Firefox.app, version 97.0, on versionKey CFBundleShortVersionString
2022-02-09 09:44:50 : INFO : firefox : Installed Firefox, version 97.0
2022-02-09 09:44:50 : INFO : firefox : notifying
2022-02-09 09:44:50 : REQ : firefox : ################## End Installomator, exit code 0
```
2022-02-09 09:46:24 +01:00
Søren Theilgaard
dd83f6bd75
Update functions.sh
2022-02-09 09:41:03 +01:00
Søren Theilgaard
c55cc788bb
Update functions.sh
2022-02-09 09:21:46 +01:00
Søren Theilgaard
557d63a4f3
If we exit a 0 we should still get the exit message
2022-02-08 13:48:33 +01:00
Søren Theilgaard
0432eb62d3
Improved logging levels
...
Also fixes #340
2022-02-08 12:36:16 +01:00
Søren Theilgaard
ae3f711738
Further logging, finding pkg only return files
...
Important change, when we use `find` to locate pkgs. Now only files will be returned.
2022-02-07 16:32:23 +01:00
Søren Theilgaard
2a1176a947
Different check for file
...
The ls command to check for this file will throw an error when the file does not exist. Better to simply test for the file (with size greater than zero).
2022-02-07 12:56:13 +01:00
Søren Theilgaard
4bc67f3de3
Minor logging correction
2022-02-04 14:36:44 +01:00
Søren Theilgaard
83c1911248
Ended up with double-log-lines
2022-02-04 09:26:42 +01:00
Søren Theilgaard
ee9861c0f5
Extra space to align log output
2022-02-04 09:02:56 +01:00
Søren Theilgaard
890c26e2e1
Logging correction for app delete
2022-02-02 21:47:59 +01:00
Søren Theilgaard
f1616d0d02
Logging fixes
2022-02-02 21:23:41 +01:00
Søren Theilgaard
0a05b533a5
Logging info and a fix
2022-02-02 19:59:14 +01:00
Søren Theilgaard
d36b42acf4
Isaac logging improvements/fixes
...
Moved the variable declarations from `functions.sh` to `arguments.sh`. We need the argument parsing before setting the logging level and other variables.
2022-02-02 19:39:48 +01:00
Søren Theilgaard
bbf4b22296
Fix for Apple signed software
...
Somehow went missing in the Isaac logging.
2022-02-02 15:23:46 +01:00
Søren Theilgaard
790dabaa27
Comment on exit value if only label name is requested
2022-02-02 15:08:39 +01:00
Søren Theilgaard
ded71fdf8d
Error in cleanupAndExit fixed
...
Unmounted drive after we deleted the temporary items. Reversed order.
2022-02-02 15:02:31 +01:00
Søren Theilgaard
952683310a
Merge branch 'pr/268' into 2022-02-02_Theile-base
2022-02-02 14:46:47 +01:00
Søren Theilgaard
19137f6d94
Merge branch 'Fixing-if-LSMinimumSystemVersion-doesn't-exist' into 2022-02-02_Theile-base
2022-02-02 14:42:26 +01:00
Søren Theilgaard
5b54eb7674
Merge branch 'Improved-Isaac-logging' into 2022-02-02_Theile-base
2022-02-02 14:38:18 +01:00
Søren Theilgaard
168abdb32e
Merge branch 'versionKey-improvements' into 2022-02-02_Theile-base
2022-02-02 14:34:01 +01:00
Søren Theilgaard
f53e20e313
Update functions.sh
...
If only returning label name, then we exit with 0.
2022-02-02 13:49:00 +01:00
Søren Theilgaard
bc26aa0ca6
Update functions.sh
...
Had a problem with `dbeaverce` that claimed LSMinimumSystemVersion was used even though it was not, so improved the handling.
2022-01-31 23:41:07 +01:00
Søren Theilgaard
49337a4ae8
versionKey improved
...
If `versionKey` is used as part of `valuesfromarguments` it will currently be replaced by our standard value `CFBundleShortVersionString` (it was only testet on labels). So added an `if...then` to know if it was already set as part of the arguments.
Also improved logging to show what `versionKey` is.
2022-01-19 14:36:05 +01:00
Søren Theilgaard
0f448404e2
Merge branch 'dev' into fullscreen-check
2022-01-17 09:53:11 +01:00
Søren Theilgaard
e4a5f47272
Label on each log line (again)
2022-01-14 10:14:29 +01:00
Søren Theilgaard
fee9394751
Few more DEBUG loggings
2022-01-14 10:02:00 +01:00
Søren Theilgaard
7f2bdfb1df
Local logging improvements
...
Improved first lines of logs to be required and show `VERSION` and `VERSIONDATE` on separate lines.
Logging sent to Datadog will have `VERSION` on each line.
2022-01-13 21:52:15 +01:00
Søren Theilgaard
82faf74eb3
Update functions.sh
2022-01-13 14:12:51 +01:00
Søren Theilgaard
f96cd178c6
CLIInstaller included
...
and a few other displaylog lines changed
2022-01-13 09:44:34 +01:00
Søren Theilgaard
99b908f646
Logging
2022-01-12 21:34:16 +01:00
Søren Theilgaard
c0ce59a1ec
Update functions.sh
2022-01-12 13:55:40 +01:00