Commit Graph

10 Commits

Author SHA1 Message Date
Søren Theilgaard
1bfe163dff Update buildLabel.sh 2021-11-16 10:01:19 +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
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
44a64b83b9 buildLabel.sh and airtame 2021-09-03 14:01:06 +02:00
Søren Theilgaard
e0459f3d06 Update buildLabel.sh 2021-08-27 14:55:12 +02:00
Søren Theilgaard
6d6c011d30 buildLabel.sh 2021-08-27 11:20:46 +02:00