[www-doc] [Git][VideoLAN.org/websites][master] 4 commits: Update windows binary size

Hugo Beauzée-Luyssen gitlab at videolan.org
Wed Feb 28 13:22:12 CET 2018


Hugo Beauzée-Luyssen pushed to branch master at VideoLAN organization / websites


Commits:
7d22d2d8 by Hugo Beauzée-Luyssen at 2018-02-28T11:00:30+01:00
Update windows binary size

- - - - -
1256dc54 by Hugo Beauzée-Luyssen at 2018-02-28T11:42:35+01:00
os-specific: Remove duplicated variable

- - - - -
2275a368 by Hugo Beauzée-Luyssen at 2018-02-28T12:51:07+01:00
os-specific: Detect windows 64bit

- - - - -
6dc0e697 by Hugo Beauzée-Luyssen at 2018-02-28T12:51:11+01:00
os-specific: Ensure iOS still gets listed in the default archs

- - - - -


4 changed files:

- www.videolan.org/include/os-specific.php
- www.videolan.org/vlc/releases/1.1.10.php
- www.videolan.org/vlc/releases/1.1.8.php
- www.videolan.org/vlc/releases/1.1.9.php


Changes:

=====================================
www.videolan.org/include/os-specific.php
=====================================
--- a/www.videolan.org/include/os-specific.php
+++ b/www.videolan.org/include/os-specific.php
@@ -9,8 +9,8 @@ $androidversion = '3.0.1';
 $winrtversion = '3.0.0';
 
 $dlBase = "//get.videolan.org/vlc";
-$dlUrl = "$dlBase/$win32version/win32/vlc-$win32version-win32.exe";
 $windowsLocation = "$dlBase/$win32version/win32/vlc-$win32version-win32.exe";
+$windows64Location = "$dlBase/$win32version/win64/vlc-$win32version-win64.exe";
 $osxLocation = "$dlBase/$macosxversion/macosx/vlc-$macosxversion.dmg";
 
 function replaceDLinfos( $downloadButton = "#downloadButton" )
@@ -39,7 +39,17 @@ function replaceDLinfos( $downloadButton = "#downloadButton" )
         var OS="windows"; //Default
 
        if (navigator.appVersion.indexOf("Win")!=-1) {
-         OS="windows";
+           if (navigator.userAgent.indexOf('Win64')>-1 ||
+               navigator.platform=='Win64' ||
+               navigator.userAgent.indexOf('x86_64')>-1 ||
+               navigator.userAgent.indexOf('x86_64')>-1 ||
+               navigator.userAgent.indexOf('amd64')>-1 ||
+               navigator.userAgent.indexOf('AMD64')>-1 ||
+               navigator.userAgent.indexOf('WOW64')>-1
+           )
+           OS="windows64";
+         else
+           OS="windows";
        }
        if (navigator.appVersion.indexOf("Mac")!=-1) {
           if (navigator.platform.indexOf("MacPPC")!= -1 || navigator.platform.indexOf("PowerPC") != -1 ) OS="osxPPC";
@@ -83,10 +93,10 @@ function replaceDLinfos( $downloadButton = "#downloadButton" )
 
 function downloadButton()
 {
-    global $dlUrl;
+    global $windowsLocation;
     global $win32version;
 ?>
-     <a id='downloadButton' href='<?php echo $dlUrl; ?>'>
+     <a id='downloadButton' href='<?php echo $windowsLocation; ?>'>
          <img style='position: absolute; top: -10px; left: -10px;' src='//images.videolan.org/images/downloadVLC.png' alt='Download VLC icon' />
          <span class='downloadText'><?php echo _("Download VLC"); ?></span>
          <span id='downloadDetails' style='font-size: 12px; color: white;'>
@@ -100,6 +110,7 @@ function downloadButton()
 
 function getOS($os = null, $offset = 0, $count = null, $encode = null) {
     global $windowsLocation;
+    global $windows64Location;
     global $osxLocation;
     global $win32version;
     global $version;
@@ -113,10 +124,16 @@ function getOS($os = null, $offset = 0, $count = null, $encode = null) {
     $OSs = array(
         "windows"   => array(
             "name"          => "Windows",
-            "size"          => '28 MB',
+            "size"          => '38 MB',
             "latestVersion" => $win32version,
             "location"      => $windowsLocation
         ),
+        "windows64"   => array(
+            "name"          => "Windows 64bit",
+            "size"          => '40 MB',
+            "latestVersion" => $win32version,
+            "location"      => $windows64Location
+        ),
         "windowsphone"      => array(
             "name"          => "Windows Phone",
             "latestVersion" => $winrtversion,
@@ -223,11 +240,10 @@ function getOS($os = null, $offset = 0, $count = null, $encode = null) {
 
 function downloadButton2($dropdownItems = null, $targetOS = null, $displayMainOSicons = true, $alternativeTitle = null)
 {
-    global $dlUrl;
-    global $win32version;
     global $windowsLocation;
+    global $win32version;
     global $osxLocation;
-    $dropdownItems = is_null($dropdownItems) ? getOS(null, 0, 6) : $dropdownItems;
+    $dropdownItems = is_null($dropdownItems) ? getOS(null, 0, 7) : $dropdownItems;
     $defaultOS = is_null($targetOS) || $targetOS == 'All' ? "windows" : $targetOS;
     $defaultDetail = getOS($defaultOS);
     ?>


=====================================
www.videolan.org/vlc/releases/1.1.10.php
=====================================
--- a/www.videolan.org/vlc/releases/1.1.10.php
+++ b/www.videolan.org/vlc/releases/1.1.10.php
@@ -19,7 +19,7 @@
                 <a class='extraInfoLink' href='/vlc/features.html'>Features</a>
                 <a class='extraInfoLink' href='/vlc/screenshots.html'>Screenshots</a>
                 <a class='extraInfoLink' href='/vlc/skins.php'>Extensions</a>
-                <a id='downloadButton' href='<?php echo $dlUrl; ?>'>
+                <a id='downloadButton' href='<?php echo $windowsLocation; ?>'>
                     <img style='position: absolute; top: -10px; left: -10px;' src='/images/downloadVLC.png' alt='Download VLC icon' />
                     <span class='downloadText'>Download VLC</span>
                     <span id='downloadDetails' style='font-size: 12px; color: white;'>


=====================================
www.videolan.org/vlc/releases/1.1.8.php
=====================================
--- a/www.videolan.org/vlc/releases/1.1.8.php
+++ b/www.videolan.org/vlc/releases/1.1.8.php
@@ -19,7 +19,7 @@
                 <a class='extraInfoLink' href='/vlc/features.html'>Features</a>
                 <a class='extraInfoLink' href='/vlc/screenshots.html'>Screenshots</a>
                 <a class='extraInfoLink' href='/vlc/skins.php'>Extensions</a>
-                <a id='downloadButton' href='<?php echo $dlUrl; ?>'>
+                <a id='downloadButton' href='<?php echo $windowsLocation; ?>'>
                     <img style='position: absolute; top: -10px; left: -10px;' src='/images/downloadVLC.png' alt='Download VLC icon' />
                     <span class='downloadText'>Download VLC</span>
                     <span id='downloadDetails' style='font-size: 12px; color: white;'>


=====================================
www.videolan.org/vlc/releases/1.1.9.php
=====================================
--- a/www.videolan.org/vlc/releases/1.1.9.php
+++ b/www.videolan.org/vlc/releases/1.1.9.php
@@ -19,7 +19,7 @@
                 <a class='extraInfoLink' href='/vlc/features.html'>Features</a>
                 <a class='extraInfoLink' href='/vlc/screenshots.html'>Screenshots</a>
                 <a class='extraInfoLink' href='/vlc/skins.php'>Extensions</a>
-                <a id='downloadButton' href='<?php echo $dlUrl; ?>'>
+                <a id='downloadButton' href='<?php echo $windowsLocation; ?>'>
                     <img style='position: absolute; top: -10px; left: -10px;' src='/images/downloadVLC.png' alt='Download VLC icon' />
                     <span class='downloadText'>Download VLC</span>
                     <span id='downloadDetails' style='font-size: 12px; color: white;'>



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/compare/0b70924e94e527176180f1c983818f3fb97ad159...6dc0e6972ad255216bf48bc36b404e7d466bf22f

---
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/compare/0b70924e94e527176180f1c983818f3fb97ad159...6dc0e6972ad255216bf48bc36b404e7d466bf22f
You're receiving this email because of your account on code.videolan.org.


More information about the www-doc mailing list