MAS Resource/Helper

This commit is contained in:
Reinhard Pointner 2016-11-15 19:29:47 +08:00
parent 169d41c5e0
commit 3a55652c32
5 changed files with 11 additions and 3 deletions

View File

@ -8,7 +8,7 @@ fetch()
echo "Fetch $FILE"
if [ ! -f "$FILE" ] || test "`find $FILE -mtime $TIME`"; then
curl -L -o "$FILE" -z "$FILE" "$LINK"
curl -L -o "$FILE" -z "$FILE" --retry 5 "$LINK"
if [[ "${FILE##*.}" == "gz" ]]; then
gunzip -k -f "$FILE"

View File

@ -456,7 +456,7 @@
<!-- include brew install script (can't put it into Contents/MacOS because that will break codesign and MAS submissions -->
<copy todir="${path.app}/Contents/Resources">
<fileset dir="${dir.installer}/appbundle/MacOS" includes="brew.sh" />
<fileset dir="${dir.installer}/appbundle" includes="Helper/**" />
</copy>
<!-- fix broken symlink -->

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh -x
# brew requires Command Line Tools for Xcode
xcode-select --print-path || sudo xcode-select --install

View File

@ -0,0 +1,7 @@
#!/bin/sh -x
PKG_NAME="FileBot_Subtitles_Installer.pkg"
PKG_URL="https://app.filebot.net/files/$PKG_NAME"
PKG="/tmp/$PKG_NAME"
curl -L -o "$PKG" -z "$PKG" --retry 5 "$PKG_URL" && spctl -a -v --type install "$PKG" && sudo installer -verbose -pkg "$PKG" -target LocalSystem

View File

@ -1,6 +1,7 @@
# dynamic links
redirect 302 /files/FileBot-setup.exe https://github.com/filebot/filebot-installer/releases/download/v1.0/FileBot-setup.exe
redirect 302 /files/FileBot.app https://itunes.apple.com/us/app/filebot/id905384638?mt=12&uo=6&at=1l3vupy&ct=app
redirect 302 /files/FileBot_Subtitles_Installer.pkg https://downloads.sourceforge.net/project/filebot/filebot/LATEST/FileBot_Subtitles_Installer.pkg
redirect 302 /files/FileBot.appx https://www.microsoft.com/store/apps/9nblggh52t9x
redirect 302 /purchase/FileBot.app https://itunes.apple.com/us/app/filebot/id905384638?mt=12&uo=6&at=1l3vupy&ct=darwin
redirect 302 /forums/faq.php https://www.filebot.net/forums/viewtopic.php?f=3&t=7