Vincent Povirk : winemono.php: Add architecture to filename in 5.0.
Module: tools Branch: master Commit: 7ff1f919ad0783caf023c7082b957a8b951a6577 URL: https://source.winehq.org/git/tools.git/?a=commit;h=7ff1f919ad0783caf023c708... Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Tue Mar 24 20:10:47 2020 -0500 winemono.php: Add architecture to filename in 5.0. Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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';
participants (1)
-
Alexandre Julliard