temporarily use Beta for 6th generation installs

This commit is contained in:
Daniel Micay
2022-08-22 20:01:27 -04:00
parent bf6f7a6d62
commit 30411068f9
3 changed files with 9 additions and 10 deletions

View File

@@ -154,7 +154,8 @@ async function getLatestRelease() {
throw new Error(`device model (${product}) is not supported by the GrapheneOS web installer`);
}
let metadataResp = await fetch(`${RELEASES_URL}/${product}-stable`);
let channel = gs101Devices.includes(product) ? "beta" : "stable";
let metadataResp = await fetch(`${RELEASES_URL}/${product}-${channel}`);
let metadata = await metadataResp.text();
let releaseId = metadata.split(" ")[0];