9a2da60b7d
Note: websocket s2s is not working yet, still WIP. New Features * Chat Federation: * You can now connect to a remote chat with your local account. * This remote connection is done using a custom implementation of [XEP-0468: WebSocket S2S](https://xmpp.org/extensions/xep-0468.html), using some specific discovering method (so that it will work without any DNS configuration). Minor changes and fixes * Possibility to debug Prosody in development environments. * Using process.spawn instead of process.exec to launch Prosody (safer, and more optimal). * Prosody AppImage: fix path mapping: we only map necessary /etc/ subdir, so that the AppImage can access to /etc/resolv.conf, /etc/hosts, ... * Prosody AppImage: hidden debug mode to disable lua-unbound, that seems broken in some docker dev environments.
75 lines
2.2 KiB
YAML
75 lines
2.2 KiB
YAML
# This file is meant to be used with appimage-builder: https://appimage-builder.readthedocs.io
|
|
# See it is use in the build-prosody.sh script.
|
|
|
|
version: 1
|
|
|
|
script:
|
|
# Remove any previous build
|
|
- rm -rf AppDir | true
|
|
# Make usr dirs
|
|
- mkdir -p AppDir/usr/bin
|
|
# Copy the launcher code into the AppDir
|
|
- cp ./launcher.lua AppDir/usr/bin/
|
|
# Creating the /etc/prosody/certs folder to avoid unecessary errors
|
|
- mkdir -p AppDir/etc/prosody/certs
|
|
|
|
AppDir:
|
|
path: ./AppDir
|
|
|
|
app_info:
|
|
id: org.peertube-plugin-livechat.prosody
|
|
name: prosody
|
|
icon: utilities-terminal
|
|
version: 1.0.0
|
|
exec: usr/bin/lua5.2
|
|
exec_args: "$APPDIR/usr/bin/launcher.lua $@"
|
|
|
|
apt:
|
|
arch: amd64
|
|
sources:
|
|
- sourceline: 'deb [arch=amd64] https://deb.debian.org/debian/ bullseye main contrib'
|
|
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x648ACFD622F3D138'
|
|
- sourceline: 'deb [arch=amd64] https://deb.debian.org/debian/ bullseye-backports main contrib'
|
|
|
|
include:
|
|
- lua5.2
|
|
# lua-unbound is needed
|
|
- lua-unbound
|
|
# lua-readline and lua-event are recommanded dependencies
|
|
- lua-readline
|
|
- lua-event
|
|
# lua-zlib is suggested. Not sure it is used, by make sense to add.
|
|
- lua-zlib
|
|
- lua-sec
|
|
- prosody/bullseye-backports
|
|
|
|
files:
|
|
exclude:
|
|
- usr/share/man
|
|
- usr/share/doc/*/README.*
|
|
- usr/share/doc/*/changelog.*
|
|
- usr/share/doc/*/NEWS.*
|
|
- usr/share/doc/*/TODO.*
|
|
- etc/init.d/*
|
|
- etc/logrotate.d/*
|
|
|
|
runtime:
|
|
# Here we use the path_mappings to rewrite, on runtime, all paths.
|
|
# Note: this assume that peertube-plugin-livechat is not in a subdir of one of following mappings.
|
|
# This seems a reasonable assumption.
|
|
path_mappings:
|
|
# Dont map entire /etc/ (or dns resolution will not work properly)
|
|
- /etc/init.d/:$APPDIR/etc/init.d/
|
|
- /etc/ld.so.conf.d/:$APPDIR/etc/ld.so.conf.d/
|
|
- /etc/logrotate.d/:$APPDIR/etc/logrotate.d/
|
|
- /etc/prosody/:$APPDIR/etc/prosody/
|
|
- /etc/ssl/:$APPDIR/etc/ssl/
|
|
- /lib/:$APPDIR/lib/
|
|
- /lib64/:$APPDIR/lib64/
|
|
- /runtime/:$APPDIR/runtime/
|
|
- /usr/:$APPDIR/usr/
|
|
|
|
AppImage:
|
|
arch: x86_64
|
|
file_name: 'livechat-prosody-x86_64.AppImage'
|