-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
executable file
·48 lines (40 loc) · 1.03 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
if [[ -z $1 ]]; then
echo "Usage: $0 [TAG]"
exit 1
fi
BASEDIR="$(readlink -f $(dirname $0))"
PROJECT="lxqt"
VERSION="$1"
mkdir -p "$BASEDIR/dist/$VERSION"
files=(
"liblxqt"
"lxqt-about"
"lxqt-admin"
"lxqt-config"
"lxqt-globalkeys"
"lxqt-notificationd"
"lxqt-openssh-askpass"
"lxqt-panel"
"lxqt-policykit"
"lxqt-powermanagement"
"lxqt-qtplugin"
"lxqt-runner"
"lxqt-session"
"lxqt-sudo"
"pcmanfm-qt"
)
for f in "${files[@]}"; do
echo "Packaging $f"
cd "$BASEDIR/$f"
git tag -fsm "Release v$VERSION" $1 # && git push --tags --force
git archive --prefix=$f-$VERSION/ $1 -o "../dist/$1/$f-$1.tar.gz"
gpg --armor --detach-sign "../dist/$VERSION/$f-$1.tar.gz"
git archive --prefix=$f-$VERSION/ $1 -o "../dist/$1/$f-$1.tar.xz"
gpg --armor --detach-sign "../dist/$VERSION/$f-$1.tar.xz"
done
echo "Done. Uploading..."
cd "$BASEDIR/dist/$VERSION"
sha1sum --tag *-$VERSION.*z > CHECKSUMS
sha256sum --tag *-$VERSION.*z >> CHECKSUMS
scp -r "$BASEDIR/dist/$VERSION" "downloads.lxqt.org:/srv/downloads.lxqt.org/$PROJECT/"