mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Added architecture check and ARM version of Horos
The developer has now also released an Apple Silicon version of the software, so a review of the processor and the appropriate download links have been added The expectedTeamID is now a variable because the Apple Silicon version of the app has a different TeamID
This commit is contained in:
@@ -3,6 +3,12 @@ horos)
|
|||||||
type="dmg"
|
type="dmg"
|
||||||
versionKey="CFBundleGetInfoString"
|
versionKey="CFBundleGetInfoString"
|
||||||
appNewVersion=$(curl -fs https://github.com/horosproject/horos/blob/horos/Horos/Info.plist | grep -A 4 "CFBundleGetInfoString" | tail -1 | sed -r 's/.*Horos v([^<]+).*/\1/' | sed 's/ //g')
|
appNewVersion=$(curl -fs https://github.com/horosproject/horos/blob/horos/Horos/Info.plist | grep -A 4 "CFBundleGetInfoString" | tail -1 | sed -r 's/.*Horos v([^<]+).*/\1/' | sed 's/ //g')
|
||||||
downloadURL="https://horosproject.org/horos-content/Horos"$appNewVersion".dmg"
|
if [[ $(arch) == "arm64" ]]; then
|
||||||
expectedTeamID="TPT6TVH8UY"
|
downloadURL="https://horosproject.org/horos-content/Horos"$appNewVersion"_Apple.dmg"
|
||||||
|
TeamID="8NDFEW7285"
|
||||||
|
elif [[ $(arch) == "i386" ]]; then
|
||||||
|
downloadURL="https://horosproject.org/horos-content/Horos"$appNewVersion".dmg"
|
||||||
|
TeamID="TPT6TVH8UY"
|
||||||
|
fi
|
||||||
|
expectedTeamID=$TeamID
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user