Mercurial > sat_docs
annotate scripts/release/update_packages.sh @ 171:a213053a03be
flatpak: update files following names change + Python 3 update:
- `build_manifest.py` has been fixed to work with recent SàT/Libervia
- filenames/scripts have been udpated to reflect project name change
- installation now uses `requirements.txt` when dev version is requested
- there are now 3 types of commands wrapper:
* `libervia_wrapper.py` uses `pb` bridge, starts backend before frontend, and stops it
when frontend is stopped. It's used by `Libervia Desktop` (Cagou)
* `libervia_wrapper-dbus.py` uses `dbus` bridge, starts backend before frontend, and
stops it when frontend is stopped. It's used for `Libervia TUI` (Primitivus)
* `libervia_wrapper-dbus.py` uses `dbus` bridge, starts backend if necessary and
doesn't stop it (to avoid waiting for backend start next time). It's used by
`Libervia CLI` (jp).
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 30 Nov 2021 21:42:06 +0100 |
parents | 03c005ffeb03 |
children |
rev | line source |
---|---|
71
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
1 #!/bin/bash |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
2 |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
3 # This script creates the new packages and send them to the FTP. |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
4 # It does NOT update the symlinks on the FTP: do it by hand! |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
5 |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
6 |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
7 if [ $# -lt 1 ]; then |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
8 echo "Usage: `basename $0` <version e.g. 0.6.0>" |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
9 exit 1 |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
10 fi |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
11 |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
12 WORKSPACE=~/workspace |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
13 VERSION=$1 |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
14 |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
15 for NAME in sat sat_media urwid_satext sat_pubsub libervia; do |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
16 cd $WORKSPACE/$NAME |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
17 hg pull -u |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
18 FILE=$NAME-$VERSION.tar.bz2 |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
19 hg archive -t tbz2 $FILE -X ".hg*" |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
20 if [[ $NAME = "urwid_satext" ]]; then |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
21 DIR="urwid-satext" |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
22 else |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
23 DIR=$NAME |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
24 fi |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
25 scp -P 2222 $FILE souliane@cete.goffi.org:/srv/ftp/$DIR/ |
03c005ffeb03
add script to create release packages and put them on the FTP
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
26 done |