move versionBaseUrl to the top of releases.js
This commit is contained in:
parent
afd52089f6
commit
ed1231475e
@ -1,6 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const baseUrl = "https://seamlessupdate.app/";
|
const baseUrl = "https://seamlessupdate.app/";
|
||||||
|
const versionBaseUrl = "https://github.com/GrapheneOS/platform_manifest/releases/tag/";
|
||||||
const devices = ["blueline", "crosshatch", "taimen", "walleye"];
|
const devices = ["blueline", "crosshatch", "taimen", "walleye"];
|
||||||
const channels = ["stable", "beta"];
|
const channels = ["stable", "beta"];
|
||||||
|
|
||||||
@ -43,8 +44,6 @@ for (const channel of channels) {
|
|||||||
}).then(text => {
|
}).then(text => {
|
||||||
const metadata = text.trim().split(" ");
|
const metadata = text.trim().split(" ");
|
||||||
|
|
||||||
const versionBaseUrl = "https://github.com/GrapheneOS/platform_manifest/releases/tag/";
|
|
||||||
|
|
||||||
const factoryFilename = device + "-factory-" + metadata[0] + ".zip";
|
const factoryFilename = device + "-factory-" + metadata[0] + ".zip";
|
||||||
const factoryUrl = baseUrl + factoryFilename;
|
const factoryUrl = baseUrl + factoryFilename;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user