Commit Graph

76 Commits

Author SHA1 Message Date
Armin Briegel
4420ce2cf9 Update README.md 2022-05-16 12:47:29 +02:00
Armin Briegel
c9d1d458f3 final touches for 9.0 release 2022-02-08 10:38:40 +01:00
Søren Theilgaard
7d60f0a11f Can handle .gz archives 2022-02-07 19:19:57 +01:00
Søren Theilgaard
435a60ac9f Minor additions 2022-02-07 19:11:28 +01:00
Søren Theilgaard
c238f94a9b Update checkLabels.sh 2022-02-07 14:31:34 +01:00
Søren Theilgaard
b3d3f25e19 Update checkInstallomator.sh 2022-02-07 14:12:06 +01:00
Søren Theilgaard
842b1e19cb Testing SYSTEMOWNER=1 2022-02-07 12:08:50 +01:00
Søren Theilgaard
d34f3102fc Update checkInstallomator.sh 2022-02-07 11:40:31 +01:00
Søren Theilgaard
08e9e63422 Align a function and improve checking in checkLabels
Will now also go through labels with warnings in the, to figure out if the label works. Many warnings are about version checking, so those will be verified now.
2022-02-04 11:59:51 +01:00
Søren Theilgaard
e181a02838 Update checkInstallomator.sh 2022-02-02 22:09:40 +01:00
Søren Theilgaard
f2782989ce Minor changes 2022-02-02 22:01:41 +01:00
Søren Theilgaard
36fc48682e Testing improved
Will now ask for admin credentials to run a real installation of 3 different labels with different notifications
2022-02-02 21:58:06 +01:00
Søren Theilgaard
29fadb78b4 Update checkInstallomator.sh 2022-02-02 15:57:30 +01:00
Søren Theilgaard
3a397c5881 Label name and better handling 2022-02-02 15:37:08 +01:00
Søren Theilgaard
5991ce2287 Merge branch 'checkInstallomator.sh' into 2022-02-02_Theile-base 2022-02-02 14:44:19 +01:00
Søren Theilgaard
9416700da2 Update checkInstallomator.sh
More description on what to test
2022-02-01 09:12:50 +01:00
Søren Theilgaard
dd2af4a40e Create checkInstallomator.sh
This script will check certain labels. It's meant to check all (or most) of Installomator, to see if the code is working. We need labels that are representative for alle the functionality in the script.

(Bug-fix for LSMinimumSystemVersion is needed for some of these to work)
2022-02-01 00:13:51 +01:00
Søren Theilgaard
197b34fe02 Update buildLabel.sh 2022-01-17 15:40:03 +01:00
Søren Theilgaard
180ca0952b Update checkLabels.sh 2022-01-12 14:03:30 +01:00
Søren Theilgaard
da21ea8582 Update checkLabels.sh
Need `INSTAL=force` and `IGNORE_APP_STORE_APPS=yes` to be able test any title on any system.
2022-01-12 12:53:07 +01:00
Søren Theilgaard
cd0204bb04 Update checkLabels.sh 2022-01-11 23:05:53 +01:00
Søren Theilgaard
901ea4babd Update checkLabels.sh 2022-01-11 23:03:51 +01:00
Søren Theilgaard
504e8528ce Update checkLabels.sh 2022-01-11 22:56:38 +01:00
Søren Theilgaard
6f229b0b8c Update buildLabel.sh 2022-01-11 21:38:49 +01:00
Søren Theilgaard
36b7148e30 Update checkLabels.sh 2022-01-11 20:39:53 +01:00
Søren Theilgaard
0cdc780a5f Update checkLabels.sh 2022-01-11 19:06:50 +01:00
Søren Theilgaard
ca1759abd9 Update checkLabels.sh 2022-01-11 18:37:34 +01:00
Søren Theilgaard
a8c9fdbab7 Download with extra sets of headers 2022-01-10 20:26:53 +01:00
Søren Theilgaard
d80c76a4d3 mocha-software and buildLabel.sh
Improved buildLabel.sh to handle another set of headers when trying to download, and that can handle the mocha-software.

But mocha-software has been disabled, as Installomator does not offer the headers when that is trying to download.
2022-01-07 20:41:35 +01:00
Søren Theilgaard
c3ddd4f8c7 Update buildLabel.sh
Different set of headers.
2022-01-07 19:40:51 +01:00
Søren Theilgaard
b6f0afb8ba Fixed pkg teamID calculation 2021-11-19 14:59:15 +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
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
028ed10393 Update checkLabels.sh
`checkLabels.sh` can be run from anywhere.
2021-11-16 09:16:48 +01:00
Søren Theilgaard
374a32be9a better pkg handling 2021-11-14 21:02:34 +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
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
Armin Briegel
ba7edf8d02 commented a debugging echo in assemble.sh 2021-10-14 14:49:23 +02:00
Søren Theilgaard
63af53fb34 zeplin 2021-09-17 21:11:07 +02:00
Søren Theilgaard
eb501486e4 Update buildLabel.sh 2021-09-17 20:02:21 +02:00
Søren Theilgaard
1e971cc063 Update buildLabel.sh 2021-09-15 16:27:02 +02:00
Søren Theilgaard
e18361b36c zohoworkdrive 2021-09-08 13:36:23 +02:00
Søren Theilgaard
44a64b83b9 buildLabel.sh and airtame 2021-09-03 14:01:06 +02:00
Søren Theilgaard
ca17fa3c6b Update checkLabels.sh 2021-08-27 19:52:51 +02:00
Søren Theilgaard
e0459f3d06 Update buildLabel.sh 2021-08-27 14:55:12 +02:00
Søren Theilgaard
409c84b7ef Labels 2021-08-27 14:30:00 +02:00
Søren Theilgaard
aa761f2583 Labels fixed 2021-08-27 12:16:51 +02:00