1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-19 07:45:05 -05:00
filebot/installer/appbundle/Helper/subtitles.sh

21 lines
545 B
Bash
Raw Normal View History

2016-11-15 06:29:47 -05:00
#!/bin/sh -x
PKG_NAME="FileBot_Subtitles_Installer.pkg"
PKG_URL="https://app.filebot.net/files/$PKG_NAME"
PKG="/tmp/$PKG_NAME"
2016-11-15 11:37:10 -05:00
APP="/Applications/FileBot Subtitles.app"
2016-11-15 06:29:47 -05:00
function fetch {
curl --location --output "$1" --time-cond "$1" --retry 5 "$2"
}
function verify {
pkgutil --check-signature "$1" && spctl --assess --verbose --ignore-cache --no-cache --type install "$1"
}
function install {
sudo installer -verbose -package "$1" -target LocalSystem
}
2016-11-15 11:37:10 -05:00
fetch "$PKG" "$PKG_URL" && verify "$PKG" && install "$PKG" && open --reveal "$APP"