install/update: ui must always set the appStoreId or versionsUrl

This commit is contained in:
Girish Ramakrishnan
2026-02-24 05:31:13 +01:00
parent 5ba8a05450
commit dc439ba5be
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -69,8 +69,11 @@ async function onUpdate() {
updateError.value = '';
let appData = '';
if (props.app.appStoreId) appData = { appStoreId: `${props.app.appStoreId}@${props.app.updateInfo.manifest.version}` };
if (props.app.versionsUrl) appData = { versionsUrl: `${props.app.versionsUrl}@${props.app.updateInfo.manifest.version}` };
if (props.app.appStoreId) {
appData = { manifest: props.app.updateInfo.manifest };
} else if (props.app.versionsUrl) {
appData = { versionsUrl: `${props.app.versionsUrl}@${props.app.updateInfo.manifest.version}` };
}
const [error, result] = await appsModel.update(props.app.id, appData, skipBackup.value);
if (error) {