Prosody AppImage: aarch64 architecture.

This commit is contained in:
John Livingston
2022-11-22 11:35:38 +01:00
parent 059c6522b6
commit e6da0a879f
4 changed files with 96 additions and 13 deletions

View File

@ -37,6 +37,14 @@ export async function diagProsody (test: string, options: RegisterServerOptions)
result.messages.push(`Prosody path will be '${wantedConfig.paths.exec}'`)
if (wantedConfig.paths.appImageToExtract) {
result.messages.push(`Prosody will be using the '${wantedConfig.paths.appImageToExtract}' AppImage`)
} else {
result.messages.push('Prosody will not be using any AppImage')
}
result.messages.push(`Prosody AppImage extract path will be '${wantedConfig.paths.appImageExtractPath}'`)
result.messages.push(`Prosody modules path will be '${wantedConfig.paths.modules}'`)
result.messages.push(`Prosody rooms will be grouped by '${wantedConfig.roomType}'.`)

View File

@ -43,7 +43,13 @@ async function getProsodyFilePaths (options: RegisterServerOptions): Promise<Pro
execCtl = 'prosodyctl'
execCtlArgs = []
} else {
appImageToExtract = path.resolve(__dirname, '../../prosody/livechat-prosody-x86_64.AppImage')
const arch = process.arch
if (arch === 'arm' || arch === 'arm64') {
logger.info('Node process.arch is ' + arch + ', we will be using the aarch64 Prosody AppImage')
appImageToExtract = path.resolve(__dirname, '../../prosody/livechat-prosody-aarch64.AppImage')
} else {
appImageToExtract = path.resolve(__dirname, '../../prosody/livechat-prosody-x86_64.AppImage')
}
exec = path.resolve(appImageExtractPath, 'squashfs-root/AppRun')
execArgs = ['prosody']
execCtl = exec