refactor
This commit is contained in:
parent
b8d748f5f3
commit
dd0aad6740
|
@ -1,4 +1,6 @@
|
||||||
## DEBMAKER
|
## DEBMAKER
|
||||||
|
The main goal of this repository is allow to create application from source without install all compilation utility directly on the main system.
|
||||||
|
All package are install in folder in chroot environnement with only one script.
|
||||||
|
|
||||||
### Requirement
|
### Requirement
|
||||||
- debootstrap (ie apt install debootstrap)
|
- debootstrap (ie apt install debootstrap)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
APP=joplin
|
APP=joplin
|
||||||
VERSION=2.7.8
|
VERSION=2.7.11
|
||||||
GIT_VERSION=$VERSION
|
GIT_VERSION=$VERSION
|
||||||
DEB_VERSION=$VERSION-6
|
DEB_VERSION=$VERSION-1
|
||||||
DEBIAN_VERSION_CODENAME=bullseye
|
DEBIAN_VERSION_CODENAME=bullseye
|
||||||
|
|
||||||
source ./lib/function.sh
|
source ./lib/function.sh
|
||||||
|
|
|
@ -0,0 +1,138 @@
|
||||||
|
#!/bin/bash
|
||||||
|
CACHE_APP=cache/${APP}/
|
||||||
|
CACHE_STEP1=cache/${DEBIAN_VERSION_CODENAME}
|
||||||
|
CACHE_STEP2=cache/${APP}/envinit
|
||||||
|
CACHE_STEP3=cache/${APP}/prebuild
|
||||||
|
CACHE_STEP4=cache/${APP}/build
|
||||||
|
|
||||||
|
#DownloadOs
|
||||||
|
step1() {
|
||||||
|
if [ ! -e ${CACHE_STEP1} ]
|
||||||
|
then
|
||||||
|
mkdir -p ${CACHE_STEP1}/proc
|
||||||
|
mount -t proc proc ${CACHE_STEP1}/proc
|
||||||
|
sleep 2
|
||||||
|
debootstrap ${DEBIAN_VERSION_CODENAME} ${CACHE_STEP1}
|
||||||
|
umount ${CACHE_STEP1}/proc
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
#InstallOs
|
||||||
|
step2(){
|
||||||
|
if [ -e ressources/${APP}/envinit ]; then
|
||||||
|
if [ ! -e ${CACHE_STEP2} ] ; then
|
||||||
|
mkdir -p ${CACHE_APP}
|
||||||
|
cp -a ${CACHE_STEP1}/ ${CACHE_STEP2}
|
||||||
|
cp ressources/${APP}/envinit ${CACHE_STEP2}/tmp/envinit
|
||||||
|
mount -t proc proc ${CACHE_STEP2}/proc
|
||||||
|
sleep 2
|
||||||
|
chroot ${CACHE_STEP2} /tmp/envinit
|
||||||
|
umount ${CACHE_STEP2}/proc
|
||||||
|
rm ${CACHE_STEP2}/tmp/envinit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
#ConfigureBeforeBuild
|
||||||
|
step3(){
|
||||||
|
if [ -e ressources/${APP}/prebuild ]; then
|
||||||
|
if [ ! -e ${CACHE_STEP3} ]; then
|
||||||
|
cp -a ${CACHE_STEP2} ${CACHE_STEP3}
|
||||||
|
cp ressources/${APP}/prebuild ${CACHE_STEP3}/tmp/prebuild
|
||||||
|
chroot ${CACHE_STEP3} /tmp/prebuild ${GIT_VERSION}
|
||||||
|
rm ${CACHE_STEP3}/tmp/prebuild
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
#Build
|
||||||
|
step4(){
|
||||||
|
if [ -e ressources/${APP}/build ]; then
|
||||||
|
if [ ! -e ${CACHE_STEP4} ] ; then
|
||||||
|
cp -a ${CACHE_STEP3} ${CACHE_STEP4}
|
||||||
|
cp ressources/${APP}/build ${CACHE_STEP4}/tmp/build
|
||||||
|
mount -t proc proc ${CACHE_STEP4}/proc/
|
||||||
|
sleep 2
|
||||||
|
chroot ${CACHE_STEP4} /tmp/build
|
||||||
|
umount ${CACHE_STEP4}/proc/
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
#PackageDeb
|
||||||
|
step5(){
|
||||||
|
rm -fr dist/${APP}
|
||||||
|
mkdir dist/${APP}
|
||||||
|
cp -pfr ressources/${APP}/rootfs/* dist/$APP/
|
||||||
|
bash ressources/${APP}/makedeb ${CACHE_STEP4} dist/${APP} ${GIT_VERSION}
|
||||||
|
sed -i "s/%VERSION%/$DEB_VERSION/" dist/${APP}/DEBIAN/control
|
||||||
|
fakeroot dpkg-deb -Z gzip --build dist/${APP} dist
|
||||||
|
rm -fr dist/${APP}
|
||||||
|
}
|
||||||
|
|
||||||
|
allstep(){
|
||||||
|
step1
|
||||||
|
step2
|
||||||
|
step3
|
||||||
|
step4
|
||||||
|
step5
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteStep1(){
|
||||||
|
rm -fr ${CACHE_STEP1} ${CACHE_STEP2} ${CACHE_STEP3} ${CACHE_STEP4}
|
||||||
|
}
|
||||||
|
DeleteStep2(){
|
||||||
|
rm -fr ${CACHE_STEP2} ${CACHE_STEP3} ${CACHE_STEP4}
|
||||||
|
}
|
||||||
|
DeleteStep3(){
|
||||||
|
rm -fr ${CACHE_STEP3} ${CACHE_STEP4}
|
||||||
|
}
|
||||||
|
DeleteStep4(){
|
||||||
|
rm -fr ${CACHE_STEP4}
|
||||||
|
}
|
||||||
|
|
||||||
|
StartFromStep1(){
|
||||||
|
DeleteStep1
|
||||||
|
allstep
|
||||||
|
}
|
||||||
|
|
||||||
|
StartFromStep2(){
|
||||||
|
DeleteStep2
|
||||||
|
allstep
|
||||||
|
}
|
||||||
|
|
||||||
|
StartFromStep3(){
|
||||||
|
DeleteStep3
|
||||||
|
allstep
|
||||||
|
}
|
||||||
|
|
||||||
|
StartFromStep4(){
|
||||||
|
DeleteStep4
|
||||||
|
allstep
|
||||||
|
}
|
||||||
|
|
||||||
|
GotoStep1(){
|
||||||
|
chroot ${CACHE_STEP1}
|
||||||
|
}
|
||||||
|
|
||||||
|
GotoStep2(){
|
||||||
|
chroot ${CACHE_STEP2}
|
||||||
|
}
|
||||||
|
|
||||||
|
GotoStep3(){
|
||||||
|
chroot ${CACHE_STEP3}
|
||||||
|
}
|
||||||
|
|
||||||
|
GotoStep4(){
|
||||||
|
mount -t proc proc ${CACHE_STEP4}/proc/
|
||||||
|
chroot ${CACHE_STEP4}
|
||||||
|
umount ${CACHE_STEP4}/proc/
|
||||||
|
}
|
||||||
|
|
||||||
|
Clean(){
|
||||||
|
rm -fr cache/*
|
||||||
|
}
|
||||||
|
|
||||||
|
CleanAll(){
|
||||||
|
rm -fr cache/*
|
||||||
|
}
|
|
@ -19,44 +19,38 @@ step1() {
|
||||||
|
|
||||||
#InstallOs
|
#InstallOs
|
||||||
step2(){
|
step2(){
|
||||||
if [ -e ressources/${APP}/envinit ]; then
|
|
||||||
if [ ! -e ${CACHE_STEP2} ] ; then
|
if [ ! -e ${CACHE_STEP2} ] ; then
|
||||||
mkdir -p ${CACHE_APP}
|
mkdir -p ${CACHE_APP}
|
||||||
cp -a ${CACHE_STEP1}/ ${CACHE_STEP2}
|
cp -a ${CACHE_STEP1}/ ${CACHE_STEP2}
|
||||||
cp ressources/${APP}/envinit ${CACHE_STEP2}/tmp/envinit
|
cp ressources/${APP}/recette ${CACHE_STEP2}/tmp/recette
|
||||||
mount -t proc proc ${CACHE_STEP2}/proc
|
mount -t proc proc ${CACHE_STEP2}/proc
|
||||||
sleep 2
|
sleep 2
|
||||||
chroot ${CACHE_STEP2} /tmp/envinit
|
chroot ${CACHE_STEP2} /tmp/recette envinit
|
||||||
umount ${CACHE_STEP2}/proc
|
umount ${CACHE_STEP2}/proc
|
||||||
rm ${CACHE_STEP2}/tmp/envinit
|
rm ${CACHE_STEP2}/tmp/envinit
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ConfigureBeforeBuild
|
#ConfigureBeforeBuild
|
||||||
step3(){
|
step3(){
|
||||||
if [ -e ressources/${APP}/prebuild ]; then
|
|
||||||
if [ ! -e ${CACHE_STEP3} ]; then
|
if [ ! -e ${CACHE_STEP3} ]; then
|
||||||
cp -a ${CACHE_STEP2} ${CACHE_STEP3}
|
cp -a ${CACHE_STEP2} ${CACHE_STEP3}
|
||||||
cp ressources/${APP}/prebuild ${CACHE_STEP3}/tmp/prebuild
|
cp ressources/${APP}/recette ${CACHE_STEP3}/tmp/recette
|
||||||
chroot ${CACHE_STEP3} /tmp/prebuild ${GIT_VERSION}
|
chroot ${CACHE_STEP3} /tmp/recette prebuild ${GIT_VERSION}
|
||||||
rm ${CACHE_STEP3}/tmp/prebuild
|
rm ${CACHE_STEP3}/tmp/prebuild
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#Build
|
#Build
|
||||||
step4(){
|
step4(){
|
||||||
if [ -e ressources/${APP}/build ]; then
|
|
||||||
if [ ! -e ${CACHE_STEP4} ] ; then
|
if [ ! -e ${CACHE_STEP4} ] ; then
|
||||||
cp -a ${CACHE_STEP3} ${CACHE_STEP4}
|
cp -a ${CACHE_STEP3} ${CACHE_STEP4}
|
||||||
cp ressources/${APP}/build ${CACHE_STEP4}/tmp/build
|
cp ressources/${APP}/recette ${CACHE_STEP4}/tmp/recette
|
||||||
mount -t proc proc ${CACHE_STEP4}/proc/
|
mount -t proc proc ${CACHE_STEP4}/proc/
|
||||||
sleep 2
|
sleep 2
|
||||||
chroot ${CACHE_STEP4} /tmp/build
|
chroot ${CACHE_STEP4} /tmp/recette build
|
||||||
umount ${CACHE_STEP4}/proc/
|
umount ${CACHE_STEP4}/proc/
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#PackageDeb
|
#PackageDeb
|
||||||
|
@ -64,7 +58,7 @@ step5(){
|
||||||
rm -fr dist/${APP}
|
rm -fr dist/${APP}
|
||||||
mkdir dist/${APP}
|
mkdir dist/${APP}
|
||||||
cp -pfr ressources/${APP}/rootfs/* dist/$APP/
|
cp -pfr ressources/${APP}/rootfs/* dist/$APP/
|
||||||
bash ressources/${APP}/makedeb ${CACHE_STEP4} dist/${APP} ${GIT_VERSION}
|
bash ressources/${APP}/recette makedeb ${CACHE_STEP4} dist/${APP} ${GIT_VERSION}
|
||||||
sed -i "s/%VERSION%/$DEB_VERSION/" dist/${APP}/DEBIAN/control
|
sed -i "s/%VERSION%/$DEB_VERSION/" dist/${APP}/DEBIAN/control
|
||||||
fakeroot dpkg-deb -Z gzip --build dist/${APP} dist
|
fakeroot dpkg-deb -Z gzip --build dist/${APP} dist
|
||||||
rm -fr dist/${APP}
|
rm -fr dist/${APP}
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y build-essential git wget ca-certificates
|
||||||
|
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||||
|
#wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||||
|
#echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y nodejs
|
||||||
|
wget -qO - https://go.dev/dl/go1.17.3.linux-amd64.tar.gz | tar -C /usr/local -xz
|
||||||
|
wget -qO - https://get.pnpm.io/install.sh | sh -
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/authelia/authelia.git
|
||||||
|
cd authelia/
|
||||||
|
git checkout $VERSION
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/authelia/
|
||||||
|
. /root/.bashrc
|
||||||
|
PATH=$PATH:/usr/local/go/bin bash bootstrap.sh
|
||||||
|
PATH=$PATH:/usr/local/go/bin ./cmd/authelia-scripts/authelia-scripts build
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp ${PATH_BUILD}/tmp/authelia/dist/authelia ${PATH_DEB}/usr/bin/authelia
|
||||||
|
cp ${PATH_BUILD}/tmp/authelia/config.template.yml ${PATH_DEB}/etc/authelia/configuration.yml
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /tmp/authelia/
|
|
||||||
. /root/.bashrc
|
|
||||||
PATH=$PATH:/usr/local/go/bin bash bootstrap.sh
|
|
||||||
PATH=$PATH:/usr/local/go/bin ./cmd/authelia-scripts/authelia-scripts build
|
|
|
@ -1,9 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y build-essential git wget ca-certificates
|
|
||||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
|
||||||
#wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
|
||||||
#echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y nodejs
|
|
||||||
wget -qO - https://go.dev/dl/go1.17.3.linux-amd64.tar.gz | tar -C /usr/local -xz
|
|
||||||
wget -qO - https://get.pnpm.io/install.sh | sh -
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp ${PATH_BUILD}/tmp/authelia/dist/authelia ${PATH_DEB}/usr/bin/authelia
|
|
||||||
cp ${PATH_BUILD}/tmp/authelia/config.template.yml ${PATH_DEB}/etc/authelia/configuration.yml
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/authelia/authelia.git
|
|
||||||
cd authelia/
|
|
||||||
git checkout $VERSION
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /tmp/element-web
|
|
||||||
yarn install
|
|
||||||
yarn dist
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y build-essential git python wget ca-certificates
|
||||||
|
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||||
|
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y yarn nodejs
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/vector-im/element-web.git
|
||||||
|
cd element-web/
|
||||||
|
git checkout $VERSION
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/element-web
|
||||||
|
yarn install
|
||||||
|
yarn dist
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
tar -zxf ${PATH_BUILD}/tmp/element-web/dist/element-${GIT_VERSION}-dirty.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/lib/element-web/
|
||||||
|
cp ${PATH_DEB}/usr/lib/element-web/config.sample.json ${PATH_DEB}/etc/element-web/config.json
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,7 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y build-essential git python wget ca-certificates
|
|
||||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
|
||||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
|
||||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y yarn nodejs
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
tar -zxf ${PATH_BUILD}/tmp/element-web/dist/element-${GIT_VERSION}-dirty.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/lib/element-web/
|
|
||||||
cp ${PATH_DEB}/usr/lib/element-web/config.sample.json ${PATH_DEB}/etc/element-web/config.json
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/vector-im/element-web.git
|
|
||||||
cd element-web/
|
|
||||||
git checkout $VERSION
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /tmp/server/
|
|
||||||
. /root/.bashrc
|
|
||||||
PATH=$PATH:/usr/local/go/bin make
|
|
|
@ -1,8 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y build-essential git wget ca-certificates
|
|
||||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
|
||||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
|
||||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y nodejs yarn
|
|
||||||
wget -qO - https://go.dev/dl/go1.17.6.linux-amd64.tar.gz | tar -C /usr/local -xz
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y build-essential git wget ca-certificates
|
||||||
|
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||||
|
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y nodejs yarn
|
||||||
|
wget -qO - https://go.dev/dl/go1.17.6.linux-amd64.tar.gz | tar -C /usr/local -xz
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/gotify/server.git
|
||||||
|
cd server/
|
||||||
|
git checkout ${VERSION}
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/server/
|
||||||
|
. /root/.bashrc
|
||||||
|
PATH=${PATH}:/usr/local/go/bin make
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp ${PATH_BUILD}/tmp/gotify/dist/gotify ${PATH_DEB}/usr/bin/gotify
|
||||||
|
cp ${PATH_BUILD}/tmp/authelia/config.template.yml ${PATH_DEB}/etc/authelia/configuration.yml
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp ${PATH_BUILD}/tmp/gotify/dist/gotify ${PATH_DEB}/usr/bin/gotify
|
|
||||||
cp ${PATH_BUILD}/tmp/authelia/config.template.yml ${PATH_DEB}/etc/authelia/configuration.yml
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/gotify/server.git
|
|
||||||
cd server/
|
|
||||||
git checkout $VERSION
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /tmp/joplin/
|
|
||||||
BUILD_SEQUENCIAL=1 yarn install
|
|
|
@ -1,7 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y build-essential git python wget ca-certificates
|
|
||||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
|
||||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
|
||||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y yarn nodejs
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y build-essential git python wget ca-certificates
|
||||||
|
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||||
|
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y yarn nodejs
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/laurent22/joplin.git
|
||||||
|
cd joplin/
|
||||||
|
git checkout $VERSION
|
||||||
|
rm -fr packages/app*
|
||||||
|
rm -fr packages/generator-joplin
|
||||||
|
rm -fr packages/plugin-repo-cli
|
||||||
|
rm -fr packages/plugins
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/joplin/
|
||||||
|
BUILD_SEQUENCIAL=1 yarn install
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp -fr ${PATH_BUILD}/tmp/joplin/packages/* ${PATH_DEB}/usr/lib/joplin-server/
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp -fr ${PATH_BUILD}/tmp/joplin/packages/* ${PATH_DEB}/usr/lib/joplin-server/
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/laurent22/joplin.git
|
|
||||||
cd joplin/
|
|
||||||
git checkout $VERSION
|
|
||||||
rm -fr packages/app*
|
|
||||||
rm -fr packages/generator-joplin
|
|
||||||
rm -fr packages/plugin-repo-cli
|
|
||||||
rm -fr packages/plugins
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
wget https://github.com/laurent22/joplin/releases/download/v${GIT_VERSION}/Joplin-${GIT_VERSION}.AppImage -qO ${PATH_DEB}/usr/share/joplin/Joplin.AppImage
|
||||||
|
chmod +x ${PATH_DEB}/usr/share/joplin/Joplin.AppImage
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
wget https://github.com/laurent22/joplin/releases/download/v${GIT_VERSION}/Joplin-${GIT_VERSION}.AppImage -qO ${PATH_DEB}/usr/share/joplin/Joplin.AppImage
|
|
||||||
chmod +x ${PATH_DEB}/usr/share/joplin/Joplin.AppImage
|
|
|
@ -1,4 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
cd /tmp/whatsapp/
|
|
||||||
git checkout $1
|
|
||||||
PATH=$PATH:/usr/local/go/bin ./build.sh
|
|
|
@ -1,3 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y ca-certificates git libolm3 libolm-dev build-essential wget
|
|
||||||
wget -qO - https://go.dev/dl/go1.17.3.linux-amd64.tar.gz | tar -C /usr/local -xz
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp ${PATH_BUILD}/tmp/whatsapp/mautrix-whatsapp ${PATH_DEB}/usr/lib/mautrix-whatsapp/mautrix-whatsapp
|
|
||||||
cp ${PATH_BUILD}/tmp/whatsapp/example-config.yaml ${PATH_DEB}/etc/mautrix-whatsapp/config.yaml
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y ca-certificates git libolm3 libolm-dev build-essential wget
|
||||||
|
wget -qO - https://go.dev/dl/go1.17.3.linux-amd64.tar.gz | tar -C /usr/local -xz
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/mautrix/whatsapp.git
|
||||||
|
cd whatsapp/
|
||||||
|
git checkout $VERSION
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/whatsapp/
|
||||||
|
git checkout $1
|
||||||
|
PATH=$PATH:/usr/local/go/bin ./build.sh
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp ${PATH_BUILD}/tmp/whatsapp/mautrix-whatsapp ${PATH_DEB}/usr/lib/mautrix-whatsapp/mautrix-whatsapp
|
||||||
|
cp ${PATH_BUILD}/tmp/whatsapp/example-config.yaml ${PATH_DEB}/etc/mautrix-whatsapp/config.yaml
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/mautrix/whatsapp.git
|
|
||||||
cd whatsapp/
|
|
||||||
git checkout $VERSION
|
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y git
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp -fr ${PATH_BUILD}/tmp/rss-bridge ${PATH_DEB}/usr/share/
|
|
||||||
|
|
||||||
cp ${PATH_DEB}/usr/share/rss-bridge/config.default.ini.php ${PATH_DEB}/etc/rss-bridge/config.ini.php
|
|
||||||
cp ${PATH_DEB}/usr/share/rss-bridge/whitelist.default.txt ${PATH_DEB}/etc/rss-bridge/whitelist.txt
|
|
||||||
|
|
||||||
ln -s /etc/rss-bridge/config.ini.php ${PATH_DEB}/usr/share/rss-bridge/config.ini.php
|
|
||||||
ln -s /etc/rss-bridge/whitelist.txt ${PATH_DEB}/usr/share/rss-bridge/whitelist.txt
|
|
||||||
|
|
||||||
mkdir -p ${PATH_DEB}/var/cache/rss-bridge/cache/
|
|
||||||
rm ${PATH_DEB}/usr/share/rss-bridge/cache
|
|
||||||
ln -s /var/cache/rss-bridge/cache/ ${PATH_DEB}/usr/share/rss-bridge/cache
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/RSS-Bridge/rss-bridge.git
|
|
||||||
cd rss-bridge/
|
|
||||||
git checkout $VERSION
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y git
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/RSS-Bridge/rss-bridge.git
|
||||||
|
cd rss-bridge/
|
||||||
|
git checkout $VERSION
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp -fr ${PATH_BUILD}/tmp/rss-bridge ${PATH_DEB}/usr/share/
|
||||||
|
|
||||||
|
cp ${PATH_DEB}/usr/share/rss-bridge/config.default.ini.php ${PATH_DEB}/etc/rss-bridge/config.ini.php
|
||||||
|
cp ${PATH_DEB}/usr/share/rss-bridge/whitelist.default.txt ${PATH_DEB}/etc/rss-bridge/whitelist.txt
|
||||||
|
|
||||||
|
ln -s /etc/rss-bridge/config.ini.php ${PATH_DEB}/usr/share/rss-bridge/config.ini.php
|
||||||
|
ln -s /etc/rss-bridge/whitelist.txt ${PATH_DEB}/usr/share/rss-bridge/whitelist.txt
|
||||||
|
|
||||||
|
mkdir -p ${PATH_DEB}/var/cache/rss-bridge/cache/
|
||||||
|
rm ${PATH_DEB}/usr/share/rss-bridge/cache
|
||||||
|
ln -s /var/cache/rss-bridge/cache/ ${PATH_DEB}/usr/share/rss-bridge/cache
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /tmp/web
|
|
||||||
PATH=$PATH:/tmp/web/bin
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
|
@ -1,7 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y git build-essential python2 wget ruby-dev libxml2 libz-dev
|
|
||||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
|
||||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
|
||||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y yarn nodejs
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp -fr ${PATH_BUILD}/tmp/web/* ${PATH_DEB}/usr/lib/standardnotes/web/
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/standardnotes/web.git
|
|
||||||
cd web/
|
|
||||||
git checkout $VERSION
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y git build-essential python2 wget ruby-dev libxml2 libz-dev
|
||||||
|
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||||
|
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y yarn nodejs
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/standardnotes/web.git
|
||||||
|
cd web/
|
||||||
|
git checkout $VERSION
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/web
|
||||||
|
PATH=$PATH:/tmp/web/bin
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp -fr ${PATH_BUILD}/tmp/web/* ${PATH_DEB}/usr/lib/standardnotes/web/
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /tmp/web-vault
|
|
||||||
npm install
|
|
||||||
npm run dist:oss:selfhost
|
|
|
@ -1,8 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y build-essential git python wget ca-certificates
|
|
||||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
|
||||||
#wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
|
||||||
#echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
|
||||||
apt-get update
|
|
||||||
#apt-get install -y yarn nodejs
|
|
||||||
apt-get install -y nodejs
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp -fr ${PATH_BUILD}/tmp/web-vault/build/* ${PATH_DEB}/usr/share/vaultwarden-web
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
|
|
||||||
cd /tmp
|
|
||||||
git clone https://github.com/bitwarden/web.git web-vault
|
|
||||||
cd /tmp/web-vault
|
|
||||||
git checkout ${VERSION}
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
git clone https://github.com/dani-garcia/bw_web_builds.git
|
|
||||||
cd bw_web_builds
|
|
||||||
PATCH=$(git tag --sort=v:refname | tail -n1)
|
|
||||||
git checkout ${PATCH}
|
|
||||||
cp patches/${PATCH}.patch ../web-vault/
|
|
||||||
|
|
||||||
cd /tmp/web-vault
|
|
||||||
git apply ${PATCH}.patch
|
|
||||||
|
|
|
@ -0,0 +1,49 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y build-essential git python wget ca-certificates
|
||||||
|
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||||
|
#wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||||
|
#echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||||
|
apt-get update
|
||||||
|
#apt-get install -y yarn nodejs
|
||||||
|
apt-get install -y nodejs
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
git clone https://github.com/bitwarden/web.git web-vault
|
||||||
|
cd /tmp/web-vault
|
||||||
|
git checkout ${VERSION}
|
||||||
|
git submodule update --init --recursive
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
git clone https://github.com/dani-garcia/bw_web_builds.git
|
||||||
|
cd bw_web_builds
|
||||||
|
PATCH=$(git tag --sort=v:refname | tail -n1)
|
||||||
|
git checkout ${PATCH}
|
||||||
|
cp patches/${PATCH}.patch ../web-vault/
|
||||||
|
|
||||||
|
cd /tmp/web-vault
|
||||||
|
git apply ${PATCH}.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/web-vault
|
||||||
|
npm install
|
||||||
|
npm run dist:oss:selfhost
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp -fr ${PATH_BUILD}/tmp/web-vault/build/* ${PATH_DEB}/usr/share/vaultwarden-web
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /tmp/vaultwarden/
|
|
||||||
source ~/.cargo/env
|
|
||||||
cargo build --features sqlite,mysql,postgresql --release
|
|
|
@ -1,6 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y --no-install-recommends build-essential git wget ca-certificates libmariadb-dev libpq-dev pkg-config libmysql++-dev
|
|
||||||
cd /tmp
|
|
||||||
wget -qO - https://sh.rustup.rs > rustup
|
|
||||||
bash rustup -qy
|
|
||||||
apt clean
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp -fr ${PATH_BUILD}/tmp/vaultwarden/target/release/vaultwarden ${PATH_DEB}/usr/lib/vaultwarden/
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/dani-garcia/vaultwarden.git
|
|
||||||
cd vaultwarden/
|
|
||||||
git checkout $VERSION
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y --no-install-recommends build-essential git wget ca-certificates libmariadb-dev libpq-dev pkg-config libmysql++-dev
|
||||||
|
cd /tmp
|
||||||
|
wget -qO - https://sh.rustup.rs > rustup
|
||||||
|
bash rustup -qy
|
||||||
|
apt clean
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/dani-garcia/vaultwarden.git
|
||||||
|
cd vaultwarden/
|
||||||
|
git checkout $VERSION
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/vaultwarden/
|
||||||
|
source ~/.cargo/env
|
||||||
|
cargo build --features sqlite,mysql,postgresql --release
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp -fr ${PATH_BUILD}/tmp/vaultwarden/target/release/vaultwarden ${PATH_DEB}/usr/lib/vaultwarden/
|
||||||
|
}
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd /tmp/zigbee2mqtt/
|
|
||||||
npm ci
|
|
||||||
npm run build
|
|
|
@ -1,3 +0,0 @@
|
||||||
#/bin/bash
|
|
||||||
apt install -y wget ca-certificates nodejs npm git make g++ gcc
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH_BUILD=$1
|
|
||||||
PATH_DEB=$2
|
|
||||||
GIT_VERSION=$3
|
|
||||||
|
|
||||||
cp -fr ${PATH_BUILD}/tmp/zigbee2mqtt/data/configuration.yaml ${PATH_DEB}/etc/zigbee2mqtt/configuration.yaml
|
|
||||||
cp -fr ${PATH_BUILD}/tmp/zigbee2mqtt/* ${PATH_DEB}/usr/lib/zigbee2mqtt/
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
VERSION=$1
|
|
||||||
cd /tmp/
|
|
||||||
git clone https://github.com/Koenkk/zigbee2mqtt.git
|
|
||||||
cd zigbee2mqtt/
|
|
||||||
git checkout $VERSION
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
apt install -y wget ca-certificates nodejs npm git make g++ gcc
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuild(){
|
||||||
|
VERSION=$1
|
||||||
|
cd /tmp/
|
||||||
|
git clone https://github.com/Koenkk/zigbee2mqtt.git
|
||||||
|
cd zigbee2mqtt/
|
||||||
|
git checkout $VERSION
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/zigbee2mqtt/
|
||||||
|
npm ci
|
||||||
|
npm run build
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_BUILD=$1
|
||||||
|
PATH_DEB=$2
|
||||||
|
GIT_VERSION=$3
|
||||||
|
|
||||||
|
cp -fr ${PATH_BUILD}/tmp/zigbee2mqtt/data/configuration.yaml ${PATH_DEB}/etc/zigbee2mqtt/configuration.yaml
|
||||||
|
cp -fr ${PATH_BUILD}/tmp/zigbee2mqtt/* ${PATH_DEB}/usr/lib/zigbee2mqtt/
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $1
|
||||||
|
FUNC=$1
|
||||||
|
shift
|
||||||
|
${FUNC} $*
|
Loading…
Reference in New Issue