2022-11-22 10:35:38 +00:00
|
|
|
# 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.
|
|
|
|
|
2022-12-12 18:17:43 +00:00
|
|
|
# FIXME: this appimage file is not working. Not used for now.
|
|
|
|
# See https://github.com/JohnXLivingston/peertube-plugin-livechat/issues/124
|
|
|
|
|
2022-11-22 10:35:38 +00:00
|
|
|
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/
|
2022-12-06 16:19:53 +00:00
|
|
|
# Creating the /etc/prosody/certs folder to avoid unecessary errors
|
|
|
|
- mkdir -p AppDir/etc/prosody/certs
|
2023-07-17 10:37:05 +00:00
|
|
|
# Adding the icon
|
|
|
|
- mkdir -p $TARGET_APPDIR/usr/share/icons/hicolor/scalable/apps
|
|
|
|
- cp ../../assets/images/avatars/1.svg $TARGET_APPDIR/usr/share/icons/hicolor/scalable/apps/livechat.svg
|
2022-11-22 10:35:38 +00:00
|
|
|
|
|
|
|
AppDir:
|
|
|
|
path: ./AppDir
|
|
|
|
|
|
|
|
app_info:
|
|
|
|
id: org.peertube-plugin-livechat.prosody
|
|
|
|
name: prosody
|
2023-07-17 10:37:05 +00:00
|
|
|
icon: livechat
|
2022-11-22 10:35:38 +00:00
|
|
|
version: 1.0.0
|
|
|
|
exec: usr/bin/lua5.2
|
|
|
|
exec_args: "$APPDIR/usr/bin/launcher.lua $@"
|
|
|
|
|
|
|
|
apt:
|
|
|
|
arch: arm64
|
|
|
|
sources:
|
2023-05-31 16:13:35 +00:00
|
|
|
- sourceline: 'deb [arch=arm64] https://deb.debian.org/debian/ bullseye main contrib'
|
|
|
|
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x648ACFD622F3D138'
|
|
|
|
- sourceline: 'deb [arch=arm64] https://deb.debian.org/debian/ bullseye-backports main contrib'
|
2023-06-12 17:02:14 +00:00
|
|
|
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x0E98404D386FA1D9'
|
2022-11-22 10:35:38 +00:00
|
|
|
|
|
|
|
include:
|
|
|
|
- lua5.2
|
2023-05-31 16:13:35 +00:00
|
|
|
# lua-unbound is needed
|
|
|
|
- lua-unbound
|
2022-12-06 17:38:51 +00:00
|
|
|
# lua-readline and lua-event are recommanded dependencies
|
2023-05-31 16:13:35 +00:00
|
|
|
- lua-readline
|
2022-12-06 17:38:51 +00:00
|
|
|
- lua-event
|
|
|
|
# lua-zlib is suggested. Not sure it is used, by make sense to add.
|
|
|
|
- lua-zlib
|
2023-04-10 17:01:41 +00:00
|
|
|
- lua-sec
|
2023-05-31 16:13:35 +00:00
|
|
|
- prosody/bullseye-backports
|
2022-11-22 10:35:38 +00:00
|
|
|
|
|
|
|
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:
|
2023-05-19 10:52:52 +00:00
|
|
|
# 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/
|
2022-11-22 10:35:38 +00:00
|
|
|
- /lib/:$APPDIR/lib/
|
|
|
|
- /lib64/:$APPDIR/lib64/
|
|
|
|
- /runtime/:$APPDIR/runtime/
|
|
|
|
- /usr/:$APPDIR/usr/
|
|
|
|
|
|
|
|
AppImage:
|
|
|
|
arch: aarch64
|
|
|
|
file_name: 'livechat-prosody-aarch64.AppImage'
|