Module: tools Branch: master Commit: 9a1950329d1a27956c96b0841204a63aba5d0899 URL: https://source.winehq.org/git/tools.git/?a=commit;h=9a1950329d1a27956c96b084...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Dec 12 17:06:09 2019 +0100
winegecko.php: Update for new file name scheme.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
winegecko.php | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/winegecko.php b/winegecko.php index 5afaa1f..b4c0aed 100644 --- a/winegecko.php +++ b/winegecko.php @@ -32,6 +32,9 @@ if(isset($_GET['v'])) { if(!$sFileSuffix) $sFileSuffix = $sVersion;
+$sFile = 'wine-gecko'; +$sExt = 'msi'; + switch($sVersion) { case '0.0.1': case '0.1.0': @@ -39,14 +42,29 @@ case '0.9.0': case '0.9.1': case '1.0.0': case '1.1.0': - $sExt = 'cab'; - break; -default: - $sExt = 'msi'; + $sExt = 'cab'; + /* fall through */ +case '1.2.0': +case '1.3': +case '1.4': +case '1.5': +case '1.6': +case '1.7': +case '1.8': +case '1.9': +case '2.21': +case '2.24': +case '2.34': +case '2.36': +case '2.40': +case '2.44': +case '2.47': + $sFile = 'wine_gecko'; + break; }
// Name of the file -$sFileName = sprintf('%s/%s/wine_gecko-%s.%s', $sFolder, $sVersion, $sFileSuffix, $sExt); +$sFileName = sprintf('%s/%s/%s-%s.%s', $sFolder, $sVersion, $sFile, $sFileSuffix, $sExt);
// Common code for Wine downloader scripts require("download.inc.php");