mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
24 lines
735 B
Bash
24 lines
735 B
Bash
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 98 "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"
|
|
;;
|