mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 13:39:58 +01:00
Bundle deb into a repo
This commit is contained in:
parent
c9be601c7f
commit
39c5e64406
@ -21,6 +21,7 @@
|
|||||||
"indocker": "scripts/indocker.sh",
|
"indocker": "scripts/indocker.sh",
|
||||||
"docker:build": "yarn run indocker yarn run build",
|
"docker:build": "yarn run indocker yarn run build",
|
||||||
"docker:install": "yarn run indocker yarn install",
|
"docker:install": "yarn run indocker yarn install",
|
||||||
|
"debrepo": "scripts/mkrepo.sh",
|
||||||
"clean": "rimraf webapp.asar dist packages deploys"
|
"clean": "rimraf webapp.asar dist packages deploys"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
33
scripts/mkrepo.sh
Executable file
33
scripts/mkrepo.sh
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
#!/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 -x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
ver=`node -e "require('fs'); console.log(JSON.parse(fs.readFileSync('package.json')).version)"`
|
||||||
|
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/riot-desktop_${ver}_amd64.deb
|
||||||
|
done
|
||||||
|
|
||||||
|
tar cvzf $distdir/riot-desktop_repo_$ver.tar.gz .
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
||||||
|
rm -r $repodir
|
Loading…
x
Reference in New Issue
Block a user