Commit Graph

50 Commits

Author SHA1 Message Date
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
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
Søren Theilgaard
6d6c011d30 buildLabel.sh 2021-08-27 11:20:46 +02:00
Søren Theilgaard
d167a51ee6 Now reads labels from first line of label files
Instead of reading the name of the file
2021-08-26 16:14:51 +02:00
Søren Theilgaard
c37229d763 Update buildCaseStatement.sh 2021-08-25 13:53:17 +02:00
Søren Theilgaard
1d634b9a80 Update buildCaseStatement.sh 2021-08-25 13:16:57 +02:00
Søren Theilgaard
a481b17a78 Update checkLabels.sh 2021-08-25 13:06:47 +02:00
Søren Theilgaard
30bd4797ae Update extractLabels.sh 2021-08-25 12:54:53 +02:00
Søren Theilgaard
5585f8c558 Renaming to checkLabels.sh 2021-08-25 12:00:39 +02:00
Søren Theilgaard
21b9709f6b Renaming to checkLabels.sh 2021-08-25 12:00:17 +02:00
Søren Theilgaard
db5c9ded56 Update CheckLabels.sh 2021-08-25 11:56:23 +02:00
Søren Theilgaard
4859efa72f Moved to “utils”. 2021-08-25 11:49:13 +02:00
Søren Theilgaard
a20770314e extractLabels.shshould work from “utils” folder
And added description of function of script.
2021-08-25 11:36:43 +02:00
Søren Theilgaard
400be8581e checkLabels.sh script
With a bit of improvements to explaining that labels are small case letters with numbers, “_”, and “-”. And nothing else.
2021-08-25 10:54:03 +02:00
Søren Theilgaard
1dc42a22a4 change to zsh
Then we can use zsh to somewhat clean up the label name (at least get rid of special characters from the URL).
2021-08-24 15:49:35 +02:00
Armin Briegel
2d48072d8e updated utils/ReadMe.md (more typos and clarifications) 2021-08-17 16:09:04 +02:00
Armin Briegel
4101056ede updated CHANGELOG, main script, Labels.txt and the assemble script ReadMe 2021-08-17 15:47:23 +02:00
Armin Briegel
87c9aaaedc Update README.md 2021-08-17 13:46:44 +02:00
Armin Briegel
cd58fc6018 multiple custom labels now work 2021-08-17 13:39:36 +02:00
Armin Briegel
b38c49600f implemented --pkg and --notarize options 2021-08-17 12:25:59 +02:00
Armin Briegel
af08a12d49 implemented option to overwrite main script 2021-08-17 10:25:28 +02:00
Armin Briegel
2e72b05df1 finished updating labels 2021-08-16 16:55:28 +02:00
Armin Briegel
bb6058c7f6 Merge branch 'dev' into fragments 2021-08-16 15:48:13 +02:00
Armin Briegel
3f9daf7fe6 changed file extension for fragments to sh 2021-06-24 11:50:29 +02:00
Armin Briegel
0e093dd3b5 implemented the --labels option and assemble script now runs the assembled Installomator.sh with remaining arguments 2021-04-22 16:37:11 +02:00
Armin Briegel
fbc6b61add moved more stuff around 2021-04-21 12:24:47 +02:00
Armin Briegel
248c90bec7 added Readme to utils 2021-04-21 11:31:18 +02:00
Armin Briegel
8ffc4dd88b created a utils directory 2021-04-21 11:30:58 +02:00