Prosody Appimage: supports only x86_64:

* stop trying to generated an ARM64 AppImage (as it is buggy)
* display a warning in the settings if incompatible CPU detected
* documentation for a workaround

Implements #120.
This commit is contained in:
John Livingston
2022-12-12 19:17:43 +01:00
parent 52753627d3
commit ed3f236120
14 changed files with 347 additions and 34 deletions

View File

@ -35,6 +35,23 @@ export async function diagProsody (test: string, options: RegisterServerOptions)
result.messages.push(`Prosody will use ${wantedConfig.baseApiUrl} as base uri from api calls`)
if (!wantedConfig.paths.exec) {
result.messages.push({
level: 'error',
message: 'Error: no Prosody server.'
})
if (process.arch !== 'x64' && process.arch !== 'x86_64') {
result.messages.push({
level: 'error',
message: 'Error: your CPU is a ' +
process.arch + ', ' +
'which is not compatible with the plugin. ' +
'Please read the plugin installation documentation for a workaround.'
})
}
return result
}
result.messages.push(`Prosody path will be '${wantedConfig.paths.exec}'`)
if (wantedConfig.paths.appImageToExtract) {