diff --git a/Labels.txt b/Labels.txt index dace850..71b231c 100644 --- a/Labels.txt +++ b/Labels.txt @@ -168,6 +168,7 @@ loom lucifer lulu macfuse +macports malwarebytes mattermost menumeters diff --git a/fragments/header.sh b/fragments/header.sh index a845b98..476d54e 100644 --- a/fragments/header.sh +++ b/fragments/header.sh @@ -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). diff --git a/fragments/labels/macports.sh b/fragments/labels/macports.sh new file mode 100644 index 0000000..6a473a1 --- /dev/null +++ b/fragments/labels/macports.sh @@ -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" + ;;