mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-10 06:15:17 +00:00
This updates the names of various packaging and build artifacts to match current branding. Part of https://github.com/vector-im/element-web/issues/14896
32 lines
571 B
Bash
Executable file
32 lines
571 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Take the deb and bundle it into a apt repository
|
|
if [[ $# -lt 1 ]]
|
|
then
|
|
echo "Usage $0 <config dir>"
|
|
exit
|
|
fi
|
|
|
|
confdir=$1
|
|
|
|
set -ex
|
|
|
|
ver=`jq -r .version package.json`
|
|
distdir=$PWD/dist
|
|
confdir=$PWD/$confdir
|
|
|
|
repodir=`mktemp -d -t repo`
|
|
mkdir $repodir/conf
|
|
cp $confdir/conf_distributions $repodir/conf/distributions
|
|
|
|
pushd $repodir
|
|
for i in `cat conf/distributions | grep Codename | cut -d ' ' -f 2`
|
|
do
|
|
reprepro includedeb $i $distdir/element-desktop_${ver}_amd64.deb
|
|
done
|
|
|
|
tar cvzf $distdir/element-desktop_repo_$ver.tar.gz .
|
|
|
|
popd
|
|
|
|
rm -r $repodir
|