Merge pull request #300 from Installomator/MacPorts

macports
This commit is contained in:
Søren Theilgaard
2021-11-05 09:31:15 +01:00
committed by GitHub
3 changed files with 26 additions and 0 deletions

View File

@@ -169,6 +169,7 @@ loom
lucifer
lulu
macfuse
macports
malwarebytes
mattermost
menumeters

View File

@@ -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).

View File

@@ -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"
;;