view scripts/release/update_packages.sh @ 134:4549cf265131

flatpak: install D-Bus .service on each frontend: work around lack of dependency handling in Flatpak by installing D-Bus .service on each frontend. This works because all backend is included in the runtime, but we have to add backend permissions to all frontend, and set --own-name=org.salutatoi.SAT. Furthermore, if one frontend is removed, the symbolic link is removed and the backend will not be launched automatically anymore, even if other frontends are still there. The benefict of this method is that backend has not to be installed manually to use a frontend.
author Goffi <goffi@goffi.org>
date Sun, 15 Jul 2018 16:56:55 +0200
parents 03c005ffeb03
children
line wrap: on
line source

#!/bin/bash

# This script creates the new packages and send them to the FTP.
# It does NOT update the symlinks on the FTP: do it by hand!


if [ $# -lt 1 ]; then
  echo "Usage: `basename $0` <version e.g. 0.6.0>"
  exit 1
fi

WORKSPACE=~/workspace
VERSION=$1

for NAME in sat sat_media urwid_satext sat_pubsub libervia; do
    cd $WORKSPACE/$NAME
    hg pull -u
    FILE=$NAME-$VERSION.tar.bz2
    hg archive -t tbz2 $FILE -X ".hg*"
    if [[ $NAME = "urwid_satext" ]]; then
        DIR="urwid-satext"
    else
        DIR=$NAME
    fi
    scp -P 2222 $FILE souliane@cete.goffi.org:/srv/ftp/$DIR/
done