-
You're about to download <unknown>
from commit <unknown>
+
You're about to download <unknown>
from <unknown>
Thank you for downloading
<unknown>. Choose how you would like to get your file:
@@ -309,17 +309,29 @@
$('.app-name').html(hash.app.replace(/^(.+?)\.([^.]*)$/, '$1'));
document.title = "Download " + hash.app.replace(/^(.+?)\.([^.]*)$/, '$1');
if (hash.hasOwnProperty("commit")) {
- $('.app-version').html(hash.commit.substring(0, 7) + '
' + hash.commit.substring(7) + '');
+ if (hash.hasOwnProperty("build")) {
+ $('.app-version').html('build ' + hash.build + '');
+ } else {
+ $('.app-version').html('commit ' + hash.commit.substring(0, 7) + '
' + hash.commit.substring(7) + '');
+ }
$('a').each(function() {
var a = $(this);
if (a.attr('download') == '%')
a.attr('download', hash.app);
switch (a.attr("href").toLowerCase()) {
case "%adfly_app_download%":
- a.attr("href", "https://adf.ly/18562515/https://raw.githubusercontent.com/ME1312/SubServers-2/" + hash.commit.toLowerCase() + "/Artifacts/" + hash.app);
+ if (hash.hasOwnProperty("build")) {
+ a.attr("href", "https://adf.ly/18562515/https://src.me1312.net/maven/net/ME1312/SubServers/" + hash.app.replace(/^(.+?)\.([^.]*)$/, '$1') + "/" + hash.build + "/" + hash.app.replace(/^(.+?)\.([^.]*)$/, '$1') + "-" + hash.build + ".jar");
+ } else {
+ a.attr("href", "https://adf.ly/18562515/https://raw.githubusercontent.com/ME1312/SubServers-2/" + hash.commit.toLowerCase() + "/Artifacts/" + hash.app);
+ }
break;
case "%app_download%":
- a.attr("href", "https://raw.githubusercontent.com/ME1312/SubServers-2/" + hash.commit.toLowerCase() + "/Artifacts/" + hash.app);
+ if (hash.hasOwnProperty("build")) {
+ a.attr("href", "https://src.me1312.net/maven/net/ME1312/SubServers/" + hash.app.replace(/^(.+?)\.([^.]*)$/, '$1') + "/" + hash.build + "/" + hash.app.replace(/^(.+?)\.([^.]*)$/, '$1') + "-" + hash.build + ".jar");
+ } else {
+ a.attr("href", "https://raw.githubusercontent.com/ME1312/SubServers-2/" + hash.commit.toLowerCase() + "/Artifacts/" + hash.app);
+ }
break;
case "%commit_page%":
a.attr("href", "https://github.com/ME1312/SubServers-2/commit/" + hash.commit.toLowerCase());