move versionBaseUrl to the top of releases.js

This commit is contained in:
Daniel Micay 2019-04-29 11:18:41 -04:00
parent afd52089f6
commit ed1231475e

View File

@ -1,6 +1,7 @@
"use strict";
const baseUrl = "https://seamlessupdate.app/";
const versionBaseUrl = "https://github.com/GrapheneOS/platform_manifest/releases/tag/";
const devices = ["blueline", "crosshatch", "taimen", "walleye"];
const channels = ["stable", "beta"];
@ -43,8 +44,6 @@ for (const channel of channels) {
}).then(text => {
const metadata = text.trim().split(" ");
const versionBaseUrl = "https://github.com/GrapheneOS/platform_manifest/releases/tag/";
const factoryFilename = device + "-factory-" + metadata[0] + ".zip";
const factoryUrl = baseUrl + factoryFilename;