Commit 06d0a0a6 authored by elijah's avatar elijah

s/mac/macOS

parent 58330a25
......@@ -4,23 +4,24 @@ $(document).ready(function() {
$(".download").click(function(e) {
e.preventDefault();
download(platform);
});
});
if (["linux", "mac", "android"].indexOf(platform) != -1) {
if (["GNU/Linux", "macOS", "Android"].indexOf(platform) != -1) {
$(".download-text").text("Download Bitmask for " + platform);
}
});
function download(platform) {
var link = "install";
switch (platform) {
case "linux":
case "GNU/Linux":
link = "https://dl.bitmask.net/client/linux/stable/Bitmask-linux64-latest.tar.gz";
break;
case "mac":
case "macOS":
link = "https://dl.bitmask.net/client/osx/stable/Bitmask-OSX-latest.pkg";
break;
case "android":
case "Android":
link = "install/android";
break;
}
......@@ -29,16 +30,16 @@ function download(platform) {
function platformStr() {
if (navigator.platform.indexOf("Linux") != -1) {
return "linux";
return "GNU/Linux";
}
if (navigator.platform.indexOf("Mac") != -1) {
return "mac";
return "macOS";
}
if (navigator.platform.indexOf("Android") != -1) {
return "android";
return "Android";
}
if (navigator.platform.indexOf("Win") != -1) {
return "win";
return "Windows";
}
return "other";
return "Other";
}
......@@ -28,7 +28,7 @@
%a.btn.btn-default{:href=>"https://dl.bitmask.net/client/osx/stable/Bitmask-OSX-latest.pkg"}
%i.fa.fa-apple.fa-4x
%br
%b Mac OS
%b macOS
%br
%small Version 0.10
.col-sm-3.col-xs-6.text-center
......@@ -42,6 +42,6 @@
.row
.col-sm-8.col-sm-offset-2
.p.text-center
= t :warning
= t :warning
= t :warning_disabled
- @title = "Bitmask for Mac OS"
- @nav_title = 'Mac OS'
- @title = "Bitmask for macOS"
- @nav_title = 'macOS'
h2. Download latest version
Bitmask requires Mountain Lion or newer.
<%= render({:partial => 'common/download_button'}, {:link => 'https://dl.bitmask.net/client/osx/Bitmask-OSX-latest.dmg', :text => 'Download for Mac OS'}) %>
<%= render({:partial => 'common/download_button'}, {:link => 'https://dl.bitmask.net/client/osx/Bitmask-OSX-latest.dmg', :text => 'Download for macOS'}) %>
Optionally, you can [[authenticate the signature => signature-verification]] for the Bitmask .dmg file using [[this signature file => https://dl.bitmask.net/client/osx/Bitmask-OSX-latest.dmg.asc]].
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment