[tools] winemono.php: Add architecture to filename in 5.0.
25 Mar
2020
25 Mar
'20
1:10 a.m.
From: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Vincent Povirk <vincent(a)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
2096
Age (days ago)
2096
Last active (days ago)
0 comments
1 participants
participants (1)
-
Esme