appimage: fix ota model

Account for architecture.
This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2026-03-15 23:00:26 +01:00
1 parent 000404e316
commit c1e3e585e9
1 file changed
+13 -7
+13 -7
View File
@@ -109,19 +109,25 @@ local Device = Generic:extend{
window = G_reader_settings:readSetting("sdl_window", {}),
}
function Device:otaModel()
if self.ota_model then
return self.ota_model, "link"
end
end
local AppImage = Device:extend{
model = "AppImage",
ota_model = "appimage",
hasOTAUpdates = yes,
isDesktop = yes,
}
function AppImage:otaModel()
local arch = jit.arch
local model
if arch == "arm64" then
model = "appimage-aarch64"
elseif arch == "arm" then
model = "appimage-armhf"
elseif arch == "x64" then
model = "appimage-x86_64"
end
return model, "link"
end
local Desktop = Device:extend{
model = SDL.getPlatform(),
isDesktop = yes,