mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-23 13:14:13 +00:00
Got 'keepassxc' ready for Apple Silicon
`keepassxc` can now distinguish between Intel and Apple Silicon. `downloadURL`-style inspired by `handbrake`
This commit is contained in:
@@ -1814,10 +1814,15 @@ karabinerelements)
|
|||||||
expectedTeamID="G43BCU2T37"
|
expectedTeamID="G43BCU2T37"
|
||||||
;;
|
;;
|
||||||
keepassxc)
|
keepassxc)
|
||||||
# credit: Patrick Atoon (@raptor399)
|
|
||||||
name="KeePassXC"
|
name="KeePassXC"
|
||||||
type="dmg"
|
type="dmg"
|
||||||
downloadURL="$(downloadURLFromGit keepassxreboot keepassxc)"
|
if [[ $(arch) == i386 ]]; then
|
||||||
|
downloadURL=$(curl --silent --fail "https://api.github.com/repos/keepassxreboot/keepassxc/releases/latest" \
|
||||||
|
| awk -F '"' "/browser_download_url/ && /x86_64/ && ! /sig/ && ! /AppImage/ && ! /DIGEST/ { print \$4 }")
|
||||||
|
elif [[ $(arch) == arm64 ]]; then
|
||||||
|
downloadURL=$(curl --silent --fail "https://api.github.com/repos/keepassxreboot/keepassxc/releases/latest" \
|
||||||
|
| awk -F '"' "/browser_download_url/ && /arm64/ && ! /sig/ && ! /AppImage/ && ! /DIGEST/ { print \$4 }")
|
||||||
|
fi
|
||||||
appNewVersion=$(versionFromGit keepassxreboot keepassxc)
|
appNewVersion=$(versionFromGit keepassxreboot keepassxc)
|
||||||
expectedTeamID="G2S7P7J672"
|
expectedTeamID="G2S7P7J672"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user