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

@ -27,6 +27,25 @@ function initSettings (options: RegisterServerOptions): void {
(if this button is not opening a new window, please try to refresh the page).`
})
if (process.arch !== 'x64' && process.arch !== 'x86_64') {
registerSetting({
name: 'prosody-arch-warning',
type: 'html',
private: true,
descriptionHTML: `<span class="peertube-plugin-livechat-warning">
It seems that your are using a ${process.arch} CPU,
which is not compatible with the plugin.
Please read the
<a
href="https://github.com/JohnXLivingston/peertube-plugin-livechat/blob/main/documentation/installation.md"
target="_blank"
>
installation documentation
</a> for a workaround.
</span>`
})
}
// ********** Chat
registerSetting({
type: 'html',