diff --git a/website/.htaccess b/website/.htaccess index 6705a42a..cbc8d7b5 100644 --- a/website/.htaccess +++ b/website/.htaccess @@ -1,4 +1,5 @@ # redirect donate.html +redirect 302 /files/FileBot.app https://itunes.apple.com/us/app/filebot/id905384638?mt=12&uo=6&at=1l3vupy&ct=app redirect 302 /files/ https://app.filebot.net/download.php redirect 302 /donate.html https://app.filebot.net/donate.php redirect 302 /manual.html https://www.filebot.net/forums/viewtopic.php?f=3&t=7#p7 diff --git a/website/download.php b/website/download.php index f47e8d26..2b7aed9e 100644 --- a/website/download.php +++ b/website/download.php @@ -10,6 +10,9 @@ $file = ''; if ($type == 'nsis') { $folder = 'https://github.com/filebot/filebot-installer/releases/download/v1.0'; $file = 'FileBot-setup.exe'; +} else if ($type == 'app') { + $folder = 'https://app.filebot.net/files/'; + $file = 'FileBot.app'; } else if ($type == 'jar') { $folder = $root.'HEAD'; $file = 'FileBot.jar'; @@ -17,8 +20,6 @@ if ($type == 'nsis') { $file = 'FileBot_'.$version.'_'.$arch.'.msi'; } else if ($type == 'deb') { $file = 'filebot_'.$version.'_'.$arch.'.deb'; -} else if ($type == 'app') { - $file = 'FileBot_'.$version.'-brew.tar.bz2'; } else if ($type == 'portable') { $file = 'FileBot_'.$version.'-portable.zip'; } else if ($type == 'ipkg') {