releases: new factory images format for beta

This commit is contained in:
Daniel Micay
2024-08-06 00:57:30 -04:00
parent abc0841cae
commit dbc3bd5ef5
2 changed files with 31 additions and 29 deletions

View File

@@ -2,6 +2,7 @@
const baseUrl = "https://releases.grapheneos.org/";
const devices = ["akita", "husky", "shiba", "felix", "tangorpro", "lynx", "cheetah", "panther", "bluejay", "raven", "oriole", "barbet", "redfin", "bramble", "sunfish", "coral", "flame"];
const legacyFactoryDevices = new Set(["sunfish", "coral", "flame"]);
const channels = ["stable", "beta"];
const delayMs = 1000 * 60 * 5;
@@ -23,7 +24,8 @@ async function updateReleases() {
}).then(text => {
const metadata = text.trim().split(" ");
const factoryFilename = `${device}-factory-${metadata[0]}.zip`;
const factoryFormat = channel === "stable" || legacyFactoryDevices.has(device) ? "factory" : "install";
const factoryFilename = `${device}-${factoryFormat}-${metadata[0]}.zip`;
const factoryUrl = baseUrl + factoryFilename;
const updateFilename = `${device}-ota_update-${metadata[0]}.zip`;