From: Vincent Povirk vincent@codeweavers.com
Signed-off-by: Vincent Povirk vincent@codeweavers.com --- winemono.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/winemono.php b/winemono.php index 9938574..0c9d84d 100644 --- a/winemono.php +++ b/winemono.php @@ -17,7 +17,15 @@ if(isset($_GET['v'])) { $sVersion = $_GET['v']; }
-if(!$sFileSuffix) +// Check which arch to use +if(((int)(explode(".", $sVersion, 2)[0])) >= 5) { + if(!isset($_GET['arch']) || $_GET['arch'] == 'x86_64') + $sArch = 'x86'; + else + $sArch = $_GET['arch']; + $sFileSuffix = $sVersion.'-'.$sArch; +} +else // version < 5, no arch in filename $sFileSuffix = $sVersion;
$sExt = 'msi';