[tools] winemono.php: Add architecture to filename in 5.0.
Esme
vincent at codeweavers.com
Tue Mar 24 20:10:47 CDT 2020
From: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Vincent Povirk <vincent at 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';
--
2.17.1
More information about the wine-devel
mailing list