From f475aae5f0a74e4904234892b0d773118591c606 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 28 Jun 2016 22:45:37 -0400 Subject: [PATCH] update startup wizard --- dashboard-ui/scripts/wizardcomponents.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/scripts/wizardcomponents.js b/dashboard-ui/scripts/wizardcomponents.js index 7162cbc232..7338ee0bab 100644 --- a/dashboard-ui/scripts/wizardcomponents.js +++ b/dashboard-ui/scripts/wizardcomponents.js @@ -7,13 +7,14 @@ } function loadDownloadInfo(view) { + + var instructions = ''; + ApiClient.getSystemInfo().then(function (systemInfo) { if (systemInfo.OperatingSystem == 'Windows' && systemInfo.SystemArchitecture != 'Arm') { view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', 'https://ffmpeg.zeranoe.com'); - var instructions = ''; - if (systemInfo.SystemArchitecture == 'X86') { instructions = 'Download 32-Bit Static'; } @@ -22,8 +23,15 @@ } view.querySelector('.downloadInstructions').innerHTML = instructions; + + } else if (systemInfo.OperatingSystem == 'Osx' && systemInfo.SystemArchitecture == 'X64') { + + view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', 'http://evermeet.cx/ffmpeg'); + instructions = 'Download both ffmpeg and ffprobe, and extract them to the same folder.'; + view.querySelector('.downloadInstructions').innerHTML = instructions; + } else { - view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', 'http://ffmpeg.org'); + view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', 'https://ffmpeg.org/download.html'); view.querySelector('.downloadInstructions').innerHTML = ''; } });