Change redirector urls to index-based
This commit is contained in:
parent
4541ffa3e1
commit
df350e79a0
3 changed files with 4 additions and 5 deletions
5
app.js
5
app.js
|
@ -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);
|
||||
|
|
2
dev.html
2
dev.html
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue