Add gitea
This commit is contained in:
parent
beb7aa882f
commit
ca1f99908e
11 changed files with 115 additions and 12 deletions
|
@ -6,6 +6,7 @@ RELEASE=3
|
|||
[ -e ./lib/function.sh ] && source ./lib/function.sh
|
||||
|
||||
APP=element-web
|
||||
DEPOT=https://github.com/vector-im/element-web.git /tmp/git
|
||||
GIT_VERSION=v${VERSION}
|
||||
DEB_VERSION=${VERSION}-${RELEASE}
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
|
@ -30,13 +31,13 @@ envinit() {
|
|||
|
||||
prebuild(){
|
||||
[ -e /tmp/git ] && rm -fr /tmp/git
|
||||
[ -e /tmp/element-web ] || mkdir /tmp/element-web
|
||||
git clone --depth 1 -b ${GIT_VERSION} https://github.com/vector-im/element-web.git /tmp/git
|
||||
cp -r /tmp/git/. /tmp/element-web
|
||||
[ -e /tmp/element-web ] || mkdir /tmp/${APP}
|
||||
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
|
||||
cp -r /tmp/git/. /tmp/${APP}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd /tmp/element-web
|
||||
cd /tmp/${APP}
|
||||
yarn install
|
||||
yarn dist
|
||||
}
|
||||
|
@ -44,8 +45,8 @@ build() {
|
|||
makedeb(){
|
||||
PATH_DEB=/tmp/src/rootfs
|
||||
|
||||
tar -zxf /tmp/element-web/dist/element-${GIT_VERSION}-dirty.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/share/element-web/
|
||||
cp /tmp/element-web/config.sample.json ${PATH_DEB}/etc/element-web/config.json
|
||||
tar -zxf /tmp/${APP}/dist/element-${GIT_VERSION}-dirty.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/share/element-web/
|
||||
cp /tmp/${APP}/config.sample.json ${PATH_DEB}/etc/element-web/config.json
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue