Change redirector urls to index-based

This commit is contained in:
Mikołaj Pich 2018-07-10 20:18:02 +02:00
parent 4541ffa3e1
commit df350e79a0
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
3 changed files with 4 additions and 5 deletions

5
app.js
View file

@ -34,7 +34,7 @@ if (null === document.querySelector(".button-container--list")) {
}
);
addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info", "dev",
addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/0/info", "dev",
function(res, button, version, date) {
if (null !== document.querySelector(".button-container--list")) return;
var json = JSON.parse(res.responseText);
@ -59,8 +59,7 @@ if (null === document.querySelector(".button-container--list")) {
JSON.parse(res.responseText).forEach(function (item) {
if ("master" === item.name) return;
var url = "https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/" + item.name
+ "/artifacts/app-debug-bitrise-signed.apk";
var url = "https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/" + item.name + "/artifacts/0";
var branch = baseCopy.cloneNode(true);

View file

@ -33,7 +33,7 @@
<div class="button-container button-container--list">
<a class="button button--dev dev-button"
title="Pobierz wersję DEV"
href="https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk">
href="https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/0">
master
<p class="button__info">
<span class="dev-version">Build 0000</span>

View file

@ -49,7 +49,7 @@
<div class="button-container">
<a class="button button--dev dev-button"
title="Pobierz wersję DEV"
href="https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk">
href="https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/0">
Pobierz wersję DEV
<p class="button__info">
<span class="dev-version">Build 0000</span>